@extends('emails.partials.layout') @php /** @var \App\Models\EventPackageAddon $addon */ $event = $addon->event; $tenant = $event?->tenant; $label = $addon->metadata['label'] ?? $addon->addon_key; $amount = $addon->amount ? number_format((float) $addon->amount, 2).' '.($addon->currency ?? 'EUR') : __('emails.addons.receipt.unknown_amount'); $summary = []; if ($addon->extra_photos > 0) { $summary[] = __('emails.addons.receipt.summary.photos', ['count' => number_format($addon->extra_photos)]); } if ($addon->extra_guests > 0) { $summary[] = __('emails.addons.receipt.summary.guests', ['count' => number_format($addon->extra_guests)]); } if ($addon->extra_gallery_days > 0) { $summary[] = __('emails.addons.receipt.summary.gallery', ['count' => $addon->extra_gallery_days]); } $eventName = $event?->name['de'] ?? $event?->name['en'] ?? $event?->name ?? __('emails.package_limits.event_fallback'); $ctaUrl = url('/tenant/events/'.($event?->slug ?? '')); @endphp @section('title', __('emails.addons.receipt.subject', ['addon' => $label])) @section('preheader', __('emails.addons.receipt.subtitle', ['addon' => $label])) @section('hero_title', __('emails.addons.receipt.greeting', ['name' => $tenant?->name ?? __('emails.package_limits.team_fallback')])) @section('hero_subtitle', __('emails.addons.receipt.subtitle', ['addon' => $label])) @section('content')

{{ __('emails.addons.receipt.body', [ 'addon' => $label, 'event' => $eventName, 'amount' => $amount, ]) }}

@if (! empty($summary))

{{ __('emails.addons.receipt.summary_title') }}

@foreach ($summary as $line) @endforeach
{{ $line }}
@endif @endsection @section('cta') {{ __('emails.addons.receipt.action') }} @endsection @section('footer') {!! __('emails.brand.footer') !!} @endsection