<?php $__env->startSection('title', 'Booking Received'); ?>

<?php $__env->startSection('content'); ?>
    <section class="mx-auto max-w-lg px-4 py-20 text-center sm:px-6">
        <div class="mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-emerald-100 text-4xl">✅</div>
        <h1 class="mt-6 font-serif text-3xl font-bold text-slate-900">Booking received!</h1>
        <p class="mt-3 text-slate-600">Thank you, <?php echo e($booking->customer->name); ?>. Your reservation is pending confirmation — our team will reach out shortly.</p>

        <div class="mt-8 rounded-3xl bg-white p-6 text-left shadow-sm ring-1 ring-slate-200">
            <p class="text-center font-mono text-lg font-extrabold tracking-widest text-gold-600"><?php echo e($booking->code); ?></p>
            <dl class="mt-4 space-y-2.5 text-sm">
                <div class="flex justify-between"><dt class="text-slate-400">Room type</dt><dd class="font-bold text-slate-800"><?php echo e($roomType->name); ?></dd></div>
                <div class="flex justify-between"><dt class="text-slate-400">Check-in</dt><dd class="font-bold text-slate-800"><?php echo e($booking->check_in->format('D j M Y')); ?></dd></div>
                <div class="flex justify-between"><dt class="text-slate-400">Check-out</dt><dd class="font-bold text-slate-800"><?php echo e($booking->check_out->format('D j M Y')); ?></dd></div>
                <div class="flex justify-between"><dt class="text-slate-400">Guests</dt><dd class="font-bold text-slate-800"><?php echo e($booking->adults); ?> adults<?php echo e($booking->children ? ', ' . $booking->children . ' children' : ''); ?></dd></div>
                <div class="flex justify-between border-t border-slate-100 pt-2.5"><dt class="font-bold text-slate-800">Estimated total</dt><dd class="font-extrabold text-gold-600"><?php echo e($CUR ?? '₦') . number_format((float) ($booking->total_amount), 2); ?></dd></div>
            </dl>
        </div>

        <div class="mt-8 flex flex-wrap justify-center gap-3">
            <a href="<?php echo e(route('pay.show', ['type' => 'booking', 'code' => $booking->code])); ?>" class="rounded-xl bg-gradient-to-r from-gold-400 to-gold-600 px-6 py-3 text-sm font-extrabold text-slate-950 shadow-lg shadow-gold-500/20 hover:brightness-110">💳 Pay online now</a>
            <a href="<?php echo e(route('home')); ?>" class="rounded-xl bg-slate-950 px-6 py-3 text-sm font-bold text-white">Back home</a>
            <?php if(auth()->guard()->guest()): ?>
                <a href="<?php echo e(route('register')); ?>" class="rounded-xl px-6 py-3 text-sm font-bold text-slate-600 ring-1 ring-slate-200">Create an account to track it</a>
            <?php else: ?>
                <a href="<?php echo e(route('account.bookings')); ?>" class="rounded-xl px-6 py-3 text-sm font-bold text-slate-600 ring-1 ring-slate-200">My bookings</a>
            <?php endif; ?>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.site', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\wamp64\www\hms\resources\views/site/book_confirmed.blade.php ENDPATH**/ ?>