{{ __('Account Security') }}
{{ __('Manage your sessions, passwords, and two-factor authentication.') }}
@if(session('success'))
{{ session('success') }}
@endif
🛡️ {{ __('Two-Factor Authentication') }} @if($user->twoFactorAuth && $user->twoFactorAuth->enabled) {{ __('ACTIVE') }} @else {{ __('OFF') }} @endif

{{ __('Add an extra layer of security to your account by requiring a code from an authenticator app.') }}

@if(!($user->twoFactorAuth && $user->twoFactorAuth->enabled))

{{ __('1. Scan QR Code') }}

{{ __('Scan this image with Google Authenticator or Authy. If you cannot scan it, enter the secret key manually.') }}

@csrf

{{ __('2. Verify Code') }}

{{ __('Enter the 6-digit code from your app to complete setup.') }}

@error('code')

{{ $message }}

@enderror
@else

🔖 {{ __('Recovery Codes') }}

{{ __('Keep these codes safe. You can use them to log in if you lose access to your device. Each code can be used once.') }}

@if(session('recovery_codes'))
@foreach (session('recovery_codes') as $code)
{{ $code }}
@endforeach

{{ __('Visible only now! Save them.') }}

@else

{{ __('Recovery codes have been generated and hidden for security.') }}

@endif
@csrf
@endif