@if ($order)
! $order->address->name, 'col-md-6' => $order->address->name])>

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

{{ __('Time') }}: {{ $order->created_at->translatedFormat('d M Y H:i:s') }}

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

@if($order->cancellation_reason)

{{ __('Cancellation Reason') }}: {{ $order->cancellation_reason_message }}

@endif @if (is_plugin_active('payment') && $order->payment->id)

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

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

@endif @if ($order->description)

{{ __('Note') }}: {{ $order->description }}

@endif
@if ($order->address->name)

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

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

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

@endif

{{ __('Products') }}
@foreach ($order->products as $orderProduct) @php $product = get_products([ 'condition' => [ 'ec_products.id' => $orderProduct->product_id, ], 'take' => 1, 'select' => ['ec_products.id', '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', 'ec_products.is_variation', 'ec_products.status', 'ec_products.order', 'ec_products.created_at'], ]); @endphp @endforeach
# {{ __('Image') }} {{ __('Product') }} {{ __('Amount') }} {{ __('Quantity') }} {{ __('Total') }}
{{ $loop->iteration }} {{ $orderProduct->product_name }} @if ($product && $product->original_product?->url) {!! BaseHelper::clean($orderProduct->product_name) !!} @else {!! BaseHelper::clean($orderProduct->product_name) !!} @endif @if ($sku = Arr::get($orderProduct->options, 'sku')) ({{ $sku }}) @endif @if ($attributes = Arr::get($orderProduct->options, 'attributes'))

{{ $attributes }}

@elseif ($product && $product->is_variation)

@if ($attributes = get_product_attributes($product->getKey())) @foreach ($attributes as $attribute) {{ $attribute->attribute_set_title }}: {{ $attribute->title }} @if (!$loop->last) , @endif @endforeach @endif

@endif @include( EcommerceHelper::viewPath('includes.cart-item-options-extras'), ['options' => $orderProduct->options] ) @if (!empty($orderProduct->product_options) && is_array($orderProduct->product_options)) {!! render_product_options_html($orderProduct->product_options, $orderProduct->price) !!} @endif @if (is_plugin_active('marketplace') && ($product = $orderProduct->product) && $product->original_product->store->id)

{{ __('Sold by') }}: {{ $product->original_product->store->name }}

@endif
{{ $orderProduct->amount_format }} {{ $orderProduct->qty }} {{ $orderProduct->total_format }}
@if (EcommerceHelper::isTaxEnabled() && (float)$order->tax_amount)

{{ __('Tax') }}: {{ format_price($order->tax_amount) }}

@endif @if ((float)$order->discount_amount)

{{ __('Discount') }}: {{ format_price($order->discount_amount) }} @if ($order->discount_amount) @if ($order->coupon_code) ({!! BaseHelper::html(__('Coupon code: ":code"', ['code' => Html::tag('strong', $order->coupon_code)->toHtml()])) !!}) @elseif ($order->discount_description) ({{ $order->discount_description }}) @endif @endif

@endif @if ((float)$order->shipping_amount && EcommerceHelper::countDigitalProducts($order->products) != $order->products->count())

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

@endif

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

@if ($order->shipment->id)
{{ __('Shipping Information') }}:

{{ __('Shipping Status') }}: {!! BaseHelper::clean($order->shipment->status->toHtml()) !!}

@if ($order->shipment->shipping_company_name)

{{ __('Shipping Company Name') }}: {{ $order->shipment->shipping_company_name }}

@endif @if ($order->shipment->tracking_id)

{{ __('Tracking ID') }}: {{ $order->shipment->tracking_id }}

@endif @if ($order->shipment->tracking_link)

{{ __('Tracking Link') }}: {{ $order->shipment->tracking_link }}

@endif @if ($order->shipment->note)

{{ __('Delivery Notes') }}: {{ $order->shipment->note }}

@endif @if ($order->shipment->estimate_date_shipped)

{{ __('Estimate Date Shipped') }}: {{ $order->shipment->estimate_date_shipped }}

@endif @if ($order->shipment->date_shipped)

{{ __('Date Shipped') }}: {{ $order->shipment->date_shipped }}

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