<?php $__currentLoopData = $reservations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <tr>






        <td><img style="width: 100px;" src="<?php echo e(asset(json_decode($row->images)[0])); ?>" alt=""></td>
        <td><?php echo e($row->hall_name); ?></td>
        <td><?php echo e($row->client_name); ?></td>
        <td><?php echo e($row->client_phone); ?></td>
        <td><?php echo e(date('Y-m-d', strtotime($row->created_at))); ?></td>
        <td><?php echo e($row->person_count); ?></td>
        <td>
            <ul>
                <?php if(count(getServices($row->services))): ?>
                    <?php
                        /** @var TYPE_NAME $row */
                        $services = getServices($row->services);
                        unset($services['total'])

                    ?>
                    <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($service['name']); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </ul>
        </td>
        <td>
            <ul>
                <?php if(count(getAddedServices($row->hall_id, $row->added_services))): ?>
                    <?php
                        /** @var TYPE_NAME $row */
                        $addedServices = getAddedServices($row->hall_id, $row->added_services);
                        unset($addedServices['total'])
                    ?>
                    <?php $__currentLoopData = $addedServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $serviceKey => $addedService): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($addedService['name']); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </ul>
        </td>
        <td><?php echo e(getServices($row->services)['total']); ?></td>
        <td><?php echo e(getAddedServices($row->hall_id, $row->added_services)['total']); ?></td>
        <td><?php echo e($row->added_value_amount); ?></td>
        <td><?php echo e($row->total); ?></td>
        <td><?php echo e(((($row->total-$row->added_value_amount)*$sitePercentage)/100)); ?></td> 
        <td><?php echo e(($row->total-$row->added_value_amount)-((($row->total-$row->added_value_amount)*$sitePercentage)/100)); ?></td> 
        <td>
            <a href="<?php echo e(route ('reservations.edit', $row->id)); ?>" class="icon" title="<?php echo e(__('dashboard.edit')); ?>"><img src="<?php echo e(asset('assets/admin/images/icons/draw.svg')); ?>" alt="<?php echo e(__('dashboard.edit')); ?>"></a>
        </td>
        <td>
            <select name="is_paid" class="form-control" data-reservation="<?php echo e($row->id); ?>">
                <option value=""><?php echo e(__('reservations.is_paid')); ?></option>
                <option <?php echo e($row->is_paid ? 'selected' : ''); ?> value="paid"><?php echo e(__('reservations.paid')); ?></option>
                <option <?php echo e(!$row->is_paid ? 'selected' : ''); ?> value="not_paid"><?php echo e(__('reservations.not_paid')); ?></option>
            </select>
        </td>
    </tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<?php if( count( $reservations ) && $reservations->hasPages() ): ?>
    <tr> <td></td><td> <?php echo e($reservations->links()); ?> </td> </tr>
<?php endif; ?>
<?php /**PATH C:\wamp64\www\meet\resources\views/admin/wallets/reservations_grid.blade.php ENDPATH**/ ?>