<?php $__currentLoopData = $categories; $__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_id ? $row->category->currentDescription->title : __('categories.main')); ?></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 ('categories.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 ('categories.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 ('categories.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( $categories ) && $categories->hasPages() ): ?>
    <tr> <td> <?php echo e($categories->links()); ?> </td> </tr>
<?php endif; ?>
<?php /**PATH /home/omaralyomhost/public_html/electric/resources/views/admin/categories/grid.blade.php ENDPATH**/ ?>