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; }