@extends('layouts.app')

@section('title', __('app.recovery_codes'))
@section('page_title', __('app.recovery_codes'))

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">{{ __('app.recovery_codes') }}</h3>
                </div>
                <div class="card-body">
                    <div class="alert alert-warning">
                        <i class="fas fa-exclamation-triangle"></i> {{ __('app.save_recovery_codes') }}
                    </div>
                    
                    <div class="row">
                        @foreach($recoveryCodes as $code)
                        <div class="col-md-6 mb-2">
                            <code class="d-block p-2 bg-light border rounded text-center" style="font-size: 1.2em;">{{ $code }}</code>
                        </div>
                        @endforeach
                    </div>
                    
                    <hr>
                    
                    <a href="{{ route('2fa.settings') }}" class="btn btn-primary">{{ __('app.save') }}</a>
                    <a href="{{ route('2fa.recovery-codes') }}" class="btn btn-secondary">{{ __('app.regenerate_recovery_codes') }}</a>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
