128 lines
5.1 KiB
PHP
128 lines
5.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="vi">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Thông báo đơn hàng mới</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: #1e40af; padding: 24px 32px; }
|
|
.header h1 { color: #fff; margin: 0; font-size: 20px; }
|
|
.header span { color: #bfdbfe; font-size: 13px; }
|
|
.body { padding: 32px; color: #374151; }
|
|
.body p { line-height: 1.7; margin: 0 0 12px; }
|
|
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; margin: 24px 0 10px; }
|
|
.info-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 16px 20px; }
|
|
.info-box table { width: 100%; border-collapse: collapse; }
|
|
.info-box td { padding: 5px 0; font-size: 14px; vertical-align: top; }
|
|
.info-box td:first-child { color: #6b7280; width: 160px; white-space: nowrap; }
|
|
.info-box td:last-child { font-weight: 600; color: #111827; }
|
|
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
|
|
.badge-blue { background: #dbeafe; color: #1e40af; }
|
|
.badge-green { background: #dcfce7; color: #15803d; }
|
|
.divider { border: none; border-top: 1px solid #e5e7eb; margin: 24px 0; }
|
|
.footer { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 16px 32px; text-align: center; font-size: 12px; color: #9ca3af; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<div class="header">
|
|
<h1>📦 Đơn hàng mới đã được thanh toán</h1>
|
|
<span>Thông báo tự động từ hệ thống quản lý</span>
|
|
</div>
|
|
|
|
<div class="body">
|
|
<p>Một đơn hàng mới vừa được khách hàng tạo và thanh toán thành công trên hệ thống.</p>
|
|
|
|
<div class="section-title">Thông tin khách hàng</div>
|
|
<div class="info-box">
|
|
<table>
|
|
<tr>
|
|
<td>Tên khách hàng</td>
|
|
<td>{{ $customer_name ?? 'N/A' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Email</td>
|
|
<td>{{ $customer_email ?? 'N/A' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>IP đặt hàng</td>
|
|
<td>{{ $client_ip ?? 'N/A' }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="section-title">Thông tin đơn hàng</div>
|
|
<div class="info-box">
|
|
<table>
|
|
<tr>
|
|
<td>Mã đơn hàng</td>
|
|
<td>#{{ $order_num ?? 'N/A' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Sản phẩm</td>
|
|
<td>{{ $product_name ?? 'N/A' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Loại dịch vụ</td>
|
|
<td><span class="badge badge-blue">{{ $product_type ?? 'N/A' }}</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Chu kỳ thanh toán</td>
|
|
<td>{{ $billing_cycle ?? 'N/A' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Tổng tiền</td>
|
|
<td><strong>{{ number_format($total ?? 0, 0, ',', '.') }} VNĐ</strong></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Trạng thái</td>
|
|
<td><span class="badge badge-green">Đã thanh toán</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Thời gian</td>
|
|
<td>{{ $created_at ?? now()->format('d/m/Y H:i:s') }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
@if(!empty($username) || !empty($password) || !empty($ip))
|
|
<div class="section-title">Thông tin dịch vụ</div>
|
|
<div class="info-box">
|
|
<table>
|
|
@if(!empty($username))
|
|
<tr>
|
|
<td>Username</td>
|
|
<td>{{ $username }}</td>
|
|
</tr>
|
|
@endif
|
|
@if(!empty($password))
|
|
<tr>
|
|
<td>Password</td>
|
|
<td>{{ $password }}</td>
|
|
</tr>
|
|
@endif
|
|
@if(!empty($ip))
|
|
<tr>
|
|
<td>IP Address</td>
|
|
<td>{{ $ip }}</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
</div>
|
|
@endif
|
|
|
|
<hr class="divider">
|
|
<p style="font-size:13px;color:#6b7280;">
|
|
Email này được gửi tự động bởi hệ thống. Vui lòng không trả lời email này.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
© {{ date('Y') }} {{ $company_name ?? 'Portal Admin' }} — Hệ thống quản lý dịch vụ
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|