@extends('../site/layouts.app') @section('page_title', __('Order Track')) @section('content')
{{ __('Order Reference') }}
{{ $order->reference }} @guest{!! __('For more details, :x', ['x' => '' . __('please login to your account.') . '']) !!}
@endguest{{ $order->order_date }}
{{ optional($order->orderStatus)->name }}
{{ $order->payment_status }}
{{ 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