{% trans_default_domain 'app' %}
{% if promos is empty %}
<div class="text-center margin-bottom-20">
{{ ('promos.error.empty')|trans | raw }}
</div>
{% else %}
{% set count = 0 %}
{% for promo in promos %}
{% if promo is not null %}
{% set interval = promo.dateDebut|date_interval(promo.dateFin, app.request.locale) %}
{% if count % 3 == 0 %}
<div class="clear">
{% endif %}
{% set slug = promo.nom|replace({"*": " "})|slugify %}
<div class="col-md-4 col-sm-6 col-xs-12 promo ">
<a href="{{ path('ac_platform_produit', {'slug': slug, 'id': promo.idLieuHebergement, 'datearrivee': promo.dateDebut|date('Y-m-d'), 'duree': promo.duree}) }}">
<div class="productItem col-md-12 col-sm-12 col-xs-12 block-list-blanc padding-off">
<div class="col-md-12 padding-top-10 header-liste-resultat">
<span class="h3">
{{ promo.ville}} | {{ promo.region }} ({{ promo.departement }})
</span>
<div class="ville-plus-type">
<span class="ville">{{ promo.nom | replace({"*": " <i class='glyphicon glyphicon-star star'></i>"})|raw }} </span>
<span class="dot">.</span>
{#<span class="typo"> {{ promo.ListFiches.zero.famille |raw }}</span>#}
</div>
</div>
<div class="col-md-12 padding-off">
{% if photoProfil[promo.id] is defined %}
<img src="{{ photoProfil[promo.id] }}" alt="{{ promo.nom }}" />
{% endif %}
</div>
{% if page_code is defined and page_code == "home" %}
<div class="clear">
<div class="col-lg-1 col-sm-12"></div>
<div class="col-lg-10 col-sm-12 padding-5 category text-center">
{% if promo.category is not null %}
<strong>{{ ('promos.category.' ~ promo.category )|trans | raw }}</strong>
{% else %}
<strong>{{ ('promos.category.' ~ category)|trans | raw }}</strong>
{% endif %}
</div>
<div class="col-lg-1 col-sm-12"></div>
</div>
{% endif %}
<div class="clear">
<div class="col-lg-1 col-sm-12"></div>
<div class="col-lg-10 col-sm-12 padding-5 text-center"></div>
<div class="col-lg-1 col-sm-12"></div>
</div>
<div class="clear">
<div class="col-lg-3 col-sm-12"></div>
<div class="col-lg-6 col-sm-12 text-center">
<div class="pourcentage-reduc bleu txt-blanc">{{ 'promotion' |trans({}, 'global') |capitalize }}
<b>-{{ promo.montantTauxPromo|round }}% </b>
</div>
</div>
<div class="col-lg-3 col-sm-12"></div>
</div>
<div class="clear">
<div class="col-lg-1 col-sm-12 "></div>
<div class="col-lg-10 col-sm-12 padding-5 text-center">
{{ 'pour-un-sejour'|trans({'duree': promo.duree }, 'global') }}
{% if page_code is defined and page_code == 'home' %}<br /> {{ interval }}{% endif %}
</div>
<div class="col-lg-1 col-sm-12"></div>
</div>
<!-- Séparateur -->
<div>
<div class="col-md-12 col-sm-12 col-xs-12 fiche-filet2"></div>
</div>
<!-- -->
<div class="footer-liste-resultat">
<div class="col-md-7 col-sm-7 col-xs-12 block-prix block-prix-liste">
<div class="prix-mention">{{ 'a_partir_de' |trans({}, 'global') |capitalize }}</div>
<span class="prix-barre">{{ promo.prixBrut |round }}€</span>
<span class="prix">
<span class="link tooltip-link prix">{{ promo.prixTotal |round }}€</span>
</span>
<div class="prix-mention">{{ 'lesejour' |trans({}, 'global') }}</div>
</div>
<div class="col-md-5 col-sm-5 col-xs-12 pull-right text-right">
<span class="btn-ateya width-100">{{ 'ancre.reserver' |trans({},'app') |raw }}</span>
</div>
</div>
</div>
</a>
</div>
{% if count % 3 == 2 %}
</div>
{% endif %}
{% set count = count + 1 %}
{% endif %}
{% endfor %}
{% endif %}
<div class="clear"></div>