{% extends "layouts/public_base.html" %} {% load i18n %} {% block title %}{% trans "Track Your Complaint" %}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Back to Home" %}

{% trans "Track Your Complaint" %}

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

{% csrf_token %}

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

{% if error_message %}

{% trans "Reference Not Found" %}

{{ error_message }}

{% endif %} {% if complaint %}
{% trans "Case Reference" %}

{{ complaint.reference_number }}

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

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

{% trans "Department" %}

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

{% trans "SLA Deadline" %}

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

{% if complaint.is_overdue %} {% 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 == 'resolution' %}{% trans "Final Resolution" %} {% else %}{% trans "Update Received" %}{% endif %}

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

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

{% endif %}
{% endif %}
{% endblock %}