{{ $pageTitle }}

@include('report.deliverymandatefilter')
@if(count($orders) > 0) @foreach ($orders as $order) @php $commission_type = optional($order)->city->commission_type ?? '-' ; $deliveryman_commission = optional($order)->payment->delivery_man_commission ?? 0 ; $admin_commission = optional($order)->payment->admin_commission ?? 0 ; // $formatted_commission = $commission_type == 'percentage' ? getPriceFormat($deliveryman_commission) . ' %' : ($commission_type == 'fixed' ? getPriceFormat($deliveryman_commission) . ' fixed' : '-'); @endphp @endforeach @else @endif
{{ __('message.id') }} {{ __('message.order_id') }} {{ __('message.user') }} {{ __('message.delivery_man') }} {{ __('message.pickup_date_time') }} {{ __('message.delivery_date_time') }} {{ __('message.total_amount') }} {{ __('message.commission_type') }} {{ __('message.admin_commission') }} {{ __('message.delivery_man_commission') }} {{ __('message.created_at') }}
{{ $loop->iteration }} {{ $order->id }} {{ optional($order->client)->name ?? '-' }} {{ optional($order->delivery_man)->name ?? '-'}} {{ dateAgoFormate($order->pickup_datetime) ?? '-' }} {{ dateAgoFormate($order->delivery_datetime) ?? '-' }} {{ getPriceFormat($order->total_amount) ?? 0 }}{{ $commission_type }} {{getPriceFormat($admin_commission) }} {{ getPriceFormat($deliveryman_commission) }} {{ dateAgoFormate($order->created_at) ?? '-' }}
{{ __('message.no_record_found') }}
{{ __('message.total_amount') }} {{ getPriceFormat($totalAmountorder) ?? '-' }} {{ getPriceFormat($totalAdminSum) }} {{ getPriceFormat($totaldeliverymanAmountSum) }}
@section('bottom_script') @endsection