@extends('layouts.admin-master') @section('title', 'Voucher Delivery Timeline') @section('css') @endsection @section('content')

Voucher Delivery Timeline

@if($order->payment_status == 'paid' && $order->order_status != 'closed' && $order->order_status != 'cancel') @endif
@php $delivery_next_date = (count($order->voucherTimelines)>0) ? $order->voucherTimelines[0]->invoice_date : $order->order_date; $days = (count($order->voucherTimelines)>0) ? 30 : 10; @endphp
@if($order->order_status != 'closed' && $order->order_status != 'cancel')

Next Delivery Time

{{Carbon\Carbon::parse($delivery_next_date)->addDays( $days)->format('d M, Y')}}
00

Days

00

HOURS

00

MINUTES

00

SECONDS

@else

Voucher: {{$order->order_status}}

@endif
@if($order->order_status != 'closed' && $order->order_status != 'cancel') @endif @if(count($order->voucherTimelines)>0) @foreach($order->voucherTimelines as $index => $voucherTimeline) @if($order->order_status != 'closed' && $order->order_status != 'cancel') @endif @endforeach @else @endif
# Invoice Customer Shipping Address Notes Created StatusInvoice
{{$index+1}} {{$voucherTimeline->invoice_id}}
{{\Carbon\Carbon::parse($voucherTimeline->invoice_date)->format(Config::get('siteSetting.date_format'))}}
{{ $voucherTimeline->shipping_name }}

{{ $voucherTimeline->shipping_phone }}

{{ $voucherTimeline->shipping_address }}, {{ $voucherTimeline->shipping_area }}, {{ $voucherTimeline->shipping_city }}, {{ $voucherTimeline->shipping_region }} {{ $voucherTimeline->notes }} {{ $voucherTimeline->createdBy->name }} @foreach($voucherTimeline->voucherNotify 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
Invoice
There was no delivery @if($order->payment_status == 'paid' && $order->order_status != 'closed' && $order->order_status != 'cancel') @endif
@if($order->order_status != 'closed' && $order->order_status != 'cancel') @endif @endsection @section('js') @endsection