@extends(Theme::getThemeNamespace() . '::views.ecommerce.customers.master') @section('content')

{{ __('Order information') }}


@php $logo = theme_option('logo_in_the_checkout_page') ?: theme_option('logo'); @endphp @if ($logo) {{ theme_option('site_title') }}
@endif {{ setting('contact_address') }}
{{ __('Order number') }}: {{ $order->code }} {{ __('Time') }}: {{ $order->created_at->translatedFormat('h:m d/m/Y') }}

{{ __('Order information') }}
{{ __('Order status') }}: {{ $order->status->label() }}  {{ __('Payment method') }}: {{ $order->payment->payment_channel->label() }}   {{ __('Payment status') }}: {{ $order->payment->status->label() }}  {{ __('Amount') }}: {{ format_price($order->amount) }}   @if (EcommerceHelper::isTaxEnabled()) {{ __('Tax') }}: {{ format_price($order->tax_amount) }}   @endif {{ __('Discount') }}: {{ format_price($order->discount_amount) }} @if ($order->discount_amount) @if ($order->coupon_code) ({!! __('Coupon code: ":code"', ['code' => Html::tag('strong', $order->coupon_code)->toHtml()]) !!}) @elseif ($order->discount_description) ({{ $order->discount_description }}) @endif @endif   {{ __('Shipping fee') }}: {{ format_price($order->shipping_amount) }}   @if ($order->description) {{ __('Note') }}: {{ $order->description }}   @endif

{{ __('Customer') }}
{{ __('Full Name') }}: {{ $order->address->name }}   {{ __('Phone') }}: {{ $order->address->phone }}  
{{ __('Address') }}: {{ $order->address->address }}  
{{ __('City') }}: {{ $order->address->city_name }}   {{ __('State') }}: {{ $order->address->state_name }}   {{ __('Country') }}: {{ $order->address->country_name }}  

{{ __('Products') }}
@foreach($order->products as $key => $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') }}
{{ $key + 1 }} {{ $orderProduct->product_name }} {{ $orderProduct->product_name }} @if ($product && $product->sku) ({{ $product->sku }}) @endif @if ($product && $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) }}
@if ($order->shipment)
{{ __('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
@if ($order->isInvoiceAvailable()) {{ __('Print invoice') }}  {{ __('Download invoice') }} @endif @if ($order->canBeCanceled())  {{ __('Cancel order') }} @endif @if ($order->canBeReturned()) {{ __('Return Product(s)') }} @endif
@endsection