create
This commit is contained in:
@@ -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),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user