ORDER {{$model->order_reference}}

Vendor Name: {{$model->vendor->vendor_name}}

@if($model->order_status == 1) Awaiting @elseif($model->order_status == 2) Awaiting @elseif($model->order_status == 3) At AHL Warehouse @elseif($model->order_status == 4) En-route @elseif($model->order_status == 5) Dispatch @elseif($model->order_status == 6) Delivered @elseif($model->order_status == 7) Re-Attempt @elseif($model->order_status == 8) Re-Attempt @elseif($model->order_status == 9) Cancel @elseif($model->order_status == 10) Return to Vendor @elseif($model->order_status == 11) Cancel by AHL @elseif($model->order_status == 12) Cancel by Vendor @elseif($model->order_status == 16) Re-Attempt @elseif($model->order_status == 17) Cancel @elseif($model->order_status == 18) Cancel @elseif($model->order_status == 19) Return to Vendor In Progress @else En-route @endif
Customer Name: {{$model->consignee_first_name}} {{$model->consignee_last_name}}
Customer Phone: {{$model->consignee_phone}}
Customer Address: {{$model->consignee_address}}
@if(!empty($model->created_at))
PARCEL JOURNEY
PARCEL CREATED AT: {{date('d M Y h:i a', strtoTime($model->created_at))}}
@if(!empty($model->scanOrder->created_at))
PARCEL PICKED FROM {{$model->vendor->vendor_name}} WAREHOUSE: {{date('d M Y h:i a', strtoTime($model->scanOrder->created_at))}}
@endif @if(!empty($model->scanOrder->middle_man_scan_date))
PARCEL ENTERED AT AHL WAREHOUSE: {{date('d M Y h:i a', strtoTime($model->scanOrder->middle_man_scan_date))}}
@endif @if(!empty($model->scanOrder->supervisor_scan_date)) @foreach($model->orderReAssigned as $key => $order_assigned)
PARCEL DISPATCHED FROM AHL WAREHOUSE: {{date('d M Y h:i a', strtoTime($order_assigned->created_at))}}
@if(($order_assigned->trip_status_id) == 5)
PARCEL CANCELLED FROM RIDER END: {{date('d M Y h:i a', strtoTime($order_assigned->updated_at))}}
@endif @if(($order_assigned->trip_status_id) == 6)
PARCEL REATTEMPT FROM RIDER END: {{date('d M Y h:i a', strtoTime($order_assigned->updated_at))}}
@endif @endforeach @endif @if(!empty($model->orderAssigned->trip_status_id)) @if(($model->orderAssigned->trip_status_id) == 4)
PARCEL DELIVERED AT: {{date('d M Y h:i a', strtoTime($model->orderAssigned->updated_at))}}
@endif @endif @if(($model->order_status == 9) || ($model->order_status == 17) || ($model->order_status == 18))
PARCEL CANCELLED AT: {{date('d M Y h:i a', strtoTime($model->updated_at))}}
@if(isset($decline))
CANCEL REASON: {{$decline->orderDecline ? $decline->orderDecline->orderDeclineReason->name : ''}}
@endif @endif @if(($model->order_status == 7) || ($model->order_status == 8) || ($model->order_status == 16))
PARCEL RE-ATTEMPT AT: {{date('d M Y h:i a', strtoTime($model->updated_at))}}
@endif @if(($model->order_status == 19))
PARCEL RETURN TO VENDOR IN-PROGRESS AT: {{date('d M Y h:i a', strtoTime($model->updated_at))}}
@endif @if(($model->order_status == 10))
PARCEL RETURN TO VENDOR AT: {{date('d M Y h:i a', strtoTime($model->updated_at))}}
@endif
@endif