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

{{__('obs.direct')}} {{__('obs.purchase')}} {{__('obs.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
{{__('obs.sl')}} {{__('obs.product')}} {{__('obs.name')}} {{__('obs.reorder')}} {{__('obs.level')}} {{__('obs.sp')}} {{__('obs.in')}} {{__('obs.stock')}} {{__('obs.rate')}} {{__('obs.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