<?php
    /**
     * Layout mínimo para páginas de error.
     * Variables esperadas:
     * - $status (int|string)
     * - $title (string)
     * - $description (string)
     * - $primaryUrl (string)
     * - $primaryText (string)
     * - $secondaryUrl (string|null)
     * - $secondaryText (string|null)
     * - $tertiaryUrl (string|null)
     * - $tertiaryText (string|null)
     */

    $status = $status ?? '';
    $title = $title ?? 'Ocurrió un error';
    $description = $description ?? 'No se pudo completar la solicitud.';

    $primaryUrl = $primaryUrl ?? url('/admin/login');
    $primaryText = $primaryText ?? 'Ir al inicio de sesión';

    $secondaryUrl = $secondaryUrl ?? url('/');
    $secondaryText = $secondaryText ?? 'Ir al inicio';

    $tertiaryUrl = $tertiaryUrl ?? url()->previous();
    $tertiaryText = $tertiaryText ?? 'Volver';
?>

<!doctype html>
<html lang="es">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="noindex,nofollow">

    <title><?php echo e($title); ?> · Order Flow</title>

    <style>
        :root { --of-primary: #8BBE36; }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
            background: #f7f7f8;
            color: #111827;
        }
        .wrap {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px;
        }
        .card {
            width: 100%;
            max-width: 560px;
            background: #ffffff;
            border: 1px solid rgba(17, 24, 39, 0.08);
            border-radius: 18px;
            padding: 28px;
            box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
        }
        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
        }
        .brand img {
            width: 44px;
            height: 44px;
            object-fit: contain;
        }
        .brand .name {
            font-weight: 800;
            letter-spacing: -0.02em;
            font-size: 18px;
        }
        .title {
            margin: 0 0 10px 0;
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.02em;
        }
        .desc {
            margin: 0 0 18px 0;
            color: #374151;
            line-height: 1.55;
            font-size: 14px;
        }
        .code {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #6b7280;
            margin: 0 0 18px 0;
        }
        .pill {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid rgba(17, 24, 39, 0.12);
            background: rgba(17, 24, 39, 0.03);
            font-weight: 700;
            color: #111827;
        }
        .actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 6px;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 40px;
            padding: 0 14px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 700;
            font-size: 14px;
            border: 1px solid rgba(17, 24, 39, 0.12);
            color: #111827;
            background: #ffffff;
        }
        .btn-primary {
            background: var(--of-primary);
            border-color: var(--of-primary);
            color: #0b1a04;
        }
        .hint {
            margin-top: 14px;
            font-size: 12px;
            color: #6b7280;
            line-height: 1.5;
        }
    </style>
</head>
<body>
<div class="wrap">
    <main class="card" role="main">
        <div class="brand">
            <img src="<?php echo e(asset('images/order-flow.png')); ?>" alt="Order Flow" loading="eager">
            <div class="name">Order Flow</div>
        </div>

        <h1 class="title"><?php echo e($title); ?></h1>
        <p class="desc"><?php echo e($description); ?></p>

        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($status !== ''): ?>
            <p class="code">Código: <span class="pill"><?php echo e($status); ?></span></p>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        <div class="actions">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($primaryUrl) && !empty($primaryText)): ?>
                <a class="btn btn-primary" href="<?php echo e($primaryUrl); ?>"><?php echo e($primaryText); ?></a>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($secondaryUrl) && !empty($secondaryText)): ?>
                <a class="btn" href="<?php echo e($secondaryUrl); ?>"><?php echo e($secondaryText); ?></a>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($tertiaryUrl) && !empty($tertiaryText)): ?>
                <a class="btn" href="<?php echo e($tertiaryUrl); ?>"><?php echo e($tertiaryText); ?></a>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>

        <?php if (! empty(trim($__env->yieldContent('hint')))): ?>
            <div class="hint"><?php echo $__env->yieldContent('hint'); ?></div>
        <?php else: ?>
            <p class="hint">Si el problema persiste, vuelve a intentarlo en unos minutos.</p>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </main>
</div>
</body>
</html>
<?php /**PATH /home/orderflowpro/public_html/test.orderflowpro.site/resources/views/errors/minimal.blade.php ENDPATH**/ ?>