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

{% block title %}{% trans "Department Request - Al Hammadi Hospital" %}{% endblock %}
{% block preheader %}{% trans "Your department has been assigned to respond to a patient complaint" %}{% endblock %}

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

<p style="margin: 0 0 20px;">
    {% trans "Your department has been assigned to respond to the following patient complaint. Please review the details and submit your department's response using the button below." %}
</p>

{% if custom_message %}
<p style="margin: 0 0 20px;"><strong>{% trans "Note from PX Team:" %}</strong> {{ custom_message }}</p>
{% endif %}

<p style="margin: 0 0 5px;"><strong>{% trans "Reference:" %}</strong> #{{ complaint_id }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Title:" %}</strong> {{ complaint_title }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Patient:" %}</strong> {{ patient_name }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Department:" %}</strong> {{ department_name }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Deadline:" %}</strong> {{ due_date|date:"Y-m-d H:i" }}</p>
{% if description %}
<p style="margin: 0 0 20px;"><strong>{% trans "Description:" %}</strong> {{ description }}</p>
{% endif %}

<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
        <td align="center">
            <a href="{{ explanation_url }}"
               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 Department Response" %}
            </a>
        </td>
    </tr>
</table>

<p style="margin: 25px 0 0; font-size: 13px; color: #999999;">
    {% trans "If you have any questions, please contact the PX team." %}<br>
    {% trans "This is an automated email. Please do not reply." %}
</p>
{% endblock %}
