From 5662ac945437343e500ef4e359b5a5ca2a0e26d3 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 3 Jul 2026 17:30:21 +0000 Subject: [PATCH] Use PNG Ladill Events logo in all transactional email templates. Load ladillevents-logo-email.png via asset() on a light header and extend the branded layout to join, registration, and programme emails. Co-authored-by: Cursor --- .../event-join-programme.blade.php | 47 ++++++++++++----- .../mail/notifications/event-join.blade.php | 45 ++++++++++++---- .../event-registration-confirmed.blade.php | 51 ++++++++++++++----- .../views/mail/notifications/layout.blade.php | 6 +-- .../mail/partials/brand-header.blade.php | 4 +- 5 files changed, 109 insertions(+), 44 deletions(-) diff --git a/resources/views/mail/notifications/event-join-programme.blade.php b/resources/views/mail/notifications/event-join-programme.blade.php index ad7e555..c7634b2 100644 --- a/resources/views/mail/notifications/event-join-programme.blade.php +++ b/resources/views/mail/notifications/event-join-programme.blade.php @@ -1,13 +1,34 @@ - - - -@if($attendeeName) -

Hi {{ $attendeeName }},

-@endif -

Here is everything you need for {{ $eventName }}:

- - - +@extends('mail.notifications.layout') + +@section('email-header') + @include('mail.partials.brand-header', ['brand' => 'events']) +@endsection + +@section('email-footer') + @include('mail.partials.brand-footer', ['brand' => 'events']) +@endsection + +@section('content') + @if($attendeeName) + + @endif + +

{{ $eventName }}

+ + + + + + + +
+ + +
+@endsection diff --git a/resources/views/mail/notifications/event-join.blade.php b/resources/views/mail/notifications/event-join.blade.php index 46d0647..b08493d 100644 --- a/resources/views/mail/notifications/event-join.blade.php +++ b/resources/views/mail/notifications/event-join.blade.php @@ -1,10 +1,35 @@ - - - -@if($attendeeName) -

Hi {{ $attendeeName }},

-@endif -

Your virtual session for {{ $eventName }} is ready.

-

Join the session

- - +@extends('mail.notifications.layout') + +@section('email-header') + @include('mail.partials.brand-header', ['brand' => 'events']) +@endsection + +@section('email-footer') + @include('mail.partials.brand-footer', ['brand' => 'events']) +@endsection + +@section('content') + @if($attendeeName) + + @endif + +

Join {{ $eventName }}

+ + + + + + + +
+ +
+ + +@endsection diff --git a/resources/views/mail/notifications/event-registration-confirmed.blade.php b/resources/views/mail/notifications/event-registration-confirmed.blade.php index 3411223..0cb1d13 100644 --- a/resources/views/mail/notifications/event-registration-confirmed.blade.php +++ b/resources/views/mail/notifications/event-registration-confirmed.blade.php @@ -1,13 +1,38 @@ - - - -@if($attendeeName) -

Hi {{ $attendeeName }},

-@endif -

You are registered for {{ $eventName }}.

-

Your badge code: {{ $badgeCode }}

-@if(!empty($joinUrl)) -

Join the virtual session

-@endif - - +@extends('mail.notifications.layout') + +@section('email-header') + @include('mail.partials.brand-header', ['brand' => 'events']) +@endsection + +@section('email-footer') + @include('mail.partials.brand-footer', ['brand' => 'events']) +@endsection + +@section('content') + @if($attendeeName) + + @endif + +

Registration confirmed

+ + + + + + @if(! empty($joinUrl)) + + + + +
+ +
+ @endif +@endsection diff --git a/resources/views/mail/notifications/layout.blade.php b/resources/views/mail/notifications/layout.blade.php index 3662c00..9f0b0a8 100644 --- a/resources/views/mail/notifications/layout.blade.php +++ b/resources/views/mail/notifications/layout.blade.php @@ -38,14 +38,10 @@ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); } .email-header { - background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); + background-color: #f8fafc; padding: 32px 40px; text-align: center; } - .email-logo { - max-height: 28px; - width: auto; - } .email-logo-transfer { max-height: 24px; width: auto; diff --git a/resources/views/mail/partials/brand-header.blade.php b/resources/views/mail/partials/brand-header.blade.php index f6bce5a..cef6b4c 100644 --- a/resources/views/mail/partials/brand-header.blade.php +++ b/resources/views/mail/partials/brand-header.blade.php @@ -1,7 +1,5 @@ @php $brandKey = $brand ?? 'ladill'; $brandConfig = config("mail_brands.brands.{$brandKey}", config('mail_brands.brands.ladill')); - $assetBase = rtrim((string) ($brandConfig['asset_url'] ?? config('app.url')), '/'); - $logoClass = trim((string) ($brandConfig['logo_class'] ?? 'email-logo')); @endphp -{{ $brandConfig['name'] }} +{{ $brandConfig['name'] }}