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

@@ -27,13 +27,25 @@ class InactiveTenantDeletionWarning extends Notification implements ShouldQueue
{
$locale = $this->tenant->user?->preferred_locale ?? app()->getLocale();
$formattedDate = $this->plannedDeletion->copy()->locale($locale)->translatedFormat('d. F Y');
$subject = __('profile.retention.warning_subject', [], $locale);
return (new MailMessage)
->locale($locale)
->subject(__('profile.retention.warning_subject', [], $locale))
->line(__('profile.retention.line1', ['name' => $this->tenant->name], $locale))
->line(__('profile.retention.line2', ['date' => $formattedDate], $locale))
->line(__('profile.retention.line3', [], $locale))
->action(__('profile.retention.action', [], $locale), url('/login'));
->subject($subject)
->view('emails.notifications.basic', [
'title' => $subject,
'preheader' => __('profile.retention.line1', ['name' => $this->tenant->name], $locale),
'heroTitle' => $subject,
'lines' => [
__('profile.retention.line1', ['name' => $this->tenant->name], $locale),
__('profile.retention.line2', ['date' => $formattedDate], $locale),
__('profile.retention.line3', [], $locale),
],
'cta' => [
[
'label' => __('profile.retention.action', [], $locale),
'url' => url('/login'),
],
],
]);
}
}