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

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

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

{{ __('shop::app.mail.order.cancel.summary') }}
{{ __('shop::app.mail.order.cancel.shipping-address') }}
{{ $order->shipping_address->company_name ?? '' }}
{{ $order->shipping_address->name }}
{{ $order->shipping_address->address1 }}
{{ $order->shipping_address->postcode . " " . $order->shipping_address->city }}
{{ $order->shipping_address->state }}
{{ core()->country_name($order->shipping_address->country) }}
---
{{ __('shop::app.mail.order.cancel.contact') }} : {{ $order->shipping_address->phone }}
{{ __('shop::app.mail.order.cancel.shipping') }}
{{ $order->shipping_title }}
{{ __('shop::app.mail.order.cancel.billing-address') }}
{{ $order->billing_address->company_name ?? '' }}
{{ $order->billing_address->address1 }}
{{ $order->billing_address->postcode . " " . $order->billing_address->city }}
{{ $order->billing_address->state }}
{{ core()->country_name($order->billing_address->country) }}
---
{{ __('shop::app.mail.order.cancel.contact') }} : {{ $order->billing_address->phone }}
{{ __('shop::app.mail.order.cancel.payment') }}
{{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
@foreach ($order->items as $item) @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 }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
{{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ $item->qty_canceled }}
{{ __('shop::app.mail.order.cancel.subtotal') }} {{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}
{{ __('shop::app.mail.order.cancel.shipping-handling') }} {{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}
@foreach (Webkul\Tax\Helpers\Tax::getTaxRatesWithAmount($order, false) as $taxRate => $taxAmount )
{{ __('shop::app.mail.order.cancel.tax') }} {{ $taxRate }} % {{ core()->formatPrice($taxAmount, $order->order_currency_code) }}
@endforeach @if ($order->discount_amount > 0)
{{ __('shop::app.mail.order.cancel.discount') }} {{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}
@endif
{{ __('shop::app.mail.order.cancel.grand-total') }} {{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}

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

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

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

@endcomponent