Updated duration for failure messages to 5 seconds

This commit is contained in:
dhanabalan
2025-07-18 19:06:42 +05:30
parent a71864905e
commit c363faa357
9 changed files with 272 additions and 257 deletions

View File

@@ -138,7 +138,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -159,7 +159,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -183,7 +183,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' does not found in pallet table.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -267,7 +267,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '{$palletNo}' does not completed the master packing.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -348,7 +348,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -369,7 +369,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -390,7 +390,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -419,7 +419,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -457,7 +457,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Scanned serial number '$serialNo' already exist in pallet number '$palletnumber'!<br>Scan the valid new serial number to proceed...")
->danger()
->duration(1200)
->duration(5000)
->send();
// $this->form->fill([
@@ -550,7 +550,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -571,7 +571,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number '$scanLocator' must be at least 7 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -597,7 +597,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number '{$scanLocator}' does not exist in the master.")
->danger()
->duration(1200)
->duration(5000)
->send();
// $this->form->fill([
@@ -630,7 +630,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("No space available for locator number '{$scanLocator}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -659,7 +659,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -688,7 +688,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '{$palletNo}' does not completed the master packing.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -714,7 +714,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' is already assigned to locator number '{$locatorExist->locator_number}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -755,7 +755,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number is required to add or remove when pallet number is empty.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -776,7 +776,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -797,7 +797,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -826,7 +826,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -852,7 +852,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' is already assigned to locator number '{$serialExist->locator_number}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -873,7 +873,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in pallet number '{$serialExist->pallet_number}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -958,7 +958,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -979,7 +979,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number '$scanLocator' must be at least 7 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1005,7 +1005,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number '{$scanLocator}' does not exist in the master.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1030,7 +1030,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("No space available for locator number '{$scanLocator}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1054,7 +1054,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1078,7 +1078,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' does not found in pallet table.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1107,7 +1107,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '{$palletNo}' does not completed the master packing.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1136,7 +1136,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '{$palletNo}' is already added into locator number '{$alreadyAssigned->locator_number}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1204,7 +1204,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("pallet number failed to add into locator number '$scanLocator'")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1227,7 +1227,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number is required to add when pallet number is empty.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1248,7 +1248,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1269,7 +1269,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1298,7 +1298,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1326,7 +1326,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in pallet number '{$palletexists->pallet_number}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1354,7 +1354,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in locator number '{$exists->locator_number}'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1451,7 +1451,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1472,7 +1472,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number '$scanLocator' must be at least 7 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1498,7 +1498,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Locator number '{$scanLocator}' does not exist in the master.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1522,7 +1522,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1545,7 +1545,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' does not found in pallet table.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1574,7 +1574,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '{$palletNo}' does not completed the master packing.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1602,7 +1602,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '$palletNo' is exists in locator number '$palletValidation->locator_number'<br>Scan the valid locator number to remove pallet number.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator', '', $plantId);
@@ -1630,7 +1630,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Pallet number '{$palletNo}' doesn't exist in locator number.<br>Add locator number to proceed...")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1724,7 +1724,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("No matching pallet found or locator number already empty.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1749,7 +1749,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number is required to remove when pallet number is empty.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1770,7 +1770,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1791,7 +1791,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1819,7 +1819,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1844,7 +1844,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '{$serialNo}' doesn't exist in the pallet table to remove.<br>Add serial number to proceed...")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1871,7 +1871,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '{$serialNo}' already exists in pallet number '$existsInPallet->pallet_number'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1898,7 +1898,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number '{$serialNo}' exist in the locator number '$existsInPallet->locator_number'.<br>Scan the valid locator number to remove serial number.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);
@@ -1947,7 +1947,7 @@ class LocatorValidation extends Page implements HasForms
Notification::make()
->title("Serial number failed to remove from locator number '$scanLocator'.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadLocator' ,'',$plantId);