@extends('layouts.dashboard')

@section('page_title')
	Inventory
@endsection

@section('page_header_title')
Inventory
@endsection



@section('page_body')
{{ Breadcrumbs::render('inventory') }}
<div class="row row-cards row-deck">


              @if(Auth::user()->hasAnyPermission(['All','BOQ']))
              <div class="col-md-3 col-sm-6">
                    <a  href="{{route('boq.addform')}}" style = "text-decoration: none;" >
                <div class="card box">
                      <div class="card-status card-status-left bg-orange"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12">
                        <h4>Bill of Quantity</h4>
                   </div>
                  </div>
                </div>
              </a>
              </div>
              @endif

							@if(Auth::user()->hasAnyPermission(['All','View BOQ Request']))
						 <div class="col-md-3 col-sm-6">
									 <a  href="{{route('boq.requests')}}" style = "text-decoration: none;" >
							 <div class="card box ">
										 <div class="card-status card-status-left bg-purple"></div>
								 <div class="card-body report-card text-center">
									 <div class ="col-md-12">
											 <h4>BOQ Requests</h4>
									</div>
								 </div>
							 </div>
						 </a>
						 </div>
						 @endif

               @if(Auth::user()->hasAnyPermission(['All','View PR']))
              <div class="col-md-3 col-sm-6">
                    <a  href="{{route('boq.requests_pr')}}" style = "text-decoration: none;" >
                <div class="card box ">
                      <div class="card-status card-status-left bg-purple"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12">
                        <h4>Purchase Requistions</h4>
                   </div>
                  </div>
                </div>
              </a>
              </div>
              @endif
							@if(Auth::user()->hasAnyPermission(['All','View PO']))
						<div class="col-md-3 col-sm-6">
								<a  href="{{route('create.requests_po')}}" style = "text-decoration: none;" >
						<div class="card box">
							<div class="card-status card-status-left bg-pink"></div>
							<div class="card-body report-card text-center">
								<div class ="col-md-12">
										<h4>Create PO</h4>
							 </div>
							</div>
						</div>
						</a>
						</div>
						@endif
                  @if(Auth::user()->hasAnyPermission(['All','View PO']))
              <div class="col-md-3 col-sm-6">
                    <a  href="{{route('purchaseorders')}}" style = "text-decoration: none;" >
                <div class="card box">
                  <div class="card-status card-status-left bg-pink"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12">
                        <h4>Purchase Orders</h4>
                   </div>
                  </div>
                </div>
              </a>
              </div>
              @endif

              @if(Auth::user()->hasAnyPermission(['All','View GRN']))
              <div class="col-md-3 col-sm-6">
                    <a  href="{{ route('grn.view')}}" style = "text-decoration: none;" >
                <div class="card box">
                  <div class="card-status card-status-left bg-red"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12">
                        <h4>Goods Receiving Notes</h4>
                   </div>
                  </div>
                </div>
               </a>
              </div>
              @endif

              @if(Auth::user()->hasAnyPermission(['All','View Stock']))
              <div class="col-md-3 col-sm-6">
                    <a  href="{{ route('stock.view')}}" style = "text-decoration: none;" >
                <div class="card box">
                      <div class="card-status card-status-left bg-green"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12">
                        <h4>Stock</h4>
                   </div>
                  </div>
                </div>
               </a>
              </div>
              @endif


              @if(Auth::user()->hasAnyPermission(['All','View GIN']))
              <div class="col-md-3 col-sm-6">
              <a  href="{{ route('gin.view')}}" style = "text-decoration: none;" >
                <div class="card box">

                      <div class="card-status card-status-left bg-orange"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12">
                        <h4> Goods Issuance Notes</h4>
                   </div>
                  </div>
                </div>
               </a>
              </div>
              @endif


              @if(Auth::user()->hasAnyPermission(['All','View Payable']))
              <div class="col-md-3 col-sm-6">
                    <a  href="{{ route('payable.view')}}" style = "text-decoration: none;" >
                <div class="card box">
                      <div class="card-status card-status-left bg-purple"></div>
                  <div class="card-body report-card text-center">
                    <div class ="col-md-12" >
                        <h4>Payables</h4>
                   </div>
                  </div>
                </div>
                </a>
              </div>
              @endif

</div>

@endsection

@section('page_modal')

@endsection

@section('page_script')

@endsection
