{% extends "base.html" %} {% block title %}{{ ltext('Paid Tickets / التذاكر المأجورة') }} | {{ app_name }}{% endblock %} {% block content %}

{{ ltext('Paid Tickets / التذاكر المأجورة') }}

{{ ltext('Tickets converted to paid work with their current price. / التذاكر التي تم تحويلها إلى عمل مأجور مع سعرها الحالي.') }}

{% if tickets.items %}
{% for ticket in tickets.items %}
{{ ticket.ticket_number }}

{{ ticket.title }}

{{ '%.2f'|format(ticket.paid_amount or 0) }} {{ ticket.paid_currency }}

{{ ticket.description[:180] ~ ('...' if ticket.description|length > 180 else '') }}

{{ ltext('Company / الشركة') }} {{ ticket.company.name if ticket.company else t('internal') }}
{{ ltext('Department / القسم') }} {{ ticket.department.name if ticket.department else t('unassigned') }}
{{ ltext('Status / الحالة') }} {{ ticket.status.name if ticket.status else 'N/A'|ltext }}
{{ ltext('Updated / آخر تحديث') }} {{ ticket.updated_at.strftime('%Y-%m-%d %H:%M') }}
{% endfor %}
{% else %}

{{ ltext('No paid tickets available. / لا توجد تذاكر مأجورة حالياً.') }}

{% endif %} {% set pagination = tickets %} {% include "partials/pagination.html" %}
{% endblock %}