@extends('business.layout') @section('title', 'Inventory & Stock Control') @section('content')
Stock Valuation (Cost)
UGX {{ number_format((float)$totalValuation) }}
Low Stock Items
{{ $lowStock->count() }}
Expiring (30 Days)
{{ $expiring->count() }}

Receive, Adjust, or Transfer Stock

@csrf

Current Branch Stock

@foreach($stocks as $s) @endforeach
ProductSKUQuantityCost Value (UGX)Expiry
{{ $s->name }} {{ $s->sku }} {{ $s->quantity }} {{ $s->unit_of_measure }} UGX {{ number_format((float)$s->quantity * (float)$s->cost_price) }} {{ $s->expiry_date ?? '-' }}

Stock Movement History

@foreach($movements as $m) @endforeach
ProductTypeChangeAfterReasonDate
{{ $m->product->name ?? '-' }} {{ $m->movement_type }} {{ $m->quantity_change }} {{ $m->quantity_after }} {{ $m->notes }} {{ $m->occurred_at?->format('Y-m-d H:i') }}
@endsection