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

<br>
<br>
<br>






<div class="main-content" style="overflow: hidden;">
            <!--page title start-->
            <div class="page-title" style="float: left;">
                <h4 class="mb-0">View Product Stock
                    <small></small>
                </h4>
              
            </div>
            <div class="page-title" style="float: right; ">
                <a href="<?php echo e(url('productstock')); ?>" class="btn btn-outline-success">Add Stock</a> 
                 <a href="<?php echo e(url('/Admin-dashboard')); ?>" class="btn btn-danger">X</a>
            </div>
            <!--page title end-->


            <div class="container" style="overflow-x: scroll;">

                <!-- state start-->
                <div class="row">
                    <div class=" col-sm-12">
                        <div class="mb-4">
                   
                            <div class="card-body">
                                <table id="example" class="display nowrap" style="width:100%">
                                    <thead>
                                    <tr>
                                         <th>Date</th>
                                        <th>Product Name</th>
                                        <th>Quantity</th>
                                        <th>Action</th>
                                    </tr>
                                    </thead>
                                    <tfoot>
                                    <tr>
                                        <th>Date</th>
                                        <th>Product Name</th>
                                        <th>Quantity</th>
                                        <th>Action</th>
                                    </tr>
                                    </tfoot>
                                    <tbody>

                                        <?php if(isset($view)): ?>
                                        <?php $__currentLoopData = $view; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $showdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                      <tr>
                                        <td><?php echo e($showdata->date); ?></td>
                                        <td><?php echo e($showdata->product_name); ?></td>
                                        <td><?php echo e($showdata->quentity); ?></td>
                                        <td>
                                            <a href="<?php echo e(url('/deletestock/'. $showdata->id)); ?>" class="btn btn-danger btn-sm">Delete</a>
                                            <a href="<?php echo e(url('/editstock/'. $showdata->id)); ?>" class="btn btn-info btn-sm">Edit</a>
                                        </td>
                          
                                     
                                    </tr>
                                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                         <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>


                <!-- state end-->

            </div>
        </div>

<?php echo $__env->make('Admin.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<script type="text/javascript">

</script><?php /**PATH /home2/hpecmqif/public_html/resources/views/Admin/product/viewproductstock.blade.php ENDPATH**/ ?>