{% load i18n %} {% load translations %}
{% if billing.payment.recurring %} {% trans "Recurring payment" %} {% endif %} {% if not billing.is_active %} {% trans "Expired" %} {% elif not billing.paid %} {% trans "Past due date" %} {% elif not billing.in_limits %} {% trans "Exceeds limits" %} {% endif %}

{% trans "Billing plan" %}

{% include "billing/status.html" %} {% if billing.is_active %} {% endif %}

{% trans "Invoices" %}

{% for invoice in billing.invoice_set.all %} {% empty %} {% endfor %}
{% trans "Invoice period" %} {% trans "Invoice amount" %} {% trans "Download invoice" %}
{{ invoice.start|date:"SHORT_DATE_FORMAT" }} - {{ invoice.end|date:"SHORT_DATE_FORMAT" }} {{ invoice.amount }} {{ invoice.get_currency_display }} {% if invoice.ref and invoice.filename_valid %} {{ invoice.filename }} {% elif invoice.ref %} {{ invoice.filename }} {% else %} {% trans "Not available" %} {% endif %}
{% trans "No invoices found." %}