protected function getSaveFormAction(): Action { $action = Action::make(__('Save')); if ($this->record->is_active && $this->data['is_active'] != 1) { $action->requiresConfirmation() ->modalDescription(__('Are you sure you want to save??')); } $action->action(function () { $this->save(); return redirect()->route('filament.admin.resources.users.index'); }); return $action; }