From 504b110ff341c6dac78b709b3404ef7dd080b8eb Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 6 May 2025 11:31:29 +0530 Subject: [PATCH] Converted from durations to seconds to Notifications --- app/Livewire/InvoiceDataTable.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Livewire/InvoiceDataTable.php b/app/Livewire/InvoiceDataTable.php index f7fede6b9..d729f6770 100644 --- a/app/Livewire/InvoiceDataTable.php +++ b/app/Livewire/InvoiceDataTable.php @@ -196,7 +196,8 @@ class InvoiceDataTable extends Component ->title('Invalid Panel Box QR Format:') ->body('Scan the valid panel box QR code to proceed!') ->danger() - ->duration(3000) + // ->duration(3000) + ->seconds(2) ->send(); return; } @@ -216,7 +217,8 @@ class InvoiceDataTable extends Component ->title('Unknown: Panel Box Code') ->body("Unknown panel box code: $itemCode found for item code: $this->currentItemCode") ->danger() - ->duration(4000) + // ->duration(4000) + ->seconds(2) ->send(); $this->capacitorInput = ''; return; @@ -304,7 +306,7 @@ class InvoiceDataTable extends Component // ->title("Panel box code scanned: $itemCode") ->body("'Capacitor' QR scanned status updated, Scan next QR.") ->success() - ->duration(3000) + ->seconds(2) ->send(); $totalQuantity = InvoiceValidation::where('invoice_number', $matchingValidation->invoice_number)->where('plant_id', $this->plantId)->count(); @@ -323,6 +325,7 @@ class InvoiceDataTable extends Component ->title('Completed: Serial Invoice') ->body("Serial invoice '$matchingValidation->invoice_number' completed the scanning process.
Scan the next 'Serial Invoice' to proceed!") ->success() + ->seconds(2) ->send(); $this->loadCompletedData($matchingValidation->invoice_number, $matchingValidation->plant_id); }