- Added suspend method in VCenterManagerController to handle VM suspension requests. - Introduced VmSuspendedMail for notifying customers about VM suspension. - Created email template for VM suspension notification. - Updated API routes to include VM suspend functionality. - Modified cors.php to allow additional local development URL. - Updated DatabaseSeeder to include AdminSeeder and commented out unused seeders. - Removed deprecated Livewire components related to cart, customer email history, invoices, orders, tickets, transactions, user settings, and VPS reinstall modal.
78 lines
4.6 KiB
PHP
78 lines
4.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="vi">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Dịch vụ Cloud VPS bị tạm ngư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, #d97706 0%, #b45309 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: #fde68a; 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; }
|
|
.warning-box { background: #fffbeb; border: 1.5px solid #f59e0b; border-radius: 10px; padding: 20px 24px; margin-top: 20px; }
|
|
.warning-box p { margin: 0 0 10px; font-size: 14px; color: #92400e; line-height: 1.7; }
|
|
.warning-box p:last-child { margin: 0; }
|
|
.danger-notice { background: #fef2f2; border-left: 3px solid #ef4444; padding: 12px 16px; border-radius: 0 6px 6px 0; font-size: 13px; color: #991b1b; margin-top: 24px; line-height: 1.6; font-weight: 600; }
|
|
.cta { text-align: center; margin-top: 28px; }
|
|
.cta a { display: inline-block; background: #2563eb; color: #fff; text-decoration: none; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; }
|
|
.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>Dịch vụ Cloud VPS đã bị tạm ngưng</h1>
|
|
<p>Vui lòng thanh toán để khôi phục dịch vụ</p>
|
|
</div>
|
|
|
|
<div class="body">
|
|
<p class="greeting">
|
|
Xin chào <strong>{{ $customerName ?? 'Quý khách' }}</strong>,<br>
|
|
Dịch vụ Cloud VPS của bạn hiện đã bị <strong>tạm ngưng (Suspend)</strong> do chưa thanh toán gia hạn.
|
|
Vui lòng nhanh chóng liên hệ hoặc thanh toán để tránh mất dữ liệu.
|
|
</p>
|
|
|
|
<div class="section-label">Thông tin dịch vụ bị tạm ngưng</div>
|
|
<table class="info-table">
|
|
<tr><td>Tên dịch vụ</td><td>{{ $vmName }}</td></tr>
|
|
<tr><td>VM ID</td><td>{{ $vmwareId }}</td></tr>
|
|
<tr><td>Thời gian tạm ngưng</td><td>{{ now()->setTimezone('Asia/Ho_Chi_Minh')->format('d/m/Y H:i') }}</td></tr>
|
|
</table>
|
|
|
|
<div class="warning-box">
|
|
<p>⏰ <strong>Sau 30 ngày kể từ ngày tạm ngưng</strong>, nếu không có thanh toán, dịch vụ của bạn sẽ bị <strong>xóa vĩnh viễn</strong> và toàn bộ dữ liệu sẽ không thể khôi phục.</p>
|
|
<p>💡 Vui lòng đăng nhập vào cổng khách hàng để gia hạn dịch vụ hoặc liên hệ bộ phận hỗ trợ để được giải quyết kịp thời.</p>
|
|
</div>
|
|
|
|
<div class="danger-notice">
|
|
🚨 CẢNH BÁO: Sau 30 ngày không thanh toán, toàn bộ dữ liệu trên máy chủ ảo sẽ bị XÓA VĨNH VIỄN và không thể phục hồi.
|
|
</div>
|
|
|
|
<div class="cta">
|
|
<a href="{{ config('app.client_url', '#') }}/dashboard">Đăng nhập thanh toán ngay</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
Email này được gửi tự động từ hệ thống Thế Giới Số. Vui lòng không trả lời email này.<br>
|
|
Nếu cần hỗ trợ, liên hệ: <strong>support@thegioiso.vn</strong>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|