

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

    <h2 class="fw-bold mb-4 text-center">Booking Summary</h2>

    <?php $__currentLoopData = $rooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="card mb-3 shadow-sm rounded-4">
        <div class="card-body d-flex justify-content-between">
            <div>
                <h6 class="fw-semibold">
                    Room <?php echo e($item['room']->room_number); ?>

                </h6>
                <small class="text-muted">
                    Qty: <?php echo e($item['qty']); ?>

                </small>
            </div>
            <div class="fw-bold">
                ₹<?php echo e(number_format($item['price'],2)); ?>

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

    <hr>

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

    <form method="POST" action="<?php echo e(route('booking.confirm')); ?>">
        <?php echo csrf_field(); ?>
        <input type="hidden" name="data" value="<?php echo e(base64_encode(json_encode($rooms))); ?>">
        <input type="hidden" name="check_in" value="<?php echo e($check_in); ?>">
        <input type="hidden" name="check_out" value="<?php echo e($check_out); ?>">
        <input type="hidden" name="total_amount" value="<?php echo e($total); ?>">

        <div class="row g-3 mb-4">
            <div class="col-md-4">
                <input name="name" class="form-control" placeholder="Full Name" required>
            </div>
            <div class="col-md-4">
                <input name="phone" class="form-control" placeholder="Phone" required>
            </div>
            <div class="col-md-4">
                <input name="email" class="form-control" placeholder="Email">
            </div>
        </div>

        <button class="btn btn-dark w-100 py-3 rounded-pill fs-5">
            Confirm Booking
        </button>
    </form>

</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/booking-preview-multi.blade.php ENDPATH**/ ?>