<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/admin/css/lib/toastr.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <form>
        <div class="side-title">
            <div class="row">
                <div class="col-lg-6">
                    <h3><?php echo e($title); ?></h3>
                </div>















            </div>
        </div>

        <!-- ------------ data table ------------- -->
        <div class="overflow_x">
            <table class="table table-hover table-bordered">
                <thead>
                <tr>






                    <th scope="col"><?php echo e(__('halls.images')); ?></th>
                    <th scope="col"><?php echo e(__('halls.name')); ?></th>
                    <th scope="col"><?php echo e(__('halls.client_name')); ?></th>
                    <th scope="col"><?php echo e(__('halls.client_phone')); ?></th>
                    <th scope="col"><?php echo e(__('halls.reservation_date')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.person_count')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.service')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.added_services')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.services_amount')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.added_services_amount')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.added_value_amount')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.total')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.site_percentage')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.net_total')); ?></th>


                    <th scope="col"><?php echo e(__('dashboard.processes')); ?></th>
                    <th scope="col"><?php echo e(__('reservations.is_paid')); ?></th>
                </tr>
                </thead>

                <tbody class="response">
                    <tr class="search_filter_form"></tr>
                </tbody>
            </table>
        </div>

        <!-- ------------ sidemenu links ------------- -->
    </form>
<?php $__env->stopSection(); ?>



<script>
    /**
     * Importat to handle ajax requests for filters, deletes, trash and any proccess done on the table's data
     */
    var dataTable={
        route: '<?php echo e(route("wallets.reservationGrid", $wallet)); ?>'
    };

    let paidStatusRoute = "<?php echo e(route('wallets.paidStatus')); ?>"
</script>
<?php $__env->startSection('inner_js'); ?>
    <script src="<?php echo e(asset('assets/admin/js/lib/toastr.min.js')); ?>"></script>

    <script>
        $(document).ready(function () {
            $(document).on('change', 'select[name="is_paid"]' , async function (e) {
                e.preventDefault();
                let url = paidStatusRoute,
                    data = {reservation_id: $(this).data('reservation'), is_paid: $(this).val()},
                    method = 'get';

                if ($(this).val() !== ''){
                    const response=await ajax({
                        url,
                        data,
                        dataType: 'json',
                        method,
                    });
                    if (response.message) {
                        toasterSuccess(response.message)
                    }
                    if (response.errors) {
                        toasterError(response.errors)
                    }
                }

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

<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\meet\resources\views/admin/wallets/reservations_index.blade.php ENDPATH**/ ?>