From 371052d9c2c759b9caf9d369bcdea86bc06a756c Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sun, 20 Sep 2026 14:27:19 +0530 Subject: [PATCH] Changed machine exporter logic --- app/Filament/Exports/MachineExporter.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Filament/Exports/MachineExporter.php b/app/Filament/Exports/MachineExporter.php index 9c32526..b6f7591 100644 --- a/app/Filament/Exports/MachineExporter.php +++ b/app/Filament/Exports/MachineExporter.php @@ -22,16 +22,16 @@ class MachineExporter extends Exporter // Increment and return the row number return ++$rowNumber; }), - ExportColumn::make('plant.name') - ->label('PLANT'), + ExportColumn::make('plant.code') + ->label('PLANT CODE'), ExportColumn::make('line.name') - ->label('LINE'), + ->label('LINE NAME'), ExportColumn::make('name') - ->label('MACHINE'), + ->label('DESCRIPTION'), ExportColumn::make('work_center') ->label('WORK CENTER'), ExportColumn::make('workGroupMaster.name') - ->label('WORK GROUP CENTER'), + ->label('GROUP WORK CENTER'), ExportColumn::make('created_at') ->label('CREATED AT'), ExportColumn::make('updated_at') @@ -44,10 +44,10 @@ class MachineExporter extends Exporter public static function getCompletedNotificationBody(Export $export): string { - $body = 'Your machine export has completed and ' . number_format($export->successful_rows) . ' ' . str('row')->plural($export->successful_rows) . ' exported.'; + $body = 'Your machine export has completed and '.number_format($export->successful_rows).' '.str('row')->plural($export->successful_rows).' exported.'; if ($failedRowsCount = $export->getFailedRowsCount()) { - $body .= ' ' . number_format($failedRowsCount) . ' ' . str('row')->plural($failedRowsCount) . ' failed to export.'; + $body .= ' '.number_format($failedRowsCount).' '.str('row')->plural($failedRowsCount).' failed to export.'; } return $body;