Actions\Action::make('disabledTwoFactor')->label('Enable Two-Factor Authentication')>requiresConfirmation()->modalSubmitActionLabel('Enable')
->form([
Forms\Components\TextInput::make('password')->password()
->revealable()
->required()])
->action(
function (array $data) { self::EnabledTwoFactor($data['password']);})->modalWidth('lg'),
Actions\Action::make('disabledTwoFactor')->label('Enable Two-Factor Authentication')>requiresConfirmation()->modalSubmitActionLabel('Enable')
->form([
Forms\Components\TextInput::make('password')->password()
->revealable()
->required()])
->action(
function (array $data) { self::EnabledTwoFactor($data['password']);})->modalWidth('lg'),