diff --git a/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php b/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php index d27bf9c..16f245c 100644 --- a/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php +++ b/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php @@ -65,8 +65,15 @@ class CreatePanelBoxValidation extends CreateRecord { $this->showChecklist = true; $this->halt(); } + else{ + \Filament\Notifications\Notification::make() + ->title('Characteristics not found for the scanned item.') + ->danger() + ->send(); + $this->halt(); + } + - return $data; } protected function checkIfHasCharacteristics(array $data)