@extends('layouts.dashboard')
@section('page_title')
	Items Details
@endsection
@section('page_header_title')
	 Items Details
@endsection
@php($label_list = EF::getWhiteLabel())

@section('page_body')
exit;
{{ Breadcrumbs::render('items') }}
<div class="row row-cards row-deck" style="background: white;">
	<div class="col-12">
    <div class ="row">
      <div class="col-md-12">
        <div class="row">
        <h4 class="col-md-12" style="background:#656877;padding:5px;color:white">Product Details For "{{$branch->name}}"</h4>

      </div>
    </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>Name</th>
              <th>Code</th>
              <th>Category</th>
              <th>Description</th>
              <th>Quantity</th>
            </tr>
          </thead>
          <tbody>
            @foreach($product_list as $pl)
            <tr>
              <td>{{$loop->iteration}}</td>
              <td>{{$pl->name}}</td>
              <td>{{$pl->code}}</td>
              <td>{{$pl->inventoryCategory->name}}</td>
              <td>{{$pl->description}}</td>
              <?php
                $qty = $branch->getQty($pl->id,$branch->id);
              ?>
              <td>{{$qty}}</td>
            </tr>
            @endforeach
          </tbody>

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

</div>
</div>

@endsection

@section('page_modal')


@endsection

@section('page_script')
 @include('inventory_module.scripts.item')
@endsection
