@extends('layouts.app') @section('title', 'Stock') @section('content') @php $money = fn ($v) => \App\Support\Fmt::money($v); $plain = fn ($v) => rtrim(rtrim(number_format((float) $v, 2), '0'), '.'); $statusClasses = fn (string $s) => match ($s) { 'In Stock' => 'bg-emerald-500/15 text-emerald-700', 'Low Stock' => 'bg-amber-500/15 text-amber-700', default => 'bg-rose-500/15 text-rose-700', }; @endphp

Stock

Inventory items, quantities and reorder tracking

CSV
@include('partials.flashes')
@foreach ([ ['label' => 'Total Items', 'value' => $totalItems], ['label' => 'Total Value', 'value' => $money($totalValue)], ['label' => 'Low Stock Alerts', 'value' => $lowCount], ['label' => 'Out of Stock', 'value' => $outCount], ] as $stat)
{{ $stat['value'] }} {{ $stat['label'] }}
@endforeach
Clear
@forelse ($rows as $item) @empty @endforelse
Item Category Store Department On Hand Reorder Unit Cost Value Status Actions
{{ $item->name }} {{ $item->sku }}
{{ $item->category ?: '—' }} {{ $item->warehouse?->name ?? '—' }} {{ $item->department?->name ?? '—' }} {{ $plain($item->current_stock) }} {{ $item->unit }} {{ $plain($item->reorder_level) }} {{ $money($item->unit_cost) }} {{ $money($item->stockValue()) }} {{ $item->status() }}
@csrf @method('DELETE')
No stock items match your filters.
{{ $rows->count() }} of {{ $totalItems }} items · {{ $money($shownValue) }} shown value
Add new stock item
@include('inventory.partials.item-form', [ 'action' => route('inventory.stock.store'), 'method' => 'POST', 'prefix' => 'item-new', 'row' => null, 'warehouses' => $warehouses, 'departments' => $departments, ])
@endsection