

<?php $__env->startSection('title', 'Inventory List'); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">

    <!-- Page Heading -->
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">Inventory</h1>
        <a href="<?php echo e(route('productlist.createinventory')); ?>" class="btn btn-sm btn-primary" >
            <i class="fas fa-plus"></i> Add New
        </a>
    </div>

    
    <?php echo $__env->make('common.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
   
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">All Products</h6>
            
        </div>
        <div class="card-body">
      
            <div class="table-responsive">
           
                <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                    <thead>
                    
                        <tr>
                            <th width="20%">PID</th>
                            <th width="20%">Item_Code</th>
                            <th width="20%">UPC</th>
                            <th width="50%">Item</th>
                            <th width="30%">Stock</th>
                            <th width="30%">Currency</th>
                            <th width="30%">Cost</th>
                            <th width="30%">MRP</th>
                            <th width="30%">R_Price</th>
                            <th width="30%">W_Price</th>
                            <th width="30%">Value</th>
                          
                            <th width="20%">Action</th>
                       
                       
                        </tr>
                       
                    </thead>
                   
                    <tbody>

                 
                    
                   
                  
                  

                  
                    <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                           <tr>
                               <td><?php echo e($row->id); ?></td>
                               <td><?php echo e($row->itemcode); ?></td>
                               <td><?php echo e($row->upc); ?></td>
                               <td><?php echo e($row->item); ?></td>
                               <td><?php echo e($row->stockinhand); ?></td>
                               <td><?php echo e($row->currency); ?></td>
                               <td><?php echo e($row->Cost); ?></td>
                               <td><?php echo e($row->mrpprice); ?></td>
                               <td><?php echo e($row->rprice); ?></td>
                               <td><?php echo e($row->wprice); ?></td>
                               <td><?php echo e($row->stockvalue); ?></td>
                              
                              
                               <td style="display: flex">
                                   <a href="<?php echo e(route('productlist.inventoryedit', ['products' => $row->id])); ?>" class="btn btn-primary m-2">
                                        <i class="fa fa-pen"></i>
                                   </a>
                                   <!-- <form method="POST" action="<?php echo e(route('productlist.inventorydestroy', ['id' => $row->id])); ?>">
                                        <?php echo csrf_field(); ?>
                                         <?php echo method_field('DELETE'); ?>
                                        <button class="btn btn-danger m-2" type="submit" onclick="return confirm('Sure Want Delete?')">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                       
                                   </form> -->
                                   <a class="btn btn-danger m-2" href="#" data-toggle="modal" data-target="#deleteModal1">
                                            <i class="fas fa-trash"></i>
                                        </a>
                                   <!-- <a class="btn btn-danger m-2" href="#" data-toggle="modal" data-target="#deleteModal1">
                                            <i class="fas fa-trash"></i>
                                        </a> -->
                               </td>
                               
                           </tr>
                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                
                    </tbody>
                </table>
   
              <?php echo e($products->links()); ?>

             
            </div>
           
        </div>
    </div>

</div>
<?php if($products->count() > 0 ): ?>
<?php if(isset($products) && !empty($products)): ?>

<?php echo $__env->make('inventroy.delete_inventoryModel', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php endif; ?>  
<?php endif; ?> 
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Pathman\Laravel_Samples\Production_Control\resources\views/inventroy/productlist.blade.php ENDPATH**/ ?>