@extends('admin.layouts.base') @section('title', 'Warehouse Space Orders Statistics') @section('content')

Warehouse Space Orders - Statistics

{{-- Summary cards --}}
Total Orders
{{ number_format($stats['total_orders'] ?? 0) }}
Pending Payment
{{ number_format($stats['pending_payment'] ?? 0) }}
Active Rentals
{{ number_format($stats['active_rentals'] ?? 0) }}
Total Rented SQFT
{{ number_format($stats['total_rented_sqft'] ?? 0, 2) }}
Revenue by Warehouse
@forelse($revenueByWarehouse as $row) @empty @endforelse
Warehouse Total Revenue
{{ $row->warehouse?->name ?? 'Unknown Warehouse' }} ${{ number_format($row->total_revenue ?? 0, 2) }}
No revenue data yet. Once orders are paid, data will appear here.
Total Revenue
${{ number_format($stats['total_revenue'] ?? 0, 2) }}

This is the sum of all Paid warehouse space orders.

@endsection