<!-- Card -->
<div id="store-{{ store.id }}"
class="card card-bordered card-transition mb-3 {% if preferred is defined and preferred == true %}border-primary{% endif %}"
data-id="{{ store.id }}"
data-lat="{% if store.geocoding_data is defined %}{{ store.geocoding_data.latitude }}{% endif %}"
data-lng="{% if store.geocoding_data_longitude is defined %}{{ store.geocoding_data.longitude }}{% endif %}"
data-name="{{ store.name }}"
data-address="{{ store.address }}" data-zipcode="{{ store.zipcode }}" data-city="{{ store.city }}"
data-phone="{% if store.geocoding_data_longitude is defined %}{{ store.phone_number }}{% endif %}">
<div class="card-body p-4">
<!-- Media -->
<div class="d-sm-flex">
<div class="flex-grow-1 ms-sm-3">
<div class="row">
<div class="col-6 col-md-2 order-sm-0 order-0 my-auto">
<div class="flex-shrink-0 d-flex justify-content-lg-center">
{% if store.isIndexable and store.slug is defined %}
{# show store page only if store had indexation #}
<a class="text-dark" href="{{ path('show_store_page', {'slug': store.slug}) }}">
{% endif %}
<img class="store-card-logo {% if isOrlWebsite() %}max-width-5{% endif %}" src="
{% if store.hasLogo is defined and store.hasLogo %}
{% if store.object is defined and store.object is not null %}{% set storeObject = store.object %}{% else %}{% set storeObject = store %}{% endif %}
{{ vich_uploader_asset(storeObject, 'logoFile') | imagine_filter('brand_logo_medium') }}
{% elseif store.hearingBrand is defined and store.hearingBrand %}
{{ vich_uploader_asset(store.hearingBrand, 'logoFile') | imagine_filter('brand_logo_medium') }}
{% else %}
{% if isOrlWebsite() %}
{{ asset('build/orl/images/short_logo_orl.svg') }}
{% else %}
{{ asset('build/front_v4/logo_mca/mca_transparent_short_logo.png') | imagine_filter('brand_logo_small') }}
{% endif %}
{% endif %}" alt="{{ store.name }} - Mon Centre Auditif">
{% if store.isIndexable and store.slug is defined %}
</a>
{% endif %}
</div>
</div>
<div class="col-12 col-md-4 text-start order-sm-2 order-md-1 order-2">
{% if store.isIndexable and store.slug is defined %}
{# show store page only if store had indexation #}
<a class="text-dark" href="{{ path('show_store_page', {'slug': store.slug}) }}">
{% endif %}
<h6 class="card-title">
<p class="h5 text-gray fw-bold mt-md-1 mt-3"
title="{{ store.name }}">{{ store.name|length > 16 ? store.name|slice(0, 14) ~ '...'|upper : store.name|upper }}</p>
<p class="d-block d-inline my-md-0 mb-3">
<span>{{ store.address }}</span><br>
<span>{{ store.city }} </span>
</p>
{# <img class="avatar avatar-xss ms-1" src="@@autopath/assets/svg/illustrations/top-vendor.svg" alt="Review rating" data-toggle="tooltip" data-placement="top" title="Claimed profile"> #}
</h6>
{% if store.isIndexable and store.slug is defined %}
</a>
{% endif %}
</div>
<div class="col-6 col-md-2 text-md-center text-end order-sm-1 order-md-2 order-1 align-self-center">
{% if linkToStore is not defined or linkToStore != true %}
{% if store.distance is defined %}
<span class="btn btn-xs border-primary btn-soft-primary"
style="padding: 0.4375rem 0.5375rem;">{{ store.distance }} km</span>
{% endif %}
{% if store.handicapAccess is defined and store.handicapAccess == true %}
<i class="bi bi-person-wheelchair px-1" data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="Accessible aux personnes à mobilité réduite"></i>
{% endif %}
{# link to estimation page visible only for admin role #}
{% if app.user and app.user.isAdmin %}
<a target="_blank"
href="{{ path('backoffice_store_reach', {'estimated_reach[store]': store.id}) }}"
class="btn btn-xs btn-secondary">Estimation</a>
{% endif %}
{% endif %}
</div>
<!-- End Col -->
<div class="col-12 col-md-4 order-md-3 order-sm-4 order-4 mb-1 text-center align-self-center">
{% if linkToStore is defined and linkToStore == true %}
<a href="{{ path('show_store_page', {'slug': store.slug}) }}">
<span class="col-sm-6 text-primary text-sm-right">
Découvrir le centre
<span class="bi bi-arrow-right small ms-2"></span>
</span>
</a>
{% else %}
{% if isOrlWebsite() %}
<button class="btn btn-finder btn-sm btn-block border-primary btn-soft-primary btn-transition w-100 cursor-pointer my-1"
data-bs-toggle="modal"
data-bs-target="#rdvOrlModal"
data-id="{{ orlOffice.id }}">
Demander un RDV
</button>
{% endif %}
{% if store.isPartner is defined and store.isPartner %}
<button class="btn btn-sm btn-block btn-warning w-100"
href="#" data-bilan-gtm="" data-bs-toggle="modal"
data-bs-target="#prospectModal" data-id="{{ store.id }}"
data-request="checkup" onclick="dataLayer.push({
'event': 'click-checkup',
'centreMarque': '{{ store.name }}',
'centreID': '{{ store.id }}'
});">
Je prends RDV
</button>
{% else %}
{% if store.phoneNumber is defined or store.isFreeNumber is defined and store.isIndexable %}
<button class="btn btn-sm btn-block btn-outline-secondary w-100 reach-phone cursor-pointer"
data-id="{{ store.id }}" data-request="phone"
onclick="dataLayer.push({
'event': 'click-phone',
'centreMarque': '{{ store.name }}',
'centreID': '{{ store.id }}'
});">
Voir le numéro
</button>
{% if store.isFreeNumber is defined and store.isFreeNumber == true %}
<div class="d-none store-phone-number sva-free">
<div>{{ store.phoneNumber }}</div>
<div>Service & appel<br/>gratuits</div>
</div>
{% else %}
<a class="d-none store-phone-number text-primary mt-1"
href="tel:{{ store.phoneNumber|replace({' ': ''}) }}"><span
class="bi bi-telephone-fill"></span>
<span class="phone-size">{{ store.phoneNumber }}</span></a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
</div>
<!-- End Media -->
</div>
</div>
<!-- End Card -->