inspiren-sem-tool/resources/views/mail/campaign_expiry.blade.php
brian-inspiren 221d3f8173
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
feat: sem codebase
2026-05-21 11:28:03 +08:00

78 lines
2.9 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Campaign Expiry Update</title>
</head>
<body style="margin:0; padding:20px; background:#ffffff; font-family:Arial, Helvetica, sans-serif; color:#222;">
<!-- HEADER -->
<div style="text-align:center; margin-bottom:20px;">
<img src="{{ asset('storage/assets/logo.png') }}" alt="Company Logo" style="max-width:180px;">
</div>
<!-- TITLE -->
<h2 style="color:#cc9900; font-weight:bold; margin-top:0;">
🔔 Campaign Expiry Status Update
</h2>
<!-- GREETING -->
<p>Hello <strong>{{ $data['user_name'] }}</strong>,</p>
<p><strong>Role:</strong> {{ $data['role_label'] ?? 'Assigned Person' }}</p>
<p>Below is the summary of your campaigns that require attention.</p>
<!-- ========================================================= -->
<!-- CAMPAIGNS EXPIRING SOON -->
<!-- ========================================================= -->
@if(! empty($data['to_expiry']))
<h3 style="color:#cc9900; font-weight:bold; margin-top:30px;">
⚠️ Campaigns Expiring Soon (Within 30 Days)
</h3>
<!-- PANEL -->
<div style="background:#ffeb99;border-left:4px solid #cc9900;padding:12px 15px;margin-top:10px;font-size:14px;">
These campaigns will expire soon. Please review and take necessary actions.
</div>
<!-- TABLE: EXPIRING SOON -->
<table width="100%" cellpadding="0" cellspacing="0"
style="margin-top:20px; border-collapse:collapse; font-size:14px;">
<thead>
<tr style="background:#cc9900; color:#000;">
<th style="padding:10px; border:1px solid #ddd;">Customer ID</th>
<th style="padding:10px; border:1px solid #ddd;">Customer</th>
<th style="padding:10px; border:1px solid #ddd;">Campaign</th>
<th style="padding:10px; border:1px solid #ddd;">End Date</th>
<th style="padding:10px; border:1px solid #ddd;">Days Left</th>
</tr>
</thead>
<tbody>
@foreach($data['to_expiry'] as $item)
<tr style="background:#f9f9f9;">
<td style="padding:10px; border:1px solid #ddd;">{{ $item['id'] }}</td>
<td style="padding:10px; border:1px solid #ddd;">{{ $item['title'] }}</td>
<td style="padding:10px; border:1px solid #ddd;">{{ $item['name'] }}</td>
<td style="padding:10px; border:1px solid #ddd;">{{ $item['iteration_end_date'] }}</td>
<td style="padding:10px; border:1px solid #ddd;">{{ $item['number_of_days'] }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif
<!-- FOOTER -->
<p style="margin-top:30px;">
Thanks,<br>
{{ config('app.name') }}
</p>
</body>
</html>