@lang('shop::app.emails.orders.refunded.title')
@lang('shop::app.emails.dear', ['customer_name' => $refund->order->customer_full_name]),👋
@lang('shop::app.emails.orders.refunded.greeting', [
'invoice_id' => $refund->increment_id,
'order_id' => '#' . $refund->order->increment_id . '',
'created_at' => core()->formatDate($refund->order->created_at, 'Y-m-d H:i:s')
])
@if ($refund->order->shipping_address)
@lang('shop::app.emails.orders.shipping-address')
{{ $refund->order->shipping_address->company_name ?? '' }}
{{ $refund->order->shipping_address->name }}
{{ $refund->order->shipping_address->address }}
{{ $refund->order->shipping_address->postcode . " " . $refund->order->shipping_address->city }}
{{ $refund->order->shipping_address->state }}
---
@lang('shop::app.emails.orders.contact') : {{ $refund->order->billing_address->phone }}
@lang('shop::app.emails.orders.shipping')
{{ $refund->order->shipping_title }}
@endif
@if ($refund->order->billing_address)
@lang('shop::app.emails.orders.billing-address')
{{ $refund->order->billing_address->company_name ?? '' }}
{{ $refund->order->billing_address->name }}
{{ $refund->order->billing_address->address }}
{{ $refund->order->billing_address->postcode . " " . $refund->order->billing_address->city }}
{{ $refund->order->billing_address->state }}
---
@lang('shop::app.emails.orders.contact') : {{ $refund->order->billing_address->phone }}
@lang('shop::app.emails.orders.payment')
{{ core()->getConfigData('sales.payment_methods.' . $refund->order->payment->method . '.title') }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($refund->order->payment->method); @endphp
@if (! empty($additionalDetails))
{{ $additionalDetails['title'] }}
{{ $additionalDetails['value'] }}
@endif
@endif
@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')
@lang('shop::app.emails.orders.subtotal')
{{ core()->formatPrice($refund->sub_total, $refund->order_currency_code_incl_tax) }}
@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')
@lang('shop::app.emails.orders.subtotal-excl-tax')
{{ core()->formatPrice($refund->sub_total, $refund->order_currency_code) }}
@lang('shop::app.emails.orders.subtotal-incl-tax')
{{ core()->formatPrice($refund->sub_total, $refund->order_currency_code_incl_tax) }}
@else
@lang('shop::app.emails.orders.subtotal')
{{ core()->formatPrice($refund->sub_total, $refund->order_currency_code) }}
@endif
@if ($refund->order->shipping_address)
@if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')
@lang('shop::app.emails.orders.shipping-handling')
{{ core()->formatPrice($refund->shipping_amount_incl_tax, $refund->order_currency_code) }}
@elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')
@lang('shop::app.emails.orders.shipping-handling-excl-tax')
{{ core()->formatPrice($refund->shipping_amount, $refund->order_currency_code) }}
@lang('shop::app.emails.orders.shipping-handling-incl-tax')
{{ core()->formatPrice($refund->shipping_amount_incl_tax, $refund->order_currency_code) }}
@else
@lang('shop::app.emails.orders.shipping-handling')
{{ core()->formatPrice($refund->shipping_amount, $refund->order_currency_code) }}
@endif
@endif
@lang('shop::app.emails.orders.tax')
{{ core()->formatPrice($refund->tax_amount, $refund->order_currency_code) }}
@if ($refund->discount_amount > 0)
@lang('shop::app.emails.orders.discount')
{{ core()->formatPrice($refund->discount_amount, $refund->order_currency_code) }}
@endif
@lang('shop::app.emails.orders.grand-total')
{{ core()->formatPrice($refund->grand_total, $refund->order_currency_code) }}
@endcomponent