{% load i18n %} {% load static %} {{ complaint.reference_number }} - {% trans "Review Feedback" %}
{% if complaint.department %} ← {% trans "Back to Department" %} {% endif %}
Al Hammadi Hospital
{{ complaint.reference_number }}

{{ complaint.title }}

{% trans "Description" %}

{{ complaint.description }}

{% if error %}

{{ error }}

{% endif %} {% comment %}

{% trans "Staff Responses" %}

{% trans "PDF" %}
{% endcomment %} {% for sd in staff_data %}
{{ sd.staff.first_name|first }}{{ sd.staff.last_name|first }}

{{ sd.staff.get_full_name }}

{% if sd.staff.job_title %}

{{ sd.staff.job_title }}

{% endif %} {% if sd.is_completed %}{% trans "Responded" %}{% else %}{% trans "Pending" %}{% endif %}
{% if sd.is_completed %} {% for pair in sd.qa_pairs %}
{{ forloop.counter }}

{{ pair.question.question_text }}

{% if pair.question.question_type == 'yes_no' %} {% if pair.answer == 'yes' %} {% trans "Yes" %} {% elif pair.answer == 'no' %} {% trans "No" %} {% else %} {% endif %} {% else %}

{{ pair.answer|default:"—" }}

{% endif %}
{% endfor %} {% if sd.response.attachments.exists %}

{% trans "Attachments" %}

{% endif %} {% else %}

{% trans "This staff member has not responded yet." %}

{% endif %}
{% endfor %} {% if staff_data and investigation.status == 'answers_received' %}

{% trans "Your Final Reply" %}

{% trans "Based on the staff feedback above, write your final reply." %}

{% csrf_token %} {% if otp_sent %}

{% trans "Verify your submission" %}

{% if otp_phone and otp_email %}{% trans "Verification code sent to your phone and email." %} {% elif otp_phone %}{% trans "Verification code sent to your phone." %} {% elif otp_email %}{% trans "Verification code sent to your email." %} {% else %}{% trans "Verification code sent." %}{% endif %}

{% comment %} {% if dev_otp_code %}
DEBUG: {% trans "verification code is" %} {{ dev_otp_code }}
{% endif %} {% endcomment %}

{% trans "Enter the 6-digit code to complete your submission." %}

{% trans "Locked" %}
{% endif %}

{% trans "Assessment" %}

{% trans "Is there any negligence resulting from carelessness?" %}

{% trans "Is it resulting from policies or regulations?" %}

{% trans "Does this complaint require an improvement project?" %}

{% if otp_sent %}
{% else %} {% endif %}
{% elif staff_data and investigation.status != 'answers_received' %}

{% trans "Final reply will be available once staff responses are in." %}

{% endif %}