<?php
$tenant = service('tenantContext')->hasTenant() ? service('tenantContext')->getTenant() : null;
$primaryColor   = safe_hex_color($tenant->primary_color ?? null, '#4f46e5');
$secondaryColor = safe_hex_color($tenant->secondary_color ?? null, '#f59e0b');
$hotelName      = $tenant->hotel_name ?? 'MaxYields PMS';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <?php include APPPATH . 'Views/public/_shell_head.php'; ?>
</head>
<body>
<div class="public-shell">
    <div class="public-card text-center">
        <i class="bi bi-check-circle-fill text-success" style="font-size: 3rem;"></i>
        <h1 class="h5 mt-3 mb-1">You're Registered!</h1>
        <p class="text-muted">See you at <strong><?= esc($event->event_name) ?></strong>, <?= esc(explode(' ', $fullName)[0]) ?>.</p>

        <div class="info-box my-3">
            <div class="text-muted small mb-1">Your Check-In Code</div>
            <div class="fs-2 fw-bold" style="letter-spacing: 0.15em; color: var(--brand);"><?= esc($code) ?></div>
        </div>

        <p class="text-muted small mb-0">We've also texted this code to your phone. Show this screen or type the code at the venue's check-in screen when you arrive.</p>
    </div>
</div>
</body>
</html>
