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

Voucher Delivery Timelines

Total Voucher: {{count($voucherTimelines)}}

@if(count($voucherTimelines)>0) @foreach($voucherTimelines as $index => $voucherTimeline) @endforeach @else @endif
# Order Voucher Customer Qty×Rate Amount Shipping Address Notes Created Status Invoice
{{$index+1}} {{$voucherTimeline->invoice_id}}
{{\Carbon\Carbon::parse($voucherTimeline->invoice_date)->format(Config::get('siteSetting.date_format'))}}
@if(count($voucherTimeline->order->order_details)>0) {{ $voucherTimeline->order->order_details[0]->product->title }} @endif {{ $voucherTimeline->shipping_name }}

{{ $voucherTimeline->shipping_phone }}

{{$voucherTimeline->voucher_qty.'×'.$voucherTimeline->voucher_rate}} {{$voucherTimeline->order->currency_sign. $voucherTimeline->voucher_qty * $voucherTimeline->voucher_rate}} {{ $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
@if($voucherTimeline->order->order_status != 'closed' && $voucherTimeline->order->order_status != 'cancel') Invoice @else Voucher {{$voucherTimeline->order->order_status}} @endif
There was no delivery found.
{{$voucherTimelines->appends(request()->query())->links()}}
Showing {{ $voucherTimelines->firstItem() }} to {{ $voucherTimelines->lastItem() }} of total {{$voucherTimelines->total()}} entries ({{$voucherTimelines->lastPage()}} Pages)
@endsection @section('js') @endsection