@extends('front.layouts.master') @section('title', isset($title) ? $title : 'Home') @section('description', isset($description) ? $description : '') @section('keywords', isset($keywords) ? $keywords : '') @section('content')
@include('front.layouts.include.user_profile_sidebar', ['menu' => 'order'])

{{ __('Track Order') }}

@if ($order->Order_Status == ORDER_PENDING || $order->Order_Status == ORDER_PROCESSING) @include('front.layouts.include.tracking.processing') @elseif($order->Order_Status == ORDER_SHIPPED) @include('front.layouts.include.tracking.shipped') @elseif($order->Order_Status == ORDER_DELIVERED) @include('front.layouts.include.tracking.delivered') @elseif($order->Order_Status == ORDER_CANCELLED) @include('front.layouts.include.tracking.canceled') @elseif($order->Order_Status == ORDER_RETURN) @include('front.layouts.include.tracking.returned') @elseif($order->Order_Status == ORDER_DELIVERED_FAILED) @include('front.layouts.include.tracking.delivery_failed') @endif
@foreach ($order->order_details as $detail) @endforeach
{{ __('Title') }} {{ __('Item') }} {{ __('Price') }} {{ __('Qty') }} {{ __('Subtotal') }}
{{ $detail->name_translate }} order img JOD {{ $detail->Quantity > 0 ? $detail->Total_Price / $detail->Quantity : 0 }} {{ $detail->quantity_beforeEdit }} {{ $detail->Quantity }} {{ $detail->totalPrice_beforeEdit }} JOD {{ $detail->Total_Price }}
{{ __('Subtotal') }} JOD {{ $order->Sub_Total }}
{{__('Delivery Charge')}} {{ $order->Delivery_Charge }} JOD
{{__('User Discount')}} % {{ $order->user_discount }}
{{__('Discount')}} % {{ $order->Coupon_Amount }}
{{__('Grand Total')}} {{ $order->Grand_Total }} JOD
@endsection