<table class="table Crm_table_active3">
    <thead>
    <tr>

        <th scope="col"><?php echo e(__('common.ID')); ?></th>
        <th scope="col"><?php echo e(__('common.Name')); ?></th>
        <th scope="col"><?php echo e(__('common.Code')); ?></th>
        <th scope="col"><?php echo e(__('common.Parent')); ?></th>
        <th scope="col"><?php echo e(__('common.Description')); ?></th>
        <th scope="col"><?php echo e(__('common.Status')); ?></th>
        <th scope="col"><?php echo e(__('common.Action')); ?></th>
    </tr>
    </thead>
    <tbody>
    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$category_value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>

            <th><?php echo e($key+1); ?></a></th>
            <td><?php if($category_value->level > 0): ?>
                        <?php for($i = 1; $i < $category_value->level; $i++): ?>
                            -
                        <?php endfor; ?>
                        ->
                        <?php endif; ?>
                        <?php echo e($category_value->name); ?></td>

            <td><?php echo e($category_value->code); ?></td>
            <td><?php echo e(@$category_value->parentCat->name ?? 'N/A'); ?> </td>
            <td><?php echo e($category_value->description); ?></td>
            <td>
                <?php if($category_value->status == 1): ?>
                    <span class="badge_1"><?php echo e(__('common.Active')); ?></span>
                <?php else: ?>
                    <span class="badge_4"><?php echo e(__('common.DeActive')); ?></span>
                <?php endif; ?>
            </td>
            <td>
                <!-- shortby  -->
                <div class="dropdown CRM_dropdown">
                    <button class="btn btn-secondary dropdown-toggle" type="button"
                            id="dropdownMenu2" data-toggle="dropdown"
                            aria-haspopup="true"
                            aria-expanded="false">
                        <?php echo e(__('common.Select')); ?>

                    </button>
                    <div class="dropdown-menu dropdown-menu-right"
                         aria-labelledby="dropdownMenu2">
                        <?php if(permissionCheck('category.edit')): ?>
                            <a href="#" data-toggle="modal" data-target="#Item_Edit"
                               class="dropdown-item edit_category"
                               data-value="<?php echo e($category_value->id); ?>" type="button"><?php echo e(__('common.Edit')); ?></a>
                        <?php endif; ?>

                        <?php if(permissionCheck('category.destroy') && $category_value->products->count() == 0): ?>

                                <a onclick="confirm_modal('<?php echo e(route('category.delete',$category_value->id)); ?>');" class="dropdown-item "><?php echo e(__('common.Delete')); ?></a>

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

    </tbody>
</table>
<?php /**PATH /home/penastud/public_html/InfixBiz/Modules/Product/Resources/views/category/category_list.blade.php ENDPATH**/ ?>