{{__('label.order_history')}}
{{__('label.id')}} | {{__('label.status')}} | {{__('label.customer')}} | {{__('label.mobile_no')}} | {{__('label.type')}} | {{__('label.payment_mode')}} | {{__('label.total')}} | {{__('label.channel')}} | {{__('label.order_at')}} | {{__('label.rating')}} |
---|---|---|---|---|---|---|---|---|---|
{!! $order->order_ref !!} | {!! isset($custom_statuses[$order->status])?$custom_statuses[$order->status]:"" !!} | {!! isset($order->customers)?$order->customers->name:$order->customer_name !!} | @php $new_phone = ""; if(isset($order->customers)){ $pos = strpos($order->customers->users->email, env('COUNTRY_CODE')); if ($pos !== false) { $new_phone = substr_replace($order->customers->users->email, '', $pos, strlen(env('COUNTRY_CODE'))); } } @endphp{!! $new_phone !!} | {!! $order->order_type !!} | {!! $order->payment_mode=="COD"?__('label.cash'):__('label.card') !!} | {!! $currency !!} {!! number_format($order->total_price+$order->delivery_fee) !!} | {!! $order->campaign_type!!} | {!! \App\Helpers\CommonMethods::formatDateTime($order->created_at) !!} |