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

@@ -0,0 +1,40 @@
@extends('emails.partials.layout')
@section('title', $title)
@section('preheader', $preheader ?? '')
@section('hero_title', $heroTitle)
@isset($heroSubtitle)
@section('hero_subtitle', $heroSubtitle)
@endisset
@section('content')
@isset($intro)
<p style="margin:0 0 12px; font-size:15px; color:#1f2937;">
{{ $intro }}
</p>
@endisset
@if (! empty($lines))
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
@foreach ($lines as $line)
<tr>
<td style="padding:6px 0; font-size:14px; color:#0f172a;">{{ $line }}</td>
</tr>
@endforeach
</table>
@endif
@endsection
@section('cta')
@if (! empty($cta))
@foreach ($cta as $action)
<a href="{{ $action['url'] }}" style="display:inline-block; background-color:#111827; color:#ffffff; text-decoration:none; padding:12px 20px; border-radius:999px; font-weight:600; font-size:14px; margin-right:12px; margin-bottom:12px;">
{{ $action['label'] }}
</a>
@endforeach
@endif
@endsection
@section('footer')
{!! $footer ?? __('emails.brand.footer') !!}
@endsection