From 41b0b5442856546041c7bf928fbef59c6f612440 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 2 Nov 2026 10:42:51 +0530 Subject: [PATCH] Changed plant code to plant name in alert mail exporter --- app/Filament/Exports/AlertMailRuleExporter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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') -- 2.49.1