{% extends "layouts/base.html" %} {% load i18n %} {% load l10n %} {% load itens_extras %} {% block content %}
{% trans "Voltar ao Battle Pass" %}

{% trans "Trocar Itens por XP" %}

{% trans "Nível" %} {{ current_level }}{% if next_level %} → {{ next_level }}{% endif %} {{ current_xp }}/{{ xp_for_next_level }} XP
{% if not next_level %}
{% trans "Nível Máximo Atingido!" %}
{% endif %}
{% for exchange in exchanges %}
{{ exchange.item_name }}
{{ exchange.item_name }}
{% if exchange.item_enchant > 0 %} +{{ exchange.item_enchant }} {% endif %}

{% trans "XP por item" %}: {{ exchange.xp_amount }}

{% if exchange.has_item %}

{% trans "Quantidade disponível" %}: {{ exchange.item_quantity }}

{% endif %} {% if exchange.max_exchanges > 0 %}

{% trans "Trocas restantes" %}: {{ exchange.max_exchanges|default:"0"|add:"-"|add:exchange.current_exchanges|stringformat:"i" }}

{% endif %}
{% if exchange.has_item and exchange.can_exchange and next_level %}
{% csrf_token %}
{% trans "XP total" %}: {{ exchange.xp_amount }}
{% elif not exchange.has_item %}
{% trans "Você não possui este item" %}
{% elif not exchange.can_exchange %}
{% trans "Limite de trocas atingido" %}
{% elif not next_level %}
{% trans "Você já atingiu o nível máximo do Battle Pass!" %}
{% endif %}
{% empty %}

{% trans "Não há itens disponíveis para troca no momento." %}

{% endfor %}
{% endblock %}