@extends('admin.layout.master') @section('title','SHOTAGE STOCK') @section ('content')

Stock Shortage List

{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
@csrf {{-- --}} @php $g=1; $p=1; @endphp @if(count($products)>0) @forelse ($products->groupBy('cat_code') as $cat=>$categoryProducts) {{-- --}} @forelse ($categoryProducts as $product) @php $stk=array_key_exists($product->id,$stocks)?$stocks[$product->id]:0; $reorder_level=$product->reorder_level??1; @endphp @if($stk <= $reorder_level) {{-- --}} @endif @empty @endforelse @php $g++; @endphp @empty @endforelse @endif
SL {{'Product Name'}} {{'Reorder Level'}} InSTOCKRequisition Qty
{{$g}} {{$categoryProducts->first()->catByCatCode?$categoryProducts->first()->catByCatCode->name_eng:$cat}}
{{$g}}.{{$p++}} {{ $product->name_eng }} {{ $product->reorder_level }} {{$stk}}
{{-- {!! $invoices->links() !!} --}}
@endsection @section('script') @endsection