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

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

<style>
.blinking {
  -webkit-animation: 1s blink ease infinite;
  -moz-animation: 1s blink ease infinite;
  -ms-animation: 1s blink ease infinite;
  -o-animation: 1s blink ease infinite;
  animation: 1s blink ease infinite;

}

@keyframes  "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-moz-keyframes blink {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-webkit-keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-ms-keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-o-keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
</style>
	<div class="row row-cards row-deck">
              <div class="col-12">
                <div class="card">
                	  <div class="card-header">



					     <h3 class="card-title">Stocks</h3>
							 <button  class="float-right btn btn-sm btn-outline-primary" data-toggle="modal" data-target="#md_tansfer_stock_product" ><i class="fa fa-share"></i> Transfer Stock</button> &nbsp;&nbsp;
					  </div>
                	<div class="card-status card-status-left bg-blue"></div>
                  <div class="table-responsive table-height">
                    <table class="table table-hover table-outline table-vcenter text-nowrap card-table cls_datatable">
                      <thead>
                        <tr>

                          <th>#</th>
                          <th>Product Code</th>
                          <th>Name</th>
                          <th>Unit</th>
                          <th>Stock</th>
                   <th style="text-align: center;"><i class="dropdown-icon fa fa-cogs"></i></th>
                        </tr>
                      </thead>
                     <tbody>
                      <?php if(isset($product_list)): ?>
                      <?php $__currentLoopData = $product_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->code); ?></td>
                        <td><?php echo e($rows->name); ?></td>
                        <td><?php echo e($rows->inventoryUnit->name); ?></td>
                        <td>
                        <?php if($rows->quantity == "0"): ?>
                          <span class="badge badge-danger"> Out Of Stock</span>
                        <?php else: ?>
                          <span class="badge badge-success"> <?php echo e($rows->quantity); ?></span>
                        <?php endif; ?>
                        <?php if($rows->quantity < $rows->minimum): ?>
                        <svg height="40" width="40" class="blinking">
                          <circle cx="20" cy="20" r="5" fill="red" />
                          Sorry, your browser does not support inline SVG.
                        </svg>
                        <?php endif; ?>
                        </td>
                        <td class="text-center">
                          <div class="item-action dropdown">
                          <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fa fa-list-ul"></i></a>
                          <div class="dropdown-menu dropdown-menu-right">
                          <?php if(Auth::user()->hasAnyPermission(['All','Stock Details'])): ?>
                          <a  href="<?php echo e(route('stock.details',['id' => Crypt::encrypt($rows->id)])); ?>"  class="dropdown-item" content="accept boq"><i class="dropdown-icon fa fa-eye "></i> View Stockwise Details</a>

                          <a href="<?php echo e(route('product.details', Crypt::encrypt($rows->id))); ?>" class="dropdown-item"><i class="dropdown-icon fa fa-eye"></i>View Projectwise Details</a>

                          <?php endif; ?>
                          </div>
                          </div>
                        </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 echo $__env->make('inventory_module.stock.modals.transfer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

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

<?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/manageStock.blade.php ENDPATH**/ ?>