<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front_v4/mca/store/_store_card.html.twig */
class __TwigTemplate_ab0395f75bbf327a1ea7c80f8a2536634a2f7aafb748ce5d32f6cf2b31ce4595 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front_v4/mca/store/_store_card.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front_v4/mca/store/_store_card.html.twig"));
// line 1
echo "<!-- Card -->
<div id=\"store-";
// line 2
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 2, $this->source); })()), "id", [], "any", false, false, false, 2), "html", null, true);
echo "\"
class=\"card card-bordered card-transition mb-3 ";
// line 3
if ((array_key_exists("preferred", $context) && ((isset($context["preferred"]) || array_key_exists("preferred", $context) ? $context["preferred"] : (function () { throw new RuntimeError('Variable "preferred" does not exist.', 3, $this->source); })()) == true))) {
echo "border-primary";
}
echo "\"
data-id=\"";
// line 4
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 4, $this->source); })()), "id", [], "any", false, false, false, 4), "html", null, true);
echo "\"
data-lat=\"";
// line 5
if (twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "geocoding_data", [], "any", true, true, false, 5)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 5, $this->source); })()), "geocoding_data", [], "any", false, false, false, 5), "latitude", [], "any", false, false, false, 5), "html", null, true);
}
echo "\"
data-lng=\"";
// line 6
if (twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "geocoding_data_longitude", [], "any", true, true, false, 6)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 6, $this->source); })()), "geocoding_data", [], "any", false, false, false, 6), "longitude", [], "any", false, false, false, 6), "html", null, true);
}
echo "\"
data-name=\"";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
echo "\"
data-address=\"";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 8, $this->source); })()), "address", [], "any", false, false, false, 8), "html", null, true);
echo "\" data-zipcode=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 8, $this->source); })()), "zipcode", [], "any", false, false, false, 8), "html", null, true);
echo "\" data-city=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 8, $this->source); })()), "city", [], "any", false, false, false, 8), "html", null, true);
echo "\"
data-phone=\"";
// line 9
if (twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "geocoding_data_longitude", [], "any", true, true, false, 9)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 9, $this->source); })()), "phone_number", [], "any", false, false, false, 9), "html", null, true);
}
echo "\">
<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\">
";
// line 17
if ((twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 17, $this->source); })()), "isIndexable", [], "any", false, false, false, 17) && twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "slug", [], "any", true, true, false, 17))) {
// line 18
echo " ";
// line 19
echo " <a class=\"text-dark\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_store_page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 19, $this->source); })()), "slug", [], "any", false, false, false, 19)]), "html", null, true);
echo "\">
";
}
// line 21
echo " <img class=\"store-card-logo ";
if ($this->extensions['App\Twig\OrlExtension']->isOrlWebsite()) {
echo "max-width-5";
}
echo "\" src=\"
";
// line 22
if ((twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "hasLogo", [], "any", true, true, false, 22) && twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 22, $this->source); })()), "hasLogo", [], "any", false, false, false, 22))) {
// line 23
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "object", [], "any", true, true, false, 23) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 23, $this->source); })()), "object", [], "any", false, false, false, 23)))) {
$context["storeObject"] = twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 23, $this->source); })()), "object", [], "any", false, false, false, 23);
} else {
$context["storeObject"] = (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 23, $this->source); })());
}
// line 24
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset((isset($context["storeObject"]) || array_key_exists("storeObject", $context) ? $context["storeObject"] : (function () { throw new RuntimeError('Variable "storeObject" does not exist.', 24, $this->source); })()), "logoFile"), "brand_logo_medium"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 25
($context["store"] ?? null), "hearingBrand", [], "any", true, true, false, 25) && twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 25, $this->source); })()), "hearingBrand", [], "any", false, false, false, 25))) {
// line 26
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 26, $this->source); })()), "hearingBrand", [], "any", false, false, false, 26), "logoFile"), "brand_logo_medium"), "html", null, true);
echo "
";
} else {
// line 28
echo " ";
if ($this->extensions['App\Twig\OrlExtension']->isOrlWebsite()) {
// line 29
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/orl/images/short_logo_orl.svg"), "html", null, true);
echo "
";
} else {
// line 31
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/front_v4/logo_mca/mca_transparent_short_logo.png"), "brand_logo_small"), "html", null, true);
echo "
";
}
// line 33
echo " ";
}
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 33, $this->source); })()), "name", [], "any", false, false, false, 33), "html", null, true);
echo " - Mon Centre Auditif\">
";
// line 34
if ((twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 34, $this->source); })()), "isIndexable", [], "any", false, false, false, 34) && twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "slug", [], "any", true, true, false, 34))) {
// line 35
echo " </a>
";
}
// line 37
echo " </div>
</div>
<div class=\"col-12 col-md-4 text-start order-sm-2 order-md-1 order-2\">
";
// line 40
if ((twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 40, $this->source); })()), "isIndexable", [], "any", false, false, false, 40) && twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "slug", [], "any", true, true, false, 40))) {
// line 41
echo " ";
// line 42
echo " <a class=\"text-dark\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_store_page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 42, $this->source); })()), "slug", [], "any", false, false, false, 42)]), "html", null, true);
echo "\">
";
}
// line 44
echo " <h6 class=\"card-title\">
<p class=\"h5 text-gray fw-bold mt-md-1 mt-3\"
title=\"";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 46, $this->source); })()), "name", [], "any", false, false, false, 46), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 46, $this->source); })()), "name", [], "any", false, false, false, 46)) > 16)) ? ((twig_slice($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 46, $this->source); })()), "name", [], "any", false, false, false, 46), 0, 14) . twig_upper_filter($this->env, "..."))) : (twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 46, $this->source); })()), "name", [], "any", false, false, false, 46)))), "html", null, true);
echo "</p>
<p class=\"d-block d-inline my-md-0 mb-3\">
<span>";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 48, $this->source); })()), "address", [], "any", false, false, false, 48), "html", null, true);
echo "</span><br>
<span>";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 49, $this->source); })()), "city", [], "any", false, false, false, 49), "html", null, true);
echo " </span>
</p>
";
// line 52
echo " </h6>
";
// line 53
if ((twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 53, $this->source); })()), "isIndexable", [], "any", false, false, false, 53) && twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "slug", [], "any", true, true, false, 53))) {
// line 54
echo " </a>
";
}
// line 56
echo " </div>
<div class=\"col-6 col-md-2 text-md-center text-end order-sm-1 order-md-2 order-1 align-self-center\">
";
// line 58
if (( !array_key_exists("linkToStore", $context) || ((isset($context["linkToStore"]) || array_key_exists("linkToStore", $context) ? $context["linkToStore"] : (function () { throw new RuntimeError('Variable "linkToStore" does not exist.', 58, $this->source); })()) != true))) {
// line 59
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "distance", [], "any", true, true, false, 59)) {
// line 60
echo " <span class=\"btn btn-xs border-primary btn-soft-primary\"
style=\"padding: 0.4375rem 0.5375rem;\">";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 61, $this->source); })()), "distance", [], "any", false, false, false, 61), "html", null, true);
echo " km</span>
";
}
// line 63
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "handicapAccess", [], "any", true, true, false, 63) && (twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 63, $this->source); })()), "handicapAccess", [], "any", false, false, false, 63) == true))) {
// line 64
echo " <i class=\"bi bi-person-wheelchair px-1\" data-bs-toggle=\"tooltip\"
data-bs-placement=\"bottom\"
title=\"Accessible aux personnes à mobilité réduite\"></i>
";
}
// line 68
echo " ";
// line 69
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 69, $this->source); })()), "user", [], "any", false, false, false, 69) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 69, $this->source); })()), "user", [], "any", false, false, false, 69), "isAdmin", [], "any", false, false, false, 69))) {
// line 70
echo " <a target=\"_blank\"
href=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("backoffice_store_reach", ["estimated_reach[store]" => twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 71, $this->source); })()), "id", [], "any", false, false, false, 71)]), "html", null, true);
echo "\"
class=\"btn btn-xs btn-secondary\">Estimation</a>
";
}
// line 74
echo " ";
}
// line 75
echo " </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\">
";
// line 79
if ((array_key_exists("linkToStore", $context) && ((isset($context["linkToStore"]) || array_key_exists("linkToStore", $context) ? $context["linkToStore"] : (function () { throw new RuntimeError('Variable "linkToStore" does not exist.', 79, $this->source); })()) == true))) {
// line 80
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_store_page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 80, $this->source); })()), "slug", [], "any", false, false, false, 80)]), "html", null, true);
echo "\">
<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 {
// line 87
echo " ";
if ($this->extensions['App\Twig\OrlExtension']->isOrlWebsite()) {
// line 88
echo " <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=\"";
// line 91
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["orlOffice"]) || array_key_exists("orlOffice", $context) ? $context["orlOffice"] : (function () { throw new RuntimeError('Variable "orlOffice" does not exist.', 91, $this->source); })()), "id", [], "any", false, false, false, 91), "html", null, true);
echo "\">
Demander un RDV
</button>
";
}
// line 95
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "isPartner", [], "any", true, true, false, 95) && twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 95, $this->source); })()), "isPartner", [], "any", false, false, false, 95))) {
// line 96
echo " <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=\"";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 98, $this->source); })()), "id", [], "any", false, false, false, 98), "html", null, true);
echo "\"
data-request=\"checkup\" onclick=\"dataLayer.push({
'event': 'click-checkup',
'centreMarque': '";
// line 101
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 101, $this->source); })()), "name", [], "any", false, false, false, 101), "html", null, true);
echo "',
'centreID': '";
// line 102
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 102, $this->source); })()), "id", [], "any", false, false, false, 102), "html", null, true);
echo "'
});\">
Je prends RDV
</button>
";
} else {
// line 107
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "phoneNumber", [], "any", true, true, false, 107) || (twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "isFreeNumber", [], "any", true, true, false, 107) && twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 107, $this->source); })()), "isIndexable", [], "any", false, false, false, 107)))) {
// line 108
echo " <button class=\"btn btn-sm btn-block btn-outline-secondary w-100 reach-phone cursor-pointer\"
data-id=\"";
// line 109
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 109, $this->source); })()), "id", [], "any", false, false, false, 109), "html", null, true);
echo "\" data-request=\"phone\"
onclick=\"dataLayer.push({
'event': 'click-phone',
'centreMarque': '";
// line 112
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 112, $this->source); })()), "name", [], "any", false, false, false, 112), "html", null, true);
echo "',
'centreID': '";
// line 113
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 113, $this->source); })()), "id", [], "any", false, false, false, 113), "html", null, true);
echo "'
});\">
Voir le numéro
</button>
";
// line 117
if ((twig_get_attribute($this->env, $this->source, ($context["store"] ?? null), "isFreeNumber", [], "any", true, true, false, 117) && (twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 117, $this->source); })()), "isFreeNumber", [], "any", false, false, false, 117) == true))) {
// line 118
echo " <div class=\"d-none store-phone-number sva-free\">
<div>";
// line 119
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 119, $this->source); })()), "phoneNumber", [], "any", false, false, false, 119), "html", null, true);
echo "</div>
<div>Service & appel<br/>gratuits</div>
</div>
";
} else {
// line 123
echo " <a class=\"d-none store-phone-number text-primary mt-1\"
href=\"tel:";
// line 124
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 124, $this->source); })()), "phoneNumber", [], "any", false, false, false, 124), [" " => ""]), "html", null, true);
echo "\"><span
class=\"bi bi-telephone-fill\"></span>
<span class=\"phone-size\">";
// line 126
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 126, $this->source); })()), "phoneNumber", [], "any", false, false, false, 126), "html", null, true);
echo "</span></a>
";
}
// line 128
echo " ";
}
// line 129
echo " ";
}
// line 130
echo " ";
}
// line 131
echo " </div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
</div>
<!-- End Media -->
</div>
</div>
<!-- End Card -->
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "front_v4/mca/store/_store_card.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 367 => 131, 364 => 130, 361 => 129, 358 => 128, 353 => 126, 348 => 124, 345 => 123, 338 => 119, 335 => 118, 333 => 117, 326 => 113, 322 => 112, 316 => 109, 313 => 108, 310 => 107, 302 => 102, 298 => 101, 292 => 98, 288 => 96, 285 => 95, 278 => 91, 273 => 88, 270 => 87, 259 => 80, 257 => 79, 251 => 75, 248 => 74, 242 => 71, 239 => 70, 236 => 69, 234 => 68, 228 => 64, 225 => 63, 220 => 61, 217 => 60, 214 => 59, 212 => 58, 208 => 56, 204 => 54, 202 => 53, 199 => 52, 194 => 49, 190 => 48, 183 => 46, 179 => 44, 173 => 42, 171 => 41, 169 => 40, 164 => 37, 160 => 35, 158 => 34, 151 => 33, 145 => 31, 139 => 29, 136 => 28, 130 => 26, 128 => 25, 123 => 24, 116 => 23, 114 => 22, 107 => 21, 101 => 19, 99 => 18, 97 => 17, 84 => 9, 76 => 8, 72 => 7, 66 => 6, 60 => 5, 56 => 4, 50 => 3, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- 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 -->
", "front_v4/mca/store/_store_card.html.twig", "/var/www/hearing_store_locator/templates/front_v4/mca/store/_store_card.html.twig");
}
}