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

{% block title %}{% trans "Survey Results Available - Al Hammadi Hospital" %}{% endblock %}
{% block preheader %}{% trans "Your department's survey results are now available for review." %}{% endblock %}

{% block content %}
<p style="margin: 0 0 15px;">
    {% trans "Dear" %} <strong>{{ recipient_name|default:_("Team Member") }}</strong>,
</p>

<p style="margin: 0 0 20px;">
    {% blocktrans with dept=department_name|default:_("your department") %}The patient experience survey results for {{ dept }} are now available for review.{% endblocktrans %}
</p>

<p style="margin: 0 0 5px;"><strong>{% trans "Overall Score:" %}</strong> {{ overall_score|default:_("N/A") }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Responses:" %}</strong> {{ total_responses|default:_("N/A") }}</p>
<p style="margin: 0 0 20px;"><strong>{% trans "Response Rate:" %}</strong> {{ response_rate|default:_("N/A") }}</p>

<p style="margin: 0 0 5px;"><strong>{% trans "Strengths:" %}</strong> {{ strengths|default:_("Patient care and communication received high ratings") }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Areas for Improvement:" %}</strong> {{ improvements|default:_("Wait times and facility comfort can be enhanced") }}</p>
<p style="margin: 0 0 20px;"><strong>{% trans "Survey Period:" %}</strong> {{ survey_period|default:_("Last 30 days") }}</p>

<p style="margin: 0 0 25px;">
    {% blocktrans with deadline=deadline|default:_("end of month") %}Please review the detailed results and prepare an action plan to address identified areas for improvement by {{ deadline }}.{% endblocktrans %}
</p>

<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
        <td align="center">
            <a href="{{ results_link|default:'#' }}"
               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 "View Full Report" %}
            </a>
        </td>
    </tr>
</table>

<p style="margin: 25px 0 0; font-size: 14px; color: #666666;">
    <strong>{% trans "Report Generated:" %}</strong> {{ report_date|default:_("Today") }}<br>
    <strong>{% trans "Survey Type:" %}</strong> {{ survey_type|default:_("Patient Experience Survey") }}<br>
    <strong>{% trans "Access Level:" %}</strong> {{ access_level|default:_("Department Manager") }}
</p>
{% endblock %}
