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

Dashboard Overview

{{ number_format($totalQuotes) }}
Total Quotes
{{ $quoteSuccessRate }}%
Quote Success Rate
{{ number_format($totalBookingRequests) }}
Booking Requests
{{ $tqlSuccessRate }}%
TQL Success Rate

Quote Status Distribution

Booking Request Status

Monthly Performance Trends

Recent Quotes {{ $recentQuotes->count() }} total

@forelse($recentQuotes as $quote) @empty @endforelse
User Route Status Date
{{ substr($quote->user->fullname ?? 'N/A', 0, 1) }}
{{ $quote->user->fullname ?? 'N/A' }} {{ $quote->user->email ?? 'N/A' }}
{{ $quote->pickupDetail->city ?? 'N/A' }} → {{ $quote->deliveryDetail->city ?? 'N/A' }} {{ $quote->pickupDetail->state ?? '' }} to {{ $quote->deliveryDetail->state ?? '' }} {{ ucfirst($quote->status) }} {{ $quote->created_at->format('M d, Y') }}
No quotes found

Recent Booking Requests {{ $recentBookings->count() }} total

@forelse($recentBookings as $booking) @empty @endforelse
User Carrier Amount Status Date
{{ substr($booking->user->fullname ?? 'N/A', 0, 1) }}
{{ $booking->user->fullname ?? 'N/A' }} {{ $booking->user->email ?? 'N/A' }}
{{ $booking->carrier_data['carrier'] ?? 'N/A' }} {{ $booking->carrier_data['serviceLevelDescription'] ?? 'Standard' }} ${{ number_format($booking->total_amount, 2) }} @php $statusColors = [ 'pending' => 'warning', 'approved' => 'info', 'confirmed' => 'success', 'rejected' => 'danger' ]; @endphp {{ ucfirst($booking->status) }} {{ $booking->created_at->format('M d, Y') }}
No booking requests found
@endsection @push('scripts') @endpush