{% load i18n %}
{% if billing_form_message %}
{{ billing_form_message }}
{% endif %} {% if billing_form_error %}
{{ billing_form_error }}
{% endif %}
{{ billing_period_label }}
{% trans "К оплате" %}
{{ billing_total_amount|default:"0" }} {% trans "грн" %}
{{ billing_contract_count }} {% trans "договоров" %}
{% trans "Оплачено" %}
{{ billing_paid_amount|default:"0" }} {% trans "грн" %}
{{ billing_paid_count }} {% trans "договоров" %}
{% trans "Не оплачено" %}
{{ billing_unpaid_count }}
{% trans "договоров" %}
{% for row in billing_rows %} {% if row.is_provider_header %} {% else %} {% with c=row.contract %} {% endwith %} {% endif %} {% empty %} {% endfor %}
{% trans "Договор / локация" %} {% trans "Провайдер" %} {% trans "Сумма" %} {% trans "Статус" %} {% trans "Счёт" %}
{{ row.provider.name }}
{% if row.indent %} └ {% elif row.is_framework and row.has_children %} ▾ {% else %} {% endif %}
{% if row.is_framework %} {% trans "Общий" %} {% endif %} №{{ c.contract_number }}
{{ c.location_display }}
{% if row.has_children %}
{% trans "группа договоров" %}
{% endif %}
{% if row.indent %}—{% else %}{{ c.provider.name }}{% endif %} {{ row.amount|default:"—" }}{% if row.amount %} {% trans "грн" %}{% endif %} {% if row.is_paid %} {% trans "Оплачено" %} {% if row.payment.paid_at %}
{{ row.payment.paid_at|date:"d.m.Y" }}
{% endif %} {% else %} {% trans "Не оплачено" %} {% endif %}
{{ row.payment.invoice_number|default:"—" }}
{% csrf_token %} {% if billing_filter_provider %}{% endif %}
{% trans "Нет активных договоров для учёта оплат." %}