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:
@@ -1,47 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ __('emails.abandoned_checkout.subject_' . $timing, ['package' => $packageName]) }}</title>
|
||||
<style>
|
||||
.cta-button {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
padding: 12px 24px;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
display: inline-block;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.benefits {
|
||||
background-color: #f8f9fa;
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
.benefit-item {
|
||||
margin: 5px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ __('emails.abandoned_checkout.greeting', ['name' => $user->fullName]) }}</h1>
|
||||
@extends('emails.partials.layout')
|
||||
|
||||
<p>{{ __('emails.abandoned_checkout.body_' . $timing, ['package' => $packageName]) }}</p>
|
||||
@section('title', __('emails.abandoned_checkout.subject_' . $timing, ['package' => $packageName]))
|
||||
@section('preheader', __('emails.abandoned_checkout.subtitle', ['package' => $packageName]))
|
||||
@section('hero_title', __('emails.abandoned_checkout.greeting', ['name' => $user->fullName]))
|
||||
@section('hero_subtitle', __('emails.abandoned_checkout.subtitle', ['package' => $packageName]))
|
||||
|
||||
<a href="{{ $resumeUrl }}" class="cta-button">
|
||||
@section('content')
|
||||
<p style="margin:0 0 16px; font-size:15px; color:#1f2937;">
|
||||
{{ __('emails.abandoned_checkout.body_' . $timing, ['package' => $packageName]) }}
|
||||
</p>
|
||||
<div style="background-color:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:16px; margin-bottom:16px;">
|
||||
<p style="margin:0 0 6px; font-size:13px; text-transform:uppercase; letter-spacing:0.08em; color:#64748b;">
|
||||
{{ __('emails.abandoned_checkout.cta_hint_title') }}
|
||||
</p>
|
||||
<p style="margin:0; font-size:14px; color:#0f172a;">
|
||||
{{ __('emails.abandoned_checkout.cta_hint_body') }}
|
||||
</p>
|
||||
</div>
|
||||
<p style="margin:0 0 16px; font-size:14px; color:#6b7280;">
|
||||
{{ __('emails.abandoned_checkout.cta_link', ['url' => $resumeUrl]) }}
|
||||
</p>
|
||||
<h3 style="margin:0 0 10px; font-size:16px;">{{ __('emails.abandoned_checkout.benefits_title') }}</h3>
|
||||
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td style="padding:6px 0; font-size:14px; color:#0f172a;">✓ {{ __('emails.abandoned_checkout.benefit1') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:6px 0; font-size:14px; color:#0f172a;">✓ {{ __('emails.abandoned_checkout.benefit2') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:6px 0; font-size:14px; color:#0f172a;">✓ {{ __('emails.abandoned_checkout.benefit3') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:6px 0; font-size:14px; color:#0f172a;">✓ {{ __('emails.abandoned_checkout.benefit4') }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endsection
|
||||
|
||||
@section('cta')
|
||||
<a href="{{ $resumeUrl }}" style="display:inline-block; background-color:#111827; color:#ffffff; text-decoration:none; padding:12px 20px; border-radius:999px; font-weight:600; font-size:14px;">
|
||||
{{ __('emails.abandoned_checkout.cta_button') }}
|
||||
</a>
|
||||
@endsection
|
||||
|
||||
<p>{{ __('emails.abandoned_checkout.cta_link', ['url' => $resumeUrl]) }}</p>
|
||||
|
||||
<div class="benefits">
|
||||
<h3>{{ __('emails.abandoned_checkout.benefits_title') }}</h3>
|
||||
<div class="benefit-item">✓ {{ __('emails.abandoned_checkout.benefit1') }}</div>
|
||||
<div class="benefit-item">✓ {{ __('emails.abandoned_checkout.benefit2') }}</div>
|
||||
<div class="benefit-item">✓ {{ __('emails.abandoned_checkout.benefit3') }}</div>
|
||||
<div class="benefit-item">✓ {{ __('emails.abandoned_checkout.benefit4') }}</div>
|
||||
</div>
|
||||
|
||||
<p>{!! __('emails.abandoned_checkout.footer') !!}</p>
|
||||
</body>
|
||||
</html>
|
||||
@section('footer')
|
||||
{!! __('emails.abandoned_checkout.footer') !!}
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user