update
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
<div class="card">
|
||||
<div class="header">
|
||||
<div class="icon">🎉</div>
|
||||
<h1>Chào mừng bạn đến với {{ $appName }}</h1>
|
||||
<p>Tài khoản của bạn đã được tạo thành công</p>
|
||||
<h1>Chào mừng Quý Khách đến với Thế Giới Số Portal {{ $appName }}</h1>
|
||||
<p>Tài khoản của Quý khách đã được tạo thành công</p>
|
||||
</div>
|
||||
|
||||
<div class="body">
|
||||
@@ -34,11 +34,11 @@
|
||||
Xin chào <strong>{{ $fullName }}</strong>,
|
||||
</p>
|
||||
<p style="margin:0 0 18px 0;">
|
||||
Chào mừng bạn đến với <strong>{{ $appName }}</strong>!
|
||||
Tài khoản của bạn đã được khởi tạo thành công và sẵn sàng sử dụng.
|
||||
Chào mừng Quý Khách đến với Thế Giới Số Portal <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.
|
||||
</p>
|
||||
<p style="margin:0 0 12px 0;">
|
||||
Tại <span>{{ $appName }}</span>, bạn có thể:
|
||||
Tại <span>{{ $appName }}</span>, Quý khách có thể:
|
||||
</p>
|
||||
<ul class="feature-list">
|
||||
<li>Khám phá và đăng ký các dịch vụ Cloud VPS, Hosting, Tên miền</li>
|
||||
@@ -52,8 +52,8 @@
|
||||
</div>
|
||||
|
||||
<p style="margin:0;color:#6b7280;">
|
||||
Cảm ơn bạn đã tin tưởng và đồng hành cùng <span>{{ $appName }}</span>.
|
||||
Chúc bạn có những trải nghiệm tuyệt vời!
|
||||
Cảm ơn Quý khách đã tin tưởng và đồng hành cùng <span>{{ $appName }}</span>.
|
||||
Chúc Quý khách có những trải nghiệm tuyệt vời!
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Thông báo hóa đơn</title>
|
||||
<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: #1a56db; padding: 24px 32px; }
|
||||
.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; }
|
||||
@@ -23,20 +23,43 @@
|
||||
.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: #1a56db; text-decoration: none; }
|
||||
.note-box { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 12px 16px; margin: 20px 0; 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>Thông báo hóa đơn</h1>
|
||||
<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>{{ $message }}</p>
|
||||
<p>{{ $bodyMessage ?? '' }}</p>
|
||||
|
||||
<div class="invoice-box">
|
||||
<table>
|
||||
@@ -46,11 +69,11 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ngày tạo</td>
|
||||
<td>{{ $invoice->date ? date('d/m/Y', $invoice->date) : '—' }}</td>
|
||||
<td>{{ $formatMailDate($invoice->date) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hạn thanh toán</td>
|
||||
<td>{{ $invoice->due_date ? date('d/m/Y', $invoice->due_date) : '—' }}</td>
|
||||
<td>{{ $formatMailDate($invoice->due_date) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tổng tiền</td>
|
||||
@@ -71,6 +94,26 @@
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user