{{ __('Two Factor Authentication') }}

{{ __('Add additional security to your account using two factor authentication.') }}

@if (auth()->user()->two_factor_secret) {{ __('You have enabled two factor authentication.') }} @else {{ __('You have not enabled two factor authentication.') }} @endif

{{ __('When two factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from your phone\'s Google Authenticator application.') }}

@if (!auth()->user()->two_factor_secret)
@csrf
@else
@csrf @method('DELETE')
@if (session('status') == 'two-factor-authentication-enabled')
{{ __('Two factor authentication is now enabled. Scan the following QR code using your phone\'s authenticator application.') }}
{!! auth() ->user() ->twoFactorQrCodeSvg() !!}
@endif
{{ __('Store these recovery codes in a secure password manager. They can be used to recover access to your account if your two factor authentication device is lost.') }}
@foreach (json_decode(decrypt(auth()->user()->two_factor_recovery_codes), true) as $code)
{{ $code }}
@endforeach
@csrf
@endif