{% extends 'client_portal/base.html' %}{% load portal_tags %}{% block content %}<div class="portal-section-head"><div><p>CENTRO DE SUPORTE</p><h2>Tickets</h2><span>Converse diretamente com a equipa e acompanhe cada pedido.</span></div>{% if portal_access.can_manage_tickets %}<a class="portal-button portal-button--primary" href="{% url 'client_portal:ticket_create' %}">+ Novo ticket</a>{% endif %}</div><div class="portal-ticket-list">{% for ticket in tickets %}<a href="{% url 'client_portal:ticket_detail' ticket.pk %}"><div class="ticket-main"><div><span class="ticket-ref">{{ ticket.reference }}</span><h3>{{ ticket.subject }}</h3><p>{{ ticket.get_category_display }} · Atualizado {{ ticket.last_activity_at|date:'d/m/Y H:i' }}</p></div>{% if ticket.unread_for_client %}<b class="ticket-unread">{{ ticket.unread_for_client }} nova{{ ticket.unread_for_client|pluralize:'s' }}</b>{% endif %}</div><div class="ticket-meta"><span class="status status--{{ ticket.priority|status_tone }}">{{ ticket.get_priority_display }}</span><span class="status status--{{ ticket.status|status_tone }}">{{ ticket.get_status_display }}</span></div></a>{% empty %}<div class="portal-empty">Ainda não existem tickets. Crie um pedido sempre que precisar da nossa ajuda.</div>{% endfor %}</div>{% endblock %}
