@extends('layouts.admin.app') @section('title', translate('Order List')) @push('css_or_js') @endpush @section('content')
{{ translate('SL') }} | {{ translate('Order_ID') }} | {{ translate('Vehicle') }} | {{ translate('Delivery_Date') }} | {{ translate('Customer_Info') }} | {{ translate('Total_Amout') }} | {{ translate('Order_Status') }} | {{ translate('actions') }} |
---|---|---|---|---|---|---|---|
{{ $orders->firstitem() + $key }} | {{ $order['id'] }} | {{ $order['delivery_man']['vehicle_number'] }} |
{{ date('d M Y', strtotime($order['delivery_date'])) }}
{{ date('h:i A', strtotime($order['delivery_time'])) }}
|
@if ($order->customer)
{{ $order->customer['f_name'] . ' ' . $order->customer['l_name'] }}{{ $order->customer->phone }} @else {{ translate('Customer_Unavailable') }} @endif |
{{ \App\CentralLogics\Helpers::set_symbol($order['order_amount'] + $order['delivery_charge']) }}
@if ($order->payment_status == 'paid')
{{ translate('paid') }}
@else
{{ translate('unpaid') }}
@endif
|
@if ($order['order_status'] == 'pending') {{ translate('pending') }} @elseif($order['order_status'] == 'confirmed') {{ translate('confirmed') }} @elseif($order['order_status'] == 'processing') {{ translate('processing') }} @elseif($order['order_status'] == 'out_for_delivery') {{ translate('out_for_delivery') }} @elseif($order['order_status'] == 'delivered') {{ translate('delivered') }} @elseif($order['order_status'] == 'failed') {{ translate('failed_to_deliver') }} @else {{ str_replace('_', ' ', $order['order_status']) }} @endif |