@extends('layouts.portal') @section('title', 'Two-Factor Authentication Settings') @section('page_title', 'Two-Factor Authentication') @section('page_subtitle', 'Control OTP security for your agent account') @section('sidebar') @include('agent.partials.sidebar', ['active' => 'settings-2fa']) @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 agent 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

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

@endsection