{% load i18n %} {% if configured %}

{% blocktrans trimmed with provider=provider.verbose_name %} Invoicing (PT) — {{ provider }} {% endblocktrans %}

{% if invoice %} {# dl-horizontal is what pretix's own order panels use. #}
{% trans "Status" %}
{% if invoice.status == "success" %} {% trans "Issued" %} {% elif invoice.status == "error" %} {% trans "Error" %} {% else %} {% trans "Processing" %} {% endif %}
{% if invoice.document_id %}
{% trans "Document" %}
{{ invoice.document_id }} {% if invoice.permanent_url %} · {% blocktrans trimmed with provider=provider.verbose_name %} Open at {{ provider }} {% endblocktrans %} {% endif %}
{% endif %} {% if invoice.status == "error" and invoice.error_message %}
{% trans "Error" %}
{{ invoice.error_message }}
{% endif %}
{% trans "Last attempt" %}
{{ invoice.modified|date:"SHORT_DATETIME_FORMAT" }} {% blocktrans trimmed count attempts=invoice.attempts %} {{ attempts }} attempt {% plural %} {{ attempts }} attempts {% endblocktrans %}
{% elif is_paid %}

{% trans "No invoice issued for this order yet." %}

{% else %}

{% trans "Invoices are only issued once the order is paid." %}

{% endif %}
{% if is_paid %} {% endif %}
{% endif %}