@component('shop::emails.layouts.master')
@include ('shop::emails.layouts.logo')
{{ __('shop::app.mail.refund.heading', ['order_id' => $order->increment_id, 'refund_id' => $refund->id]) }}

{{ __('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.refund.summary') }}
@if ($order->shipping_address)
{{ __('shop::app.mail.order.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.contact') }} : {{ $order->shipping_address->phone }}
{{ __('shop::app.mail.order.shipping') }}
{{ $order->shipping_title }}
@endif
{{ __('shop::app.mail.order.billing-address') }}
{{ $order->billing_address->company_name ?? '' }}
{{ $order->billing_address->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.contact') }} : {{ $order->billing_address->phone }}
{{ __('shop::app.mail.order.payment') }}
{{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
@foreach ($refund->items as $item) @endforeach
{{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.price') }} {{ __('shop::app.customer.account.order.view.qty') }}
{{ $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 }}
{{ __('shop::app.mail.order.subtotal') }} {{ core()->formatPrice($refund->sub_total, $refund->order_currency_code) }}
@if ($order->shipping_address)
{{ __('shop::app.mail.order.shipping-handling') }} {{ core()->formatPrice($refund->shipping_amount, $refund->order_currency_code) }}
@endif @if ($refund->tax_amount > 0) @foreach (Webkul\Tax\Helpers\Tax::getTaxRatesWithAmount($refund, false) as $taxRate => $taxAmount)
{{ __('shop::app.mail.order.tax') }} {{ core()->formatPrice($refund->tax_amount, $refund->order_currency_code) }}
@endforeach @endif @if ($refund->discount_amount > 0)
{{ __('shop::app.mail.order.discount') }} {{ core()->formatPrice($refund->discount_amount, $refund->order_currency_code) }}
@endif @if ($refund->adjustment_refund > 0)
{{ __('shop::app.mail.refund.adjustment-refund') }} {{ core()->formatPrice($refund->adjustment_refund, $refund->order_currency_code) }}
@endif @if ($refund->adjustment_fee > 0)
{{ __('shop::app.mail.refund.adjustment-fee') }} {{ core()->formatPrice($refund->adjustment_fee, $refund->order_currency_code) }}
@endif
{{ __('shop::app.mail.order.grand-total') }} {{ core()->formatPrice($refund->grand_total, $refund->order_currency_code) }}

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

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

@endcomponent