@include('theme-views.partials._profile-aside')
@include('theme-views.partials._order-details-head',['order'=>$orderDetails])
@if ($orderDetails['order_status']!='returned' && $orderDetails['order_status']!='failed' && $orderDetails['order_status']!='canceled')
  • 1
    {{translate('Order_placed')}}
    {{date('d M, Y h:i A',strtotime($orderDetails->created_at))}}
  • 2
    {{translate('Packaging_order')}}
    @if(($orderDetails['order_status']=='processing') || ($orderDetails['order_status']=='processed') || ($orderDetails['order_status']=='out_for_delivery') || ($orderDetails['order_status']=='delivered'))
    @if(\App\CPU\order_status_history($orderDetails['id'],'processing')) {{date('d M, Y h:i A',strtotime(\App\CPU\order_status_history($orderDetails['id'],'processing')))}} @endif
    @endif
  • 3
    {{translate('Order_is_on_the_way')}}
    @if(($orderDetails['order_status']=='out_for_delivery') || ($orderDetails['order_status']=='delivered'))
    @if(\App\CPU\order_status_history($orderDetails['id'],'out_for_delivery')) {{date('d M, Y h:i A',strtotime(\App\CPU\order_status_history($orderDetails['id'],'out_for_delivery')))}} @endif
    @endif
  • 4
    {{translate('Order_Delivered')}}
    @if($orderDetails['order_status']=='delivered')
    @if(\App\CPU\order_status_history($orderDetails['id'], 'delivered')) {{date('d M, Y h:i A',strtotime(\App\CPU\order_status_history($orderDetails['id'], 'delivered')))}} @endif
    @endif
{{translate('Shipping_Address')}}
@if($orderDetails->shippingAddress) @php($shipping=$orderDetails->shippingAddress) @else @php($shipping=json_decode($orderDetails['shipping_address_data'])) @endif

@if($shipping) {{$shipping->address}},
{{$shipping->city}} , {{$shipping->zip}} @endif

{{translate('Billing_Address')}}
@if($orderDetails->billingAddress) @php($billing=$orderDetails->billingAddress) @else @php($billing=json_decode($orderDetails['billing_address_data'])) @endif

@if($billing) {{ $billing->address ?? '' }},
{{ $billing->city ?? '' }} , {{ $billing->zip ?? '' }} @else {{ $shipping->address ?? '' }},
{{ $shipping->city ?? '' }} , {{ $shipping->zip ?? '' }} @endif

@elseif($orderDetails['order_status']=='returned')
{{translate('Product_Successfully_Returned')}}
@elseif($orderDetails['order_status']=='canceled')
{{translate('order_'.$orderDetails['order_status'])}}
@else
{{translate('order_'.$orderDetails['order_status'].'_!_'.'Sorry_we_can`t_complete_your_order')}}
@endif