{% extends 'emails/base_email_template.html' %}
{% load i18n %}

{% block title %}{% trans "Reminder: Department Response Due" %}{% endblock %}
{% block preheader %}{% trans "Reminder: Your department's response to a patient complaint is due soon" %}{% endblock %}

{% block content %}
<p style="margin: 0 0 15px;">
    {% trans "Dear" %} <strong>{{ staff.first_name }} {{ staff.last_name }}</strong>,
</p>

<p style="margin: 0 0 20px;">
    {% trans "This is a reminder that your department has been requested to respond to the following complaint." %}
</p>

<p style="margin: 0 0 5px;"><strong>{% trans "Reference:" %}</strong> #{{ complaint.id|slice:":8" }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Title:" %}</strong> {{ complaint.title }}</p>
{% if complaint.description %}
<p style="margin: 0 0 5px;"><strong>{% trans "Description:" %}</strong> {{ complaint.description }}</p>
{% endif %}
<p style="margin: 0 0 20px;"><strong>{% trans "Due In:" %}</strong> {{ hours_remaining }} {% trans "hours" %} ({{ due_date|date:"Y-m-d H:i" }})</p>

<p style="margin: 0 0 25px;">
    {% trans "Please submit your explanation before the deadline to avoid escalation to your manager." %}
</p>

<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
        <td align="center">
            <a href="{{ site_url }}/complaints/explanation/{{ explanation.token }}/"
               style="display: inline-block; padding: 12px 32px; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none; border-radius: 6px; background-color: #005696;">
                {% trans "Submit Your Explanation" %}
            </a>
        </td>
    </tr>
</table>

<p style="margin: 25px 0 5px; font-size: 13px; color: #666666; direction: rtl; text-align: right;">
    تذكير: طلب شرح - شكوى #{{ complaint.id|slice:":8" }}
</p>
<p style="margin: 0; font-size: 12px; color: #999999; direction: rtl; text-align: right; line-height: 1.8;">
    هذا تذكير بأنه تم طلب منك تقديم شرح بخصوص الشكوى التالية.<br>
    موعد تقديم الشرح يتبقى {{ hours_remaining }} ساعة (الموعد النهائي: {{ due_date|date:"Y-m-d H:i" }}).<br>
    يرجى تقديم الشرح قبل الموعد النهائي لتجنب التصعيد إلى مديرك المباشر.
</p>
{% endblock %}
