{% extends "layouts/base.html" %} {% load i18n static %} {% block title %}{% trans "Appreciation" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Back to Appreciations" %}

{% trans "Appreciation Detail" %}

{{ appreciation.created_at|date:"Y-m-d H:i" }} — {{ appreciation.hospital.name }}

{{ appreciation.get_status_display }}
{% if metadata %}

{% trans "Submitted By" %}

{% if metadata.submitted_by_name %}

{% trans "Name" %}

{{ metadata.submitted_by_name }}

{% endif %} {% if metadata.submitted_by_phone %}

{% trans "Phone" %}

{{ metadata.submitted_by_phone }}

{% endif %} {% if metadata.submitted_by_email %}

{% trans "Email" %}

{{ metadata.submitted_by_email }}

{% endif %} {% if metadata.staff_name_mentioned %}

{% trans "Staff Mentioned" %}

{{ metadata.staff_name_mentioned }}

{% endif %}
{% endif %}

{% trans "Appreciation Message" %}

{{ appreciation.message_en|linebreaks }}

{% if appreciation.message_ar %}

{% trans "Arabic" %}

{{ appreciation.message_ar|linebreaks }}

{% endif %}
{% if appreciation.ai_analysis %}

{% trans "AI Analysis" %}

{% if appreciation.ai_analysis.summary_en %}

{% trans "Summary (EN)" %}

{{ appreciation.ai_analysis.summary_en }}

{% endif %} {% if appreciation.ai_analysis.summary_ar %}

{% trans "Summary (AR)" %}

{{ appreciation.ai_analysis.summary_ar }}

{% endif %} {% if appreciation.ai_analysis.themes %}

{% trans "Themes" %}

{% for theme in appreciation.ai_analysis.themes %} {{ theme }} {% endfor %}
{% endif %} {% if appreciation.ai_analysis.tone %}

{% trans "Tone" %}

{{ appreciation.ai_analysis.tone }}
{% endif %}
{% if appreciation.ai_analysis.suggested_response_en %}

{% trans "Suggested Response" %}

{{ appreciation.ai_analysis.suggested_response_en }}

{% endif %}
{% endif %} {% if appreciation.recipient %}

{% trans "Assigned To" %}

{{ appreciation.get_recipient_name }}

{% if appreciation.department %}

{{ appreciation.department.name }}

{% endif %}
{% endif %} {% if can_activate %}
{% csrf_token %}

{% trans "Activate Appreciation" %}

{% trans "Select the staff member and department, then activate to trigger AI analysis." %}

{% trans "Auto-populated from staff selection" %}

{% trans "Cancel" %}
{% endif %} {% if can_send %}
{% csrf_token %}

{% trans "Send Appreciation" %}

{% trans "Configure recipients and customize the message before sending." %}

{% trans "Notify Department Manager" %}

{% trans "Send to the department manager" %}

{% trans "Notify Department" %}

{% trans "Send to entire department" %}

{% trans "Leave blank to send the original appreciation message only" %}

{% trans "Comma-separated email addresses" %}

{% trans "Cancel" %}
{% endif %} {% if appreciation.status == 'sent' or appreciation.status == 'acknowledged' %}

{% trans "Sent" %}

{% trans "Sent At" %}

{{ appreciation.sent_at|date:"Y-m-d H:i" }}

{% trans "To Manager" %}

{% if appreciation.send_to_manager %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}

{% trans "To Department" %}

{% if appreciation.send_to_department %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}

{% if appreciation.custom_message %}

{% trans "Custom Message" %}

{{ appreciation.custom_message }}

{% endif %} {% if appreciation.cc_list %}

{% trans "CC" %}

{% for email in appreciation.cc_list %} {{ email }} {% endfor %}
{% endif %} {% if appreciation.acknowledged_at %}

{% trans "Acknowledged on" %} {{ appreciation.acknowledged_at|date:"Y-m-d H:i" }}

{% endif %}
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}