@extends('user.layouts.app') @section('title', 'Dashboard') @section('content')

Dashboard

Welcome back! Here's your logistics overview

Total Quotes

{{ $totalQuotes }}

Total Quotes
Confirmed Bookings

{{ $completedQuotes }}

Completed Quotes
Pending Bookings

{{ $pendingQuotes }}

Pending Quotes
Rejected Bookings

{{ $rejectedQuotes }}

Rejected Quotes
Booking Request Overview
time
TQL Carrier Usage
TQL {{ $tqlData['tql_count'] }} ({{ $tqlData['tql_percentage'] }}%)
Other Carriers {{ $tqlData['other_count'] }} ({{ $tqlData['other_percentage'] }}%)
Total Bookings {{ $tqlData['total_bookings'] }}
Track Booking Status
{{ $orderStatusData['pending'] + $orderStatusData['approved'] + $orderStatusData['completed'] }}
Total Bookings
{{ $orderStatusData['pending'] }}
Pending Review
{{ $orderStatusData['approved'] }}
Approved
{{ $orderStatusData['completed'] }}
Confirmed
Recent Booking Requests
@include('components.quote-wizard', [ 'locationTypes' => $locationTypes, 'countries' => $countries, 'states' => $states, 'unitTypes' => $unitTypes, 'freightClasses' => $freightClasses, ])
@if ($recentBookings->isEmpty())

You haven't made any booking requests yet.

Start by creating a quote and requesting a booking.

@else
@foreach ($recentBookings as $booking) @php $quote = $booking->quote; $carrier = $booking->carrier_data['carrier'] ?? '—'; $amount = number_format($booking->total_amount, 2); $status = $booking->status; @endphp @endforeach
Booking ID Origin to Destination Carrier Amount Status Requested
#{{ $booking->id }} {{ $quote->pickupDetail->city ?? 'N/A' }}, {{ $quote->pickupDetail->state ?? '' }} to {{ $quote->deliveryDetail->city ?? 'N/A' }}, {{ $quote->deliveryDetail->state ?? '' }} {{ $carrier }} @if (stripos($carrier, 'TQL') !== false) TQL @endif ${{ $amount }} @php $statusColors = [ 'pending' => 'warning', 'approved' => 'info', 'confirmed' => 'success', 'rejected' => 'danger', ]; @endphp {{ ucfirst($status) }} {{ $booking->created_at->format('M d, Y') }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush