@extends('layouts.warehouse') @section('title', 'Warehouse Dashboard') @section('page-title', 'Dashboard') @section('page-subtitle', 'Welcome to the Warehouse Management System') @section('breadcrumb') @endsection @section('page-actions')
@endsection @section('content')
inventory_2

{{ $stats['total_items'] ?? 0 }}

Total Items

warning

{{ $stats['low_stock_items'] ?? 0 }}

Low Stock Items

place

{{ $stats['total_locations'] ?? 0 }}

Locations

pending

{{ $stats['pending_transactions'] ?? 0 }}

Pending Transactions

bar_chart Inventory Levels by Category
@if($lowStockItems->count() > 0)
warning Low Stock Alert
View All
@foreach($lowStockItems as $item)

{{ $item['item_name'] }}

{{ $item['item_code'] }}
{{ $item['current_stock'] }} / {{ $item['reorder_point'] }}
@endforeach
@else
check_circle
All Items Well Stocked

No items are currently below reorder point

@endif
timeline Recent Activities
View All
@if($recentActivities->count() > 0)
@foreach($recentActivities as $activity)
{{ $activity['icon'] ?? 'info' }}

{{ $activity['description'] }}

by {{ $activity['user'] }} • {{ $activity['created_at']->diffForHumans() }}
@endforeach
@else
timeline

No recent activities

@endif
@if($lowStockItems->count() > 0)
warning Low Stock Alert
View All
@foreach($lowStockItems as $item)

{{ $item->item->name ?? 'Unknown Item' }}

{{ $item->item->item_code ?? 'N/A' }}
{{ $item->quantity_available ?? 0 }}
@endforeach
@endif @if($locationSummary->count() > 0)
place Inventory by Location
@foreach($locationSummary->take(5) as $location)

{{ $location['name'] }}

{{ $location['total_items'] }} items
{{ $location['available_quantity'] }} / {{ $location['total_quantity'] }}
@if($location['total_reserved'] > 0)
{{ $location['total_reserved'] }} reserved
@endif
@endforeach
@endif
@if($recentMovements->count() > 0)
swap_horiz Recent Stock Movements
View Report
@foreach($recentMovements as $movement) @endforeach
Item Type Quantity Reason User Date
{{ $movement->item->name ?? 'Unknown' }}
{{ $movement->item->item_code ?? 'N/A' }}
{{ ucfirst(str_replace('_', ' ', $movement->type)) }} {{ $movement->quantity }} {{ $movement->reason ?: 'N/A' }} {{ $movement->user->name ?? 'System' }} {{ $movement->created_at->format('M d, H:i') }}
@endif @endsection @push('scripts') @endpush