{{-- Newsletter Email - Atomic Composable v2.0 (Luxury Edition) Used for newsletter campaigns sent via admin dashboard Variables: - $subject: Email subject line - $content: Main newsletter content (can include HTML) - $previewText: Preview text for email clients (optional) - $campaignName: Internal campaign identifier (optional) - $unsubscribeUrl: Unsubscribe link (required by CAN-SPAM) - $signupUrl: Newsletter signup URL (optional) Note: All design tokens auto-injected via View Composer --}} @component('emails.layouts.base', [ 'title' => $subject ?? 'Global Gala Newsletter', 'previewText' => $previewText ?? 'Stay updated with our latest events and exclusive offers' ]) {{-- Newsletter Header --}} @component('emails.organisms.section', ['background' => 'white']) @component('emails.atoms.h1') {{ $subject ?? 'Global Gala Newsletter' }} @endcomponent @component('emails.atoms.text') {{ $previewText ?? 'Your monthly dose of unforgettable experiences and exclusive event updates.' }} @endcomponent @endcomponent @include('emails.atoms.spacer', ['height' => '24px']) {{-- Main Newsletter Content --}} @component('emails.organisms.card') {{-- Render the dynamic content --}} {!! $content !!} @endcomponent @include('emails.atoms.spacer', ['height' => '40px']) {{-- Newsletter Signup CTA (if signup URL provided) --}} @if(isset($signupUrl) && $signupUrl) @component('emails.organisms.section', ['background' => 'ash']) @component('emails.atoms.h2') Share the Experience @endcomponent @component('emails.atoms.text') Know someone who'd love to discover amazing events? Forward this email or share our newsletter signup link! @endcomponent @include('emails.atoms.spacer', ['height' => '20px'])
| @component('emails.molecules.button', [ 'href' => $signupUrl, 'variant' => 'ghost-primary', 'size' => 'medium' ]) Subscribe to Newsletter @endcomponent |
|
@component('emails.atoms.small')
Managing Your Subscription You're receiving this because you subscribed to our newsletter. @if(isset($unsubscribeUrl) && $unsubscribeUrl) Unsubscribe from future emails @endif @endcomponent |