exists(); if ($exists) { Notification::make() ->title('Failed to save') ->body('Data sudah ada') ->danger() ->send(); $this->halt(); // Stop the save process } return $data; } protected function getHeaderActions(): array { return [ Actions\DeleteAction::make(), Actions\ForceDeleteAction::make(), Actions\RestoreAction::make(), ]; } }