Updated mail_status value in proper manner in report view / export
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-04-08 13:03:32 +05:30
parent 1ea4928b3f
commit 97f93c7938
2 changed files with 18 additions and 8 deletions

View File

@@ -71,7 +71,19 @@ class RequestCharacteristicExporter extends Exporter
ExportColumn::make('approved3_at')
->label('APPROVED AT 1'),
ExportColumn::make('mail_status')
->label('MAIL STATUS'),
->label('MAIL STATUS')
->formatStateUsing(function ($state) {
if (! $state || $state == '' || $state == null) {
return '-';
}
return match ($state) {
'Sent' => 'Sent-M1',
'Sent-Mail2' => 'Sent-M2',
'Sent-Mail3' => 'Sent-M3',
default => '-',
};
}),
ExportColumn::make('trigger_at')
->label('TRIGGERED AT'),
ExportColumn::make('created_at')