diff --git a/app/Filament/Resources/EggResource/Pages/ListEggs.php b/app/Filament/Resources/EggResource/Pages/ListEggs.php index 3d6f836bf..8f87d9fe6 100644 --- a/app/Filament/Resources/EggResource/Pages/ListEggs.php +++ b/app/Filament/Resources/EggResource/Pages/ListEggs.php @@ -38,21 +38,21 @@ class ListEggs extends ListRecords $newEgg = $eggImportService->handle($eggFile); } catch (Exception $exception) { Notification::make() - ->title("Imported egg successfully: {$exception->getMessage()}") - ->success() + ->title('Egg Import Failed') + ->danger() ->send(); + report($exception); + return; } Notification::make() - ->title("Imported egg successfully: $newEgg->name") + ->title("Egg Import Success: $newEgg->name") ->success() ->send(); redirect()->route('filament.admin.resources.eggs.edit', [$newEgg]); - - // $livewire->redirect(route('filament.admin.resources.eggs.edit', [$newEgg])); }) ]; }