@extends('admin.layouts.base') @section('title', 'Warehouse Bookings Dashboard') @section('content')

Warehouse Bookings Dashboard

Manage warehouse bookings and space utilization

{{-- Summary Cards --}} @if(count($warehouseStats) > 0)
@php $totalBookings = collect($warehouseStats)->sum('total_bookings'); $totalPending = collect($warehouseStats)->sum('pending'); $totalConfirmed = collect($warehouseStats)->sum('confirmed'); $totalActive = collect($warehouseStats)->sum('active'); @endphp
Total Bookings

{{ $totalBookings }}

Pending Approval

{{ $totalPending }}

Confirmed

{{ $totalConfirmed }}

Active Now

{{ $totalActive }}

@endif {{-- Warehouses Table --}}
@forelse($warehouseStats as $stats) @php $utilization = $stats['space']['utilization']; $badgeColor = $utilization > 90 ? 'danger' : ($utilization > 70 ? 'warning' : 'success'); $progressColor = $utilization > 90 ? 'danger' : ($utilization > 70 ? 'warning' : 'success'); @endphp @empty @endforelse
Warehouse Bookings Pending Confirmed Active Space Utilization Available Space Actions
{{ $stats['warehouse']->name }}
{{ $stats['warehouse']->city }}, {{ $stats['warehouse']->state }}
{{ $stats['total_bookings'] }} @if($stats['pending'] > 0) {{ $stats['pending'] }} @else - @endif @if($stats['confirmed'] > 0) {{ $stats['confirmed'] }} @else - @endif @if($stats['active'] > 0) {{ $stats['active'] }} @else - @endif
{{ number_format($utilization, 0) }}%
{{ number_format($stats['space']['used']) }} / {{ number_format($stats['space']['total']) }} sqft
{{ number_format($stats['space']['available']) }} sqft View Bookings

No active warehouses found

Create Warehouse
@push('styles') @endpush @endsection