@extends('admin.layout.master') @section('title','REQUISITION MANAGEMENT') @section('custom_style') @endsection @section ('content')

REQUISITION

{{--
--}}
REQUISITION
@csrf
@php $i=0; @endphp @forelse ($products as $item) @empty @endforelse
# PRODUCT NOTE Available Qty Pre Purchase Date Pre Purchase Rate Req. QTY Approx Rate Total
{{ (++$i) }}
{{$item->name_eng}}
{{$item->primaryUnit?$item->primaryUnit->name:''}}
{{-- @php $qty=0; if($item->transactions){ $qty= $item->transactions->where('dr_cr',1)->sum('quantity'); } @endphp {{$qty}} --}} {{ $item->availQty->avail ?? 0 }} {{ count($item->getPreviousPurchaseHistory) > 0 ? date('d-m-Y', strtotime($item->getPreviousPurchaseHistory[0]->date)) : 'No Purchase Info Found'}} {{ count($item->getPreviousPurchaseHistory) > 0 ? $item->getPreviousPurchaseHistory[0]->price : 'No Purchase Info Found'}}
{{-- @include('inventory.indent.previuos_recipe_modal') --}} @endsection @section('script') @stop