Files
portal-api/resources/views/emails/customer/service-renewal-reminder.blade.php
T
baodev0 c917e3bf5e feat: Add IT Support catalog and related migrations, seeders, and email templates
- Created migration to add 'group_label' to 'product_type_fields' table.
- Implemented ItSupportCatalogSeeder to populate IT Support features and tiers.
- Added ProductCategorySeeder for initial product categories.
- Developed ProductMockupSeeder for mockup products in various categories.
- Introduced ProductTypeFieldSeeder to define fields for different product types.
- Created email templates for VPS service information and service renewal reminders.
2026-08-26 16:19:38 +07:00

114 lines
7.8 KiB
PHP

@php
$clientName = $clientName ?? 'Quý khách';
$productName = $productName ?? 'Dịch vụ';
$serverName = $serverName ?? '';
$expiresAt = $expiresAt ?? 'N/A';
$price = $price ?? null;
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 20px;" align="center" valign="top">
<table style="padding-top: 20px; padding-bottom: 20px; border-collapse: collapse; background-color: #ffffff; width: 700px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr class="Header">
<td style="width: 700px;" valign="top">
<table align="center" width="700" bgcolor="#ffffff" style="border-collapse: collapse; width: 700px; max-width: 100%; text-align: center; background-color: #ffffff; border-top: 5px solid #f16723;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0;">
<a href="https://tgs.com.vn" style="display: block;" target="_blank" rel="noopener">
<img src="https://res.cloudinary.com/izpast9i/image/upload/v1786499308/email_header.png" alt="Thư gửi từ Công Ty Cổ Phần Giải Pháp Công Nghệ Thế Giới Số" style="width: 100%; display: block; border: none;" width="700">
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="NoiDungKM">
<td style="width: 700px; padding: 25px; background-color: #ffffff;" valign="top">
<p style="font-size: 21px; font-weight: bold; text-align: center;">
<strong>Nhắc gia hạn dịch vụ</strong>
</p>
<p style="font-weight: bold;">
<strong>Kính chào <span style="color: #f16723;">{{ $clientName }},</span></strong>
</p>
<p style="text-align: justify;">
Dịch vụ <strong>{{ $productName }}</strong>{{ $serverName ? " ({$serverName})" : '' }} của bạn sắp đến hạn thanh toán. Vui lòng gia hạn sớm để tránh gián đoạn dịch vụ.
</p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed; border: 1px solid #e8e8e8; border-right: 0;">
<tbody>
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; width: 200px;">Dịch vụ:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $productName }}</strong></td>
</tr>
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Ngày hết hạn:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong style="color: #dc2626;">{{ $expiresAt }}</strong></td>
</tr>
@if($price)
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Số tiền gia hạn:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $price }} VNĐ</strong></td>
</tr>
@endif
</tbody>
</table>
<p style="text-align: justify;">
Bạn có thể đăng nhập vào cổng quản lý để gia hạn dịch vụ.
</p>
<table cellspacing="0" cellpadding="0" style="margin: 16px auto 16px auto;">
<tbody>
<tr>
<td align="center" style="background-color: #f16723; padding: 10px 20px; border-radius: 4px;">
<a href="{{ $loginUrl }}" target="_blank" rel="noopener" style="text-decoration: none;"><strong style="color: #ffffff;">Đăng nhập ngay</strong></a>
</td>
</tr>
</tbody>
</table>
<p style="text-align: justify; color: #666666; font-size: 13px;">
Email này được gửi tự động. Vui lòng không trả lời email này.
</p>
<p style="text-align: justify;">---<br>
Hotline: {{ $supportPhone }}<br>
Email: {{ $supportEmail }}
</p>
</td>
</tr>
<tr class="Footer">
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="700" align="center" background="https://res.cloudinary.com/izpast9i/image/upload/v1786500298/email_footer.png" bgcolor="#F16723" style="border-collapse: collapse; width: 700px; background-image: url(&quot;https://res.cloudinary.com/izpast9i/image/upload/v1786500298/email_footer.png&quot;); background-size: cover; background-position: center; background-repeat: no-repeat;">
<tbody>
<tr>
<td style="padding: 40px 30px 20px 30px; text-align: center;">
<strong style="font-size: 14px; line-height: 22px; color: #ffffff;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 16px 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Tel: {{ $supportPhone }} &nbsp;-&nbsp; Email: <a href="mailto:{{ $supportEmail }}" style="color: #ffffff; text-decoration: none;">{{ $supportEmail }}</a></span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>