This commit is contained in:
baodev0
2026-09-23 15:17:18 +07:00
parent cd38c5d6d0
commit 82a71244ca
107 changed files with 3332 additions and 3306 deletions
@@ -1,218 +0,0 @@
@php
$companyName = $companyName ?? config('app.name', 'Thế Giới Số');
$companyLogo = $companyLogo ?? '';
$clientName = $clientName ?? 'Quý khách';
$productName = $productName ?? 'Cloud VPS';
$productBilling = $productBilling ?? '';
$productPrice = $productPrice ?? '';
$serviceHost = $serviceHost ?? '';
$serviceUsername = $serviceUsername ?? '';
$servicePort = $servicePort ?? '';
$servicePassword = $servicePassword ?? '';
$osName = $osName ?? '';
$serviceDueExp = $serviceDueExp ?? '';
$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="text-align: center;">
<img src="https://res.cloudinary.com/izpast9i/image/upload/v1786503590/email_banner_cloud_vps.png" alt="VPS của bạn đã sẵn sàng" width="100%">
</p>
<p style="font-size: 21px; font-weight: bold; text-align: center;">
<strong>VPS của bạn đã sẵn sàng</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> tại <strong>{{ $companyName }}</strong> đã được khởi tạo thành công. Dưới đây là thông tin truy cập:
</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;">Gói dịch vụ:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $productName }}</strong></td>
</tr>
@if($productBilling)
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Chu kỳ thanh toán:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $productBilling }}</strong></td>
</tr>
@endif
@if($productPrice)
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Giá dịch vụ:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $productPrice }} VNĐ</strong></td>
</tr>
@endif
@if($osName)
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Hệ điều hành:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $osName }}</strong></td>
</tr>
@endif
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Địa chỉ IP:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $serviceHost }}</strong></td>
</tr>
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Tài khoản đăng nhập:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $serviceUsername }}</strong></td>
</tr>
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Mật khẩu:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $servicePassword }}</strong></td>
</tr>
@if($servicePort)
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Cổng kết nối:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $servicePort }}</strong></td>
</tr>
@endif
@if($serviceDueExp)
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Hạn sử dụng:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{{ $serviceDueExp }}</strong></td>
</tr>
@endif
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Trạng thái:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong style="color: #16a34a;">Đang hoạt động ✓</strong></td>
</tr>
</tbody>
</table>
<p style="text-align: justify; color: #b45309; font-size: 13px;">
Lưu ý: Vì lý do bảo mật, mật khẩu chỉ được gửi một lần duy nhất qua email và không được lưu trữ trên hệ thống. Vui lòng lưu lại ở nơi an toàn.
</p>
<p style="text-align: justify;">
Bạn có thể đăng nhập vào cổng quản lý để theo dõi và quản lý dịch vụ của mình.
</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: #6b7280; font-size: 13px;">
Nếu bạn không yêu cầu dịch vụ này, vui lòng liên hệ ngay với chúng tôi qua <strong>{{ $supportEmail }}</strong> hoặc <strong>{{ $supportPhone }}</strong>.
</p>
<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;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: separate; border-spacing: 8px 0; width: 100%;">
<tbody>
<tr>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/premium-hosting/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Premium Hosting</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/cloud-server/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Cloud Server</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://cloudemail.vn/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Email doanh nghiệp</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/thiet-ke-website/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Thiết kế website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 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 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Tel: {{ $supportPhone }} &nbsp;-&nbsp; MST: 0318443116</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Email: <a href="mailto:{{ $supportEmail }}" style="color: #ffffff; text-decoration: none;">{{ $supportEmail }}</a></span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">
<a href="https://www.tgs.com.vn" style="color: #ffffff; text-decoration: underline;">www.TGS.com.vn</a>
&nbsp;&amp;&nbsp;
<a href="https://www.thegioiso.cloud" style="color: #ffffff; text-decoration: underline;">www.thegioiso.CLOUD</a>
&nbsp;&amp;&nbsp;
<a href="https://www.thegioiserver.com" style="color: #ffffff; text-decoration: underline;">www.thegioiSERVER.com</a>
&nbsp;&amp;&nbsp;
<a href="https://www.cloudemail.vn" style="color: #ffffff; text-decoration: underline;">www.CloudEmail.vn</a>
</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 16px 30px; text-align: center;">
<span style="font-size: 12px; line-height: 20px; color: #ffffff; font-weight: bold;">Thế Giới Số- Premium HOSTING • CLOUD • SERVER &amp; WEBSITE | 15+ năm Phụng Sự</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
@@ -1,29 +0,0 @@
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $emailSubject ?? '' }}</title>
</head>
<body>
<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>
@include('emails.partials.email-header')
<tr class="NoiDungKM">
<td style="width: 700px; padding: 25px; background-color: #ffffff;" valign="top">
{!! $content !!}
</td>
</tr>
@include('emails.partials.email-footer')
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
@@ -1,178 +0,0 @@
@php
$companyName = $companyName ?? (setting('setting.company') ?: 'Công Ty Cổ Phần Giải Pháp Công Nghệ Thế Giới Số');
$headerBannerUrl = $headerBannerUrl ?? (setting('setting.email_header_banner') ?: 'https://res.cloudinary.com/izpast9i/image/upload/v1786499308/email_header.png');
@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>
<!-- Content -->
<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="{{ $headerBannerUrl }}" alt="Thư gửi từ {{ $companyName }}" style="width: 100%; display: block; border: none;" width="700">
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!-- Body -->
<tr>
<td>
<table cellpadding="0" cellspacing="0" role="presentation" width="100%" style="width:100%;background-color:#ffffff;">
<tr>
<td style="padding:36px 40px 8px 40px;font-family:Montserrat,-apple-system,sans-serif;">
<!-- Badge -->
<table cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td style="background-color:#fff3ea;border-radius:20px;padding:6px 16px;">
<span style="font-size:12px;font-weight:700;letter-spacing:.04em;color:#f16723;text-transform:uppercase;">Đơn hàng mới</span>
</td>
</tr>
</table>
<p style="margin:18px 0 6px 0;font-size:22px;font-weight:700;color:#2b2b2b;">Có đơn đăng ký tên miền mới 🎉</p>
<p style="margin:0 0 28px 0;font-size:15px;line-height:24px;color:#767676;">
Một khách hàng vừa đăng ký tên miền tại <strong style="color:#2b2b2b;">{{company_name}}</strong>. Chi tiết đơn hàng bên dưới.
</p>
<!-- Order info card -->
<table cellpadding="0" cellspacing="0" role="presentation" width="100%" style="width:100%;background-color:#f9f9f9;border:1px solid #eeeeee;border-radius:10px;">
<tr>
<td style="padding:22px 24px;">
<table cellpadding="0" cellspacing="0" role="presentation" width="100%" style="width:100%;font-size:14px;line-height:22px;color:#4a4a4a;">
<tr>
<td style="padding:6px 0;width:38%;color:#9a9a9a;">Tên miền</td>
<td style="padding:6px 0;font-weight:700;color:#f16723;font-size:16px;">{{domain_name}}</td>
</tr>
<tr>
<td style="padding:6px 0;border-top:1px solid #ececec;color:#9a9a9a;">Mã đơn hàng</td>
<td style="padding:6px 0;border-top:1px solid #ececec;font-weight:600;">{{order_num}}</td>
</tr>
<tr>
<td style="padding:6px 0;border-top:1px solid #ececec;color:#9a9a9a;">Tổng tiền</td>
<td style="padding:6px 0;border-top:1px solid #ececec;font-weight:700;color:#2b2b2b;">{{order_total}}</td>
</tr>
<tr>
<td style="padding:6px 0;border-top:1px solid #ececec;color:#9a9a9a;">Khách hàng</td>
<td style="padding:6px 0;border-top:1px solid #ececec;font-weight:600;">{{customer_name}}</td>
</tr>
<tr>
<td style="padding:6px 0;border-top:1px solid #ececec;color:#9a9a9a;">Email</td>
<td style="padding:6px 0;border-top:1px solid #ececec;font-weight:600;">{{customer_email}}</td>
</tr>
<tr>
<td style="padding:6px 0;border-top:1px solid #ececec;color:#9a9a9a;">Thời gian</td>
<td style="padding:6px 0;border-top:1px solid #ececec;font-weight:600;">{{created_at}}</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- CTA button -->
<table cellpadding="0" cellspacing="0" role="presentation" style="margin:30px auto 8px auto;">
<tr>
<td style="border-radius:6px;background-color:#f16723;text-align:center;">
<a href="{{admin_url}}" style="display:block;font-family:Montserrat,-apple-system,sans-serif;font-size:15px;font-weight:700;letter-spacing:.02em;line-height:100%;color:#ffffff;text-decoration:none;padding:15px 40px;">XEM ĐƠN HÀNG →</a>
</td>
</tr>
</table>
<p style="margin:24px 0 0 0;font-size:12px;line-height:18px;color:#a8a8a8;border-top:1px solid #f0f0f0;padding-top:16px;">
💡 Đây là tin nhắn tự động, vui lòng không trả lời email này.
</p>
</td>
</tr>
<tr><td style="padding:0 40px;"><div style="height:24px;line-height:24px;font-size:1px;">&nbsp;</div></td></tr>
</table>
</td>
</tr>
<!-- End Body -->
<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;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: separate; border-spacing: 8px 0; width: 100%;">
<tbody>
<tr>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/premium-hosting/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Premium Hosting</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/cloud-server/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Cloud Server</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://cloudemail.vn/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Email doanh nghiệp</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/thiet-ke-website/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Thiết kế website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<strong style="font-size: 14px; line-height: 22px; color: #ffffff;">{{ $companyName }}</strong>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Địa chỉ: {{ $companyAddress }}</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Tel: {{ $supportPhone }} &nbsp;-&nbsp; MST: {{ $companyTax }}</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Email: <a href="mailto:{{ $supportEmail }}" style="color: #ffffff; text-decoration: none;">{{ $supportEmail }}</a></span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">
<a href="https://www.tgs.com.vn" style="color: #ffffff; text-decoration: underline;">www.TGS.com.vn</a>
&nbsp;&amp;&nbsp;
<a href="https://www.thegioiso.cloud" style="color: #ffffff; text-decoration: underline;">www.thegioiso.CLOUD</a>
&nbsp;&amp;&nbsp;
<a href="https://www.thegioiserver.com" style="color: #ffffff; text-decoration: underline;">www.thegioiSERVER.com</a>
&nbsp;&amp;&nbsp;
<a href="https://www.cloudemail.vn" style="color: #ffffff; text-decoration: underline;">www.CloudEmail.vn</a>
</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 16px 30px; text-align: center;">
<span style="font-size: 12px; line-height: 20px; color: #ffffff; font-weight: bold;">Thế Giới Số- Premium HOSTING • CLOUD • SERVER &amp; WEBSITE | 15+ năm Phụng Sự</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!-- End conent -->
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
@@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $emailSubject ?? '' }}</title>
</head>
<body>
{!! $body !!}
</body>
</html>
@@ -1,83 +0,0 @@
@php
$appName = $appName ?? config('app.name', 'Thế Giới Số');
$fullName = $fullName ?? 'Quý khách';
$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>
@include('emails.partials.email-header')
<tr class="NoiDungKM">
<td style="width: 700px; padding: 25px; background-color: #ffffff;" valign="top">
<p style="text-align: center;">
<img src="https://res.cloudinary.com/izpast9i/image/upload/v1786503590/email_banner_header.png" alt="Chào mừng bạn đến với Portal Thế Giới Số" width="100%">
</p>
<p style="font-size: 21px; font-weight: bold; text-align: center;">
<strong>Chào mừng Quý Khách đến với hệ thống quản trị dịch vụ của Thế Giới Số</strong>
</p>
<p style="font-weight: bold;">
<strong>Kính chào <span style="color: #f16723;">{{ $fullName }},</span></strong>
</p>
<p style="text-align: justify;">
Chào mừng Quý khách đến với <strong>{{ $appName }}</strong>. Tài khoản của Quý khách đã được khởi tạo thành công và sẵn sàng sử dụng. Chúng tôi rất trân trọng và vinh dự khi được đồng hành cùng Quý khách trên hành trình chuyển đổi số và tối ưu hóa hoạt động doanh nghiệp.
</p>
<p style="color: #f16723;"><strong>TẠI {{ strtoupper($appName) }}, QUÝ KHÁCH CÓ THỂ</strong></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;">Khám phá và đăng ký các dịch vụ Cloud VPS, Hosting, Tên miền</td>
</tr>
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Đặt hàng nhanh chóng, thanh toán an toàn</td>
</tr>
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Theo dõi lịch sử đơn hàng và quản lý dịch vụ dễ dàng</td>
</tr>
<tr bgcolor="#FFF1E6">
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">Nhận ưu đãi và khuyến mãi độc quyền dành cho khách hàng</td>
</tr>
</tbody>
</table>
<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;">
Cảm ơn Quý khách đã tin tưởng và đồng hành cùng <strong>{{ $appName }}</strong>. Nếu có bất kỳ câu hỏi nào hoặc cần hỗ trợ, xin vui lòng liên hệ với chúng tôi.
</p>
<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>
@include('emails.partials.email-footer')
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
@@ -1,145 +0,0 @@
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ ($type ?? 'invoice') === 'renewal' ? 'Thông báo gia hạn cước' : 'Thông báo hóa đơn' }}</title>
<style>
body { font-family: Arial, sans-serif; background: #f4f4f4; margin: 0; padding: 0; }
.wrapper { max-width: 640px; margin: 30px auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header { background: #f16723; padding: 24px 32px; }
.header h1 { color: #fff; margin: 0; font-size: 22px; }
.body { padding: 32px; color: #374151; }
.body p { line-height: 1.7; margin: 0 0 12px; }
.invoice-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 20px 24px; margin: 20px 0; }
.invoice-box table { width: 100%; border-collapse: collapse; }
.invoice-box td { padding: 6px 0; font-size: 14px; }
.invoice-box td:first-child { color: #6b7280; width: 160px; }
.invoice-box td:last-child { font-weight: 600; color: #111827; }
.status-paid { color: #059669; }
.status-unpaid { color: #dc2626; }
.status-cancel { color: #9ca3af; }
.attachments { margin: 20px 0; }
.attachments h3 { font-size: 15px; margin-bottom: 10px; color: #374151; }
.attachments ul { padding-left: 16px; margin: 0; }
.attachments ul li { margin-bottom: 6px; font-size: 14px; }
.attachments ul li a { color: #f16723; text-decoration: none; }
.note-box { background: #fff7ed; border-left: 4px solid #f16723; padding: 12px 16px; margin: 20px 0; font-size: 14px; }
.pay-button-wrap { text-align: center; margin: 28px 0; }
.pay-button { display: inline-block; background: #f16723; color: #ffffff !important; text-decoration: none; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.footer { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 20px 32px; text-align: center; font-size: 13px; color: #9ca3af; }
</style>
</head>
<body>
@php
$formatMailDate = static function ($value): string {
if (empty($value)) {
return '—';
}
if ($value instanceof \Carbon\CarbonInterface) {
return $value->format('d/m/Y');
}
if (is_numeric($value)) {
return date('d/m/Y', (int) $value);
}
try {
return \Carbon\Carbon::parse($value)->format('d/m/Y');
} catch (\Throwable) {
return '—';
}
};
@endphp
<div class="wrapper">
<div class="header">
<h1>{{ ($type ?? 'invoice') === 'renewal' ? 'Thông báo gia hạn cước' : 'Thông báo hóa đơn' }}</h1>
</div>
<div class="body">
<p>Xin chào <strong>{{ $customerName }}</strong>,</p>
<p>{{ $bodyMessage ?? '' }}</p>
<div class="invoice-box">
<table>
<tr>
<td>Số hóa đơn</td>
<td>#{{ $invoice->order_num }}</td>
</tr>
<tr>
<td>Ngày tạo</td>
<td>{{ $formatMailDate($invoice->date) }}</td>
</tr>
<tr>
<td>Hạn thanh toán</td>
<td>{{ $formatMailDate($invoice->due_date) }}</td>
</tr>
<tr>
<td>Tổng tiền</td>
<td>{{ number_format($invoice->total) }} VNĐ</td>
</tr>
<tr>
<td>Trạng thái</td>
<td>
@if($invoice->status == 2)
<span class="status-paid">Đã thanh toán</span>
@elseif($invoice->status == 1)
<span class="status-unpaid">Chưa thanh toán</span>
@else
<span class="status-cancel">Đã hủy</span>
@endif
</td>
</tr>
</table>
</div>
<div class="note-box">
@if(($type ?? 'invoice') === 'renewal')
File PDF hóa đơn gia hạn đã được đính kèm trong email này. Vui lòng hoàn tất thanh toán trước hạn để dịch vụ không bị gián đoạn.
@else
File PDF hóa đơn đã được đính kèm trong email này để quý khách tiện lưu trữ và đối chiếu.
@endif
</div>
@if(!empty($paymentUrl))
<div class="pay-button-wrap">
<a class="pay-button" href="{{ $paymentUrl }}" target="_blank" rel="noopener">
Thanh toán hóa đơn
</a>
</div>
<p style="margin:0 0 18px 0;word-break:break-all;font-size:13px;color:#6b7280;">
Hoặc sao chép liên kết thanh toán:
<a href="{{ $paymentUrl }}" style="color:#f16723;">{{ $paymentUrl }}</a>
</p>
@endif
@if($attachments->isNotEmpty())
<div class="attachments">
<h3>File đính kèm</h3>
<ul>
@foreach($attachments as $file)
<li>
<a href="{{ $file->url }}" target="_blank">{{ $file->filename }}</a>
</li>
@endforeach
</ul>
</div>
@endif
@if($invoice->note)
<div class="note-box">
<strong>Ghi chú:</strong> {{ $invoice->note }}
</div>
@endif
<p>Nếu bạn có bất kỳ thắc mắc nào, vui lòng liên hệ với chúng tôi để được hỗ trợ.</p>
<p>Trân trọng,<br><strong>{{ $companyName }}</strong></p>
</div>
<div class="footer">
© {{ date('Y') }} {{ $companyName }}. Đây là email tự động, vui lòng không trả lời.
</div>
</div>
</body>
</html>
@@ -1,36 +0,0 @@
@php
$companyName = $companyName ?? config('app.name', 'Thế Giới Số');
$title = $title ?? '';
$bannerUrl = $bannerUrl ?? null;
@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>
@include('emails.partials.email-header', ['companyName' => $companyName])
<tr class="NoiDungKM">
<td style="width: 700px; padding: 25px; background-color: #ffffff;" valign="top">
@if($bannerUrl)
<p style="text-align: center;">
<img src="{{ $bannerUrl }}" alt="{{ $title }}" width="100%">
</p>
@endif
@if($title)
<p style="font-size: 21px; font-weight: bold; text-align: center;">
<strong>{{ $title }}</strong>
</p>
@endif
{!! $body !!}
</td>
</tr>
@include('emails.partials.email-footer', ['companyName' => $companyName])
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
@@ -1,15 +0,0 @@
@if(($attachments ?? collect())->isNotEmpty())
<p style="color: #f16723;"><strong>FILE ĐÍNH KÈM</strong></p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed;">
<tbody>
@foreach($attachments as $file)
<tr>
<td style="padding: 4px 0; font-size: 14px;">
<a href="{{ $file->url ?? '#' }}" style="color: #f16723; text-decoration: none;">{{ $file->filename }}</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@@ -1,9 +0,0 @@
@if(!empty($content))
<p style="text-align: justify;">
@if(strip_tags($content) === $content)
{{ $content }}
@else
{!! $content !!}
@endif
</p>
@endif
@@ -1,23 +0,0 @@
@php
$fieldMap = [
'name' => 'Tên khách hàng',
'email' => 'Email',
'address' => 'Địa chỉ',
];
$rows = collect($fields ?? array_keys($fieldMap))->filter(fn($key) => isset($fieldMap[$key]))->values();
$propertyMap = ['name' => 'fullname', 'email' => 'email', 'address' => 'address'];
@endphp
@if($customer)
<p style="color: #f16723;"><strong>THÔNG TIN KHÁCH HÀNG</strong></p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed; border: 1px solid #e8e8e8; border-right: 0;">
<tbody>
@foreach($rows as $i => $key)
<tr @if($i % 2 === 1) bgcolor="#FFF1E6" @endif>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; width: 200px;">{{ $fieldMap[$key] }}:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">{{ $customer->{$propertyMap[$key]} ?? '—' }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@@ -1,75 +0,0 @@
@php
$supportEmail = $supportEmail ?? (setting('setting.support') ?: 'support@tgs.com.vn');
$supportPhone = $supportPhone ?? (setting('setting.hotline') ?: '(028) 7309. 7379');
$companyName = $companyName ?? (setting('setting.company') ?: 'CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ');
$companyAddress = $companyAddress ?? (setting('setting.address') ?: '128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh');
$companyTax = $companyTax ?? (setting('setting.tax') ?: '0318443116');
@endphp
<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;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: separate; border-spacing: 8px 0; width: 100%;">
<tbody>
<tr>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/premium-hosting/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Premium Hosting</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/cloud-server/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Cloud Server</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://cloudemail.vn/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Email doanh nghiệp</a>
</td>
<td width="25%" style="border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; color: #ffffff; text-align: center; background-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);">
<a href="https://tgs.com.vn/thiet-ke-website/" target="_blank" rel="noopener" style="color: #ffffff; text-decoration: none;">Thiết kế website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<strong style="font-size: 14px; line-height: 22px; color: #ffffff;">{{ $companyName }}</strong>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Địa chỉ: {{ $companyAddress }}</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Tel: {{ $supportPhone }} &nbsp;-&nbsp; MST: {{ $companyTax }}</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">Email: <a href="mailto:{{ $supportEmail }}" style="color: #ffffff; text-decoration: none;">{{ $supportEmail }}</a></span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 0 30px; text-align: center;">
<span style="font-size: 12px; line-height: 18px; color: #ffffff;">
<a href="https://www.tgs.com.vn" style="color: #ffffff; text-decoration: underline;">www.TGS.com.vn</a>
&nbsp;&amp;&nbsp;
<a href="https://www.thegioiso.cloud" style="color: #ffffff; text-decoration: underline;">www.thegioiso.CLOUD</a>
&nbsp;&amp;&nbsp;
<a href="https://www.thegioiserver.com" style="color: #ffffff; text-decoration: underline;">www.thegioiSERVER.com</a>
&nbsp;&amp;&nbsp;
<a href="https://www.cloudemail.vn" style="color: #ffffff; text-decoration: underline;">www.CloudEmail.vn</a>
</span>
</td>
</tr>
<tr>
<td style="padding: 6px 30px 16px 30px; text-align: center;">
<span style="font-size: 12px; line-height: 20px; color: #ffffff; font-weight: bold;">Thế Giới Số- Premium HOSTING • CLOUD • SERVER &amp; WEBSITE | 15+ năm Phụng Sự</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
@@ -1,19 +0,0 @@
@php
$companyName = $companyName ?? (setting('setting.company') ?: 'Công Ty Cổ Phần Giải Pháp Công Nghệ Thế Giới Số');
$headerBannerUrl = $headerBannerUrl ?? (setting('setting.email_header_banner') ?: 'https://res.cloudinary.com/izpast9i/image/upload/v1786499308/email_header.png');
@endphp
<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="{{ $headerBannerUrl }}" alt="Thư gửi từ {{ $companyName }}" style="width: 100%; display: block; border: none;" width="700">
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
@@ -1 +0,0 @@
<p style="text-align: justify;">Xin chào <strong>{{ $name ?? 'Quý khách' }}</strong>,</p>
@@ -1,33 +0,0 @@
@php
$rowFor = function (string $field) use ($invoice) {
return match ($field) {
'invoice_number' => ['Số hóa đơn', '#' . ($invoice->invoice_number ?? '—')],
'created_at' => ['Ngày tạo', $invoice->created_at ? $invoice->created_at->format('d/m/Y') : '—'],
'due_date' => ['Hạn thanh toán', $invoice->due_date ? date('d/m/Y', strtotime($invoice->due_date)) : '—'],
'total' => ['Tổng tiền', number_format((float) $invoice->total) . ' VNĐ'],
'sub_total' => ['Tiền dịch vụ', number_format((float) $invoice->sub_total) . ' VNĐ'],
'tax' => ['Thuế', number_format((float) $invoice->tax) . ' VNĐ'],
'status' => ['Trạng thái', match ((int) $invoice->status) {
2 => '<span style="color:#059669">Đã thanh toán</span>',
1 => '<span style="color:#dc2626">Chưa thanh toán</span>',
default => '<span style="color:#9ca3af">Đã hủy</span>',
}],
'payment_method' => ['Phương thức TT', $invoice->payment_method ?? '—'],
default => [$field, '—'],
};
};
$fields = $fields ?? ['invoice_number', 'created_at', 'due_date', 'total', 'status'];
@endphp
<p style="color: #f16723;"><strong>THÔNG TIN HÓA ĐƠN</strong></p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed; border: 1px solid #e8e8e8; border-right: 0;">
<tbody>
@foreach($fields as $i => $field)
@php [$label, $value] = $rowFor($field); @endphp
<tr @if($i % 2 === 1) bgcolor="#FFF1E6" @endif>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; width: 200px;">{{ $label }}:</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;"><strong>{!! $value !!}</strong></td>
</tr>
@endforeach
</tbody>
</table>
@@ -1,30 +0,0 @@
@php
$cycleMap = [
'monthly' => 'Hàng tháng', 'quarterly' => 'Hàng quý',
'semi_annually' => '6 tháng', 'annually' => 'Hàng năm', 'biennially' => '2 năm',
];
@endphp
@if(($items ?? collect())->isNotEmpty())
<p style="color: #f16723;"><strong>CHI TIẾT SẢN PHẨM</strong></p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed; border: 1px solid #e8e8e8; border-right: 0; border-bottom: 0;">
<thead>
<tr bgcolor="#FFF1E6">
<th style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; text-align: left; font-size: 12px; color: #6b7280;">Sản phẩm</th>
<th style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; text-align: left; font-size: 12px; color: #6b7280;">Server</th>
<th style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; text-align: left; font-size: 12px; color: #6b7280;">Chu kỳ</th>
<th style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; text-align: right; font-size: 12px; color: #6b7280;">Giá</th>
</tr>
</thead>
<tbody>
@foreach($items as $item)
<tr>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;"><strong>{{ $item->product?->name ?? '—' }}</strong></td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;">{{ $item->server_name ?? '—' }}</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;">{{ $cycleMap[$item->billing_cycle] ?? ($item->billing_cycle ?? '—') }}</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; text-align: right;"><strong>{{ number_format((float) $item->price) }} VNĐ</strong></td>
</tr>
@endforeach
</tbody>
</table>
@endif
@@ -1,32 +0,0 @@
@php
$fieldMap = [
'product_name' => 'Tên dịch vụ',
'product_billing' => 'Chu kỳ thanh toán',
'product_price' => 'Giá dịch vụ',
'service_due_exp' => 'Ngày hết hạn',
];
$iconMap = [
'product_billing' => 'buy-date.png',
'service_due_exp' => 'due-date.png',
];
$rows = collect($fields ?? array_keys($fieldMap))->filter(fn($key) => isset($fieldMap[$key]))->values();
@endphp
<p style="color: #f16723;"><strong>THÔNG TIN DỊCH VỤ</strong></p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed; border: 1px solid #e8e8e8; border-right: 0;">
<tbody>
@foreach($rows as $i => $key)
<tr @if($i % 2 === 1) bgcolor="#FFF1E6" @endif>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; width: 200px;">
@if(isset($iconMap[$key]))
<img src="{{ asset('images/emails/' . $iconMap[$key]) }}" alt="" width="16" height="17" style="vertical-align: text-bottom; margin-right: 4px;">
@endif
{{ $fieldMap[$key] }}:
</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">
<strong>{{ $key === 'product_price' ? ($data[$key] ?? '0') . ' VNĐ' : ($data[$key] ?? '—') }}</strong>
</td>
</tr>
@endforeach
</tbody>
</table>
@@ -1 +0,0 @@
<p style="text-align: justify;">Trân trọng,<br><strong>{{ $companyName ?? config('app.name', 'Thế Giới Số') }}</strong></p>
@@ -1,38 +0,0 @@
@php
$fieldMap = [
'service_host' => 'Địa chỉ IP',
'service_username' => 'Username',
'service_port' => 'Port',
'service_password' => 'Mật khẩu',
'os_name' => 'Hệ điều hành',
];
$iconMap = [
'service_host' => 'internet.png',
'service_username' => 'admin.png',
'service_password' => 'password.png',
];
$rows = collect($fields ?? array_keys($fieldMap))->filter(fn($key) => isset($fieldMap[$key]))->values();
@endphp
<p style="color: #f16723;"><strong>THÔNG TIN TRUY CẬP VPS</strong></p>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; table-layout: fixed; border: 1px solid #e8e8e8; border-right: 0;">
<tbody>
@foreach($rows as $i => $key)
<tr @if($i % 2 === 1) bgcolor="#FFF1E6" @endif>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8; width: 200px;">
@if(isset($iconMap[$key]))
<img src="{{ asset('images/emails/' . $iconMap[$key]) }}" alt="" width="16" height="17" style="vertical-align: text-bottom; margin-right: 4px;">
@endif
{{ $fieldMap[$key] }}:
</td>
<td style="padding: 7px 11px; border-right: 1px solid #e8e8e8;">
@if($key === 'service_password')
<code style="background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 13px;">{{ $data[$key] ?? '—' }}</code>
@else
<strong>{{ $data[$key] ?? '—' }}</strong>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>