{% extends 'common/layout.html.twig' %}

{% block content %}
    <div class='container homepage'>
		<div class='row mt-3'>
		 	<div class='col-12 col-md-3'>
		 		{% block colonne_gauche %}
					{% include 'common/stats.html.twig' %}
					{% include 'common/groupes.html.twig' %}
					{% include 'common/rubriques.html.twig' %}
				{% endblock colonne_gauche %}
			</div>
			<div class='col-12 col-md-6 text-center'>
				{% block colonne_centre %}
					{% include 'presta/block/carte.html.twig' with {'title': 'Situer les Prestataires'|trans}%}
					{% if is_granted('ROLE_PRESTATAIRE') %}
						{% include 'presta/block/solde.html.twig' %}
						{% include 'block/cotisations.html.twig' %}
						{% include 'block/transactions.html.twig' %}
						{% include 'presta/block/transaction_presta.html.twig' %}
						{% include 'presta/block/transaction_adherent.html.twig' %}
					{% elseif is_granted('ROLE_ADHERENT') %}
						{% include 'adherent/block/solde.html.twig' %}
						{% include 'block/cotisations.html.twig' %}
						{% include 'block/transactions.html.twig' %}
						{% include 'adherent/block/transaction_presta.html.twig' %}
						{% include 'adherent/block/transaction_adherent.html.twig' %}
					{% endif %}
				{% endblock colonne_centre %}
			</div>
			<div class='col-12 col-md-3'>
				{% block colonne_droite %}
					{% if app.user is null %}
						<a class='btn btn-secondary w-100 mb-4' title='{{'Se connecter'|trans}}' href="{{path('fos_user_security_login')}}">{{'Se connecter'|trans}}</a>
					{% endif %}
					{% include 'common/news.html.twig' %}
				{% endblock colonne_droite %}
			</div>
		</div>
	</div>
{% endblock %}

{% block js %}
{% include 'presta/block/cartejs.html.twig' %}
{% endblock %}
