@extends('frontend.user.setting.index') @section('title', __('2FA Security')) @section('user_setting_content') @php $isTwoFactorEnabled = (bool) auth()->user()->two_factor_enabled; @endphp @include('frontend.user.setting.partials._security_tabs')
@if($isTwoFactorEnabled) {{ __('Two-Factor Authentication is enabled') }} @else {{ __('Two-Factor Authentication is not active') }} @endif

@if($isTwoFactorEnabled) {{ __('Your account is protected by an authenticator code in addition to your password.') }} @else {{ __('Add a second layer of protection by linking an authenticator app to your account.') }} @endif

{{ $isTwoFactorEnabled ? __('Active') : __('Inactive') }}
@if($isTwoFactorEnabled)
{{ __('Disable Two-Factor Authentication') }}

{{ __('Confirm your password to remove 2FA from your account.') }}

{{ __('Security will be reduced') }} {{ __('Disabling 2FA removes an additional protection layer. We recommend keeping it enabled whenever possible.') }}
@csrf
@else
{{ __('Set up an Authenticator App') }}

{{ __('Follow these steps to link your preferred authenticator app.') }}

  1. 1
    {{ __('Install an authenticator app') }}

    {{ __('Download Google Authenticator, Authy or any TOTP-compatible app from your app store.') }}

  2. 2
    {{ __('Scan the QR code or enter the key') }}
    {{ __('2FA QR Code') }}
    {{ __('Account') }} {{ setting('site_title') }}
    {{ __('Secret Key') }} {{ $secret }}
  3. 3
    {{ __('Enter the 6-digit code to verify') }}

    {{ __('Your authenticator app generates a new code every 30 seconds.') }}

    @csrf
@endif @endsection @push('scripts') @endpush