{% extends "base.html" %} {% block title %}Support Tickets{% endblock %} {% block content %}

Customer Support Tickets

{{ tickets.total }} ticket{{ 's' if tickets.total != 1 }}
Chat Conversations
{# Status filter tabs #} {% if tickets.items %}
{% for ticket in tickets.items %} {% set status_class = {'open': 'danger', 'answered': 'success', 'closed': 'secondary'} %} {% endfor %}
# Customer Facility Subject Status Submitted
{{ ticket.id }} {{ ticket.customer.display_name if ticket.customer else '—' }} {{ ticket.facility.name if ticket.facility else '—' }} {{ ticket.subject }} {{ ticket.status | capitalize }} {{ ticket.created_at.strftime('%b %d, %Y %I:%M %p') }} View
{# Pagination #} {% if tickets.pages > 1 %} {% endif %} {% else %}
No tickets{% if status_filter %} with status "{{ status_filter }}"{% endif %}.
{% endif %} {% endblock %}