{{-- Header --}}

Stock Dashboard

Monitor stock levels, warehouse inventory, and low stock alerts

{{-- Quick Actions Navigation --}} {{-- Statistics Cards --}}
{{-- Total Products --}}

Total Products

{{ number_format($stats['total_products']) }}

{{-- Total Quantity --}}

Total Stock

{{ number_format($stats['total_quantity']) }}

{{-- Reserved Stock --}}

Reserved

{{ number_format($stats['total_reserved']) }}

{{-- Low Stock Alert --}}

Low Stock

{{ number_format($stats['low_stock_count']) }}

{{-- Total Value --}}

Stock Value

Rp {{ number_format($stats['total_value'], 0, ',', '.') }}

{{-- Filters --}}
{{-- Stock by Warehouse --}}

Stock by Warehouse

@forelse($stockByWarehouse as $stock) @empty @endforelse
Warehouse Products Total Stock Reserved Available
{{ $stock->warehouse->name }}
{{ $stock->warehouse->location }}
{{ number_format($stock->product_count) }} {{ number_format($stock->total_quantity) }} {{ number_format($stock->total_reserved) }} {{ number_format($stock->available_quantity) }}
No stock data available
{{-- Stock Details --}}

Stock Details

@forelse($stockDetails as $stock) @empty @endforelse
Product Warehouse Stock Reserved Available Status
{{ $stock->product->name }}
{{ $stock->product->sku }}
{{ $stock->warehouse->name }} {{ number_format($stock->quantity) }} {{ number_format($stock->reserved_quantity) }} {{ number_format($stock->available_quantity) }} @if($stock->quantity <= $stock->reserved_quantity + $lowStockThreshold) Low Stock @else Good @endif
No stock details available
{{ $stockDetails->links() }}
{{-- Sidebar --}}
{{-- Low Stock Alert --}}

Low Stock Alert

@forelse($lowStockProducts as $stock)
{{ $stock->product->name }}
{{ $stock->warehouse->name }}
Stock: {{ $stock->quantity }} units
Available: {{ $stock->available_quantity }} units
@empty

All stock levels are good

@endforelse
{{-- Recent Movements --}}

Recent Movements

@forelse($recentMovements as $movement)
{{ $movement->type }} {{ $movement->created_at->diffForHumans() }}
{{ $movement->product->name }}
{{ $movement->warehouse->name }}
{{ $movement->type === 'in' ? '+' : '-' }}{{ $movement->quantity }} units
@empty
No recent movements
@endforelse