@extends('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('shared.alerts')
@if ($isTotpStep)
@else
@if ($cooldownActive ?? false)
{{ __('client.profile.2fa.cooldown_active', ['minutes' => $cooldownMinutes ?? 5]) }}
@else
{{ __('client.profile.2fa.email_sent_to', ['email' => $maskedEmail ?? '']) }}
@endif
@if ($requiresTotpBefore ?? false)
@endif
@endif
@endsection