@extends('layouts.portal') @section('title', 'Two-Factor Authentication Settings') @section('page_title', '2FA Settings') @section('page_subtitle', 'Secure your admin account with two-factor authentication') @section('sidebar') @include('admin.partials.sidebar', ['active' => '2fa-settings']) @endsection @section('content')

Two-Factor Authentication (2FA)

Secure your admin account with OTP verification

@if ($errors->any())

Error

@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if (session('success'))

Success

{{ session('success') }}

@endif

Current Status

@if ($is_2fa_enabled)
✅ Two-Factor Authentication is ENABLED @else
❌ Two-Factor Authentication is DISABLED @endif

Why Enable 2FA?

  • Enhanced Security: Protects your admin account from unauthorized access
  • OTP Verification: Email-based one-time password for extra protection
  • Simple Process: Just enter email, password, and OTP
@if (!$is_2fa_enabled)

Enable Two-Factor Authentication

@csrf

We need your password to verify your identity

After clicking "Send OTP", you'll receive a 6-digit code via email. You'll then enter this code to complete the setup.

@else

Disable Two-Factor Authentication

@csrf

Disabling 2FA will reduce your account security. Enter your password to confirm.

@endif
@endsection