@extends('admin/layouts/auth') @section('title', __('client.profile.2fa.heading')) @section('content') @php $step = $factorStep ?? 'totp'; $isTwoStep = ($requiresEmailAfter ?? false) || ($requiresTotpBefore ?? false); $isTotpStep = $step === 'totp'; $trustDays = (int) setting('trust_device_days', 30); @endphp

{{ __('client.profile.2fa.heading') }}

@if ($isTwoStep && $isTotpStep) {{ __('client.profile.2fa.step1_subheading') }} @elseif ($isTwoStep) {{ __('client.profile.2fa.step2_subheading') }} @else {{ __('client.profile.2fa.subheading') }} @endif

@if ($isTwoStep) @endif @include('admin.shared.alerts') @if ($isTotpStep)
@csrf @include('shared.input', [ 'name' => '2fa', 'type' => 'text', 'label' => __('client.profile.2fa.code_totp'), 'attributes' => [ 'autocomplete' => 'one-time-code', 'inputmode' => 'text', 'autofocus' => 'autofocus', 'autocapitalize' => 'off', 'spellcheck' => 'false', 'aria-describedby' => '2fa-totp-hint', ], ])

{{ __('client.profile.2fa.code_totp_hint') }}

@include('shared.captcha')
@else @if ($cooldownActive ?? false) @else
{{ __('client.profile.2fa.email_sent_to', ['email' => $maskedEmail ?? '']) }}
@endif
@csrf @include('shared.input', [ 'name' => '2fa', 'type' => 'text', 'label' => __('client.profile.2fa.code_email'), 'attributes' => [ 'autocomplete' => 'one-time-code', 'inputmode' => 'numeric', 'pattern' => '[0-9]{6}', 'maxlength' => '6', 'autofocus' => 'autofocus', ], ]) @include('shared.captcha')
@csrf
@if ($requiresTotpBefore ?? false)
@csrf
@endif
@endif
@endsection