{% extends "layouts/public_base.html" %} {% load i18n static %} {% block title %}{% trans "Track Your Observation" %}{% 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 Observation" %}

{% trans "Enter your tracking code below to see real-time updates on your observation." %}

{% csrf_token %}

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

{% if error_message %}

{% trans "Tracking Code Not Found" %}

{{ error_message }}

{% endif %} {% if observation %}
{% trans "Tracking Code" %}

{{ observation.tracking_code }}

{{ observation.status }}
{% trans "Submitted" %}

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

{% trans "Category" %}

{{ observation.category.name|default:_("Not specified") }}

{% trans "Severity" %}

{{ observation.get_severity_display }}

{% trans "Resolution Journey" %}

{% if public_timeline %}
{% for item in public_timeline %}

{% if item.type == 'status_change' %} {% trans "Status Updated" %} {% if item.to_status %} β†’ {{ item.to_status }} {% endif %} {% elif item.type == 'note' %} {% trans "Update Received" %} {% else %} {% trans "Final Resolution" %} {% endif %}

{% if item.comment %}
{{ item.comment|linebreaks }}
{% endif %}
{% endfor %}
{% else %}

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

{% endif %}

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

{% endif %}
{% endblock %}