@extends('layouts.portal') @section('title', 'Two-Factor Authentication Settings') @section('page_title', '🔐 Two-Factor Authentication') @section('page_subtitle', 'Control OTP security for your admin account') @section('sidebar') @include('admin.partials.sidebar', ['active' => '2fa-settings']) @endsection @section('content')
@if (session('success'))

Success!

{{ session('success') }}

@endif @if ($errors->any())

Error

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

{{ $error }}

@endforeach
@endif

Two-Factor Authentication

Enhance your admin account security with email-based OTP verification

Current Status

@if ($is_2fa_enabled)
✅ 2FA ENABLED
@else
❌ 2FA DISABLED
@endif

@if ($is_2fa_enabled) OTP will be required during login. You'll receive a 6-digit code via email. @else 2FA is currently disabled. You can enable it below for enhanced security. @endif

OTP Email Address

@csrf

All OTP codes will be sent to this email address

Security Features

Email-Based OTP

Unique 6-digit code sent to your email

Time Limited

OTP valid for only 10 minutes

Login Protection

Prevents unauthorized admin access

Attempt Limit

Maximum 5 failed attempts per login

Change 2FA Status

@csrf

Password required to verify your identity

@if ($is_2fa_enabled) About to disable: Login will only require email and password (less secure). @else About to enable: Login will require email, password, AND OTP code (more secure). @endif

How It Works

Step 1: Enter your admin email and password on login page

Step 2: OTP code (6 digits) is sent to your email instantly

Step 3: Enter the OTP code on the verification page

Step 4: Access granted to admin panel! ✅

@endsection