@if(!$user->two_factor_secret)
@else
@if(session('status') === 'two-factor-authentication-enabled')
@lang('settings.two_factor_setup_app')
{!! $user->twoFactorQrCodeSvg() !!}
@lang('settings.two_factor_setup_url')
{{ $user->twoFactorQrCodeUrl() }}
@endif
@lang('settings.two_factor_recovery_codes')
@lang('settings.two_factor_recovery_codes_view')
@foreach (json_decode(decrypt($user->two_factor_recovery_codes), true) as $code)
{{ $code }}
@endforeach
@endif