{% extends "layouts/public_base.html" %} {% load i18n static %} {% block title %}{% trans "Track Your Inquiry" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% get_available_languages as LANGUAGES %} {% get_current_language as LANGUAGE_CODE %} {% for lang_code, lang_name in LANGUAGES %} {% if lang_code == 'en' %}πŸ‡¬πŸ‡§{% elif lang_code == 'ar' %}πŸ‡ΈπŸ‡¦{% endif %} {{ lang_name }} {% endfor %}
Al Hammadi Hospital

{% trans "Track Your Inquiry" %}

{% trans "Enter your reference number below to see real-time updates on your inquiry." %}

{% csrf_token %}

{% trans "Found in your confirmation email" %}

{% if error_message %}

{% trans "Reference Not Found" %}

{{ error_message }}

{% endif %} {% if inquiry %}
{% trans "Inquiry Reference" %}

{{ inquiry.reference_number }}

{{ public_status.label }}
{% if inquiry.escalated_at %}
{% trans "Escalated" %}
{% endif %}
{% trans "Submitted" %}

{{ inquiry.created_at|date:"M d, Y" }}

{% trans "Department" %}

{{ inquiry.department.name|default:"General" }}

{% if inquiry.due_at %} {% trans "SLA Deadline" %}

{{ inquiry.due_at|date:"M d, H:i" }}

{% if inquiry.is_overdue %} {% endif %} {% else %} {% trans "Subject" %}

{{ inquiry.subject|truncatechars:30 }}

{% endif %}

{% trans "Resolution Journey" %}

{% if public_updates %}
{% for update in public_updates %}

{% if update.update_type == 'status_change' %}{% trans "Status Updated" %} {% elif update.update_type == 'response' %}{% trans "Response Received" %} {% else %}{% trans "Update Received" %}{% endif %}

{% if update.message %}
{{ update.message|linebreaks }}
{% endif %}
{% endfor %}
{% else %}

{% trans "Your inquiry is being reviewed. Updates will appear here." %}

{% endif %}

{% trans "For privacy reasons, detailed notes and internal communications are not shown here." %}

{% endif %}
{% trans "Track Another Submission" %}
{% endblock %}