
<div class="table-responsive">
    <table class="table table-hover" id="productTable">
        <thead>
        <tr>
            <td> #SL</td>
            <td> Code</td>
            <td> Name</td>
            <td> Category</td>
            <td> Unit</td>
            <td> Action</td>
        </tr>
        </thead>

        <tbody id="tbodyItem">
        <?php $i=0; ?>
        <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td> <?php echo e(++$i); ?></td>
                <td> <?php echo e($info->item_code); ?></td>
                <td> <?php echo e($info->name); ?></td>
                <td>
                    <?php if($info->group): ?>
                        <?php echo e($info->group_id !=null ? $info->group->name : "N/A"); ?>

                    <?php endif; ?>
                </td>
                <td>
                    <?php if($info->unit): ?>
                        <?php echo e($info->product_unit_id !=null ? $info->unit->name : "N/A"); ?>

                    <?php endif; ?>
                </td>
                <td>
                    <a href="<?php echo e(route('inventory.item.edit',$info->id)); ?>" class="btn btn-edit btn-success far fa-edit"></a>
                    

                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>

    </table>


</div>
<?php $__env->startSection('style'); ?>
    <!-- DataTables -->
    <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables/dataTables.bootstrap4.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('plugin'); ?>
    <!-- DataTables -->
    <script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.js')); ?>"></script>
    <script src="<?php echo e(asset('plugins/datatables/dataTables.bootstrap4.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<script type="text/javascript">
    $(document).ready(function () {
            table = $("#productTable").DataTable();
        });
</script><?php /**PATH /home/welluugs/purchase.wellgrouperp.com/resources/views/inventory/item/items-inventory.blade.php ENDPATH**/ ?>