Files
portal-api/resources/views/emails/admin/ticket-notification.blade.php
2026-07-14 17:03:38 +07:00

84 lines
3.9 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 ticket mới</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, #f06824 0%, #e05510 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: 22px; font-weight: 700; }
.header p { color: #fde8d8; margin: 0; font-size: 14px; }
.body { padding: 36px 40px; }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; margin: 24px 0 10px; }
.section-label:first-child { margin-top: 0; }
.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; }
.desc-box { background: #fff7f3; border: 1.5px solid #fcd9c5; border-radius: 10px; padding: 16px 20px; margin-top: 10px; font-size: 14px; color: #374151; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cta { text-align: center; margin: 28px 0 4px; }
.cta a { display: inline-block; background: #f06824; color: #fff; text-decoration: none; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.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>Ticket mới cần xử lý</h1>
<p>Ticket #{{ $ticketNum ?? 'N/A' }}</p>
</div>
<div class="body">
<div class="section-label">Thông tin ticket</div>
<table class="info-table">
<tr>
<td>Mã ticket</td>
<td>#{{ $ticketNum ?? 'N/A' }}</td>
</tr>
<tr>
<td>Tiêu đề</td>
<td>{{ $subject ?? 'N/A' }}</td>
</tr>
<tr>
<td>Phòng ban</td>
<td>{{ $room ?? 'N/A' }}</td>
</tr>
</table>
<div class="section-label">Thông tin khách hàng</div>
<table class="info-table">
<tr>
<td>Khách hàng</td>
<td>{{ $customerName ?? 'N/A' }}</td>
</tr>
<tr>
<td>Email khách</td>
<td>{{ $customerEmail ?? 'N/A' }}</td>
</tr>
</table>
<div class="section-label">Nội dung</div>
<div class="desc-box">{{ mb_substr($description ?? '', 0, 500) }}{{ mb_strlen($description ?? '') > 500 ? '…' : '' }}</div>
<div class="cta">
<a href="{{ $ticketUrl }}">Xem ticket</a>
</div>
</div>
<div class="footer">
© {{ date('Y') }} Portal Admin — Hệ thống quản lý dịch vụ<br>
Email này được gửi tự động. Vui lòng không trả lời.
</div>
</div>
</div>
</body>
</html>