{{ __("Two Factor Authentication") }} {{ __("Here you can activate 2FA to secure your account") }}
@if (! auth()->user()->two_factor_secret) {{-- Enable 2FA --}}
@csrf {{ __("Enable Two-Factor") }}
@else {{-- Disable 2FA --}}
@csrf @method("DELETE") {{ __("Disable Two-Factor") }}
@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() !!}
{{ __("If you are unable to scan the QR code, please use the 2FA secret instead.") }}
{{ decrypt(auth()->user()->two_factor_secret) }}
@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 --}}
@csrf {{ __("Regenerate Recovery Codes") }}
@endif