@component('admin::emails.layout')
@lang('admin::app.emails.orders.canceled.title')

@lang('admin::app.emails.dear', ['admin_name' => core()->getAdminEmailDetails()['name']]),👋

{!! __('admin::app.emails.orders.canceled.greeting', [ 'order_id' => '#' . $order->increment_id . '', 'created_at' => core()->formatDate($order->created_at, 'Y-m-d H:i:s') ]) !!}

@lang('admin::app.emails.orders.canceled.summary')
@if ($order->shipping_address)
@lang('admin::app.emails.orders.shipping-address')
{{ $order->shipping_address->company_name ?? '' }}
{{ $order->shipping_address->name }}
{{ $order->shipping_address->address }}
{{ $order->shipping_address->postcode . " " . $order->shipping_address->city }}
{{ $order->shipping_address->state }}
---
@lang('admin::app.emails.orders.contact') : {{ $order->billing_address->phone }}
@lang('admin::app.emails.orders.shipping')
{{ $order->shipping_title }}
@endif @if ($order->billing_address)
@lang('admin::app.emails.orders.billing-address')
{{ $order->billing_address->company_name ?? '' }}
{{ $order->billing_address->name }}
{{ $order->billing_address->address }}
{{ $order->billing_address->postcode . " " . $order->billing_address->city }}
{{ $order->billing_address->state }}
---
@lang('admin::app.emails.orders.contact') : {{ $order->billing_address->phone }}
@lang('admin::app.emails.orders.payment')
{{ core()->getConfigData('sales.payment_methods.' . $order->payment->method . '.title') }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($order->payment->method); @endphp @if (! empty($additionalDetails))
{{ $additionalDetails['title'] }}
{{ $additionalDetails['value'] }}
@endif
@endif
@foreach (['sku', 'name', 'price', 'qty'] as $item) @endforeach @foreach ($order->items as $item) @endforeach
@lang('admin::app.emails.orders.' . $item)
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
@if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {{ core()->formatBasePrice($item->base_price_incl_tax) }} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both') {{ core()->formatBasePrice($item->base_price_incl_tax) }} @lang('admin::app.emails.orders.excl-tax') {{ core()->formatBasePrice($item->base_price) }} @else {{ core()->formatBasePrice($item->base_price) }} @endif {{ $item->qty_canceled }}
@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')
@lang('admin::app.emails.orders.subtotal') {{ core()->formatBasePrice($order->base_sub_total_incl_tax) }}
@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')
@lang('admin::app.emails.orders.subtotal-excl-tax') {{ core()->formatBasePrice($order->base_sub_total) }}
@lang('admin::app.emails.orders.subtotal-incl-tax') {{ core()->formatBasePrice($order->base_sub_total_incl_tax) }}
@else
@lang('admin::app.emails.orders.subtotal') {{ core()->formatBasePrice($order->base_sub_total) }}
@endif @if ($order->shipping_address) @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')
@lang('admin::app.emails.orders.shipping-handling') {{ core()->formatBasePrice($order->base_shipping_amount_incl_tax) }}
@elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')
@lang('admin::app.emails.orders.shipping-handling-excl-tax') {{ core()->formatBasePrice($order->base_shipping_amount) }}
@lang('admin::app.emails.orders.shipping-handling-incl-tax') {{ core()->formatBasePrice($order->base_shipping_amount_incl_tax) }}
@else
@lang('admin::app.emails.orders.shipping-handling') {{ core()->formatBasePrice($order->base_shipping_amount) }}
@endif @endif
@lang('admin::app.emails.orders.tax') {{ core()->formatBasePrice($order->base_tax_amount) }}
@if ($order->discount_amount > 0)
@lang('admin::app.emails.orders.discount') {{ core()->formatBasePrice($order->base_discount_amount) }}
@endif
@lang('admin::app.emails.orders.grand-total') {{ core()->formatBasePrice($order->base_grand_total) }}
@endcomponent