@php
$setting = App\Models\Settings::first();
$value = $setting->value;
$decoded = json_decode($value, true);
$status = $rider->user?->status?->value;
$statusColors = [
'Pending Approval' => 'back-icon text-gray-800',
'Approved' => 'bg-green-200 text-green-900',
];
$color = $statusColors[$status] ?? 'back-icon text-gray-800';
@endphp
{{ $rider->user?->name }}
{{ $rider->user->status }}
Mobile No: {{ $rider->user->mobile }}
Registered on:
{{ \Carbon\Carbon::parse($rider->created_at)->diffForHumans() }}
Last Seen At: -
{{ \Carbon\Carbon::parse($rider->updated_at)->diffForHumans() }}
@if ($orders->isNotEmpty())
@foreach ($orders as $order)
|
{{ $order->created_at }}
|
@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
|
{{ $decoded['currency'] }}{{ $order->cost_best }}
|
{{ $order->status?->label() }}
|
@endforeach
@else
| No data found |
@endif
Transaction Records
@if ($transactions->isNotEmpty())
@foreach ($transactions as $transaction)
| {{ $transaction['created_at'] }}
|
{{ $transaction['transaction'] }} |
{{ $decoded['currency'] }}{{ $transaction['amount'] }} |
@endforeach
@else
| No data found |
@endif
Wallet Summary
@if ($wallet)
| {{ $decoded['currency'] }}{{ $wallet->amount }}
|
@else
| No data found |
@endif