{% extends 'base.html.twig' %} {% block title %}Mon coffre-fort — CSI World{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %}
← Revenir à la carte

Coffre-fort

{{ money|number_format(0, ',', ' ') }} Dollawrs
{# ── Onglet Stockage ── #}
{# Inventaire #}
Inventaire {{ inventoryUsed }} / {{ inventoryLimit }}
{% if inventoryItems|length == 0 %}
L'inventaire est vide.
{% else %} {% for item in inventoryItems %}
{% if item.iconUrl %} {% else %} 🎁 {% endif %}
{{ item.name }}
{%- if item.type in ['weapon_instance','armor_instance'] -%}Niv. {{ item.level }} {%- elseif item.qty > 1 -%}×{{ item.qty }} {%- else -%}×1{%- endif -%}
{% if item.type not in ['weapon_instance','armor_instance'] and item.qty > 1 %} {% endif %}
{% endfor %} {% endif %}
{# Coffre #}
Coffre {{ vaultUsed }} / {{ vaultLimit }}
{% if vaultItems|length == 0 %}
Le coffre est vide.
{% else %} {% for item in vaultItems %}
{% if item.iconUrl %} {% else %} 🎁 {% endif %}
{{ item.name }}
{%- if item.type in ['weapon_instance','armor_instance'] -%}Niv. {{ item.level }} {%- elseif item.qty > 1 -%}×{{ item.qty }} {%- else -%}×1{%- endif -%}
{% if item.type not in ['weapon_instance','armor_instance'] and item.qty > 1 %} {% endif %}
{% endfor %} {% endif %}
{# ── Onglet Banque ── #}
{# Bannière de période #} {% if canDeposit %}
Fenêtre de dépôt ouverte jusqu'au 15 du mois. Prochain versement d'intérêts : {{ nextInterestDate }} (+{{ totalInterestPct }}% du solde{% if bonusInterestPct > 0 %} — dont +{{ bonusInterestPct }}% bonus abonnement{% endif %}).
{% else %}
Dépôts fermés jusqu'au 1er du mois prochain. Tout retrait effectué avant le {{ nextInterestDate }} est taxé à 20%. Prochain versement d'intérêts : {{ nextInterestDate }} (+{{ totalInterestPct }}% du solde{% if bonusInterestPct > 0 %} — dont +{{ bonusInterestPct }}% bonus abonnement{% endif %}).
{% endif %}
{# Solde #}
Solde
{{ bankBalance|number_format(0, ',', ' ') }} Dollawrs
Portefeuille : {{ money|number_format(0, ',', ' ') }} Dollawrs
{% if lastInterestAt %}
Derniers intérêts versés le {{ lastInterestAt|date('d/m/Y') }}
{% endif %}
{# Déposer #}
Dépôt
{% if canDeposit %}
{% else %}

Les dépôts rouvrent le 1er du mois prochain.

{% endif %}
{# Retirer #}
Retrait {% if withdrawalTax > 0 %} Taxe {{ withdrawalTax }}% {% endif %}
{% if withdrawalTax > 0 %}
{% endif %}
{# ── Modal de confirmation ── #}
{% endblock %}