<?php $__currentLoopData = $products; $__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->title); ?></td>
        <td><?php echo e($row->category->currentDescription->title); ?></td>
        <td><?php echo e($row->subCategory->currentDescription->title); ?></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 ('products.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 else: ?>
                        <a href="<?php echo e(route ('products.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>

                        <a href="<?php echo e(route ('products.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; ?>
                </div>
            </div>
        </td>
    </tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

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