@extends('layouts.restaurant') @section('content')
Inventory & Store | {{ $branch->name }}

Food Supplies Ledger

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Total Valuation
TZS {{ number_format($totalValuation, 2) }}

Capital in stock

Catalog Items
{{ $items->count() }} SKUs

Tracked items

Low Stock
{{ $lowStockCount }} Items

≤ 10 units left

Sold Out
{{ $outOfStockCount }} Items

Depleted stock

@forelse($items as $item) @php $bal = $balances[$item->id] ?? ['quantity' => 0, 'valuation' => 0]; $qty = $bal['quantity']; @endphp @empty @endforelse
Item SKU / Name Category Status Store Qty Unit Cost Valuation Actions
{{ $item->name }}
{{ $item->sku }}
{{ $item->category->name ?? 'General' }} @if($qty <= 0) Sold Out @elseif($qty <= 10) Low @else In Stock @endif {{ number_format($qty, 1) }} {{ number_format($item->standard_cost, 2) }} {{ number_format($bal['valuation'], 2) }}
No items found in the store catalog.
@forelse($recentMovements as $move) @empty @endforelse
Date & Time Type Item Qty Reference Staff
{{ $move->created_at->format('d M y, H:i') }} @if($move->type->value === 'receive') RX @elseif($move->type->value === 'issue') POS @else ADJ/WST @endif {{ $move->item->name ?? 'Unknown' }} {{ $move->type->value === 'receive' ? '+' : '-' }}{{ number_format($move->quantity, 1) }} {{ $move->reason ?? ($move->reference_type ? $move->reference_type.' #'.$move->reference_id : 'Store') }} {{ $move->user->name ?? 'System' }}
No stock movements recorded yet.
@endsection