{% load i18n %}
{% trans "Reference" %}
{{ invoice.ref }}
{% trans "Amount" %}
{{ btc }} BTC ({{ sats }} sats)
{% if rate.price %}
{% trans "Exchange rate" %}
1 BTC = {{ rate.price }} {{ rate.currency }} ({{ rate.source }}, {{ rate_time|date:"SHORT_DATETIME_FORMAT" }})
{% endif %}
{% trans "Payable" %}
{% if invoice.bolt11 %}{% trans "in Lightning" %}{% endif %}{% if invoice.bolt11 and address %}, {% endif %}{% if address %}{% trans "on-chain" %}{% endif %}
{% if invoice.payment_hash %}
{% trans "Payment hash" %}
{{ invoice.payment_hash }}
{% endif %} {% if address %}
{% trans "Bitcoin address" %}
{% if address_link %} {{ address }} {% else %} {{ address }} {% endif %}
{% endif %}
{% trans "Created" %}
{{ created_at|date:"SHORT_DATETIME_FORMAT" }}
{% trans "Payable until" %}
{{ expires|date:"SHORT_DATETIME_FORMAT" }}
{% trans "Status" %}
{% if state == "paid" %} {% trans "paid" %} {% if method == "lightning" %}({% trans "in Lightning" %}){% elif method == "onchain" %}({% trans "on-chain" %}){% elif method == "mixed" %}({% trans "on-chain and in Lightning" %}){% endif %} {% elif state == "unconfirmed" %} {% trans "received on-chain, being confirmed" %} {% elif state == "expired" %} {% if invoice.received %}{% trans "ended underpaid" %}{% else %}{% trans "expired unpaid" %}{% endif %} {% elif state == "open" %} {% if invoice.received %}{% trans "partly paid, waiting for the rest" %}{% else %}{% trans "waiting for the payment" %}{% endif %} {% else %} {% trans "not checked yet" %} {% endif %}
{% if invoice.received %}
{% trans "Received" %}
{{ received_sats }} sats
{% endif %} {% if confirmations is not None %}
{% trans "Confirmations" %}
{{ confirmations }}
{% endif %} {% for txid in txids %}
{% if forloop.first %}{% trans "Transactions" %}{% endif %}
{{ txid }}
{% endfor %} {% for preimage in preimages %}
{% if forloop.first %}{% trans "Proof of payment" %}{% endif %}
{{ preimage }}
{% endfor %}
{% trans "Last check" %}
{% if invoice.checked %}{{ invoice.checked|date:"SHORT_DATETIME_FORMAT" }}{% else %}–{% endif %} {% if invoice.error %} ({% blocktrans with error=invoice.error %}failed: {{ error }}{% endblocktrans %}) {% endif %}
{% if not invoice.final %}
{% trans "Next check" %}
{{ invoice.next_check|date:"SHORT_DATETIME_FORMAT" }}
{% endif %}