From 9c23fb3acadf6bb7bfc1187fbf1fc8904ba8a899 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 20 Jan 2026 10:58:24 +0530 Subject: [PATCH] Added notifications for invoice pending reason page --- app/Filament/Pages/InvoicePendingReason.php | 22 ++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/app/Filament/Pages/InvoicePendingReason.php b/app/Filament/Pages/InvoicePendingReason.php index 276eb34..a11cde2 100644 --- a/app/Filament/Pages/InvoicePendingReason.php +++ b/app/Filament/Pages/InvoicePendingReason.php @@ -152,7 +152,27 @@ class InvoicePendingReason extends Page $remark = $this->filters['remark'] ?? null; if (! $plantId || ! $documentNumber || $remark == '') { - + Notification::make() + ->title('Plant') + ->body("please select plant first..!") + ->danger() + ->send(); + return; + } + if (! $documentNumber || $remark == '') { + Notification::make() + ->title('Document Number') + ->body("please select document number..!") + ->danger() + ->send(); + return; + } + if ($remark == '') { + Notification::make() + ->title('Remark') + ->body("Remark can't be empty..!") + ->danger() + ->send(); return; }