
@extends('layouts.errors')

@section('http_error')
    429 | Too Many Requests
@endsection

@section('imports')
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
@endsection

@section('styles')
    <style>
        .container-fluid {
            min-height: 100vh;
            /* Opcional, para ocupar toda la altura del viewport */
        }

        .btn-harsi {
            background-color: #0D6889 !important;
            color: #fff;
        }

        .btn-harsi:hover{
            color: #fff;
            font-weight: 500;
            letter-spacing: 0.5px;
        }
    </style>
@endsection

@section('content')
<div class="container px-4">
    <div class="row justify-content-center align-items-center g-2 d-flex vh-100">

        <div class="card col-11 h-50 justify-content-center align-items-center" style="background: #ffffffdc; border-radius: 0.5rem;">
            <div class="px-5 row g-0">

                <div class="px-0 col-lg-5 col-md-12 col-xs-12 d-flex align-items-center">
                    <img src="{{ asset('images/harsi_logo.png') }}" class="img-fluid rounded-start" alt="Harsi Logo">
                </div>

                <div class="px-3 py-2 col-lg-7 col-md-12 col-xs-12">

                    <div class="text-center card-header" style="background: #ffffff00; border-radius: 0.5rem;">
                        <h1>429</h1>
                        <h5>Too Many Requests</h5>
                    </div>

                    <div class="card-body">
                        <div class="px-4 text-center">
                            <p class="py-1 card-text" style="font-size: 1.35em; font-weight: 400 !important;">
                                @if (!Auth::check())
                                    {{ __('errors')['429']['auth_message'] }}
                                @else
                                    {{ __('errors')['429']['default_message'] }}
                                @endif
                            </p>

                            <button type="button"
                                style="font-size: 1.15em" class="mt-2 btn btn-harsi"
                                onclick="window.history.back()"
                            >
                                {{ __('redirection_actions')['try_again'] }} ...
                            </button>
                        </div>
                    </div>
                </div>

            </div>
        </div>

    </div>
</div>
@endsection

