@extends('admin.layouts.inventory') @section('title', 'Dashboard') @push('head') @endpush @section('content') @php $m = $metrics ?? []; $fmt = fn ($n) => is_numeric($n) ? number_format((float) $n, 2) : '0.00'; $fmtInt = fn ($n) => number_format((int) $n); @endphp
Completed kW
{{ $fmt($m['completed_kw'] ?? 0) }}
{{ $fmtInt($m['completed_project_count'] ?? 0) }} completed projects
In-progress kW
{{ $fmt($m['in_progress_kw'] ?? 0) }}
{{ $fmtInt($m['in_progress_project_count'] ?? 0) }} approved / active projects
Inventory value
₹{{ $fmt($m['inventory_value'] ?? 0) }}
FIFO batch valuation
Material in warehouse
{{ $fmt($m['material_in_warehouse'] ?? 0) }}
Base UOM qty
Material at sites
{{ $fmt($m['material_at_sites'] ?? 0) }}
In transit + project store
Dead stock SKUs
{{ $fmtInt($m['dead_stock_count'] ?? 0) }}
No movement 90+ days
Low stock / reorder
{{ $fmtInt($m['reorder_alert_count'] ?? 0) }}
Below reorder level
GRN inward cost
₹{{ $fmt($m['grn_inward_cost'] ?? 0) }}
Total material received (GRN)
Dispatch material cost
₹{{ $fmt($m['dispatch_material_cost'] ?? 0) }}
Material cost sent to project sites
Project material cost
₹{{ $fmt($m['project_material_cost'] ?? 0) }}
GRN to site + dispatch to site
Gross margin
₹{{ $fmt($m['gross_margin'] ?? 0) }}
Bill − material cost

Stock distribution

GRN vs dispatch (6 months)

Fast moving SKUs (30 days)

Top suppliers by spend

Reorder alerts @if(!empty($m['reorder_alerts']) && count($m['reorder_alerts'])) @else

No reorder alerts.

@endif
Fast moving @if(!empty($m['fast_moving']) && $m['fast_moving']->isNotEmpty()) @else

No movement data yet.

@endif
Top suppliers @if(!empty($m['top_suppliers']) && $m['top_suppliers']->isNotEmpty()) @else

No supplier history yet.

@endif
Recent purchase orders
Recent GRNs
Recent dispatches
@endsection @push('scripts') @endpush