From ab9838c1bc5ae12c1fa7b3261b8534bef53070c8 Mon Sep 17 00:00:00 2001 From: amirghasempoor Date: Sun, 14 Jun 2026 14:13:44 +0330 Subject: [PATCH] create --- .../Mission/Report/Machine/machineReport.php | 10 ++++---- .../Report/Machine/ActivityReport.blade.php | 23 +++++++++++-------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/Exports/V3/Mission/Report/Machine/machineReport.php b/app/Exports/V3/Mission/Report/Machine/machineReport.php index 5d11323a..f6fd812a 100644 --- a/app/Exports/V3/Mission/Report/Machine/machineReport.php +++ b/app/Exports/V3/Mission/Report/Machine/machineReport.php @@ -18,14 +18,16 @@ class machineReport implements FromView, ShouldAutoSize, WithDrawings, WithEvent } public function view(): View - { $exportRows = []; + { + $exportRows = []; foreach ($this->data as $r) { $exportRows[] = [ - 'city_name' => $r->c_name ?? '', - 'province_name' => $r->p_name ?? '', + 'machine_id' => $r->c_name ?? '', + 'machine_code' => $r->machine_code ?? '', + 'car_name' => $r->car_name ?? '', 'missions' => $r->missions ?? 0, - 'distance' => (int) ($r->distance ?? 0), + 'func' => (int) ($r->func ?? 0), ]; } diff --git a/resources/views/v3/Reports/Mission/Report/Machine/ActivityReport.blade.php b/resources/views/v3/Reports/Mission/Report/Machine/ActivityReport.blade.php index a3ffc93b..53091d8b 100644 --- a/resources/views/v3/Reports/Mission/Report/Machine/ActivityReport.blade.php +++ b/resources/views/v3/Reports/Mission/Report/Machine/ActivityReport.blade.php @@ -46,19 +46,23 @@ - استان + کدیکتا - شهر + مدل ماشین + + کد ماشین + + + کارکرد تعداد ماموریت - - جمع کارکرد - + @@ -66,10 +70,11 @@ @foreach ($rows as $item) - {{ $item['province_name'] ?? '-' }} - {{ $item['city_name'] ?? '-' }} + {{ $item['machine_id'] ?? '-' }} + {{ $item['car_name'] ?? '-' }} + {{ $item['machine_code'] ?? '-' }} + {{ $item['func'] ?? '-' }} {{ $item['missions'] ?? '-' }} - {{ $item['distance'] ?? '-' }} @endforeach