<?php $__env->startSection('content'); ?>
    <div class="table-responsive--md">
        <table class="custom--table head--base table">
            <thead>
                <tr>
                    <th><?php echo app('translator')->get('Room'); ?></th>
                    <th><?php echo app('translator')->get('Check In'); ?> - <?php echo app('translator')->get('Check Out'); ?></th>
                    <th><?php echo app('translator')->get('Rooms'); ?></th>
                    <th><?php echo app('translator')->get('Fare'); ?> </th>
                    <th><?php echo app('translator')->get('Total'); ?></th>
                    <th><?php echo app('translator')->get('Status'); ?></th>
                    <th><?php echo app('translator')->get('Action'); ?></th>
                </tr>
            </thead>
            <tbody>
                <?php $__empty_1 = true; $__currentLoopData = $bookingRequests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bookingRequest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td><span class="fw-bold me-1"><?php echo e($bookingRequests->firstItem() + $loop->index); ?>.</span> <?php echo e(__($bookingRequest->roomType->name)); ?></td>

                        <td>
                            <?php echo e(showDateTime($bookingRequest->check_in, 'd M, Y')); ?> - <?php echo e(showDateTime($bookingRequest->check_out, 'd M, Y')); ?></td>

                        <td>
                            <?php echo e($bookingRequest->number_of_rooms); ?> <?php echo e(Str::plural(trans('room'), $bookingRequest->number_of_rooms)); ?>

                            <br><?php echo app('translator')->get('for'); ?>
                            <?php echo e($bookingRequest->bookFor()); ?> <?php echo e(Str::plural(trans('night'), $bookingRequest->bookFor())); ?>

                        </td>

                        <td>
                            <?php echo e(showAmount($bookingRequest->unit_fare + $bookingRequest->taxCharge())); ?>

                            <br>
                            <?php echo app('translator')->get('Including'); ?> <?php echo e(__(gs()->tax_name)); ?>

                        </td>

                        <td class="fw-bold"><?php echo e(showAmount($bookingRequest->total_amount)); ?></span></td>

                        <td><?php echo $bookingRequest->statusBadge;?></td>

                        <td>
                            <button <?php if($bookingRequest->status): echo 'disabled'; endif; ?> class="btn btn-sm btn-outline--danger confirmationBtn" data-action="<?php echo e(route('user.booking.request.cancel', $bookingRequest->id)); ?>" data-question="<?php echo app('translator')->get('Are you sure to cancel this request?'); ?>"><i class="las la-times-circle"></i> <?php echo app('translator')->get('Cancel'); ?></button>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td class="text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                    </tr>
                <?php endif; ?>

            </tbody>
        </table>
        <?php if($bookingRequests->hasPages()): ?>
            <nav aria-label="Page navigation example">
                <?php echo e(paginateLinks($bookingRequests)); ?>

            </nav>
        <?php endif; ?>
    </div>
    <?php if (isset($component)) { $__componentOriginalbd5922df145d522b37bf664b524be380 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbd5922df145d522b37bf664b524be380 = $attributes; } ?>
<?php $component = App\View\Components\ConfirmationModal::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('confirmation-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\ConfirmationModal::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalbd5922df145d522b37bf664b524be380)): ?>
<?php $attributes = $__attributesOriginalbd5922df145d522b37bf664b524be380; ?>
<?php unset($__attributesOriginalbd5922df145d522b37bf664b524be380); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbd5922df145d522b37bf664b524be380)): ?>
<?php $component = $__componentOriginalbd5922df145d522b37bf664b524be380; ?>
<?php unset($__componentOriginalbd5922df145d522b37bf664b524be380); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ryanupiz/pan.ryangroups.com/hotel/viserhotel/Files/core/resources/views/templates/basic/user/booking/request.blade.php ENDPATH**/ ?>