{% load i18n leprikon_tags qr_code %}
{{ reg.price | currency }} {% if reg.subject.course.school_year_division.period_name %} / {{ reg.subject.course.school_year_division.period_name }}{% endif %} {% if reg.subject_variant %}({{ reg.subject_variant.name }}){% endif %}
{% if reg.approved %}
{{ reg.payment_status_sum.title }}
{% if reg.subject.subject_type.subject_type == 'course' %} {% for pps in reg.period_payment_statuses %} {{ pps.period.name }}: {% blocktrans with paid=pps.status.paid|currency %}paid {{ paid }}{% endblocktrans %} {% if pps.status.discount %}({% trans 'discount' %}: {{ pps.status.discount | currency }}{% if pps.status.explanation %} - {{ pps.status.explanation }}{% endif %}){% endif %}
{% endfor %} {% else %} {% blocktrans with paid=reg.payment_status.paid|currency %}paid {{ paid }}{% endblocktrans %} {% if reg.payment_status.discount %}({% trans 'discount' %}: {{ reg.payment_status.discount | currency }}{% if reg.payment_status.explanation %} - {{ reg.payment_status.explanation }}{% endif %}){% endif %} {% endif %} {% if reg.payment_requested and reg.payment_status_sum.amount_due %} {% if site.payment_gateway %}

{% trans 'Online payment' %}

{% trans 'pay online' %}

{% endif %} {% if reg.organization.bank_account %}

{% trans 'Bank transfer' %}

{% trans 'Please, use following information for bank transfer' %}:
{% trans 'Bank account' %}: {{ reg.organization.bank_account }}
{% trans 'Variable symbol' %}: {{ reg.variable_symbol }}

{% trans 'Or You may use following QR code to scan the payment details to your mobile banking application' %}:
{% qr_from_text reg.spayd border=1 %}

{% endif %} {% if not reg.organization.bank_account and not site.payment_gateway %}

{% trans 'Currently we only accept payments in cash.' %}

{% endif %} {% endif %}
{% endif %}