First commit

This commit is contained in:
dyzulk
2025-12-30 12:11:01 +07:00
commit f68f34980a
150 changed files with 22717 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Certificate Expired Alert</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;">
<div style="max-width: 600px; margin: 0 auto; padding: 20px;">
<h2 style="color: #a94442;">URGENT: Certificate Has Expired</h2>
<p>Hello {{ $certificate->user->first_name ?? 'User' }},</p>
<p>This is a critical notification that your SSL certificate has <strong>ALREADY EXPIRED</strong>.</p>
<div style="background-color: #fee; padding: 15px; border-radius: 5px; margin: 20px 0; border: 1px solid #ebccd1;">
<p><strong>Common Name:</strong> {{ $certificate->common_name }}</p>
<p><strong>Organization:</strong> {{ $certificate->organization }}</p>
<p><strong>Key Strength:</strong> {{ $certificate->key_bits }}-bit</p>
<p><strong>Expired On:</strong> {{ $certificate->valid_to->format('d M Y H:i:s') }}</p>
</div>
<p>Your services using this certificate may be inaccessible or showing security warnings. Please renew immediately.</p>
<a href="{{ config('app.frontend_url', 'http://localhost:3000') }}/dashboard" style="display: inline-block; padding: 10px 20px; background-color: #d9534f; color: white; text-decoration: none; border-radius: 5px;">Renew Now</a>
</div>
</body>
</html>

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Certificate Expiration Alert</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;">
<div style="max-width: 600px; margin: 0 auto; padding: 20px;">
<h2 style="color: #d9534f;">Action Required: Certificate Expiring Soon</h2>
<p>Hello {{ $certificate->user->first_name ?? 'User' }},</p>
<p>This is a notification that one of your SSL certificates is expiring in <strong>{{ $daysRemaining }} days</strong>.</p>
<div style="background-color: #f9f9f9; padding: 15px; border-radius: 5px; margin: 20px 0;">
<p><strong>Common Name:</strong> {{ $certificate->common_name }}</p>
<p><strong>Organization:</strong> {{ $certificate->organization }}</p>
<p><strong>Key Strength:</strong> {{ $certificate->key_bits }}-bit</p>
<p><strong>Expiration Date:</strong> {{ $certificate->valid_to->format('d M Y H:i:s') }}</p>
</div>
<p>Please log in to your dashboard to renew this certificate before it expires to ensure uninterrupted service.</p>
<a href="{{ config('app.frontend_url', 'http://localhost:3000') }}/dashboard" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px;">Go to Dashboard</a>
<p style="margin-top: 30px; font-size: 12px; color: #777;">
If you have already renewed this certificate, please ignore this message.<br>
You are receiving this email because you have enabled certificate renewal alerts in your account settings.
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.6;
color: #374151;
margin: 0;
padding: 0;
background-color: #f9fafb;
}
.container {
max-width: 600px;
margin: 40px auto;
background: #ffffff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
border: 1px solid #e5e7eb;
}
.header {
background-color: #111827;
padding: 32px;
text-align: center;
}
.header h1 {
color: #ffffff;
margin: 0;
font-size: 24px;
font-weight: 700;
}
.content {
padding: 40px;
}
.reply-box {
background-color: #f3f4f6;
border-radius: 12px;
padding: 24px;
margin-bottom: 32px;
border-left: 4px solid #3b82f6;
}
.footer {
padding: 32px;
text-align: center;
font-size: 14px;
color: #6b7280;
border-top: 1px solid #f3f4f6;
}
.original-message {
margin-top: 40px;
padding-top: 24px;
border-top: 1px dashed #e5e7eb;
font-size: 13px;
color: #9ca3af;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>TrustLab Support</h1>
</div>
<div class="content">
<p>Hello {{ $inquiry->name }},</p>
<div class="reply-box">
{!! nl2br(e($replyMessage)) !!}
</div>
<p>Best regards,<br>The TrustLab Team</p>
<div class="original-message">
<p><strong>Original Message:</strong></p>
<p><em>{{ $inquiry->message }}</em></p>
</div>
</div>
<div class="footer">
&copy; {{ date('Y') }} TrustLab. All rights reserved.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.6;
color: #374151;
margin: 0;
padding: 0;
background-color: #f9fafb;
}
.container {
max-width: 600px;
margin: 40px auto;
background: #ffffff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
border: 1px solid #e5e7eb;
}
.header {
background-color: #111827;
padding: 32px;
text-align: center;
}
.header h1 {
color: #ffffff;
margin: 0;
font-size: 24px;
font-weight: 700;
}
.content {
padding: 40px;
text-align: center;
}
.content p {
margin-bottom: 24px;
}
.btn {
display: inline-block;
padding: 12px 32px;
background-color: #465fff;
color: #ffffff !important;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
margin-bottom: 32px;
}
.footer {
padding: 32px;
text-align: center;
font-size: 14px;
color: #6b7280;
border-top: 1px solid #f3f4f6;
}
.sub-link {
font-size: 12px;
color: #9ca3af;
word-break: break-all;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Reset Your Password</h1>
</div>
<div class="content">
<p>Hello {{ $name }},</p>
<p>You are receiving this email because we received a password reset request for your TrustLab account.</p>
<a href="{{ $url }}" class="btn">Reset Password</a>
<p>This password reset link will expire in 60 minutes.</p>
<p>If you did not request a password reset, no further action is required.</p>
<div class="sub-link">
<p>If you're having trouble clicking the "Reset Password" button, copy and paste the URL below into your web browser:</p>
<p>{{ $url }}</p>
</div>
</div>
<div class="footer">
&copy; {{ date('Y') }} TrustLab. All rights reserved.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TrustLab Connection Test</title>
<style>
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.5;
color: #374151;
margin: 0;
padding: 0;
background-color: #f9fafb;
}
.container {
max-width: 600px;
margin: 40px auto;
background-color: #ffffff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.header {
padding: 30px 40px;
background-color: #eff6ff;
text-align: center;
}
.header img {
height: 32px;
margin-bottom: 15px;
}
.content {
padding: 40px;
}
.title {
font-size: 24px;
font-weight: 700;
color: #111827;
margin-bottom: 20px;
}
.status-badge {
display: inline-block;
padding: 6px 12px;
background-color: #ecfdf5;
color: #065f46;
border-radius: 9999px;
font-size: 14px;
font-weight: 600;
margin-bottom: 25px;
}
.details {
background-color: #f3f4f6;
padding: 20px;
border-radius: 8px;
margin-bottom: 25px;
}
.details p {
margin: 5px 0;
font-size: 14px;
}
.footer {
padding: 30px 40px;
background-color: #f9fafb;
text-align: center;
font-size: 12px;
color: #6b7280;
border-top: 1px solid #e5e7eb;
}
.button {
display: inline-block;
padding: 12px 24px;
background-color: #3b82f6;
color: #ffffff;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<!-- Using CID for embedding logo or absolute URL if accessible -->
<img src="{{ url('/images/logo/logo.png') }}" alt="TrustLab Logo">
</div>
<div class="content">
<h1 class="title">SMTP Connection Test</h1>
<div class="status-badge">Connection Successful</div>
<p>Hello,</p>
<p>This is a test email sent from <strong>TrustLab - PKI & Certificate Management</strong> to verify your SMTP configuration.</p>
<div class="details">
<p><strong>Mailer:</strong> {{ $mailer }}</p>
<p><strong>Sent At:</strong> {{ now()->format('Y-m-d H:i:s') }}</p>
<p><strong>Host:</strong> {{ $host }}</p>
</div>
<p>If you received this email, it means your SMTP settings for the <strong>{{ $mailer }}</strong> mailer are working correctly.</p>
<a href="{{ env('FRONTEND_URL') }}" class="button">Go to Dashboard</a>
</div>
<div class="footer">
<p>&copy; {{ date('Y') }} TrustLab. All rights reserved.</p>
<p>This is an automated system message. Please do not reply to this email.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.6;
color: #374151;
margin: 0;
padding: 0;
background-color: #f9fafb;
}
.container {
max-width: 600px;
margin: 40px auto;
background: #ffffff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
border: 1px solid #e5e7eb;
}
.header {
background-color: #111827;
padding: 32px;
text-align: center;
}
.header h1 {
color: #ffffff;
margin: 0;
font-size: 24px;
font-weight: 700;
}
.content {
padding: 40px;
text-align: center;
}
.content p {
margin-bottom: 24px;
}
.btn {
display: inline-block;
padding: 12px 32px;
background-color: #465fff;
color: #ffffff !important;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
margin-bottom: 32px;
}
.footer {
padding: 32px;
text-align: center;
font-size: 14px;
color: #6b7280;
border-top: 1px solid #f3f4f6;
}
.sub-link {
font-size: 12px;
color: #9ca3af;
word-break: break-all;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>TrustLab Verification</h1>
</div>
<div class="content">
<p>Hello {{ $name }},</p>
<p>Thank you for joining TrustLab! Before you can start managing your certificates and API keys, we need you to verify your email address.</p>
<a href="{{ $url }}" class="btn">Verify Email Address</a>
<p>If you did not create an account, no further action is required.</p>
<div class="sub-link">
<p>If you're having trouble clicking the "Verify Email Address" button, copy and paste the URL below into your web browser:</p>
<p>{{ $url }}</p>
</div>
</div>
<div class="footer">
&copy; {{ date('Y') }} TrustLab. All rights reserved.
</div>
</div>
</body>
</html>