Shipment Track Result

Order Tracking:{{ $trackingResponceData['TrackingNumber'] }} Detail View
Service: {{ $trackingResponceData['Service']}}
Status: @php $laststepKey = array_key_first($trackingResponceData['activity'][0]) @endphp {{$trackingResponceData['activity'][0][$laststepKey]['Status']['description']}}
@if(array_key_exists('D',$trackingResponceData['activity'])) DeliveryDate: {{ date('d-M-Y', strtotime($trackingResponceData['DeliveryDate']))}} @elseif(isset($trackingResponceData['ScheduledDeliveryDate'])) Schedule Delivery Date: {{ date('d-M-Y',strtotime($trackingResponceData['ScheduledDeliveryDate']))}} @else @if(isset($trackingResponceData['DeliveryDateUnavailable'])) {{$trackingResponceData['DeliveryDateUnavailable']['Description']}} @else @if($laststepKey != 'MV') Expected Date: {{ date('d-M-Y',strtotime($trackingResponceData['activity'][0][$laststepKey]['Date']))}} @endif @endif @endif
    @php $liveStatus = ''; $active_codes = []; @endphp @foreach(array_reverse($trackingResponceData['activity']) as $key => $value) @php $code = key($value); if( $code != ''){ $active_codes[] = $code; } $currentStatuClass= ''; @endphp @if($liveStatus != $code) @if($code === 'M') @php $currentStatuClass = 'icon-label'; @endphp @elseif($code === 'P') @php $currentStatuClass = 'icon-shipped'; @endphp @elseif($code === 'VK') @php $currentStatuClass = 'icon-cleared'; @endphp @elseif($code === 'I' || $code === 'OT' || $code === 'DS') @php $currentStatuClass = 'icon-cart'; @endphp @elseif($code === '01') @php $currentStatuClass = 'icon-address'; @endphp @elseif($code === 'MV') @php $currentStatuClass = 'icon-cancel-1'; @endphp @elseif($code == '45' || $code === 'HE' || $code === 'UY') @php $currentStatuClass = 'icon-hand-paper'; @endphp @else @php $currentStatuClass = 'icon-deliever'; @endphp @endif
  • {{Config::get('status.status.track_status.'.$code.'.disaplyValue')}}
  • @endif @php $liveStatus = $code; @endphp @endforeach @php $active_codes = array_unique($active_codes); @endphp @if(in_array('P',$active_codes) === false)
  • {{Config::get('status.status.track_status.P.disaplyValue')}}
  • @endif @if(in_array('D',$active_codes) === false)
  • {{Config::get('status.status.track_status.D.disaplyValue')}}
  • @endif