@if($order->order_status != 'closed' && $order->order_status != 'cancel' && $order->payment_method !='pending')
@php $delivery_next_date = (count($order->voucherTimelines)>0) ? $order->voucherTimelines[0]->invoice_date : $order->order_date; $days = (count($order->voucherTimelines)>0) ? 30 : 10; @endphp
@else Next Delivery Time
{{Carbon\Carbon::parse($delivery_next_date)->addDays($days)->format('d M, Y')}}
00
Days
00
HOURS
00
MINUTES
00
SECONDS
Voucher: {{$order->order_status}}
@endif| # | Invoice ID | Date | Name | Shipping_Address | Delivery_Status | ||
| {{$index+1}} | {{$voucherTimeline->invoice_id}} | {{\Carbon\Carbon::parse($voucherTimeline->invoice_date)->format(Config::get('siteSetting.date_format'))}}
{{\Carbon\Carbon::parse($voucherTimeline->invoice_date)->format('h:i:s A')}} |
{{ $voucherTimeline->shipping_name }}
{{ $voucherTimeline->shipping_phone }} |
{{ $voucherTimeline->shipping_address }}, {{ $voucherTimeline->shipping_area }}, {{ $voucherTimeline->shipping_city }}, {{ $voucherTimeline->shipping_region }} |
@if($voucherTimeline->status == 'delivered')
{{ str_replace('-', ' ', $voucherTimeline->status)}}
@elseif($voucherTimeline->status == 'processing')
{{ str_replace('-', ' ', $voucherTimeline->status)}}
@elseif($voucherTimeline->status == 'ready-to-ship')
{{ str_replace('-', ' ', $voucherTimeline->status)}}
@elseif($voucherTimeline->status == 'cancel')
{{ str_replace('-', ' ', $voucherTimeline->status)}}
@elseif($voucherTimeline->status == 'on-delivery')
{{ str_replace('-', ' ', $voucherTimeline->status)}}
@elseif($voucherTimeline->status == 'return')
{{ str_replace('-', ' ', $voucherTimeline->status)}}
@else
Pending
@endif
@foreach($voucherTimeline->voucherNotify as $notifyNo => $statusNotify)
@if($statusNotify->notify)
{{$index+1 .'. '. ucwords($statusNotify->notify)}} |
||
| There was no delivery found. | |||||||
Delivery Timeline
-
@foreach($voucherNotify as $index => $statusNotify)
-
{{ucwords($statusNotify->notify)}}{{\Carbon\Carbon::parse($statusNotify->created_at)->format(Config::get('siteSetting.date_format') .' | '.' h:i A')}}
@endforeach