@extends('emails.partials.layout') @php $withdrawalUrl = app()->getLocale() === 'de' ? url('/de/widerrufsbelehrung') : url('/en/withdrawal'); $subject = $forRecipient ? __('emails.gift_voucher.recipient.subject', ['amount' => $amount, 'currency' => $currency]) : __('emails.gift_voucher.purchaser.subject', ['amount' => $amount, 'currency' => $currency]); $greeting = $forRecipient ? __('emails.gift_voucher.recipient.greeting') : __('emails.gift_voucher.purchaser.greeting'); $subtitle = $forRecipient ? __('emails.gift_voucher.recipient.subtitle') : __('emails.gift_voucher.purchaser.subtitle'); $body = $forRecipient ? __('emails.gift_voucher.recipient.body', [ 'amount' => $amount, 'currency' => $currency, 'purchaser' => $voucher->purchaser_email, ]) : __('emails.gift_voucher.purchaser.body', [ 'amount' => $amount, 'currency' => $currency, 'recipient' => $voucher->recipient_email ?: __('emails.gift_voucher.purchaser.recipient_fallback'), ]); @endphp @section('title', $subject) @section('preheader', $subtitle) @section('hero_title', $greeting) @section('hero_subtitle', $subtitle) @section('content')
{!! $body !!}
@if ($voucher->message){{ $voucher->message }}
{{ __('emails.gift_voucher.code_label') }}
{{ __('emails.gift_voucher.redeem_hint') }}
@isset($printUrl) @endisset{{ __('emails.gift_voucher.expiry', ['date' => optional($voucher->expires_at)->toFormattedDateString()]) }}
{!! __('emails.gift_voucher.withdrawal', ['url' => $withdrawalUrl]) !!}
@endsection @section('footer') {!! __('emails.gift_voucher.footer') !!} @endsection