{{ __('Order tracking') }}

{{ __('Tracking your order status') }}

@if ($errors->has('order_id')) {{ $errors->first('order_id') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($order)
{{ __('Order information') }}

{{ __('Order number') }}: {{ get_order_code($order->id) }}

{{ __('Time') }}: {{ $order->created_at->format('h:m d/m/Y') }}

{{ __('Order status') }}: {{ $order->status->label() }}

{{ __('Payment method') }}: {{ $order->payment->payment_channel->label() }}

{{ __('Payment status') }}: {{ $order->payment->status->label() }}

{{ __('Customer information') }}

{{ __('Full Name') }}: {{ $order->address->name }}

{{ __('Phone') }}: {{ $order->address->phone }}

{{ __('Address') }}: {{ $order->address->address }}

{{ __('City') }}: {{ $order->address->city }}

{{ __('State') }}: {{ $order->address->state }}

{{ __('Country') }}: {{ $order->address->country_name }}

@if (EcommerceHelper::isZipCodeEnabled())

{{ __('Zip code') }}: {{ $order->address->zip_code }}

@endif

{{ __('Order detail') }}
@foreach($order->products as $key => $orderProduct) @php $product = get_products([ 'condition' => [ 'ec_products.status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED, 'ec_products.id' => $orderProduct->product_id, ], 'take' => 1, 'select' => [ 'ec_products.images', 'ec_products.name', 'ec_products.price', 'ec_products.sale_price', 'ec_products.sale_type', 'ec_products.start_date', 'ec_products.end_date', 'ec_products.sku', ], ]); @endphp @if ($product) @endif @endforeach
# {{ __('Image') }} {{ __('Product') }} {{ __('Amount') }} {{ __('Quantity') }} {{ __('Total') }}
{{ $key + 1 }} {{ $product->name }} {{ $product->name }} ({{ $product->sku }}) @if ($product->is_variation)

{{ $product->variation_attributes }}

@endif @if (!empty($orderProduct->options) && is_array($orderProduct->options)) @foreach($orderProduct->options as $option) @if (!empty($option['key']) && !empty($option['value']))

{{ $option['key'] }}: {{ $option['value'] }}

@endif @endforeach @endif
{{ format_price($orderProduct->price) }} {{ $orderProduct->qty }} {{ format_price($orderProduct->price * $orderProduct->qty) }}

{{ __('Shipping fee') }}: {{ format_price($order->shipping_amount) }}

{{ __('Total Amount') }}: {{ format_price($order->amount) }}

@elseif (request()->input('order_id') || request()->input('email'))

{{ __('Order not found!') }}

@endif