@if(session('two_factor_secret'))
@if(session('status') == 'two-factor-authentication-cannot-be-confirmed')
Please enter the correct code.
@endif
{{-- Show SVG QR Code, After Enabling 2FA --}}
{{ __('Two factor authentication is now enabled. Scan the following QR code using your phone\'s authenticator application.') }}
{!! auth()->user()->twoFactorQrCodeSvg(session('two_factor_secret')) !!}
@elseif(!auth()->user()->two_factor_secret)
{{-- Enable 2FA --}}
@else
@if(session('status') == 'two-factor-authentication-confirmed')
{{ __('Two factor authentication is now enabled. Scan the following QR code using your phone\'s authenticator application.') }}
@endif
{{-- Show 2FA Recovery Codes --}}
{{ __('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
{{-- Regenerate 2FA Recovery Codes --}}
{{-- Disable 2FA --}}
@endif