@php $status = $orderDetail->delivery_status; $refund_request_addon = \App\Addon::where('unique_identifier', 'refund_request')->first(); if(!empty($orderDetail->xml_ecom_order_status_response) && $orderDetail->xml_ecom_order_status_response != null){ if($orderDetail->shipment_service == "Ecom Express"){ $xmlRead = simplexml_load_string($orderDetail->xml_ecom_order_status_response); $xmlencode = json_encode($xmlRead); $xmldecode = json_decode($xmlencode, true); if(!empty(@$xmldecode["object"])){ if(!empty(@$xmldecode["object"]["field"])){ if($xmldecode["object"]["field"]["14"] == "999"){ if(!empty(@$xmldecode["object"]["field"]["21"])){ $order_delivery_date = date('d-m-Y h:i:sa' , strtotime(@$xmldecode["object"]["field"]["21"])); } } } } }elseif($orderDetail->shipment_service == "Xpressbees" && !empty($orderDetail->xml_ecom_order_status_response)){ if(!empty(json_decode($orderDetail->xml_ecom_order_status_response)[0]->ShipmentSummary)){ foreach(json_decode($orderDetail->xml_ecom_order_status_response)[0]->ShipmentSummary as $key=> $value){ if($value->StatusCode == "DLVD"){ $order_delivery_date = $value->PickUpDate; } } } } } @endphp @if(!empty($order_delivery_date))
{{ translate('Delivery Track')}} {{@$order_delivery_date}}
@endif