<?php $__env->startSection('page_title'); ?>
	Items Details
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_header_title'); ?>
	 Items Details
<?php $__env->stopSection(); ?>
<?php ($label_list = EF::getWhiteLabel()); ?>

<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('items')); ?>

<div class="row row-cards row-deck" style="background: white;">
	<div class="col-12">
    <div class ="row">
      <div class="col-md-4">
        <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>
    <hr style="width:100%;border-top:1px solid #1d55a5 !important">
    <div class="col-md-12">

      <div class="row">

        <?php $__currentLoopData = $branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="col-md-3 col-sm-6">
          <div class="card box" style="height:100px;">
                <div class="card-status card-status-left bg-blue"></div>
            <div class="card-body report-card text-center">
              <?php
                $qty = $bl->getQty($product_list->id,$bl->id);
              ?>
              <div class ="col-md-12">
                  <h4><?php echo e($bl->name); ?> (<?php echo e($qty); ?>)</h4>
             </div>
            </div>
          </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </div>

    </div>
        </div>
    <hr style="width:100%;border-top:1px solid #1d55a5 !important">

    <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>Quantity</th>
              <th>From Project</th>
              <th>To 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>
						<td><?php echo e($rows->stock_in_qty); ?></td>
            <td><?php echo e($rows->from_branch->name); ?></td>
            <td><?php echo e($rows->to_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>

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

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


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

<?php $__env->startSection('page_script'); ?>
 <?php echo $__env->make('inventory_module.scripts.item', \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/item/item_detail.blade.php ENDPATH**/ ?>