@include('includes.app') @include('includes.sidebar') @include('includes.header')

Dashboard

@if(auth()->user()->usertype == 'admin')
{{-- assets/images/icons/Group 207215.png --}}
Total Leads
{{ $leadCount ?? 0 }}
Total Order
{{ $loadOrders->count() }}
Shipped Order
{{ $shippedOrderCount }}
Paid Order
{{ $paidOrderCount }}
Total Customer
{{ $totalCustomerCount ?? 0 }}
Performance Analysis
Accuracy
99.99%

  On Paid Orders

  In Transit Orders

  Total Orders

Recent Bids
@forelse ($bids as $bid) @if ($loop->iteration < 6) @endif @empty @endforelse
Bid ID Request ID Bid Amount Pickup Date Delivery Date Status
#{{ $bid->id ?? 'N/A' }} #{{ $bid->quotation_id ?? 'N/A' }} {{ $bid->bid_amount }} {{ $bid->pickup_date ? \Carbon\Carbon::parse($bid->pickup_date)->format('M d, Y') : 'N/A' }} {{ $bid->delivery_date ? \Carbon\Carbon::parse($bid->delivery_date)->format('M d, Y') : 'N/A' }}
No bids found.
Recent Orders
@forelse ($loadOrders as $loadOrder) @if ($loop->iteration < 6) @endif @empty @endforelse
Order ID Customer Pickup Location Drop Location Price Status
{{ $loadOrder->order_id ?: $loadOrder->id }} {{ $loadOrder->customer->lead_name ?? 'N/A' }} @if ($loadOrder->rows->flatMap->pickups->isNotEmpty() && $loadOrder->rows->flatMap->pickups->count() == 1) @php $pickup = $loadOrder->rows->flatMap->pickups->first(); $singlePickupAddress = ($pickup->city ? $pickup->city->name . ',' : "") . ($pickup->city ? $pickup->city->state_code : "") . ', ' . $pickup?->country?->name; $singlePickupTime = ($pickup->time ? \Carbon\Carbon::parse($pickup->time)->format('d M, Y h:iA') : "-") ; @endphp @endif {{ ($singlePickupAddress ?? ' ') . ' ' . ($singlePickupTime ?? '') }} @if ($loadOrder->rows->flatMap->deliveries->isNotEmpty() && $loadOrder->rows->flatMap->deliveries->count() == 1) @php $delivery = $loadOrder->rows->flatMap->deliveries->first(); $singleDeliveryAddress = ($delivery->city ? $delivery->city->name . ',' : "") . ($delivery->city ? $delivery->city?->state_code : "") . ', ' . ($delivery->country ? $delivery?->country?->name : ""); $singleDeliveryTime = ($delivery->time ? \Carbon\Carbon::parse($delivery->time)->format('d M, Y h:iA') : "-") ; @endphp @endif {{ ($singleDeliveryAddress ?? ' ') . ' ' .($singleDeliveryTime ?? '') }} {{ $loadOrder->final_price }} @if ($loadOrder->order_status == 'pending') {{ $loadOrder->order_status }} @endif @if ($loadOrder->order_status == 'dispatched') {{ $loadOrder->order_status }} @endif @if ($loadOrder->order_status == 'cancelled') {{ $loadOrder->order_status }} @endif @if ($loadOrder->order_status == 'delivered') {{ $loadOrder->order_status }} @endif @if ($loadOrder->order_status == 'claim') In-claim/Dispute @endif @if ($loadOrder->order_status == \App\OrderStatus::INVOICE->value) Invoice Not Sent @endif @if ($loadOrder->order_status == \App\OrderStatus::PARTIALLY_PAID->value) Partially Paid @endif @if ($loadOrder->order_status == \App\OrderStatus::INVOICED->value) Invoice Sent @endif @if ($loadOrder->order_status == \App\OrderStatus::PAID->value) Paid @endif
No Recent Orders
@else
Welcome {{ auth()->user()?->name ?? '' }}
@endif
@include('includes.footer')