<?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <tr>
        <th scope="row">
            <div class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input selectOne deleteCheck" id="customCheck<?php echo e($row->id); ?>" value="<?php echo e($row->id); ?>" name="id[]">
                <label class="custom-control-label" for="customCheck<?php echo e($row->id); ?>"></label>
            </div>
        </th>
        <td><?php echo e($row->user->name ?? ''); ?></td>
        <td><?php echo e($row->id); ?></td>
        <td><?php echo e($row->branch->name ?? ''); ?></td>
        <td><?php echo e($row->store->name ?? ''); ?></td>
        <td><?php echo e(__('orders.statuses.'.$row->status)); ?></td>
        <td colspan="2"><?php echo e(\Carbon\Carbon::parse($row->created_at)->format('Y/m/d')); ?></td>
        <td>

            <div class="dropdown">
                <button class="icon_dots dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
                    <i class="bi bi-three-dots-vertical"></i>
                </button>
                <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                    <?php if($row->deleted_at ?? null): ?>
                        <a href="<?php echo e(route ('orders.restore', $row->id)); ?>" data-method="put" class="dropdown-item rowAction" title="<?php echo e(__('dashboard.restore')); ?>"> <i class="bi bi-pen ml-1"></i> <?php echo e(__('dashboard.restore')); ?> </a>

                        <?php if(!($row->total_users ?? null)): ?>
                            <a href="<?php echo e(route ('orders.destroy', $row->id)); ?>" data-method="delete" class="dropdown-item rowAction" title="<?php echo e(__('dashboard.delete')); ?>"> <i class="bi bi-trash ml-1"></i> <?php echo e(__('dashboard.delete')); ?> </a>
                        <?php endif; ?>
                    <?php else: ?>
                        <a href="<?php echo e(route ('orders.edit', $row->id)); ?>" class="dropdown-item" title="<?php echo e(__('dashboard.edit')); ?>"> <i class="bi bi-pen ml-1"></i> <?php echo e(__('dashboard.edit')); ?> </a>

                        <?php if(!($row->total_users ?? null)): ?>
                            <a href="<?php echo e(route ('orders.destroy', $row->id)); ?>" data-method="delete" class="dropdown-item rowAction" title="<?php echo e(__('dashboard.trash')); ?>"> <i class="bi bi-slash-circle ml-1"></i> <?php echo e(__('dashboard.trash')); ?> </a>
                        <?php endif; ?>

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

<?php if( count( $orders ) && $orders->hasPages() ): ?>
    <tr> <td> <?php echo e($orders->links()); ?> </td> </tr>
<?php endif; ?>
<?php /**PATH /Applications/MAMP/htdocs/made/resources/views/admin/orders/grid.blade.php ENDPATH**/ ?>