feat: forgot password

config: msg
This commit is contained in:
2026-07-30 22:42:38 +07:00
parent 781a0f8aa7
commit 36eec0a664
11 changed files with 284 additions and 4 deletions
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cấp mật khẩu mới - ThankCard System</title>
</head>
<body style="margin: 0; padding: 0; background-color: #f0f4f9; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-font-smoothing: antialiased;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed; background-color: #f0f4f9; padding: 40px 16px;">
<tr>
<td align="center">
<!-- Main Container Card -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px; background-color: #ffffff; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); border: 1px solid #e2e8f0;">
<!-- Header with Branding -->
<tr>
<td align="center" style="padding: 40px 32px 24px 32px; background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%); border-bottom: 1px solid #f1f5f9;">
<!-- Logo / App Brand Header -->
<div style="font-size: 32px; font-weight: 800; color: #1e293b; letter-spacing: -0.5px; margin-bottom: 8px;">
Thanks <span style="color: #ff7eb3; font-family: 'Caveat', cursive, sans-serif; font-size: 38px;">card</span>
</div>
<div style="font-size: 13px; color: #64748b; font-weight: 500;">
GMO-Z.com RUNSYSTEM
</div>
</td>
</tr>
<!-- Body Content -->
<tr>
<td style="padding: 36px 32px;">
<!-- Welcome / Greeting Title -->
<div style="text-align: center; margin-bottom: 28px;">
<h1 style="margin: 0; font-size: 22px; font-weight: 700; color: #1e293b;">
Mật khẩu mới của bạn
</h1>
<p style="margin-top: 8px; font-size: 14px; color: #64748b; line-height: 1.6;">
Hệ thống đã nhận được yêu cầu khôi phục mật khẩu cho tài khoản của bạn.
</p>
</div>
<!-- Greeting text -->
<p style="font-size: 15px; color: #334155; line-height: 1.6; margin-bottom: 16px;">
Xin chào <strong>{{ $user->name }}</strong>,
</p>
<p style="font-size: 14px; color: #475569; line-height: 1.6; margin-bottom: 24px;">
Dưới đây mật khẩu ngẫu nhiên tạm thời được cấp cho tài khoản (<strong>{{ $user->mail }}</strong>):
</p>
<!-- Password Box Display -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom: 28px;">
<tr>
<td align="center" style="background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 2px dashed #3b82f6; border-radius: 16px; padding: 24px 16px;">
<div style="font-size: 12px; font-weight: 600; text-transform: uppercase; color: #2563eb; letter-spacing: 1px; margin-bottom: 8px;">
Mật khẩu mới ngẫu nhiên
</div>
<div style="font-size: 28px; font-weight: 800; color: #1d4ed8; letter-spacing: 4px; font-family: 'Courier New', Courier, monospace;">
{{ $newPassword }}
</div>
</td>
</tr>
</table>
<!-- Important Warning Note -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom: 28px; background-color: #fff1f2; border-left: 4px solid #f43f5e; border-radius: 8px;">
<tr>
<td style="padding: 14px 16px;">
<div style="font-size: 13px; color: #be123c; font-weight: 600; line-height: 1.5;">
<strong>Lưu ý bảo mật:</strong> Để đảm bảo an toàn, hệ thống sẽ yêu cầu bạn <strong>đổi sang mật khẩu nhân mới</strong> ngay lần đăng nhập đầu tiên với mật khẩu tạm thời này.
</div>
</td>
</tr>
</table>
<!-- Action Button -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom: 28px;">
<tr>
<td align="center">
<a href="{{ route('login') }}" target="_blank" style="display: inline-block; padding: 14px 32px; background-color: #1d4ed8; color: #ffffff; font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 12px; box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);">
Đăng nhập ngay
</a>
</td>
</tr>
</table>
<p style="font-size: 13px; color: #94a3b8; line-height: 1.6; margin-bottom: 0;">
Nếu bạn không thực hiện yêu cầu này, vui lòng liên hệ ngay với Quản trị viên hệ thống để bảo vệ tài khoản.
</p>
</td>
</tr>
<!-- Footer -->
<tr>
<td align="center" style="padding: 24px 32px; background-color: #f8fafc; border-top: 1px solid #f1f5f9; font-size: 12px; color: #94a3b8; line-height: 1.5;">
<div>&copy; {{ date('Y') }} GMO-Z.com RUNSYSTEM. All rights reserved.</div>
<div style="margin-top: 4px;">ThankCard System - Lan tỏa lời cảm ơn & kết nối đồng nghiệp.</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>