129 lines
7.0 KiB
PHP
129 lines
7.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="vi">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Đặt hàng thành công</title>
|
|
<style>
|
|
* { box-sizing: border-box; }
|
|
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f4f8; margin: 0; padding: 0; }
|
|
.wrapper { max-width: 620px; margin: 30px auto; }
|
|
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
|
|
.header { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); padding: 36px 40px; text-align: center; }
|
|
.header .icon { font-size: 48px; margin-bottom: 12px; }
|
|
.header h1 { color: #fff; margin: 0 0 6px; font-size: 24px; font-weight: 700; }
|
|
.header p { color: #bbf7d0; margin: 0; font-size: 14px; }
|
|
.body { padding: 36px 40px; }
|
|
.greeting { font-size: 16px; color: #374151; margin-bottom: 20px; line-height: 1.6; }
|
|
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; margin: 28px 0 10px; }
|
|
.info-table { width: 100%; border-collapse: collapse; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
|
|
.info-table td { padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #f3f4f6; }
|
|
.info-table tr:last-child td { border-bottom: none; }
|
|
.info-table td:first-child { color: #6b7280; width: 45%; }
|
|
.info-table td:last-child { font-weight: 600; color: #111827; }
|
|
.vm-box { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 10px; padding: 20px 24px; margin-top: 12px; }
|
|
.vm-box .vm-row { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #dcfce7; }
|
|
.vm-box .vm-row:last-child { border-bottom: none; }
|
|
.vm-box .vm-label { color: #15803d; font-size: 13px; width: 120px; flex-shrink: 0; }
|
|
.vm-box .vm-value { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; color: #111827; word-break: break-all; }
|
|
.addon-table { width: 100%; border-collapse: collapse; margin-top: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
|
|
.addon-table th { padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; background: #f1f5f9; text-align: left; border-bottom: 1px solid #e2e8f0; }
|
|
.addon-table td { padding: 9px 14px; font-size: 13px; color: #374151; border-bottom: 1px solid #f1f5f9; }
|
|
.addon-table tr:last-child td { border-bottom: none; }
|
|
.addon-table .td-num { font-weight: 600; color: #111827; text-align: right; }
|
|
.amount-box { background: #fffbeb; border: 1.5px solid #fbbf24; border-radius: 8px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
|
|
.amount-box span { font-size: 13px; color: #92400e; }
|
|
.amount-box strong { font-size: 20px; font-weight: 800; color: #b45309; }
|
|
.notice { background: #eff6ff; border-left: 3px solid #3b82f6; padding: 12px 16px; border-radius: 0 6px 6px 0; font-size: 13px; color: #1e40af; margin-top: 24px; line-height: 1.6; }
|
|
.footer { text-align: center; padding: 20px 40px; border-top: 1px solid #f3f4f6; font-size: 12px; color: #9ca3af; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<div class="card">
|
|
<div class="header">
|
|
<div class="icon">✅</div>
|
|
<h1>Đặt hàng thành công!</h1>
|
|
<p>Đơn hàng #{{ $orderNum ?? 'N/A' }} đã được xác nhận và thanh toán</p>
|
|
</div>
|
|
|
|
<div class="body">
|
|
<p class="greeting">
|
|
Xin chào <strong>{{ $customerName ?? 'Quý khách' }}</strong>,<br>
|
|
Cảm ơn bạn đã tin tưởng sử dụng dịch vụ của chúng tôi. Đơn hàng của bạn đã được xác nhận và đang trong quá trình khởi tạo.
|
|
</p>
|
|
|
|
<div class="section-label">Thông tin đơn hàng</div>
|
|
<table class="info-table">
|
|
<tr><td>Mã đơn hàng</td><td>#{{ $orderNum ?? 'N/A' }}</td></tr>
|
|
<tr><td>Tổng thanh toán</td><td>{{ number_format($amount ?? 0, 0, ',', '.') }} VNĐ</td></tr>
|
|
</table>
|
|
|
|
@if(!empty($vmResults))
|
|
<div class="section-label">Thông tin dịch vụ Cloud VPS</div>
|
|
@foreach($vmResults as $vm)
|
|
<div class="vm-box">
|
|
@if(!empty($vm['ip']))
|
|
<div class="vm-row">
|
|
<span class="vm-label">🌐 IP Address</span>
|
|
<span class="vm-value">{{ $vm['ip'] }}</span>
|
|
</div>
|
|
@endif
|
|
@if(!empty($vm['username']))
|
|
<div class="vm-row">
|
|
<span class="vm-label">👤 Username</span>
|
|
<span class="vm-value">{{ $vm['username'] }}</span>
|
|
</div>
|
|
@endif
|
|
@if(!empty($vm['password']))
|
|
<div class="vm-row">
|
|
<span class="vm-label">🔑 Password</span>
|
|
<span class="vm-value">{{ $vm['password'] }}</span>
|
|
</div>
|
|
@endif
|
|
@if(!empty($vm['os']))
|
|
<div class="vm-row">
|
|
<span class="vm-label">💿 Hệ điều hành</span>
|
|
<span class="vm-value">{{ $vm['os'] }}</span>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
@if(!empty($addonsSummary))
|
|
<div class="section-label">Gói nâng cấp cấu hình (Addon)</div>
|
|
<table class="addon-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Dịch vụ addon</th>
|
|
<th style="text-align:right">Số lượng</th>
|
|
<th style="text-align:right">Thành tiền</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($addonsSummary as $addon)
|
|
<tr>
|
|
<td>{{ $addon['name'] }}</td>
|
|
<td class="td-num">{{ $addon['qty'] }}</td>
|
|
<td class="td-num">{{ number_format($addon['subtotal'], 0, ',', '.') }} VNĐ</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endif
|
|
|
|
<div class="notice">
|
|
⚠️ Vui lòng <strong>đổi mật khẩu ngay</strong> sau khi đăng nhập lần đầu để bảo mật tài khoản.<br>
|
|
Nếu cần hỗ trợ, liên hệ: <strong>{{ $supportEmail ?? '' }}</strong> hoặc <strong>{{ $supportPhone ?? '' }}</strong>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
Email này được gửi tự động. Vui lòng không trả lời email này.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|