{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{{ inquiry.reference_number }} - {{ department.get_localized_name }} - PX360{% endblock %} {% block content %}
{% trans "Departments" %} {{ department.get_localized_name }} {% trans "Inquiries" %} {{ inquiry.reference_number }}

{{ inquiry.reference_number }}

{{ inquiry.get_status_display }}

{% trans "Inquiry" %}

{% if can_respond and inquiry.status != 'closed' %}
{% trans "Department Actions" %}
{% csrf_token %}
{% if inquiry.status == 'in_progress' and inquiry.contact_status == 'not_contacted' %} {% trans "Record a contact outcome above before resolving." %} {% endif %} {% if inquiry.status == 'in_progress' %}
{% csrf_token %}
{% csrf_token %}
{% endif %}
{% endif %} {% if inquiry.subject %}

{{ inquiry.subject }}

{% endif %}

{% trans "Message" %}

{{ inquiry.message|default:"—" }}

{% trans "Details" %}

{% trans "Department" %}

{{ inquiry.department.get_localized_name|default:"—" }}

{% if inquiry.outgoing_department %}

{% trans "Outgoing Department" %}

{{ inquiry.outgoing_department.get_localized_name }}

{% endif %}

{% trans "Assigned To" %}

{{ inquiry.assigned_to.get_full_name|default:"—" }}

{% trans "Contact" %}

{{ inquiry.contact_name|default:"—" }}

{% if inquiry.contact_phone %}

{% trans "Phone" %}

{{ inquiry.contact_phone }}

{% endif %} {% if inquiry.contact_email %}

{% trans "Email" %}

{{ inquiry.contact_email }}

{% endif %} {% if inquiry.category %}

{% trans "Category" %}

{{ inquiry.get_category_display }}

{% endif %} {% if location_str %}

{% trans "Location" %}

{{ location_str }}

{% endif %}

{% trans "Created" %}

{{ inquiry.created_at|date:"Y-m-d H:i" }}

{% trans "Contact Status" %}

{{ inquiry.get_contact_status_display|default:"—" }} {% if inquiry.contact_status_at %}{{ inquiry.contact_status_at|date:"Y-m-d H:i" }}{% endif %}

{% if inquiry.department_response_en or inquiry.department_response_ar %}

{% trans "Department Response" %} {% if inquiry.department_responded_at %} {{ inquiry.department_responded_at|date:"Y-m-d H:i" }} {% endif %}

{% if inquiry.department_response_en %}

{{ inquiry.department_response_en }}

{% endif %} {% if inquiry.department_response_ar %}

{{ inquiry.department_response_ar }}

{% endif %}
{% endif %} {% include "partials/notes_panel.html" %}
{% include "components/send_to_modal.html" %} {% endblock %}