@extends('layout')@section('c')

Inventory

Stock value (at average cost){{ number_format($value,2) }}
Low-stock items{{ $lowCount }}
+ Add item
@csrf
@foreach($rows as $i)@php $low2 = $i->reorder_level>0 && $i->quantity<=$i->reorder_level; @endphp @endforeach @if(!$rows->count())@endif
SKUNameCategoryQuantityAvg costValueStatus
{{ $i->sku }}{{ $i->name }}{{ $i->category }}{{ number_format($i->quantity,2) }} {{ $i->unit }}{{ number_format($i->avg_cost,2) }}{{ number_format($i->quantity*$i->avg_cost,2) }} @if($low2)Low stock@elseOK@endif
No items found.
@endsection