<?php
    // An array of terms and conditions [1] and an index page [2]
    //to prevent the administrator from deleting either one
    $ids = [1,2,3,4];
?>

<?php $__currentLoopData = $pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
    <th scope="row">
        <?php if(!in_array($row->id, $ids)): ?>
            <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>
        <?php endif; ?>
    </th>
    <td><?php echo e($row->title); ?></td>
    <td colspan="2"><?php echo e(\Carbon\Carbon::parse($row->created_at)->format('Y/m/d')); ?></td>
    <td>
        <?php if($row->deleted_at): ?>
            <a href="<?php echo e(route ('pages.restore', $row->id)); ?>" data-method="put" class="icon rowAction" title="<?php echo e(__('dashboard.restore')); ?>"><i class="fas fa-sync-alt restore-grid-icon"></i></a>

            <a href="<?php echo e(route ('pages.destroy', $row->id)); ?>" data-method="delete" class="icon rowAction" title="<?php echo e(__('dashboard.delete')); ?>"><i class="fas fa-trash-alt detele-grid-icon"></i></a>
        <?php else: ?>
            <a href="<?php echo e(route ('pages.edit', $row->id)); ?>" class="icon" title="<?php echo e(__('dashboard.edit')); ?>"><i class="far fa-edit edit-grid-icon"></i></a>
            <?php if(!in_array($row->id, $ids)): ?>
                <a href="<?php echo e(route ('pages.destroy', $row->id)); ?>" data-method="delete" class="icon rowAction" title="<?php echo e(__('dashboard.trash')); ?>"><i class="fas fa-trash trash-grid-icon"></i></a>
            <?php endif; ?>
        <?php endif; ?>
    </td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<?php if( count( $pages ) ): ?>
<tr> <td></td><td> <?php echo e($pages->links()); ?> </td> </tr>
<?php endif; ?>

<?php /**PATH D:\wamp64\www\gam3iea\resources\views/admin/pages/grid.blade.php ENDPATH**/ ?>