<?php $__env->startSection('page_title'); ?>
	Stock Detail
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_header_title'); ?>
	Stock Detail
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('stockdetails',Crypt::encrypt($product_list->id))); ?>


 <div class="my-3 my-md-5">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <div class="card">
                  <div class="card-header">
                    <h3 class="card-title"><b>Product Detail</b></h3>
                  </div>

                  <div class="card-body">
                    <div class = "card">
                      <div class ="card-body">
                        <div class ="row">
                          <div class="col-md-7">
                            <div class="row">
                            <h4 class="col-md-12" style="background:#656877;padding:5px;color:white">Product Detail</h4>
                            <div class="col-md-12">
                              <table style="width:100%">
                                <tr>
                                  <th>Product Code</th>
                                  <td><?php echo e($product_list->code); ?></td>
                                </tr>
                                <tr>
                                  <th>Product Name</th>
                                  <td><?php echo e($product_list->name); ?></td>
                                </tr>
																<tr>
                                  <th>Unit</th>
                                  <td><?php echo e($product_list->inventoryUnit->name); ?></td>
                                </tr>
                                <tr>
                                  <th>Category</th>
                                  <td><?php echo e($product_list->inventoryCategory->name); ?></td>
                                </tr>
                                <tr>
                                  <th>Stock</th>
                                  <td><?php echo e($product_list->quantity); ?>

                                    <?php if($product_list->quantity == 0): ?>
                                    <span class="label label-danger">Out Of Stock</span>
                                    <?php endif; ?>
                                  </td>
                                </tr>
                                <tr>
                                  <th>Description</th>
                                  <td><?php echo e($product_list->description); ?></td>
                                </tr>
                              </table>
                            </div>
                          </div>
                        </div>
                            </div>
                        <hr style="width:100%;border-top:1px solid #1d55a5 !important">

                        <div class ="row">
                          <div class="col-md-12"> <h3>Product Stock History</h3></div>
                        </div>

                        <div class="row">
                          <div class="col-md-12">
                            <table class="table table-hover table-outline table-vcenter text-nowrap card-table cls_datatable">
                              <thead>
                                <tr>

                                  <th>#</th>
                                  <th>Stock</th>
                                  <th>Quantity</th>
																	<th>Project</th>
                                  <th>Dated</th>
                                </tr>
                              </thead>
                             <tbody>
                              <?php if(isset($stock_list)): ?>
                              <?php $__currentLoopData = $stock_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <?php if($rows->in_quantity == null): ?>
                                <td> <i class="fa fa-arrow-down" style="color:red"></i> OUT</td>
                                <td><?php echo e($rows->out_quantity); ?></td>
                                <?php else: ?>
                                <td><i class="fa fa-arrow-up" style="color:green"></i> IN</td>
                                <td><?php echo e($rows->in_quantity); ?></td>
                                <?php endif; ?>
																<td><?php echo e($rows->branch->name); ?></td>
                                <td><?php echo e(EF::dateFormat($rows->created_at)); ?></td>

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

                        </div>


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


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

<?php $__env->startSection('page_modal'); ?>

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

<?php $__env->startSection('page_script'); ?>

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

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

<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/inventory_module/stock/stockDetail.blade.php ENDPATH**/ ?>