

<?php $__env->startSection('content'); ?>
<div class="container my-5" style="max-width:900px">

    <div class="card border-0 shadow-lg rounded-4">
        <div class="card-body p-5">

            <div class="text-center mb-4">
                <div class="rounded-circle bg-success bg-opacity-10 d-inline-flex
                            align-items-center justify-content-center"
                     style="width:90px;height:90px;">
                    <i class="bi bi-check-circle-fill text-success fs-1"></i>
                </div>

                <h2 class="fw-bold mt-3">Booking Confirmed 🎉</h2>
                <p class="text-muted">
                    Thank you for choosing <strong><?php echo e(optional($settings)->hotel_name); ?></strong>
                </p>
            </div>

            <hr>

            <!-- BOOKING CODE -->
            <div class="d-flex justify-content-between mb-3">
                <span class="fw-semibold">Booking Code</span>
                <span class="fw-bold"><?php echo e($bookingCode); ?></span>
            </div>

            <hr>

            <!-- ROOMS LIST -->
            <?php $__currentLoopData = $bookings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $booking): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="border rounded-3 p-3 mb-3">
                    <div class="d-flex justify-content-between mb-2">
                        <span>Room</span>
                        <strong>Room <?php echo e($booking->room->room_number); ?></strong>
                    </div>

                    <div class="d-flex justify-content-between mb-2">
                        <span>Check In</span>
                        <strong><?php echo e($booking->check_in); ?></strong>
                    </div>

                    <div class="d-flex justify-content-between mb-2">
                        <span>Check Out</span>
                        <strong><?php echo e($booking->check_out); ?></strong>
                    </div>

                    <div class="d-flex justify-content-between mb-2">
                        <span>Amount</span>
                        <strong>₹<?php echo e(number_format($booking->total_amount, 2)); ?></strong>
                    </div>

                    <div class="d-flex justify-content-between">
                        <span>Status</span>
                        <span class="badge bg-success">
                            <?php echo e(ucfirst($booking->status)); ?>

                        </span>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <hr>

            <!-- GUEST INFO -->
            <div class="mb-4">
                <h6 class="fw-semibold">Guest Details</h6>
                <p class="mb-1"><?php echo e($bookings->first()->guest->name); ?></p>
                <p class="mb-1"><?php echo e($bookings->first()->guest->phone); ?></p>
                <p class="mb-0"><?php echo e($bookings->first()->guest->email); ?></p>
            </div>

            <!-- ACTIONS -->
            <div class="d-flex gap-3 justify-content-center">
                <a href="<?php echo e(route('home')); ?>"
                   class="btn btn-outline-dark rounded-pill px-4">
                    Back to Home
                </a>

                <a href="<?php echo e(route('rooms.list')); ?>"
                   class="btn btn-dark rounded-pill px-4">
                    Book Another Room
                </a>
            </div>

        </div>
    </div>

</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/jitrealx/public_html/hotelbooking/resources/views/frontend/success.blade.php ENDPATH**/ ?>