Converted all notification emails to the branded layout by routing them through a shared Blade template and swapping

the MailMessage builders to use view(). This keeps the existing copy/labels but aligns the look with resources/views/
  emails/partials/layout.blade.php. I also switched the customer add‑on receipt notification to reuse the existing
  branded view and added missing translations for the upload pipeline alert.
This commit is contained in:
Codex Agent
2025-12-23 14:03:42 +01:00
parent 20ff3044e2
commit 207725d460
35 changed files with 1247 additions and 528 deletions

View File

@@ -30,18 +30,8 @@ class AddonPurchaseReceipt extends Notification implements ShouldQueue
return (new MailMessage)
->subject(__('emails.addons.receipt.subject', ['addon' => $label]))
->greeting(__('emails.addons.receipt.greeting', ['name' => $tenant?->name ?? __('emails.package_limits.team_fallback')]))
->line(__('emails.addons.receipt.body', [
'addon' => $label,
'event' => $event?->name['de'] ?? $event?->name['en'] ?? $event?->name ?? __('emails.package_limits.event_fallback'),
'amount' => $amount ? $amount.' '.$currency : __('emails.addons.receipt.unknown_amount'),
]))
->line(__('emails.addons.receipt.summary', [
'photos' => $this->addon->extra_photos,
'guests' => $this->addon->extra_guests,
'days' => $this->addon->extra_gallery_days,
]))
->action(__('emails.addons.receipt.action'), $url)
->line(__('emails.package_limits.footer'));
->view('emails.addons.receipt', [
'addon' => $this->addon,
]);
}
}