feat: add domain registration form and email notifications

- Create a new Blade view for domain registration (`registrant-tochuc.blade.php`) to capture organization and manager details.
- Implement email templates for new domain orders for both admin (`domain-order-new.blade.php`) and customers (`domain-order-received.blade.php`).
- Add CSV exports for client and domain data.
- Introduce tests for customer mass assignment, password reset, login throttling, and permission gating.
- Ensure service renewals use current pricing and validate ownership for virtual machines.
- Validate mass assignment behavior in service model.
This commit is contained in:
baodev0
2026-08-22 17:30:55 +07:00
parent eec2c5906e
commit c377c7e195
58 changed files with 3063 additions and 418 deletions
@@ -0,0 +1,25 @@
<p>Có một đơn đăng ký tên miền mới vừa được đặt tại <strong>{{ $company_name }}</strong>.</p>
<p><strong>Thông tin đơn hàng:</strong></p>
<ul>
<li>Tên miền: <strong>{{ $domain_name }}</strong></li>
<li>Mã đơn hàng: <strong>{{ $order_num }}</strong></li>
<li>Tổng tiền: <strong>{{ $order_total }}</strong></li>
<li>Khách hàng: <strong>{{ $customer_name }}</strong></li>
<li>Email: <strong>{{ $customer_email }}</strong></li>
<li>Thời gian: <strong>{{ $created_at }}</strong></li>
</ul>
<table cellpadding="0" cellspacing="0" role="presentation" style="margin: 16px auto;">
<tbody>
<tr>
<td style="border-radius: 4px; background-color: #f16723; text-align: center;">
<a href="{{ $admin_url }}" target="_blank" rel="noopener" style="font-family: sans-serif; display: block; font-size: 16px; font-weight: 600; line-height: 100%; color: #ffffff; text-decoration: none; padding: 16px 24px;">XEM ĐƠN HÀNG</a>
</td>
</tr>
</tbody>
</table>
<p style="text-align: justify; color: #666666; font-size: 13px;">
Lưu ý: Đây là tin nhắn tự động. Vui lòng không trả lời tin nhắn này!
</p>
@@ -0,0 +1,33 @@
<p style="font-weight: bold;">
<strong>Kính chào <span style="color: #f16723;">{{ $customer_name }},</span></strong>
</p>
<p style="text-align: justify;">
Cảm ơn Quý khách đã đặt mua tên miền tại <strong>{{ $company_name }}</strong>. Đơn hàng của Quý khách đang chờ đội ngũ kỹ thuật kiểm tra và đăng ký thủ công.
</p>
<p><strong>Thông tin đơn hàng:</strong></p>
<ul>
<li>Tên miền: <strong>{{ $domain_name }}</strong></li>
<li>Mã đơn hàng: <strong>{{ $order_num }}</strong></li>
<li>Tổng tiền: <strong>{{ $order_total }}</strong></li>
<li>Thời gian: <strong>{{ $created_at }}</strong></li>
</ul>
<p style="text-align: justify;">
Lưu ý: việc đặt mua không đồng nghĩa tên miền đã được đăng ký thành công. Nếu tên miền không còn khả dụng, số dư đã thanh toán sẽ được hoàn lại vào tài khoản. Quý khách sẽ nhận được email khi tên miền được đăng ký thành công, kèm theo các thông tin KYC cần bổ sung (nếu có).
</p>
<table cellpadding="0" cellspacing="0" role="presentation" style="margin: 16px auto;">
<tbody>
<tr>
<td style="border-radius: 4px; background-color: #f16723; text-align: center;">
<a href="{{ $order_url }}" target="_blank" rel="noopener" style="font-family: sans-serif; display: block; font-size: 16px; font-weight: 600; line-height: 100%; color: #ffffff; text-decoration: none; padding: 16px 24px;">XEM ĐƠN HÀNG CỦA TÔI</a>
</td>
</tr>
</tbody>
</table>
<p style="text-align: justify; color: #666666; font-size: 13px;">
Email này được gửi tự động. Vui lòng không trả lời email này.
</p>