248 lines
8.3 KiB
HTML
248 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Payment Confirmation - {{ receipt_number }}</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
.email-container {
|
|
background-color: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
border-bottom: 2px solid #007bff;
|
|
padding-bottom: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
.hospital-name {
|
|
color: #007bff;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
margin-bottom: 10px;
|
|
}
|
|
.email-title {
|
|
color: #333;
|
|
font-size: 20px;
|
|
margin-bottom: 0;
|
|
}
|
|
.greeting {
|
|
font-size: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.payment-summary {
|
|
background-color: #e8f5e8;
|
|
border-left: 4px solid #28a745;
|
|
padding: 20px;
|
|
margin: 25px 0;
|
|
border-radius: 5px;
|
|
}
|
|
.payment-summary h3 {
|
|
color: #28a745;
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
}
|
|
.payment-details {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.payment-details li {
|
|
list-style: none;
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
.payment-details li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.payment-details .label {
|
|
font-weight: bold;
|
|
color: #495057;
|
|
display: inline-block;
|
|
width: 140px;
|
|
}
|
|
.payment-details .value {
|
|
color: #333;
|
|
}
|
|
.receipt-button {
|
|
text-align: center;
|
|
margin: 30px 0;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 12px 25px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
}
|
|
.btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
.contact-info {
|
|
background-color: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 5px;
|
|
margin: 25px 0;
|
|
}
|
|
.contact-info h4 {
|
|
color: #495057;
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
}
|
|
.footer {
|
|
text-align: center;
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e9ecef;
|
|
color: #6c757d;
|
|
font-size: 12px;
|
|
}
|
|
.success-icon {
|
|
color: #28a745;
|
|
font-size: 48px;
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
@media (max-width: 600px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
.email-container {
|
|
padding: 20px;
|
|
}
|
|
.hospital-name {
|
|
font-size: 20px;
|
|
}
|
|
.email-title {
|
|
font-size: 18px;
|
|
}
|
|
.payment-details .label {
|
|
width: 120px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="email-container">
|
|
<!-- Header -->
|
|
<div class="header">
|
|
<div class="hospital-name">{{ hospital_info.name }}</div>
|
|
<h2 class="email-title">Payment Confirmation</h2>
|
|
</div>
|
|
|
|
<!-- Success Icon -->
|
|
<div class="success-icon">✓</div>
|
|
|
|
<!-- Greeting -->
|
|
<div class="greeting">
|
|
<strong>Dear {{ patient.get_full_name }},</strong>
|
|
</div>
|
|
|
|
<!-- Main Message -->
|
|
<p>Thank you for your payment! We are pleased to confirm that we have successfully received your payment.</p>
|
|
|
|
<!-- Payment Summary -->
|
|
<div class="payment-summary">
|
|
<h3>Payment Summary</h3>
|
|
<ul class="payment-details">
|
|
<li>
|
|
<span class="label">Receipt Number:</span>
|
|
<span class="value"><strong>{{ receipt_number }}</strong></span>
|
|
</li>
|
|
<li>
|
|
<span class="label">Bill Number:</span>
|
|
<span class="value">{{ bill.bill_number }}</span>
|
|
</li>
|
|
<li>
|
|
<span class="label">Payment Date:</span>
|
|
<span class="value">{{ payment.payment_date|date:"F d, Y \a\t g:i A" }}</span>
|
|
</li>
|
|
<li>
|
|
<span class="label">Amount Paid:</span>
|
|
<span class="value"><strong>${{ payment.amount|floatformat:2 }}</strong></span>
|
|
</li>
|
|
<li>
|
|
<span class="label">Payment Method:</span>
|
|
<span class="value">{{ payment.get_payment_method_display }}</span>
|
|
</li>
|
|
{% if payment.reference_number %}
|
|
<li>
|
|
<span class="label">Reference Number:</span>
|
|
<span class="value">{{ payment.reference_number }}</span>
|
|
</li>
|
|
{% endif %}
|
|
<li>
|
|
<span class="label">Remaining Balance:</span>
|
|
<span class="value">
|
|
{% if bill.balance_amount > 0 %}
|
|
<strong>${{ bill.balance_amount|floatformat:2 }}</strong>
|
|
{% else %}
|
|
<strong style="color: #28a745;">$0.00 - Paid in Full</strong>
|
|
{% endif %}
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Receipt Button -->
|
|
<div class="receipt-button">
|
|
<a href="{{ receipt_url }}" class="btn">View & Print Receipt</a>
|
|
</div>
|
|
|
|
<!-- Additional Information -->
|
|
<p>Your payment has been processed and applied to your account. If you have any questions about this payment or need additional assistance, please don't hesitate to contact us.</p>
|
|
|
|
{% if bill.balance_amount > 0 %}
|
|
<p><strong>Please Note:</strong> You have a remaining balance of <strong>${{ bill.balance_amount|floatformat:2 }}</strong> on this bill. You can make additional payments through our patient portal or by contacting our billing department.</p>
|
|
{% else %}
|
|
<p><strong>Congratulations!</strong> Your bill has been paid in full. Thank you for your prompt payment.</p>
|
|
{% endif %}
|
|
|
|
<!-- Contact Information -->
|
|
<div class="contact-info">
|
|
<h4>Need Help?</h4>
|
|
<p>If you have any questions about this payment or your account, please contact our billing department:</p>
|
|
<ul style="margin: 0; padding-left: 20px;">
|
|
{% if hospital_info.phone %}
|
|
<li><strong>Phone:</strong> {{ hospital_info.phone }}</li>
|
|
{% endif %}
|
|
{% if hospital_info.email %}
|
|
<li><strong>Email:</strong> {{ hospital_info.email }}</li>
|
|
{% endif %}
|
|
<li><strong>Business Hours:</strong> Monday - Friday, 8:00 AM - 5:00 PM</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Closing -->
|
|
<p>Thank you for choosing {{ hospital_info.name }} for your healthcare needs. We appreciate your trust in our services and your prompt payment.</p>
|
|
|
|
<p>Best regards,<br>
|
|
<strong>{{ hospital_info.name }} Billing Department</strong></p>
|
|
|
|
<!-- Footer -->
|
|
<div class="footer">
|
|
<p>This is an automated message. Please do not reply to this email.</p>
|
|
<p>{{ hospital_info.name }}{% if hospital_info.address %} | {{ hospital_info.address }}{% endif %}</p>
|
|
{% if hospital_info.website %}
|
|
<p>Visit us online: {{ hospital_info.website }}</p>
|
|
{% endif %}
|
|
<p>Receipt generated on {{ payment.payment_date|date:"F d, Y" }}</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|