fix the polygon
This commit is contained in:
@@ -10,6 +10,7 @@ use App\Facades\Sms\Sms;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Requests\V3\AccidentReceipt\ConfirmPaymentInfoRequest;
|
||||
use App\Http\Requests\V3\AccidentReceipt\StoreRequest;
|
||||
use App\Http\Requests\V3\AccidentReceipt\SubmitInvoiceRequest;
|
||||
use App\Http\Requests\V3\AccidentReceipt\UpdateRequest;
|
||||
use App\Http\Traits\ApiResponse;
|
||||
use App\Models\Accident;
|
||||
@@ -280,7 +281,7 @@ class AccidentReceiptController extends Controller
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function submitInvoice(Accident $accident, PaymentService $paymentService): JsonResponse
|
||||
public function submitInvoice(Accident $accident, PaymentService $paymentService, SubmitInvoiceRequest $request): JsonResponse
|
||||
{
|
||||
$final_amount = $accident->driver_share_amount - ($accident->deposit_insurance_amount + $accident->deposit_daghi_amount);
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class PanjareVahedController extends Controller
|
||||
$city = City::query()
|
||||
->whereRaw("ST_Contains(
|
||||
geometry,
|
||||
ST_GeomFromText('POINT($matches[2] $matches[1])', 4326))"
|
||||
ST_GeomFromText('POINT($matches[1] $matches[2])', 4326))"
|
||||
)
|
||||
->firstOrFail(['id', 'name_fa', 'province_id']);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class PanjareVahedController extends Controller
|
||||
$city = City::query()
|
||||
->orderByRaw("ST_Distance(
|
||||
geometry,
|
||||
ST_GeomFromText('POINT($matches[2] $matches[1])', 4326)) ASC"
|
||||
ST_GeomFromText('POINT($matches[1] $matches[2])', 4326)) ASC"
|
||||
)
|
||||
->first(['id', 'name_fa', 'province_id']);
|
||||
}
|
||||
@@ -58,7 +58,7 @@ class PanjareVahedController extends Controller
|
||||
'requested_organization' => $request->requested_organization,
|
||||
'plan_group' => $request->plan_group,
|
||||
'plan_title' => $request->plan_title,
|
||||
'worksheet_id' => $request->worksheet_id,
|
||||
'worksheet_id' => $request->worksheet,
|
||||
'response_options' => json_encode($request->response_options),
|
||||
'isic' => $request->isic,
|
||||
'primary_area' => json_encode($request->primary_area),
|
||||
|
||||
Reference in New Issue
Block a user