{% if etablissementsProches | length %}
<h3 class="etabs-proches-prospect-title">Autres établissements à proximité</h3>
<div class="etabs-proches-prospect">
{% for proche in etablissementsProches %}
{% set urlFiche = pathBuilder.buildFiche(proche) %}
{% set urlPhoto = proche.isClient and proche.imagesDiaporama is not empty ? (proche.imagesDiaporama | first) %}
{% set distance = etablissement | etabDistance(proche) %}
<div class="item">
<div class="block-image">
{% if urlPhoto %}
<img class="resp" src="{{ asset('images/jouve/photo/' ~ urlPhoto) | imagine_filter('diapo_list') }}" alt="{{ proche.denomination }}" data-href="{{ urlFiche }}">
{% else %}
<span class="no-logo"></span>
{% endif %}
{% if distance is not empty %}
<span class="distance">à {{ distance }}</span>
{% endif %}
</div>
<div data-href="{{ urlFiche }}" class="block-description">
<a href="{{ urlFiche }}" class="title">
{{ proche.denomination | u.truncate(45, '…', true) }}
</a>
{% if proche.ville %}
<div class="address">
{{ proche.ville | lieuLibelle }}
</div>
{% endif %}
{% include '_includes/lien-masque.html.twig' with {
'target': urlFiche,
'content': "Consulter la fiche",
} only %}
</div>
</div>
{% endfor %}
</div>
{% endif %}