@extends('layouts.app') @section('title', 'Inventory') @section('breadcrumb')Inventory@endsection @section('content')

Inventory

Stock levels, PO history and reorder management

@if($reorderCount > 0) {{ $reorderCount }} items need reorder @endif Add Inventory
@if(session('success'))

{{ session('success') }}

@endif
Reset
@if($stocks->count())
@foreach($stocks as $stock) @php $needsReorder = $stock->needsReorder(); @endphp @endforeach
SKU Item Name Description Storage Location On Hand Allocated Available Reorder Pt. Unit Cost Supplier
{{ $stock->sku }} {{ $stock->item_name ?? '—' }} @if($needsReorder)Reorder@endif {{ $stock->description ?? '—' }} @if($stock->storage_location) {{ $stock->storage_location }} @else @endif {{ number_format($stock->qty_on_hand, 2) }} {{ $stock->unit }} {{ number_format($stock->qty_allocated, 2) }} {{ number_format($stock->qtyAvailable(), 2) }} {{ number_format($stock->reorder_point, 2) }} ${{ number_format($stock->unit_cost, 2) }} {{ $stock->preferredSupplier?->company ?: ($stock->preferredSupplier?->full_name ?? '—') }}
{{ $stocks->links() }}
@else

No stock items found.

Add inventory directly using the Add Inventory button, or stock is created automatically when purchase orders are received with a SKU.

@endif
@endsection