@if (!$cronIsRunning)
⚠️ Important: Your cron job is currently not running. This may prevent ride assignments from being processed automatically. To fix this, make sure you add the following line to your root directory:
php artisan order:assign-to-driver
@endif

{{ count($approvedDrivers) }}

Active Drivers

{{ count($onWayOrder) }}

Active Rides

{{ count($completedOrder) }}

Completed Rides

{{ count($complaints) }}

Unreviewed Complaints

Ride Analytics

Accepted Ride

{{ count($acceptOrder) }}

On The Way

{{ count($onWayOrder) }}

Confirm Ride Arrival

{{ count($confirmArrivalOrder) }}

Pickup

{{ count($pickedOrder) }}

Starting Ride

{{ count($startRideOrder) }}

Completed Ride

{{ count($completedOrder) }}

Cancelled Ride

{{ count($cancelledOrder) }}

User Overview

Total User {{ count($totalRiders) }}
{{ count($totalRiders) }}
Users @php $totalRider = 100; $percentageRider = $totalRider > 0 ? (count($totalRiders) / $totalRider) * 100 : 0; @endphp
{{ count($approvedDrivers) }}
Drivers @php $totalDrivers = 100; $percentage = $totalDrivers > 0 ? (count($approvedDrivers) / $totalDrivers) * 100 : 0; @endphp

Realtime users

@php $realTimeRidersCount = count($realTimeRiders); $totalRidersCount = count($totalRiders); $percentageRider = $totalRidersCount > 0 ? round(($realTimeRidersCount / $totalRidersCount) * 100, 1) : 0; @endphp

+{{ $percentageRider }}%

{{ count($realTimeRiders) }}


{{--
--}}

Admin Wallet

{{ $commission->amount ?? 0 }}

@php $percentageEarning = $totalEarning > 0 ? round(($totalCommision / $totalEarning) * 100, 1) : 0; @endphp +{{ $percentageEarning }}% Total Earning

{{ $completeWithdraw }}

Already Withdraw

{{ $pendingWithdraw }}

Pending Withdraw

{{ $totalCommision }}

Total Commission

{{ $rejectedWithdraw }}

Rejected Withdraw

Statistics

{{-- --}}

Top Driver

@if ($topDrivers->isEmpty())

No driver available

@else @foreach ($topDrivers as $driver)

{{ $driver->driver->user->name ?? '' }}

@php $rating = $driver->driver->rating ?? 0; $fullStars = floor($rating); $hasHalfStar = $rating - $fullStars >= 0.5; $emptyStars = 5 - $fullStars - ($hasHalfStar ? 1 : 0); @endphp
@for ($i = 0; $i < $fullStars; $i++) @endfor @if ($hasHalfStar) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor {{ number_format($rating, 1) }} ({{ $driver->ratings->count() ?? 0 }})
Ride : {{ $driver->total ?? '' }}
@endforeach @endif

Ride Summary ( Latest 5 Ride )

@foreach ($orders as $order) @endforeach
ORDER ID Location Service Requested At Amount Status Payment Method Actions
#{{ $order->id }} @php $addresses = is_string($order->addresses) ? json_decode($order->addresses, true) : $order->addresses; @endphp
Pickup: {{ $addresses['pickup_address'] ?? '-' }}
Drop: {{ $addresses['drop_address'] ?? '-' }}
@if (!empty($addresses['wait_address']))
Wait: {{ $addresses['wait_address'] }}
@endif
{{ $order->service->name ?? '' }} {{ $order->created_at }} ${{ $order->cost_best }} @php $statusColors = [ 'pending' => 'text-gray-500 bg-gray-100', 'accepted' => 'text-blue-600 bg-blue-100', 'rejected' => 'text-red-600 bg-red-100', 'go_to_pickup' => 'text-dark bg-indigo-100', 'confirm_arrival' => 'text-dark bg-indigo-100', 'start_ride' => 'text-indigo-600 bg-indigo-100', 'in_progress' => 'text-yellow-600 bg-yellow-100', 'picked_up' => 'text-purple-600 bg-purple-100', 'completed' => 'text-green-600 bg-green-100', 'cancelled' => 'text-red-500 bg-red-100', ]; $status = is_object($order->status) ? $order->status->value : $order->status; $statusClass = $statusColors[$status] ?? 'text-gray-600 bg-gray-100'; @endphp {{ ucwords(str_replace('_', ' ', $status)) }} {{ $order->payment_mode ?? 'N/A' }}