From 196117f07fa8ad66859751588db9116f57e75086 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 12 May 2026 13:13:25 +0530 Subject: [PATCH] Added mail status and triggered at column to request approval on Get API method --- app/Http/Controllers/CharacteristicsController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/CharacteristicsController.php b/app/Http/Controllers/CharacteristicsController.php index 6fc3e73..0e1a40d 100644 --- a/app/Http/Controllers/CharacteristicsController.php +++ b/app/Http/Controllers/CharacteristicsController.php @@ -5160,6 +5160,8 @@ class CharacteristicsController extends Controller 'approver_status_3' => $row->approver_status3 ?? '', 'approver_remark_3' => $row->approver_remark3 ?? '', 'approved_at_3' => $row->approved3_at ?? '', // ? $row->approved3_at->format('d-m-Y H:i:s') : '', + 'mail_status' => ($row->mail_status == 'Sent') ? 'Sent-M1' : ($row->mail_status == 'Sent-Mail2') ? 'Sent-M2' : ($row->mail_status == 'Sent-Mail3') ? 'Sent-M2' : '-', + 'triggered_at' => $row->trigger_at ?? '', 'requested_by' => ($row->created_by == 'Admin') ? 'jothi' : $row->created_by ?? '', 'requested_at' => $row->created_at ? $row->created_at->format('Y-m-d H:i:s') : '', ]; @@ -5191,6 +5193,8 @@ class CharacteristicsController extends Controller 'approver_status_3' => $row->approver_status3 ?? '', 'approver_remark_3' => $row->approver_remark3 ?? '', 'approved_at_3' => $row->approved3_at ?? '', // ? $row->approved3_at->format('d-m-Y H:i:s') : '', + 'mail_status' => ($row->mail_status == 'Sent') ? 'Sent-M1' : ($row->mail_status == 'Sent-Mail2') ? 'Sent-M2' : ($row->mail_status == 'Sent-Mail3') ? 'Sent-M2' : '-', + 'triggered_at' => $row->trigger_at ?? '', 'requested_by' => ($row->created_by == 'Admin') ? 'jothi' : $row->created_by ?? '', 'requested_at' => $row->created_at ? $row->created_at->format('Y-m-d H:i:s') : '', ]; -- 2.49.1