@extends('layouts.app') @section('content')

{{ __('Rider Details') }}

{{ $totalPending }}

{{ __('ToDo Orders') }}

{{ $totalDelivery }}

{{ __('Total Delivered') }}

{{ showCurrency($driver->total_cash_collected) }}

{{ __('Current Cash Collected') }}

{{ showCurrency($allCashCollected) }}

{{ __('Total Cash Collected') }}

{{__('Rider Wallet')}}

{{ showCurrency($wallet->balance) }}

{{ __('Current Balance') }}
{{ showCurrency($alreadyWithdraw) }}
{{ __('Already Withdraw') }}
icon
{{ showCurrency($pendingWithdraw) }}
{{ __('Pending Withdraw') }}
icon
{{ showCurrency($driver->total_cash_collected) }}
{{ __('Current Cash Collected') }}
icon
{{ showCurrency($deniedWithddraw) }}
{{__('Rejected Withdraw') }}
icon
{{__('All Assigned Orders')}}
@php $orders = $driver->orders()->orderBy('pivot_created_at', 'desc')->orderBy('pivot_is_completed', 'asc')->paginate(20); @endphp @foreach ($orders as $order) @endforeach
{{ __('Order ID') }} {{ __('Assigned At') }} {{ __('Customer') }} {{ __('Shop') }} {{ __('Total Amount') }} {{ __('Payment Method') }} {{ __('Order Status') }} {{ __('Action') }}
#{{ $order->prefix . $order->order_code }} {{ $order->pivot->created_at->format('d M Y, h:i A') }} {{ $order->customer?->user?->name }} {{ $order->shop?->name }} {{ showCurrency($order->payable_amount) }}
{{ $order->payment_status }}
{{ $order->payment_method }} @php $status = Str::ucfirst(str_replace(' ', '', $order->order_status->value)); @endphp
{{ $order->order_status->value }}
{{ $orders->links() }}
@csrf
@endsection