@extends('layouts.app') @php $money = fn ($value) => 'Rs ' . number_format((float) $value, 2); @endphp @section('content')

Inventory dashboard

Current stock, low stock, dead stock, overstock alerts and inventory valuation.

Stock management Transfers Audits
Current stock{{ number_format($currentStock) }}
Low stock{{ number_format($lowStock) }}
Dead stock{{ number_format($deadStock) }}
Inventory value{{ $money($valuation) }}
Overstock alerts{{ number_format($overstock) }}
Transfers{{ number_format($transfers->count()) }}
Audits{{ number_format($audits->count()) }}
Warehouses shown{{ number_format($stocks->pluck('warehouse_id')->unique()->count()) }}

Stock by location

@foreach ($stocks as $stock) @endforeach
SKU Product Warehouse Available Value
{{ $stock->product?->sku }} {{ $stock->product?->name }} {{ $stock->warehouse?->name }} {{ $stock->available_quantity }} {{ $money($stock->quantity_on_hand * $stock->average_cost) }}
@endsection