@extends('../site/layouts.app') @section('page_title', __('Order Track')) @section('content')

{{ __('Order Reference') }}

{{ $order->reference }} @guest

{!! __('For more details, :x', ['x' => '']) !!}

@endguest
{{ __('ORDER DATE') }}

{{ $order->order_date }}

{{ __('STATUS') }}

{{ optional($order->orderStatus)->name }}

{{ __('PAYMENT STATUS') }}

{{ $order->payment_status }}

{{ __('TOTAL') }}

{{ formatNumber($order->total) }}

{{ __('ORDER DETAILS') }}

{{ __('Products') }}

@foreach ($order->orderDetails as $item) @php $vendor = $item->vendor; if (is_null($item->parent_id)) { $product = $item->product; } else { $product = $item->parentProduct; } @endphp

@if (optional($product)->slug) {{ $item->product_name }} @else {{ $item->product_name }} @endif x {{ (int) $item->quantity }}

@if (!is_null(optional($vendor)->name)) {{ __('Vendor') }} : {{ $vendor->name }} @endif

{{ formatNumber($item->price * $item->quantity) }}
@endforeach
@endsection