@extends('layouts.app') @section('title','Stock Report') @section('page-title','Stock Report') @section('content') @php $lowStock=$materials->filter(fn($m)=>$m->isLowStock()); @endphp @if($lowStock->count()>0)
{{ $lowStock->count() }} item(s) are at or below reorder level.
@endif
@foreach($materials as $m) @endforeach
CodeMaterialCategoryUnitStockReorderStatus
{{ $m->code }} {{ $m->name }} {{ $m->category }} {{ $m->unit }} {{ $m->current_stock }} {{ $m->reorder_level }} @if($m->isLowStock())Low Stock@elseOK@endif
@endsection