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

Direct Purchase Order



@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; @endphp @if(Request()->short_id) @else @if($stk <= $product->reorder_level) @endif @endif @empty @endforelse @php $g++; @endphp @empty @endforelse @endif
SL Product Name Reorder Level SP In Stock Rate Quantity
{{$g}}.{{$p++}} {{ $product->name_eng }} {{ $product->reorder_level }} {{ $product->sell_price }}
{{$g}}.{{$p++}} {{ $product->name_eng }} {{ $product->reorder_level }} {{ $product->sell_price }}
@if (count($products) > 0) @endif
@endsection @section('script') @endsection