label(__('Disable two-factor authentication')) ->color('secondary') ->action(function () { $this->record->disableTwoFactorAuth(); Notification::make() ->body(__('Two-factor authentication disabled')) ->success() ->send(); }) ->visible(fn () => $this->record->hasTwoFactorEnabled()) ->requiresConfirmation(), Actions\DeleteAction::make(), ]; } }