{{ __('php artisan order:assign-to-driver') }}
ssh username@server-ip
After login, run:crontab -e
Choose editor (recommended: nano).cd /var/www/Project-Directory && php artisan order:assign-to-driver
Save & exit:cd /home/username/Project-Directory && php artisan order:assign-to-driver
{{ __('Realtime users') }}
+{{ $percentageRider }}%
{{ count($realTimeRiders) }}
{{ __('Already Withdraw') }}
{{ __('Pending Withdraw') }}
{{ __('Total Commission') }}
{{ __('Rejected Withdraw') }}
{{ __('No driver available') }}
@else @foreach ($topDrivers as $driver)| {{ __('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') }} |