29 lines
1.4 KiB
PHP
29 lines
1.4 KiB
PHP
<div class="space-y-5">
|
|
<div>
|
|
<p class="font-mono text-[11px] uppercase tracking-[0.2em] text-accent-text">{{ __('auth.two_factor') }}</p>
|
|
<h1 class="mt-1 font-display text-2xl font-semibold text-ink">{{ __('auth.recovery_heading') }}</h1>
|
|
<p class="mt-1.5 text-sm text-ink-2">{{ __('auth.recovery_subtitle') }}</p>
|
|
</div>
|
|
|
|
<div class="flex items-start gap-2.5 rounded-md border border-warning/25 bg-warning/10 px-4 py-3">
|
|
<x-icon name="alert" class="mt-0.5 h-4 w-4 shrink-0 text-warning" />
|
|
<p class="text-sm text-ink-2">{{ __('auth.recovery_warning') }}</p>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 gap-2 rounded-md border border-line bg-inset p-4 sm:grid-cols-2">
|
|
@foreach ($codes as $c)
|
|
<span class="font-mono text-sm tracking-wide text-ink">{{ $c }}</span>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="flex flex-wrap items-center gap-2">
|
|
<x-btn href="{{ route('two-factor.recovery.download') }}" variant="accent">
|
|
<x-icon name="folder" class="h-3.5 w-3.5" /> {{ __('auth.recovery_download') }}
|
|
</x-btn>
|
|
<x-btn variant="secondary" wire:click="regenerate" wire:confirm="{{ __('auth.recovery_regenerate_confirm') }}">
|
|
<x-icon name="rotate" class="h-3.5 w-3.5" /> {{ __('auth.recovery_regenerate') }}
|
|
</x-btn>
|
|
<x-btn href="{{ route('dashboard') }}" variant="primary" class="ml-auto">{{ __('auth.recovery_done') }}</x-btn>
|
|
</div>
|
|
</div>
|