@extends('layouts.admin-master') @section('title', 'Order lists') @section('css-top') @endsection @section('css') @endsection @section('content')
| 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)}} |
Invoice | username])}}', '{{$order->order_id}}')" title=" View order details" data-toggle="tooltip" class="text-inverse p-r-10" > Details |
No orders found. | ||||||||