@extends('layouts.admin.app') @section('title',ucfirst(str_replace('_',' ',$status).' '.translate('messages.orders'))) @push('css_or_js') @endpush @section('content')
{{translate('messages.columns')}}
@foreach($orders as $key=>$order) @endforeach
{{ translate('messages.sl') }} {{translate('messages.order')}} {{translate('messages.date')}} {{translate('messages.customer')}} {{translate('messages.restaurant')}} {{translate('messages.total_amount')}} {{translate('messages.order_status')}} {{translate('messages.actions')}}
{{$key+$orders->firstItem()}} {{$order['id']}}
{{ Carbon\Carbon::parse($order['created_at'])->locale(app()->getLocale())->translatedFormat('d M Y ') }}
{{ Carbon\Carbon::parse($order['created_at'])->locale(app()->getLocale())->translatedFormat(config('timeformat')) }}
@if($order->is_guest)
Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order/distaptch_list.blade.php on line 252

Warning: Trying to access array offset on value of type null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order/distaptch_list.blade.php on line 252

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order/distaptch_list.blade.php on line 252
{{$customer_details['contact_person_name']}}
{{$customer_details['contact_person_number']}}
@elseif($order->customer) {{$order->customer['f_name'].' '.$order->customer['l_name']}}
{{$order->customer['phone']}}
@else @endif
{{$order->restaurant?$order->restaurant->name:'Restaurant deleted!'}}
{{\App\CentralLogics\Helpers::format_currency($order['order_amount'])}}
@if($order->payment_status=='paid') {{translate('messages.paid')}} @else {{translate('messages.unpaid')}} @endif
@if($order['order_status']=='pending') {{translate('messages.pending')}} @elseif($order['order_status']=='confirmed') {{translate('messages.confirmed')}} @elseif($order['order_status']=='processing') {{translate('messages.processing')}} @elseif($order['order_status']=='picked_up') {{translate('messages.out_for_delivery')}} @elseif($order['order_status']=='delivered') {{$order?->order_type == 'dine_in' ? translate('messages.Completed') : translate('messages.delivered')}} @else {{translate(str_replace('_',' ',$order['order_status']))}} @endif
@if($order['order_type']=='take_away') {{translate('messages.take_away')}} @elseif ($order['order_type'] == 'dine_in') {{ translate('Dine_in') }} @else {{translate('messages.home_delivery')}} @endif
@if (count($orders) === 0)
public
{{translate('no_data_found')}}
@endif
@endsection @push('script_2') @endpush