{{--
Welcome Newsletter Template
Introduces new subscribers to Global Gala
Required variables:
- $subject: Email subject
- $preview_text: Preview text
- $unsubscribe_url: Unsubscribe link
- $headline: Main headline
- $body: Body copy
- $cta_text: Button text
- $cta_url: Button URL
Optional variables:
- $hero_image: Hero image URL
--}}
@component('emails.newsletters.base', [
'subject' => $subject,
'preview_text' => $preview_text,
'unsubscribe_url' => $unsubscribe_url ?? '{{UNSUBSCRIBE_URL}}',
'email' => $email ?? null
])
{{-- Hero Image (optional) --}}
@if(!empty($hero_image))
@endif
{{-- Main Headline --}}
@component('emails.atoms.h1', ['colors' => $colors ?? []])
{{ $headline }}
@endcomponent
@include('emails.atoms.spacer', ['height' => '20px'])
{{-- Body Copy --}}
@component('emails.atoms.text', ['colors' => $colors ?? []])
{!! nl2br(e($body)) !!}
@endcomponent
@include('emails.atoms.spacer', ['height' => '32px'])
{{-- CTA Button --}}
|
@component('emails.molecules.button', [
'href' => $cta_url,
'variant' => 'primary',
'size' => 'large',
'colors' => $colors ?? []
])
{{ $cta_text }}
@endcomponent
|
@endcomponent