@extends('layouts.admin-master') @section('title', 'Order lists') @section('css-top') @endsection @section('css') @endsection @section('content')

Total Order ({{ $all }})

Pending Order
Accept Order
Ready To Ship
On Delivery
Cancel
Complete

@if(Route::current()->getName() == 'order.search') Total Record: ({{count($offerOrders)}}) @endif

@if(count($offerOrders)>0) @foreach($offerOrders as $order) @endforeach @else @endif
Customer Order ID Order Date Qty Total_Order Shipping cost Status Invoice Actions
{{ $order->billing_name }}

{{ $order->billing_phone }}

{{$order->order_id}} {{\Carbon\Carbon::parse($order->order_date)->format(Config::get('siteSetting.date_format'))}}

{{\Carbon\Carbon::parse($order->order_date)->diffForHumans()}}

{{$order->all_qty}} {{$order->total_order }} @if($order->shipping_cost != null) paid @else pending @endif @if($order->order_status == 'delivered') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'accepted') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'ready-to-ship') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'return') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'cancel') {{ str_replace('-', ' ', $order->order_status)}} @if(count($order->orderCancelReason)>0)
Reason @foreach($order->orderCancelReason as $reason) {{$reason->reason}} {{$reason->reason_details}} @endforeach @endif
@elseif($order->order_status == 'on-delivery') {{ str_replace('-', ' ', $order->order_status)}} @else Pending @endif @php $updateStatus = $order->orderNotify->where('type', '=', 'orderStatus'); @endphp @if(count($updateStatus)>0) @foreach($updateStatus as $notifyNo => $statusNotify) @if($statusNotify->notify)

{{$notifyNo+1}}. By {{($statusNotify->staff) ? $statusNotify->staff->name : 'Customer' }} => {{ucwords($statusNotify->notify)}}
{{\Carbon\Carbon::parse($statusNotify->created_at)->format(Config::get('siteSetting.date_format') .' | '.' h:i A')}}

@endif @endforeach
@endif
Invoice username])}}', '{{$order->order_id}}')" title=" View order details" data-toggle="tooltip" class="text-inverse p-r-10" > Details

No orders found.

{{$offerOrders->appends(request()->query())->links()}}
Showing {{ $offerOrders->firstItem() }} to {{ $offerOrders->lastItem() }} of total {{$offerOrders->total()}} entries ({{$offerOrders->lastPage()}} Pages)
@endsection @section('js') @endsection