| {{ $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 }} |
@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
{{ $commission_type }} |
{{getPriceFormat($admin_commission) }} |
{{ getPriceFormat($deliveryman_commission) }} |
{{ dateAgoFormate($order->created_at) ?? '-' }} |
@endforeach
@else