var/cache/dev/twig/93/9350bd32be3ab057262a17834d57d4b1a7860eeb00fe9423ed077fe7d2228684.php line 124

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front_v4/mca/store/_store_card.html.twig */
  14. class __TwigTemplate_ab0395f75bbf327a1ea7c80f8a2536634a2f7aafb748ce5d32f6cf2b31ce4595 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_v4/mca/store/_store_card.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_v4/mca/store/_store_card.html.twig"));
  33.         // line 1
  34.         echo "<!-- Card -->
  35. <div id=\"store-";
  36.         // line 2
  37.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse2), "html"nulltrue);
  38.         echo "\"
  39.      class=\"card card-bordered card-transition mb-3 ";
  40.         // line 3
  41.         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))) {
  42.             echo "border-primary";
  43.         }
  44.         echo "\"
  45.      data-id=\"";
  46.         // line 4
  47.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse4), "html"nulltrue);
  48.         echo "\"
  49.      data-lat=\"";
  50.         // line 5
  51.         if (twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "geocoding_data", [], "any"truetruefalse5)) {
  52.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse5), "latitude", [], "any"falsefalsefalse5), "html"nulltrue);
  53.         }
  54.         echo "\"
  55.      data-lng=\"";
  56.         // line 6
  57.         if (twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "geocoding_data_longitude", [], "any"truetruefalse6)) {
  58.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "longitude", [], "any"falsefalsefalse6), "html"nulltrue);
  59.         }
  60.         echo "\"
  61.      data-name=\"";
  62.         // line 7
  63.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), "html"nulltrue);
  64.         echo "\"
  65.      data-address=\"";
  66.         // line 8
  67.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  68.         echo "\" data-zipcode=\"";
  69.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  70.         echo "\" data-city=\"";
  71.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  72.         echo "\"
  73.      data-phone=\"";
  74.         // line 9
  75.         if (twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "geocoding_data_longitude", [], "any"truetruefalse9)) {
  76.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse9), "html"nulltrue);
  77.         }
  78.         echo "\">
  79.     <div class=\"card-body p-4\">
  80.         <!-- Media -->
  81.         <div class=\"d-sm-flex\">
  82.             <div class=\"flex-grow-1 ms-sm-3\">
  83.                 <div class=\"row\">
  84.                     <div class=\"col-6 col-md-2 order-sm-0 order-0 my-auto\">
  85.                         <div class=\"flex-shrink-0 d-flex justify-content-lg-center\">
  86.                             ";
  87.         // line 17
  88.         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"falsefalsefalse17) && twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "slug", [], "any"truetruefalse17))) {
  89.             // line 18
  90.             echo "                            ";
  91.             // line 19
  92.             echo "                            <a class=\"text-dark\" href=\"";
  93.             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"falsefalsefalse19)]), "html"nulltrue);
  94.             echo "\">
  95.                             ";
  96.         }
  97.         // line 21
  98.         echo "                            <img class=\"store-card-logo ";
  99.         if ($this->extensions['App\Twig\OrlExtension']->isOrlWebsite()) {
  100.             echo "max-width-5";
  101.         }
  102.         echo "\" src=\"
  103.                         ";
  104.         // line 22
  105.         if ((twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "hasLogo", [], "any"truetruefalse22) && 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"falsefalsefalse22))) {
  106.             // line 23
  107.             echo "                            ";
  108.             if ((twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "object", [], "any"truetruefalse23) &&  !(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"falsefalsefalse23)))) {
  109.                 $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"falsefalsefalse23);
  110.             } else {
  111.                 $context["storeObject"] = (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'23$this->source); })());
  112.             }
  113.             // line 24
  114.             echo "                               ";
  115.             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"nulltrue);
  116.             echo "
  117.                             ";
  118.         } elseif ((twig_get_attribute($this->env$this->source,         // line 25
  119. ($context["store"] ?? null), "hearingBrand", [], "any"truetruefalse25) && 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"falsefalsefalse25))) {
  120.             // line 26
  121.             echo "                           ";
  122.             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"falsefalsefalse26), "logoFile"), "brand_logo_medium"), "html"nulltrue);
  123.             echo "
  124.                             ";
  125.         } else {
  126.             // line 28
  127.             echo "                                ";
  128.             if ($this->extensions['App\Twig\OrlExtension']->isOrlWebsite()) {
  129.                 // line 29
  130.                 echo "                                ";
  131.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/orl/images/short_logo_orl.svg"), "html"nulltrue);
  132.                 echo "
  133.                                 ";
  134.             } else {
  135.                 // line 31
  136.                 echo "                                ";
  137.                 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"nulltrue);
  138.                 echo "
  139.                                 ";
  140.             }
  141.             // line 33
  142.             echo "                            ";
  143.         }
  144.         echo "\" alt=\"";
  145.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  146.         echo " - Mon Centre Auditif\">
  147.                             ";
  148.         // line 34
  149.         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"falsefalsefalse34) && twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "slug", [], "any"truetruefalse34))) {
  150.             // line 35
  151.             echo "                            </a>
  152.                             ";
  153.         }
  154.         // line 37
  155.         echo "                        </div>
  156.                     </div>
  157.                     <div class=\"col-12 col-md-4 text-start order-sm-2 order-md-1 order-2\">
  158.                         ";
  159.         // line 40
  160.         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"falsefalsefalse40) && twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "slug", [], "any"truetruefalse40))) {
  161.             // line 41
  162.             echo "                        ";
  163.             // line 42
  164.             echo "                        <a class=\"text-dark\" href=\"";
  165.             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"falsefalsefalse42)]), "html"nulltrue);
  166.             echo "\">
  167.                         ";
  168.         }
  169.         // line 44
  170.         echo "                        <h6 class=\"card-title\">
  171.                             <p class=\"h5 text-gray fw-bold mt-md-1 mt-3\"
  172.                                title=\"";
  173.         // line 46
  174.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse46), "html"nulltrue);
  175.         echo "\">";
  176.         echo twig_escape_filter($this->env, (((twig_length_filter($this->envtwig_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"falsefalsefalse46)) > 16)) ? ((twig_slice($this->envtwig_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"falsefalsefalse46), 014) . twig_upper_filter($this->env"..."))) : (twig_upper_filter($this->envtwig_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"falsefalsefalse46)))), "html"nulltrue);
  177.         echo "</p>
  178.                             <p class=\"d-block d-inline my-md-0 mb-3\">
  179.                                 <span>";
  180.         // line 48
  181.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse48), "html"nulltrue);
  182.         echo "</span><br>
  183.                                 <span>";
  184.         // line 49
  185.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse49), "html"nulltrue);
  186.         echo " </span>
  187.                             </p>
  188.                             ";
  189.         // line 52
  190.         echo "                        </h6>
  191.                         ";
  192.         // line 53
  193.         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"falsefalsefalse53) && twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "slug", [], "any"truetruefalse53))) {
  194.             // line 54
  195.             echo "                        </a>
  196.                         ";
  197.         }
  198.         // line 56
  199.         echo "                    </div>
  200.                     <div class=\"col-6 col-md-2 text-md-center text-end order-sm-1 order-md-2 order-1 align-self-center\">
  201.                         ";
  202.         // line 58
  203.         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))) {
  204.             // line 59
  205.             echo "                            ";
  206.             if (twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "distance", [], "any"truetruefalse59)) {
  207.                 // line 60
  208.                 echo "                                <span class=\"btn btn-xs border-primary btn-soft-primary\"
  209.                                       style=\"padding: 0.4375rem 0.5375rem;\">";
  210.                 // line 61
  211.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse61), "html"nulltrue);
  212.                 echo " km</span>
  213.                             ";
  214.             }
  215.             // line 63
  216.             echo "                            ";
  217.             if ((twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "handicapAccess", [], "any"truetruefalse63) && (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"falsefalsefalse63) == true))) {
  218.                 // line 64
  219.                 echo "                                <i class=\"bi bi-person-wheelchair px-1\" data-bs-toggle=\"tooltip\"
  220.                                    data-bs-placement=\"bottom\"
  221.                                    title=\"Accessible aux personnes à mobilité réduite\"></i>
  222.                             ";
  223.             }
  224.             // line 68
  225.             echo "                            ";
  226.             // line 69
  227.             echo "                            ";
  228.             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"falsefalsefalse69) && twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse69), "isAdmin", [], "any"falsefalsefalse69))) {
  229.                 // line 70
  230.                 echo "                                <a target=\"_blank\"
  231.                                    href=\"";
  232.                 // line 71
  233.                 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"falsefalsefalse71)]), "html"nulltrue);
  234.                 echo "\"
  235.                                    class=\"btn btn-xs btn-secondary\">Estimation</a>
  236.                             ";
  237.             }
  238.             // line 74
  239.             echo "                        ";
  240.         }
  241.         // line 75
  242.         echo "                    </div>
  243.                     <!-- End Col -->
  244.                     <div class=\"col-12 col-md-4 order-md-3 order-sm-4 order-4 mb-1 text-center align-self-center\">
  245.                         ";
  246.         // line 79
  247.         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))) {
  248.             // line 80
  249.             echo "                            <a href=\"";
  250.             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"falsefalsefalse80)]), "html"nulltrue);
  251.             echo "\">
  252.                             <span class=\"col-sm-6 text-primary text-sm-right\">
  253.                                             Découvrir le centre
  254.                                                 <span class=\"bi bi-arrow-right small ms-2\"></span>
  255.                                               </span>
  256.                             </a>
  257.                         ";
  258.         } else {
  259.             // line 87
  260.             echo "                            ";
  261.             if ($this->extensions['App\Twig\OrlExtension']->isOrlWebsite()) {
  262.                 // line 88
  263.                 echo "                                <button class=\"btn btn-finder btn-sm btn-block border-primary btn-soft-primary btn-transition w-100 cursor-pointer my-1\"
  264.                                         data-bs-toggle=\"modal\"
  265.                                         data-bs-target=\"#rdvOrlModal\"
  266.                                         data-id=\"";
  267.                 // line 91
  268.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse91), "html"nulltrue);
  269.                 echo "\">
  270.                                     Demander un RDV
  271.                                 </button>
  272.                             ";
  273.             }
  274.             // line 95
  275.             echo "                            ";
  276.             if ((twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "isPartner", [], "any"truetruefalse95) && 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"falsefalsefalse95))) {
  277.                 // line 96
  278.                 echo "                                <button class=\"btn btn-sm btn-block btn-warning w-100\"
  279.                                         href=\"#\" data-bilan-gtm=\"\" data-bs-toggle=\"modal\"
  280.                                         data-bs-target=\"#prospectModal\" data-id=\"";
  281.                 // line 98
  282.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse98), "html"nulltrue);
  283.                 echo "\"
  284.                                         data-request=\"checkup\" onclick=\"dataLayer.push({
  285.                                         'event': 'click-checkup',
  286.                                         'centreMarque': '";
  287.                 // line 101
  288.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse101), "html"nulltrue);
  289.                 echo "',
  290.                                         'centreID': '";
  291.                 // line 102
  292.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse102), "html"nulltrue);
  293.                 echo "'
  294.                                         });\">
  295.                                     Je prends RDV
  296.                                 </button>
  297.                             ";
  298.             } else {
  299.                 // line 107
  300.                 echo "                                ";
  301.                 if ((twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "phoneNumber", [], "any"truetruefalse107) || (twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "isFreeNumber", [], "any"truetruefalse107) && 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"falsefalsefalse107)))) {
  302.                     // line 108
  303.                     echo "                                    <button class=\"btn btn-sm btn-block btn-outline-secondary w-100 reach-phone cursor-pointer\"
  304.                                             data-id=\"";
  305.                     // line 109
  306.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse109), "html"nulltrue);
  307.                     echo "\" data-request=\"phone\"
  308.                                             onclick=\"dataLayer.push({
  309.                                                     'event': 'click-phone',
  310.                                                     'centreMarque': '";
  311.                     // line 112
  312.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse112), "html"nulltrue);
  313.                     echo "',
  314.                                                     'centreID': '";
  315.                     // line 113
  316.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse113), "html"nulltrue);
  317.                     echo "'
  318.                                                     });\">
  319.                                         Voir le numéro
  320.                                     </button>
  321.                                     ";
  322.                     // line 117
  323.                     if ((twig_get_attribute($this->env$this->source, ($context["store"] ?? null), "isFreeNumber", [], "any"truetruefalse117) && (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"falsefalsefalse117) == true))) {
  324.                         // line 118
  325.                         echo "                                        <div class=\"d-none store-phone-number sva-free\">
  326.                                             <div>";
  327.                         // line 119
  328.                         echo twig_escape_filter($this->envtwig_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"falsefalsefalse119), "html"nulltrue);
  329.                         echo "</div>
  330.                                             <div>Service & appel<br/>gratuits</div>
  331.                                         </div>
  332.                                     ";
  333.                     } else {
  334.                         // line 123
  335.                         echo "                                        <a class=\"d-none store-phone-number text-primary mt-1\"
  336.                                            href=\"tel:";
  337.                         // line 124
  338.                         echo twig_escape_filter($this->envtwig_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"falsefalsefalse124), [" " => ""]), "html"nulltrue);
  339.                         echo "\"><span
  340.                                                     class=\"bi bi-telephone-fill\"></span>
  341.                                             <span class=\"phone-size\">";
  342.                         // line 126
  343.                         echo twig_escape_filter($this->envtwig_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"falsefalsefalse126), "html"nulltrue);
  344.                         echo "</span></a>
  345.                                     ";
  346.                     }
  347.                     // line 128
  348.                     echo "                                ";
  349.                 }
  350.                 // line 129
  351.                 echo "                            ";
  352.             }
  353.             // line 130
  354.             echo "                        ";
  355.         }
  356.         // line 131
  357.         echo "                    </div>
  358.                     <!-- End Col -->
  359.                 </div>
  360.                 <!-- End Row -->
  361.             </div>
  362.         </div>
  363.         <!-- End Media -->
  364.     </div>
  365. </div>
  366. <!-- End Card -->
  367. ";
  368.         
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  370.         
  371.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  372.     }
  373.     public function getTemplateName()
  374.     {
  375.         return "front_v4/mca/store/_store_card.html.twig";
  376.     }
  377.     public function isTraitable()
  378.     {
  379.         return false;
  380.     }
  381.     public function getDebugInfo()
  382.     {
  383.         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,);
  384.     }
  385.     public function getSourceContext()
  386.     {
  387.         return new Source("<!-- Card -->
  388. <div id=\"store-{{ store.id }}\"
  389.      class=\"card card-bordered card-transition mb-3 {% if preferred is defined and preferred == true %}border-primary{% endif %}\"
  390.      data-id=\"{{ store.id }}\"
  391.      data-lat=\"{% if store.geocoding_data is defined %}{{ store.geocoding_data.latitude }}{% endif %}\"
  392.      data-lng=\"{% if store.geocoding_data_longitude is defined %}{{ store.geocoding_data.longitude }}{% endif %}\"
  393.      data-name=\"{{ store.name }}\"
  394.      data-address=\"{{ store.address }}\" data-zipcode=\"{{ store.zipcode }}\" data-city=\"{{ store.city }}\"
  395.      data-phone=\"{% if store.geocoding_data_longitude is defined %}{{ store.phone_number }}{% endif %}\">
  396.     <div class=\"card-body p-4\">
  397.         <!-- Media -->
  398.         <div class=\"d-sm-flex\">
  399.             <div class=\"flex-grow-1 ms-sm-3\">
  400.                 <div class=\"row\">
  401.                     <div class=\"col-6 col-md-2 order-sm-0 order-0 my-auto\">
  402.                         <div class=\"flex-shrink-0 d-flex justify-content-lg-center\">
  403.                             {% if store.isIndexable and store.slug is defined %}
  404.                             {# show store page only if store had indexation #}
  405.                             <a class=\"text-dark\" href=\"{{ path('show_store_page', {'slug': store.slug}) }}\">
  406.                             {% endif %}
  407.                             <img class=\"store-card-logo {% if isOrlWebsite() %}max-width-5{% endif %}\" src=\"
  408.                         {% if store.hasLogo is defined and store.hasLogo %}
  409.                             {% if store.object is defined and store.object is not null %}{% set storeObject = store.object %}{% else %}{% set storeObject = store %}{% endif %}
  410.                                {{ vich_uploader_asset(storeObject, 'logoFile') | imagine_filter('brand_logo_medium') }}
  411.                             {% elseif store.hearingBrand is defined and store.hearingBrand %}
  412.                            {{ vich_uploader_asset(store.hearingBrand, 'logoFile') | imagine_filter('brand_logo_medium') }}
  413.                             {% else %}
  414.                                 {% if isOrlWebsite() %}
  415.                                 {{ asset('build/orl/images/short_logo_orl.svg') }}
  416.                                 {% else %}
  417.                                 {{ asset('build/front_v4/logo_mca/mca_transparent_short_logo.png') | imagine_filter('brand_logo_small') }}
  418.                                 {% endif %}
  419.                             {% endif %}\" alt=\"{{ store.name }} - Mon Centre Auditif\">
  420.                             {% if store.isIndexable and store.slug is defined %}
  421.                             </a>
  422.                             {% endif %}
  423.                         </div>
  424.                     </div>
  425.                     <div class=\"col-12 col-md-4 text-start order-sm-2 order-md-1 order-2\">
  426.                         {% if store.isIndexable and store.slug is defined %}
  427.                         {# show store page only if store had indexation #}
  428.                         <a class=\"text-dark\" href=\"{{ path('show_store_page', {'slug': store.slug}) }}\">
  429.                         {% endif %}
  430.                         <h6 class=\"card-title\">
  431.                             <p class=\"h5 text-gray fw-bold mt-md-1 mt-3\"
  432.                                title=\"{{ store.name }}\">{{ store.name|length > 16 ? store.name|slice(0, 14) ~ '...'|upper : store.name|upper }}</p>
  433.                             <p class=\"d-block d-inline my-md-0 mb-3\">
  434.                                 <span>{{ store.address }}</span><br>
  435.                                 <span>{{ store.city }} </span>
  436.                             </p>
  437.                             {#                            <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\"> #}
  438.                         </h6>
  439.                         {% if store.isIndexable and store.slug is defined %}
  440.                         </a>
  441.                         {% endif %}
  442.                     </div>
  443.                     <div class=\"col-6 col-md-2 text-md-center text-end order-sm-1 order-md-2 order-1 align-self-center\">
  444.                         {% if linkToStore is not defined or linkToStore != true %}
  445.                             {% if store.distance is defined %}
  446.                                 <span class=\"btn btn-xs border-primary btn-soft-primary\"
  447.                                       style=\"padding: 0.4375rem 0.5375rem;\">{{ store.distance }} km</span>
  448.                             {% endif %}
  449.                             {% if store.handicapAccess is defined and store.handicapAccess == true %}
  450.                                 <i class=\"bi bi-person-wheelchair px-1\" data-bs-toggle=\"tooltip\"
  451.                                    data-bs-placement=\"bottom\"
  452.                                    title=\"Accessible aux personnes à mobilité réduite\"></i>
  453.                             {% endif %}
  454.                             {# link to estimation page visible only for admin role #}
  455.                             {% if app.user and app.user.isAdmin %}
  456.                                 <a target=\"_blank\"
  457.                                    href=\"{{ path('backoffice_store_reach', {'estimated_reach[store]': store.id}) }}\"
  458.                                    class=\"btn btn-xs btn-secondary\">Estimation</a>
  459.                             {% endif %}
  460.                         {% endif %}
  461.                     </div>
  462.                     <!-- End Col -->
  463.                     <div class=\"col-12 col-md-4 order-md-3 order-sm-4 order-4 mb-1 text-center align-self-center\">
  464.                         {% if linkToStore is defined and linkToStore == true %}
  465.                             <a href=\"{{ path('show_store_page', {'slug': store.slug}) }}\">
  466.                             <span class=\"col-sm-6 text-primary text-sm-right\">
  467.                                             Découvrir le centre
  468.                                                 <span class=\"bi bi-arrow-right small ms-2\"></span>
  469.                                               </span>
  470.                             </a>
  471.                         {% else %}
  472.                             {% if isOrlWebsite() %}
  473.                                 <button class=\"btn btn-finder btn-sm btn-block border-primary btn-soft-primary btn-transition w-100 cursor-pointer my-1\"
  474.                                         data-bs-toggle=\"modal\"
  475.                                         data-bs-target=\"#rdvOrlModal\"
  476.                                         data-id=\"{{ orlOffice.id }}\">
  477.                                     Demander un RDV
  478.                                 </button>
  479.                             {% endif %}
  480.                             {% if store.isPartner is defined and store.isPartner %}
  481.                                 <button class=\"btn btn-sm btn-block btn-warning w-100\"
  482.                                         href=\"#\" data-bilan-gtm=\"\" data-bs-toggle=\"modal\"
  483.                                         data-bs-target=\"#prospectModal\" data-id=\"{{ store.id }}\"
  484.                                         data-request=\"checkup\" onclick=\"dataLayer.push({
  485.                                         'event': 'click-checkup',
  486.                                         'centreMarque': '{{ store.name }}',
  487.                                         'centreID': '{{ store.id }}'
  488.                                         });\">
  489.                                     Je prends RDV
  490.                                 </button>
  491.                             {% else %}
  492.                                 {% if store.phoneNumber is defined or store.isFreeNumber is defined and store.isIndexable %}
  493.                                     <button class=\"btn btn-sm btn-block btn-outline-secondary w-100 reach-phone cursor-pointer\"
  494.                                             data-id=\"{{ store.id }}\" data-request=\"phone\"
  495.                                             onclick=\"dataLayer.push({
  496.                                                     'event': 'click-phone',
  497.                                                     'centreMarque': '{{ store.name }}',
  498.                                                     'centreID': '{{ store.id }}'
  499.                                                     });\">
  500.                                         Voir le numéro
  501.                                     </button>
  502.                                     {% if store.isFreeNumber is defined and store.isFreeNumber == true %}
  503.                                         <div class=\"d-none store-phone-number sva-free\">
  504.                                             <div>{{ store.phoneNumber }}</div>
  505.                                             <div>Service & appel<br/>gratuits</div>
  506.                                         </div>
  507.                                     {% else %}
  508.                                         <a class=\"d-none store-phone-number text-primary mt-1\"
  509.                                            href=\"tel:{{ store.phoneNumber|replace({' ': ''}) }}\"><span
  510.                                                     class=\"bi bi-telephone-fill\"></span>
  511.                                             <span class=\"phone-size\">{{ store.phoneNumber }}</span></a>
  512.                                     {% endif %}
  513.                                 {% endif %}
  514.                             {% endif %}
  515.                         {% endif %}
  516.                     </div>
  517.                     <!-- End Col -->
  518.                 </div>
  519.                 <!-- End Row -->
  520.             </div>
  521.         </div>
  522.         <!-- End Media -->
  523.     </div>
  524. </div>
  525. <!-- End Card -->
  526. ""front_v4/mca/store/_store_card.html.twig""/var/www/hearing_store_locator/templates/front_v4/mca/store/_store_card.html.twig");
  527.     }
  528. }