{{-- Modern Inventory Dashboard with Charts --}}

đŸ“Ļ
{{ $greeting ?? 'Good Morning' }}!

Here's what's happening with your inventory today

đŸ“Ļ
{{ number_format($stats['totalProducts'] ?? 0) }}
Total Products
🏭
{{ number_format($stats['totalWarehouses'] ?? 0) }}
Warehouses
đŸ—„ī¸
{{ number_format($stats['totalRacks'] ?? 0) }}
Storage Racks
đŸˇī¸
{{ number_format($stats['totalCategories'] ?? 0) }}
Categories
âš ī¸
{{ number_format($lowStockCount ?? 0) }}
Low Stock Items
@if(($lowStockCount ?? 0) > 0) Alert! @endif
💰
Inventory Value
₹{{ number_format($totalStockValue ?? 0, 0) }}
Total Stock Value (Purchase Price)
{{ number_format($totalStockQty ?? 0, 0) }}
Total Units
{{ $stats['totalBrands'] ?? 0 }}
Brands
⚡
Today's Activity
{{ now()->format('d M Y') }}
{{ ($todayIn ?? 0) + ($todayOut ?? 0) + ($todayTransfer ?? 0) + ($todayAdjust ?? 0) }}
Total
Received: {{ $todayIn ?? 0 }}
Delivered: {{ $todayOut ?? 0 }}
Transfers: {{ $todayTransfer ?? 0 }}
Adjustments: {{ $todayAdjust ?? 0 }}
📊
Stock Status
{{ ($stockStatusSummary['total_low_stock'] ?? 0) }}
Alerts
Out of Stock: {{ $stockStatusSummary['out_of_stock'] ?? 0 }}
Critical: {{ $stockStatusSummary['critical'] ?? 0 }}
Warning: {{ $stockStatusSummary['warning'] ?? 0 }}
⚡ Quick Actions
âš ī¸
Low Stock Alerts @if(($lowStockCount ?? 0) > 0) {{ $lowStockCount }} @endif
View All →
@forelse(($lowStockProducts ?? collect())->take(8) as $item) @php $percentage = $item->min_stock_level > 0 ? min(100, ($item->current_stock / $item->min_stock_level) * 100) : 0; $statusClass = $item->current_stock <= 0 ? 'danger' : ($percentage <= 50 ? 'critical' : 'warning'); $statusIcon = $item->current_stock <= 0 ? '🔴' : ($percentage <= 50 ? '🟠' : '🟡'); $productUrl = isset($item->product_id) ? route('inventory.products.show', $item->product_id) : route('inventory.products.show', $item->id); @endphp
{{ $statusIcon }}
{{ $item->product_name ?? $item->name }}
{{ $item->sku ?? '' }} â€ĸ Min: {{ $item->min_stock_level }}
{{ number_format($item->current_stock, 0) }}
{{ $item->unit_name ?? 'PCS' }}
@empty
✅

All Good!

No low stock alerts at the moment

@endforelse
📋
Recent Movements
View All →
@forelse(($recentMovements ?? collect())->take(8) as $movement) @php $typeConfig = [ 'IN' => ['icon' => 'đŸ“Ĩ', 'class' => 'in', 'label' => 'Received'], 'OUT' => ['icon' => '📤', 'class' => 'out', 'label' => 'Delivered'], 'TRANSFER' => ['icon' => '🔄', 'class' => 'transfer', 'label' => 'Transfer'], 'RETURN' => ['icon' => 'â†Šī¸', 'class' => 'return', 'label' => 'Return'], 'ADJUSTMENT' => ['icon' => 'âš–ī¸', 'class' => 'adjust', 'label' => 'Adjusted'], ]; $config = $typeConfig[$movement->movement_type] ?? ['icon' => 'đŸ“Ļ', 'class' => 'in', 'label' => $movement->movement_type]; $isPositive = $movement->qty >= 0; @endphp
{{ $config['icon'] }}
{{ $movement->product->name ?? 'Unknown' }}
{{ $movement->reference_no }} â€ĸ {{ $movement->warehouse->name ?? '' }}
{{ $isPositive ? '+' : '' }}{{ number_format($movement->qty, 2) }}
{{ $movement->created_at->diffForHumans() }}
@empty
📋

No Recent Activity

Stock movements will appear here

@endforelse