<?php $__currentLoopData = $logs; $__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->type); ?></td>
    <td><?php echo e($row->action); ?> <?php if($row->type == 'الاخبار'): ?> <?php if($row->action == 'اضافة' || $row->action == 'تعديل'): ?> <?php echo e(productnamecheck($row->product_id)); ?> <?php endif; ?> <?php elseif($row->type == 'الاقسام الرئيسية'): ?> <?php if($row->action == 'اضافة' || $row->action == 'تعديل'): ?> <?php echo e(categorynamecheck($row->product_id)); ?> <?php endif; ?> <?php elseif($row->type == 'الاقسام الفرعية'): ?> <?php if($row->action == 'اضافة' || $row->action == 'تعديل'): ?> <?php echo e(modelnamecheck($row->product_id)); ?> <?php endif; ?>  <?php endif; ?></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 ('logs.restore', $row->id)); ?>" data-method="put" class="icon rowAction" title="<?php echo e(__('dashboard.restore')); ?>"><img src="<?php echo e(asset('assets/admin/images/icons/restore.svg')); ?>" alt="<?php echo e(__('dashboard.restore')); ?>"></a>

            <a href="<?php echo e(route ('logs.destroy', $row->id)); ?>" data-method="delete" class="icon rowAction" title="<?php echo e(__('dashboard.delete')); ?>"><img src="<?php echo e(asset('assets/admin/images/icons/close.svg')); ?>" alt="<?php echo e(__('dashboard.delete')); ?>"></a>
        <?php else: ?>
            <!-- <a href="<?php echo e(route ('sliders.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>
 -->
            <!-- <a href="<?php echo e(route ('sliders.destroy', $row->id)); ?>" data-method="delete" class="icon rowAction" title="<?php echo e(__('dashboard.trash')); ?>"><img src="<?php echo e(asset('assets/admin/images/icons/del.svg')); ?>" alt="<?php echo e(__('dashboard.trash')); ?>"></a> -->
        <?php endif; ?>
    </td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<?php if( count( $logs ) && $logs->hasPages() ): ?>
<tr><td> <?php echo e($logs->links()); ?> </td> </tr>
<?php endif; ?>
<?php /**PATH /home/app3alriyadh/public_html/resources/views/admin/logs/grid.blade.php ENDPATH**/ ?>