{{-- Two Factor Authentication Section --}}

{{ __('t.2fa') }}

{{ __('t.add_additional_security') }}

@if($this->enabled) @if($showingConfirmation)

{{ __('t.finish_enabling_two_factor_authentication') }}

@endif @else
{{ __('t.not_enabled_two_factor_authentication') }}

{{ __('t.two_factor_auth_enabled_description') }}

@endif
@if($this->enabled) @if($showingQrCode)

@if($showingConfirmation) {{ __('t.finish_two_factor_authentication_description') }} @else {{ __('t.two_factor_authentication_enabled_description') }} @endif

{{-- QR Code --}}
{!! $this->user->twoFactorQrCodeSvg() !!}
{{-- Setup Key --}}

{{ __('t.setup_key') }}: {{ decrypt($this->user->two_factor_secret) }}

@if($showingConfirmation)
@endif
@endif @if($showingRecoveryCodes)

{{ __('t.store_recovery_codes') }}

@foreach(json_decode(decrypt($this->user->two_factor_recovery_codes), true) as $code)
{{ $code }}
@endforeach
@endif @endif {{-- Action Buttons --}}
@if(!$this->enabled) @else @if($showingRecoveryCodes) @elseif($showingConfirmation) @else @endif @if($showingConfirmation) @else @endif @endif