{{ __('modules.profile.twoFactorAuth') }} {{ __('modules.profile.addSecurity') }}

@if ($this->enabled) @if ($showingConfirmation) {{ __('modules.profile.finishEnablingTwoFactorAuth') }} @else {{ __('modules.profile.enabledTwoFactorAuth') }} @endif @else {{ __('modules.profile.notEnabledTwoFactorAuth') }} @endif

{{ __('modules.profile.twoFactorAuthMessage') }}

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

@if ($showingConfirmation) {{ __('modules.profile.finishEnablingTwoFactorAuthMessage') }} @else {{ __('modules.profile.twoFactorAuthEnabledMessage') }} @endif

{!! $this->user->twoFactorQrCodeSvg() !!}

{{ __('modules.profile.setupKey') }}: {{ decrypt($this->user->two_factor_secret) }}

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

{{ __('modules.profile.recoveryCodesMessage') }}

@foreach (json_decode(decrypt($this->user->two_factor_recovery_codes), true) as $code)
{{ $code }}
@endforeach
@endif @endif
@if (! $this->enabled) {{ __('app.enable') }} @else @if ($showingRecoveryCodes) {{ __('modules.profile.regenerateRecoveryCodes') }} @elseif ($showingConfirmation) {{ __('app.confirm') }} @else {{ __('modules.profile.showRecoveryCodes') }} @endif @if ($showingConfirmation) {{ __('app.cancel') }} @else {{ __('app.disable') }} @endif @endif