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

{{__('obs.stock')}} {{__('obs.shortage')}} {{__('obs.list')}}

{{--
--}}
{!!getDateInput('date_from','date_from',Request()->date_from)!!} {!!getDateInput('date_to','date_to',Request()->date_to)!!}
@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
{{__('obs.sl')}} {{'Product Name'}} {{'Reorder Level'}} {{__('obs.instock')}}{{__('obs.requisition')}} {{__('obs.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