{% extends "base.html" %} {% block title %}پشتیبانی - پنل کاربری{% endblock %} {% block content %}

پشتیبانی

{{ total }}
کل تیکت‌ها
{{ tickets|selectattr('status', 'equalto', 'open')|list|length }}
در جریان
{{ tickets|selectattr('status', 'equalto', 'closed')|list|length }}
بسته شده
{% if tickets %}
{% for ticket in tickets %} {% set is_waiting = ticket.status == 'open' and (not ticket.last_reply_by or ticket.last_reply_by == ticket.user_id) %}
#{{ ticket.id }} {% if is_waiting %}
منتظر پاسخ
{% elif ticket.status == 'open' %}
پاسخ داده شده
{% else %}
بسته شده
{% endif %}

{{ ticket.subject }}

{% endfor %}
{% if total_pages > 1 %}
{% if current_page > 1 %} {% endif %} {% for p in range(1, total_pages + 1) %} {% if p == 1 or p == total_pages or (p >= current_page - 1 and p <= current_page + 1) %} {{ p }} {% elif p == current_page - 2 or p == current_page + 2 %} ... {% endif %} {% endfor %} {% if current_page < total_pages %} {% endif %}
{% endif %} {% else %}

هیچ تیکتی ندارید

برای دریافت پشتیبانی، اولین تیکت خود را ایجاد کنید

{% endif %}
{% endblock %}