refactor: the whole paymanet service

This commit is contained in:
mahyargdz
2025-05-03 16:30:22 +03:30
parent 4f54774400
commit 2e2154d745
30 changed files with 1231 additions and 396 deletions
+24
View File
@@ -0,0 +1,24 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>اعلان</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>اعلان</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<div style="font-size: 24px; color: #2c3e50; text-align: center; margin: 20px 0;">{{title}}</div>
<div style="margin: 20px 0; text-align: center;">{{description}}</div>
<div style="text-align: center; color: #666; font-size: 14px;">تاریخ: {{date}}</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
+48
View File
@@ -0,0 +1,48 @@
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{title}}</title>
<style>
body, p, a { margin: 0; padding: 0; font-family: Arial, sans-serif; } body { background-color: #f5f5f5; color: #333333; text-align:
right; line-height: 1.6; } /* Container */ .container { width: 100%; max-width: 600px; margin: 40px auto; padding: 20px;
background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Logo */ .logo { text-align: center;
margin-bottom: 20px; } .logo img { max-width: 50px; height: auto; } h1 { font-size: 24px; color: #1a1a1a; margin-bottom: 20px;
text-align: center; } p { font-size: 16px; color: #4a4a4a; margin-bottom: 20px; } .btn { display: inline-block; padding: 12px 24px;
margin: 20px auto; background-color: #030a11; color: #ffffff; text-decoration: none; border-radius: 6px; font-size: 16px; text-align:
center; transition: background-color 0.3s ease; } .btn:hover { background-color: #6d7074; } a { color: #373b3f; text-decoration: none;
} a:hover { text-decoration: none; } .footer { margin-top: 30px; font-size: 14px; color: #777777; text-align: center; } .footer a {
color: #007bff; } .footer a:hover { text-decoration: underline; } /* Responsive Design */ @media (max-width: 600px) { .container {
margin: 20px auto; padding: 15px; } h1 { font-size: 20px; } p { font-size: 14px; } .btn { font-size: 14px; padding: 10px 20px; } }
</style>
</head>
<body>
<div class="container">
<!-- Logo -->
<div class="logo">
<img src="https://danakcorp.com/favicon.png" alt="DanakCorp Logo" />
</div>
<p>سلام {{fullName}} عزیز,</p>
<p>به <strong>DanakCorp</strong> خوش آمدید! لطفاً برای تأیید ایمیل خود روی دکمه زیر کلیک کنید:</p>
<div style="text-align: center">
<a href="{{link}}" class="btn">تأیید ایمیل</a>
</div>
<p>اگر دکمه بالا کار نمی‌کند، می‌توانید از لینک زیر استفاده کنید:</p>
<p style="word-break: break-all; text-align: center">
<a href="{{link}}">{{link}}</a>
</p>
<p style="color: #777777; font-size: 14px; text-align: center">
اگر شما این درخواست را ارسال نکرده‌اید، لطفاً این ایمیل را نادیده بگیرید.
</p>
<div class="footer">
<p>با تشکر،<br />تیم پشتیبانی <strong>DanakCorp</strong></p>
<p><a href="https://danakcorp.com">danakcorp.com</a></p>
</div>
</div>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>لغو آزمون</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>لغو آزمون</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>آزمون زیر با موفقیت لغو شد:</p>
<div style="font-size: 20px; color: #2c3e50; text-align: center; margin: 20px 0;">{{examTitle}}</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
+40
View File
@@ -0,0 +1,40 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>فاکتور</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>فاکتور</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>جزئیات فاکتور شما به شرح زیر است:</p>
<div style="margin: 20px 0;">
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>مبلغ:</span>
<span>{{price}} تومان</span>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>تاریخ ایجاد:</span>
<span>{{createDate}}</span>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>تاریخ سررسید:</span>
<span>{{dueDate}}</span>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>شناسه فاکتور:</span>
<span>{{invoiceId}}</span>
</div>
</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ورود به سیستم</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>ورود به سیستم</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>ورود به سیستم در تاریخ و ساعت زیر انجام شد:</p>
<div style="font-size: 20px; color: #2c3e50; text-align: center; margin: 20px 0;">{{date}}</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
@@ -0,0 +1,23 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>لغو پرداخت</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>لغو پرداخت</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>پرداخت مبلغ زیر به دلیل عدم پرداخت در زمان مقرر لغو شد:</p>
<div style="font-size: 24px; color: #e74c3c; text-align: center; margin: 20px 0;">{{amount}} تومان</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>یادآوری پرداخت</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>یادآوری پرداخت</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>لطفاً نسبت به پرداخت مبلغ زیر اقدام فرمایید:</p>
<div style="font-size: 24px; color: #e74c3c; text-align: center; margin: 20px 0;">{{amount}} تومان</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
+42
View File
@@ -0,0 +1,42 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>تیکت پشتیبانی</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>تیکت پشتیبانی</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>جزئیات تیکت پشتیبانی شما به شرح زیر است:</p>
<div style="margin: 20px 0;">
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>موضوع:</span>
<span>{{subject}}</span>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>تاریخ:</span>
<span>{{date}}</span>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>شناسه تیکت:</span>
<span>{{ticketId}}</span>
</div>
{{#if user}}
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>کارشناس:</span>
<span>{{user}}</span>
</div>
{{/if}}
</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>
+40
View File
@@ -0,0 +1,40 @@
<html dir="rtl" lang="fa">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>اعلان کیف پول</title>
</head>
<body
style="font-family: 'IRANSans', Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; text-align: center;"
>
<div style="text-align: center; margin-bottom: 30px;">
<h1>اعلان کیف پول</h1>
</div>
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px;">
<p>سلام،</p>
<p>جزئیات تراکنش کیف پول شما به شرح زیر است:</p>
<div style="margin: 20px 0;">
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>مبلغ تراکنش:</span>
<div style="font-size: 24px; color: #2ecc71; text-align: center; margin: 20px 0;">{{amount}} تومان</div>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>موجودی فعلی:</span>
<div style="font-size: 20px; color: #3498db; text-align: center; margin: 20px 0;">{{balance}} تومان</div>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>تاریخ:</span>
<span>{{date}}</span>
</div>
<div style="display: flex; justify-content: space-between; margin: 10px 0;">
<span>دلیل:</span>
<span>{{reason}}</span>
</div>
</div>
<p>با تشکر</p>
</div>
<div style="text-align: center; margin-top: 30px; font-size: 12px; color: #666;">
<p>این ایمیل به صورت خودکار ارسال شده است. لطفاً به آن پاسخ ندهید.</p>
</div>
</body>
</html>