diff --git a/app/Filament/Exports/AlertMailRuleExporter.php b/app/Filament/Exports/AlertMailRuleExporter.php index 52fd383e..48b1f069 100644 --- a/app/Filament/Exports/AlertMailRuleExporter.php +++ b/app/Filament/Exports/AlertMailRuleExporter.php @@ -27,11 +27,11 @@ class AlertMailRuleExporter extends Exporter ExportColumn::make('rule_name') ->label('RULE NAME'), ExportColumn::make('email') - ->label('EMAIL'), + ->label('TO EMAIL'), ExportColumn::make('schedule_type') ->label('SCHEDULE TYPE'), ExportColumn::make('plant') - ->label('PLANT CODE') + ->label('PLANT NAME') ->formatStateUsing(function ($state) { // $state is the plant ID from the database if ($state == 0) { @@ -39,12 +39,12 @@ class AlertMailRuleExporter extends Exporter } $plant = Plant::find($state); - return $plant ? $plant->code : 'Unknown'; + return $plant ? $plant->name : 'Unknown'; }), ExportColumn::make('machine.work_center') ->label('WORK CENTER'), ExportColumn::make('cc_emails') - ->label('CC EMAILS'), + ->label('CC EMAIL'), ExportColumn::make('invoiceMaster.receiving_plant_name') ->label('RECEIVING PLANT NAME'), ExportColumn::make('invoiceMaster.transport_name')