{% for ticket in tickets %} {# Star toggle #} {# ID + external link #}
#{{ ticket.provider_thread_id or ticket.id }} {% if ticket.provider_thread_id %} open_in_new {% endif %} {% if not ticket.is_read %} {% endif %} {% if ticket.has_ai %} psychology {% endif %} {% if ticket.customer_revenue and ticket.customer_revenue|float > 500 %} VIP {% elif ticket.customer_revenue and ticket.customer_revenue|float > 100 %} military_tech {% endif %} {% if ticket.is_review_request %} sentiment_very_satisfiedThanks {% endif %}
{# Last message preview #} {% if ticket.last_msg_direction %}
{% if ticket.last_msg_direction == 'inbound' %} call_received {% else %} call_made {% endif %}
{% else %} - {% endif %} {# Subject + snippet #} {{ ticket.subject }} {% if ticket.latest_topic_label %} {{ ticket.latest_topic_label }} {% endif %} {% if ticket.last_snippet %}

{{ ticket.last_snippet }}

{% endif %} {# Product (icon only, tooltip shows name) #} {% if ticket.product_type == 'business_care' %} {% if ticket.id_product %}
BC
{% else %}
BC
{% endif %} {% elif ticket.pico_url %} {% if ticket.id_product %} {{ ticket.product_name or '' }} {% else %} {{ ticket.product_name or '' }} {% endif %} {% else %} - {% endif %} {# PS Version #} {{ ticket.ps_version or '-' }} {# Status badge #} {% if ticket.is_review_request and ticket.status == 'closed' %} favoriteThanks {% elif ticket.status == 'open' %} Open {% elif ticket.status == 'in_progress' %} In Progress {% elif ticket.status == 'waiting_customer' %} Waiting {% elif ticket.status == 'closed' %} Closed {% else %} {{ ticket.status }} {% endif %} {# Priority badge #} {% if ticket.priority == 'p1' %} P1 {% elif ticket.priority == 'p2' %} P2 {% elif ticket.priority == 'p3' %} P3 {% else %} P4 {% endif %} {# Support status #} {% if ticket.is_support_expired %} errorExpired {% else %} check_circleActive {% endif %} {# Last activity #} {{ ticket.last_activity_at.strftime('%Y-%m-%d %H:%M') if ticket.last_activity_at else '-' }} {% else %} inbox

No tickets found.

Try adjusting your filters or sync new messages.

{% endfor %}