@component('shop::emails.layouts.master')
{{ __('shop::app.mail.order.heading') }}

{{ __('shop::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }},

{!! __('shop::app.mail.order.greeting', [ 'order_id' => '#' . $order->increment_id . '', 'created_at' => $order->created_at ]) !!}

{{ __('shop::app.mail.order.summary') }}
{{ __('shop::app.mail.order.shipping-address') }}
{{ $order->shipping_address->name }}
{{ $order->shipping_address->address1 }}, {{ $order->shipping_address->state }}
{{ core()->country_name($order->shipping_address->country) }} {{ $order->shipping_address->postcode }}
---
{{ __('shop::app.mail.order.contact') }} : {{ $order->shipping_address->phone }}
{{ __('shop::app.mail.order.shipping') }}
{{ $order->shipping_title }}
{{ __('shop::app.mail.order.billing-address') }}
{{ $order->billing_address->name }}
{{ $order->billing_address->address1 }}, {{ $order->billing_address->state }}
{{ core()->country_name($order->billing_address->country) }} {{ $order->billing_address->postcode }}
---
{{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
{{ __('shop::app.mail.order.payment') }}
{{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
@foreach ($order->items as $item) @if ($html = $item->getOptionDetailHtml())
@endif @endforeach
{{ __('shop::app.customer.account.order.view.SKU') }} {{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.price') }} {{ __('shop::app.customer.account.order.view.qty') }}
{{ $item->child ? $item->child->sku : $item->sku }} {{ $item->name }} {{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ $item->qty_ordered }}
{{ __('shop::app.mail.order.subtotal') }} {{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}
{{ __('shop::app.mail.order.shipping-handling') }} {{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}
{{ __('shop::app.mail.order.tax') }} {{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }}
@if ($order->discount_amount > 0)
{{ __('shop::app.mail.order.discount') }} {{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}
@endif
{{ __('shop::app.mail.order.grand-total') }} {{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}

{{ __('shop::app.mail.order.final-summary') }}

{!! __('shop::app.mail.order.help', [ 'support_email' => '' . config('mail.from.address'). '' ]) !!}

{{ __('shop::app.mail.order.thanks') }}

@endcomponent