@extends('layouts.management') @section('content')

Inventory Management

Total Inventory Value (Est.)
TZS {{ number_format($totalInventoryValue, 2) }}
Active Locations
{{ count($stockByLocation) }}
Items Low on Stock
{{ $lowStockCount }}

Value by Location

    @forelse($stockByLocation as $location)
  • {{ $location->location_name }}

    {{ $location->items_count }} items

    TZS {{ number_format($location->total_value, 2) }}

  • @empty
  • No active inventory locations.
  • @endforelse

Recent Movements

    @forelse($recentMovements as $movement)
  • {{ $movement->item->name ?? 'Unknown Item' }}

    {{ $movement->destinationLocation->name ?? $movement->sourceLocation->name ?? 'Unknown Location' }} · {{ $movement->created_at->diffForHumans() }}

    {{ $movement->quantity > 0 ? '+' : '' }}{{ number_format($movement->quantity, 2) }}

    {{ ucfirst(str_replace('_', ' ', $movement->type->value ?? $movement->type)) }}

  • @empty
  • No recent stock movements found.
  • @endforelse
@endsection