@extends('plugins/ecommerce::orders.master') @section('title') {{ __('Order successfully. Order number :id', ['id' => get_order_code($order->id)]) }} @stop @section('content')
@if (theme_option('logo'))
@endif

{{ __('Your order is successfully placed') }}

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

{{ __('Thank you for purchasing our products!') }}

{{ format_price($order->amount) }}

@foreach ($order->products as $orderProduct) @php $product = $products->find($orderProduct->product_id); @endphp @if ($product)
{{ $product->name }} ({{ $product->sku }}) {{ $orderProduct->qty }}

{{ $product->name }}

@if ($product->variationProductAttributes->count()) @foreach ($product->variationProductAttributes as $attribute) @if (!$loop->last) {{ $attribute->attribute_set_title }}: {{ $attribute->title }}, @else {{ $attribute->attribute_set_title }}: {{ $attribute->title }} @endif @endforeach @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

{{ $orderProduct->price }}

@endif @endforeach

{{ __('Subtotal') }}

{{ format_price($order->sub_total) }}


{{ __('Shipping fee') }}@if ($order->shipping_amount == 0 && $order->discount_amount == 0 && $order->coupon_code) ({{ __('Using coupon code') }} {{ $order->coupon_code }})@endif:

{{ format_price($order->shipping_amount) }}

@if ($order->discount_amount !== null)

{{ __('Discount') }}:

{{ format_price($order->discount_amount) }}

@endif @if (EcommerceHelper::isTaxEnabled())

{{ __('Tax') }}:

{{ format_price($order->tax_amount) }}

@endif

{{ __('Total') }}:

{{ format_price($order->amount) }}


{{ __('Customer information') }}

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

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

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

{{ __('Address') }}: {{ $order->address->address }}, {{ $order->address->city }}, {{ $order->address->state }}, {{ $order->address->country_name }}@if (EcommerceHelper::isZipCodeEnabled()), {{ $order->address->zip_code }} @endif

{{ __('Shipping method') }}: {{ $order->shipping_method_name }}

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

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


@foreach ($order->products as $orderProduct) @php $product = $products->find($orderProduct->product_id); @endphp @if ($product)
{{ $product->name }} ({{ $product->sku }}) {{ $orderProduct->qty }}

{{ $product->name }}

@if ($product->variationProductAttributes->count()) @foreach ($product->variationProductAttributes as $attribute) @if (!$loop->last) {{ $attribute->attribute_set_title }}: {{ $attribute->title }}, @else {{ $attribute->attribute_set_title }}: {{ $attribute->title }} @endif @endforeach @endif

{{ format_price($orderProduct->price) }}

@endif @endforeach

{{ __('Sub amount') }}:

{{ format_price( $order->sub_total) }}


{{ __('Shipping fee') }}@if ($order->shipping_amount == 0 && $order->discount_amount == 0 && $order->coupon_code) ({{ __('Using coupon code') }} {{ $order->coupon_code }}) @endif:

{{ format_price( $order->shipping_amount) }}

@if ($order->discount_amount !== null)

{{ __('Discount') }}:

{{ format_price($order->discount_amount) }}

@endif @if (EcommerceHelper::isTaxEnabled())

{{ __('Tax') }}:

{{ format_price($order->tax_amount) }}

@endif

{{ __('Total amount') }}:

{{ format_price($order->amount) }}

@stop