@if (count($orders) > 0)
| {{ __('message.id') }} |
{{ __('message.order_id') }} |
{{ __('message.client') }} |
{{ __('message.delivery_man') }} |
{{ __('message.city') }} |
{{ __('message.total_amount') }} |
{{ __('message.pickup_date_time') }} |
{{ __('message.delivery_date_time') }} |
{{ __('message.commission_type') }} |
{{ __('message.admin_commission') }} |
{{ __('message.delivery_man_commission') }} |
{{ __('message.created_at') }} |
@foreach ($orders as $order)
| {{ $loop->iteration }} |
{{ $order->id}} |
{{ optional($order->client)->name ?? '-' }} |
{{ optional($order->delivery_man)->name ?? '-'}} |
{{ optional($order)->city->name ?? '-' }} |
{{ getPriceFormat($order->total_amount) ?? 0 }} |
{{ dateAgoFormate($order->pickup_datetime) ?? '-' }} |
{{ dateAgoFormate($order->delivery_datetime) ?? '-' }} |
@php
$commission_type = optional($order)->city->commission_type ?? '-' ;
$admin_commission = optional($order)->payment->admin_commission ?? 0 ;
$deliveryman_commission = optional($order)->payment->delivery_man_commission ?? 0 ;
@endphp
{{ $commission_type }} |
{{getPriceFormat($admin_commission) }} |
{{ getPriceFormat($deliveryman_commission) }} |
{{ dateAgoFormate($order->created_at) ?? '-' }} |
@endforeach
| {{ __('message.total_amount') }} |
|
|
|
|
{{ getPriceFormat($totalAmountorder) ?? '-' }} |
|
|
|
{{ getPriceFormat($totalAdminSum) ?? '-' }} |
{{ getPriceFormat($totaldeliverymanSum) ?? '-' }} |
|
@else
{{ __('message.no_record_found') }}
@endif