{% if app.user.cotisations|length > 0 %}
	{% set idcard = 'cotisationspresta' %}
	{% extends 'block/block_collapse.html.twig' %}

	{% block blocktitle %}
		<i class="fa fa-clipboard-list mr-4"></i> {{ 'Mes cotisations'|trans }}
	{% endblock blocktitle %}
	{% block blocksubtitle %}
	{% endblock blocksubtitle %}
	{% block blockcontent %}
		<ul class='list-group'>
			{% set cotisations = getAllFlux(app.user, app.request, 'cotisation') %}
			{% for cotisation in cotisations %}
				<li class="list-group-item"><span class='btn btn-xs btn-primary disabled'>{{cotisation.annee|upper}}</span> <b>{{cotisation.montant}}&euro;</b> <em> {{ 'payée le'|trans }} {{cotisation.createdAt|date('d/m/Y')}} en {{cotisation.moyen}}</em></li>
			{% endfor %}
		</ul>

		{% if (isCurrentRoleGranted('ROLE_ADHERENT') and app.user.adherent or (isCurrentRoleGranted('ROLE_PRESTATAIRE') and app.session.has('_prestagere'))) %}
			<a class='btn btn-xs btn-primary' href='{{ path('cotiser') }}'>
				Cotiser en MLC
			</a>
		{% endif %}
	{% endblock blockcontent %}
{% endif %}