Converted from durations to seconds to Notifications

This commit is contained in:
dhanabalan
2025-05-06 11:31:29 +05:30
parent 2477b88ea5
commit 504b110ff3

View File

@@ -196,7 +196,8 @@ class InvoiceDataTable extends Component
->title('Invalid Panel Box QR Format:') ->title('Invalid Panel Box QR Format:')
->body('Scan the valid panel box QR code to proceed!') ->body('Scan the valid panel box QR code to proceed!')
->danger() ->danger()
->duration(3000) // ->duration(3000)
->seconds(2)
->send(); ->send();
return; return;
} }
@@ -216,7 +217,8 @@ class InvoiceDataTable extends Component
->title('Unknown: Panel Box Code') ->title('Unknown: Panel Box Code')
->body("Unknown panel box code: $itemCode found for item code: $this->currentItemCode") ->body("Unknown panel box code: $itemCode found for item code: $this->currentItemCode")
->danger() ->danger()
->duration(4000) // ->duration(4000)
->seconds(2)
->send(); ->send();
$this->capacitorInput = ''; $this->capacitorInput = '';
return; return;
@@ -304,7 +306,7 @@ class InvoiceDataTable extends Component
// ->title("Panel box code scanned: $itemCode") // ->title("Panel box code scanned: $itemCode")
->body("'Capacitor' QR scanned status updated, Scan next QR.") ->body("'Capacitor' QR scanned status updated, Scan next QR.")
->success() ->success()
->duration(3000) ->seconds(2)
->send(); ->send();
$totalQuantity = InvoiceValidation::where('invoice_number', $matchingValidation->invoice_number)->where('plant_id', $this->plantId)->count(); $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') ->title('Completed: Serial Invoice')
->body("Serial invoice '$matchingValidation->invoice_number' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!") ->body("Serial invoice '$matchingValidation->invoice_number' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
->success() ->success()
->seconds(2)
->send(); ->send();
$this->loadCompletedData($matchingValidation->invoice_number, $matchingValidation->plant_id); $this->loadCompletedData($matchingValidation->invoice_number, $matchingValidation->plant_id);
} }