@php $statusIntroKey = 'shop::app.eu_withdrawal.emails.confirmation.intro_'.$withdrawal->status; $statusIntroKey = trans()->has($statusIntroKey) ? $statusIntroKey : 'shop::app.eu_withdrawal.emails.confirmation.intro'; $titleKey = 'shop::app.eu_withdrawal.emails.confirmation.title_'.$withdrawal->status; $titleKey = trans()->has($titleKey) ? $titleKey : 'shop::app.eu_withdrawal.emails.confirmation.title'; @endphp @component('shop::emails.layout')
@lang($titleKey)

@lang('shop::app.emails.dear', ['customer_name' => $withdrawal->customer_email]), 👋

@lang($statusIntroKey, [ 'order_id' => $withdrawal->order->increment_id ?? $withdrawal->order_id, ])

@lang('shop::app.eu_withdrawal.emails.confirmation.summary')
@if ($withdrawal->reason_text) @endif @if ($withdrawal->status === 'declined' && $withdrawal->declined_reason) @endif
@lang('shop::app.eu_withdrawal.emails.confirmation.reference') {{ $withdrawal->uuid }}
@lang('shop::app.eu_withdrawal.emails.confirmation.received_at') {{ $withdrawal->received_at->copy()->setTimezone('UTC')->format('d M Y, H:i') }} UTC
@lang('shop::app.eu_withdrawal.emails.confirmation.order') #{{ $withdrawal->order->increment_id ?? $withdrawal->order_id }}
@lang('shop::app.eu_withdrawal.emails.confirmation.email') {{ $withdrawal->customer_email }}
@lang('shop::app.eu_withdrawal.emails.confirmation.reason') {{ $withdrawal->reason_text }}
@lang('shop::app.eu_withdrawal.emails.confirmation.declined_reason') {{ $withdrawal->declined_reason }}

@lang('shop::app.eu_withdrawal.emails.confirmation.refund_notice')

@lang('shop::app.eu_withdrawal.emails.confirmation.footer')

@endcomponent