From 3d4b5d4839362dd2c81029a25e02a3688b2d4fcd Mon Sep 17 00:00:00 2001 From: amirghasempoor Date: Sat, 30 Aug 2025 15:06:16 +0330 Subject: [PATCH] add city_fa name --- app/Exports/V3/AccidentReceipt/ProvinceReport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Exports/V3/AccidentReceipt/ProvinceReport.php b/app/Exports/V3/AccidentReceipt/ProvinceReport.php index 7d9f7cd2..72a7e7cf 100644 --- a/app/Exports/V3/AccidentReceipt/ProvinceReport.php +++ b/app/Exports/V3/AccidentReceipt/ProvinceReport.php @@ -47,8 +47,8 @@ class ProvinceReport implements FromView, ShouldAutoSize, WithEvents, WithDrawin if ($existingCity) { $activities[] = [ - 'city_id' => -1, - 'city_fa' => 'کل استان', + 'city_id' => $city->id, + 'city_fa' => $city->name_fa, 'tedade' => $reportData['data'][$existingCity]->tedade, 'police_rah' => $reportData['data'][$existingCity]->police_rah, 'gozaresh_gasht' => $reportData['data'][$existingCity]->gozaresh_gasht, @@ -63,7 +63,7 @@ class ProvinceReport implements FromView, ShouldAutoSize, WithEvents, WithDrawin ]; } else { $activities[] = [ - 'name' => $city->name_fa, + 'city_fa' => $city->name_fa, 'tedade' => "", 'police_rah' => "", 'gozaresh_gasht' => "",