var/cache/dev/twig/46/46100006d0f2ef9f28ec6698356ea17c.php line 221

  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. /* home/listingGrid.html.twig */
  14. class __TwigTemplate_3572bb3b9672885d397c11e63bbe10da extends 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->blocks = [
  23.             'body' => [$this'block_body'],
  24.             '_category_widget' => [$this'block__category_widget'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base2.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/listingGrid.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/listingGrid.html.twig"));
  39.         $this->parent $this->loadTemplate("base2.html.twig""home/listingGrid.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 4
  55.         echo "    <div class=\"font-inter dark:bg-background sticky-header-first-content\">
  56.       <div class=\"dark:bg-background\">
  57.   <div class=\"relative flex items-start pt-10\">
  58.     <div
  59.   class=\"listing-sidebar bg-white dark:bg-foreground shadow-front-2 z-50 lg:w-80 w-full lg:sticky fixed transition-all ease-in-out translate-x-0 lg:left-0 -left-full top-20 lg:h-full h-screen\"
  60. >
  61.   <div
  62.     class=\"border-b lg:border-gray-200 border-transparent dark:border-foreground p-5\"
  63.   >
  64.     <p
  65.       class=\"text-gray-700 text-lg dark:text-gray-300 font-semibold lg:block hidden\"
  66.     >
  67.       Filter
  68.     </p>
  69.     <div class=\"lg:hidden flex justify-between container mx-auto\">
  70.       <svg
  71.         xmlns=\"http://www.w3.org/2000/svg\"
  72.         class=\"h-6 w-6\"
  73.         fill=\"none\"
  74.         viewBox=\"0 0 24 24\"
  75.         stroke=\"currentColor\"
  76.         stroke-width=\"2\"
  77.       >
  78.         <path
  79.           stroke-linecap=\"round\"
  80.           stroke-linejoin=\"round\"
  81.           d=\"M11 17l-5-5m0 0l5-5m-5 5h12\"
  82.         />
  83.       </svg>
  84.       <svg
  85.         xmlns=\"http://www.w3.org/2000/svg\"
  86.         class=\"h-6 w-6 close-left-sidebar\"
  87.         fill=\"none\"
  88.         viewBox=\"0 0 24 24\"
  89.         stroke=\"currentColor\"
  90.         stroke-width=\"2\"
  91.       >
  92.         <path
  93.           stroke-linecap=\"round\"
  94.           stroke-linejoin=\"round\"
  95.           d=\"M6 18L18 6M6 6l12 12\"
  96.         />
  97.       </svg>
  98.     </div>
  99.   </div>
  100. ";
  101.         // line 50
  102.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'50$this->source); })()), 'form_start');
  103.         echo "
  104.   <div class=\"p-5 h-5/6 overflow-y-auto\">
  105.     <!-- Search bar Start-->
  106.       <div class=\"\">
  107.         ";
  108.         // line 55
  109.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'55$this->source); })()), "q", [], "any"falsefalsefalse55), 'row', ["attr" => ["class" => "border border-gray-200 dark:border-gray-800 dark:text-gray-300 rounded-lg px-4 dark:bg-foreground py-[11px] shadow-input hover:border hover:border-blue-200 focus:border-blue-200 focus:outline-none w-5/6 mb-4"]]);
  110.         echo "
  111.       </div>
  112.   <!-- Search bar END-->
  113.   <p
  114.       class=\"mb-1 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
  115.     >
  116.       Les catégories
  117.     </p>
  118.   <!-- Category filter Start-->
  119.       ";
  120.         // line 66
  121.         $this->displayBlock('_category_widget'$context$blocks);
  122.         // line 73
  123.         echo "  <!-- Category filter END-->
  124.      <p
  125.       class=\"mb-1 mt-4 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
  126.     >
  127.       Commerce véfifié
  128.     </p>
  129.     
  130.     <!-- Vefified filter Start-->
  131.       <label class=\"flex items-center mb-1 cursor-pointer\">
  132.           ";
  133.         // line 83
  134.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'83$this->source); })()), "verified", [], "any"falsefalsefalse83), 'widget');
  135.         echo "
  136.           <span class=\"ml-2 text-gray-700 text-[12px] dark:text-gray-300\">
  137.               Vérifié par Best of Sarlat
  138.           </span>
  139.       </label>
  140.     <!-- Vefified filter END-->
  141.     <!-- Submit Start-->
  142.       <button
  143.       type=\"submit\"
  144.       class=\"bg-blue-500 text-white hover:bg-blue-600 rounded-lg w-full p-3.5 mt-9 mb-4\"
  145.     >
  146.       Lancer la recherche
  147.     </button>
  148.     <!-- Submit END-->
  149. ";
  150.         // line 99
  151.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'99$this->source); })()), 'form_end');
  152.         echo "
  153.   </div>
  154. </div>
  155.     <div
  156.       class=\"listing-sidebar-overlay fixed w-full h-full inset-0 z-10 cursor-pointer bg-black opacity-70 hidden\"
  157.     ></div>
  158.     <div class=\"flex-1\">  
  159.       <!-- content-start  -->
  160.       <!-- main content started  -->
  161.       <div class=\"flex items-start\">
  162.         <div class=\"lg:basis-96 basis-auto lg:flex-shrink-0 flex-shrink mr-7\">
  163.           <div class=\"flex justify-between flex-wrap mb-3\">
  164.             <p
  165.               class=\"text-lg font-semibold text-gray-500 dark:text-gray-200 p-5\"
  166.             >
  167.     ";
  168.         // line 117
  169.         $context["available_shops"] = twig_array_filter($this->env, (isset($context["shops"]) || array_key_exists("shops"$context) ? $context["shops"] : (function () { throw new RuntimeError('Variable "shops" does not exist.'117$this->source); })()), function ($__shop__) use ($context$macros) { $context["shop"] = $__shop__; return (twig_get_attribute($this->env$this->source, (isset($context["shop"]) || array_key_exists("shop"$context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.'117$this->source); })()), "available", [], "any"falsefalsefalse117) == true); });
  170.         // line 118
  171.         echo "    <p>Commerces disponibles - <span class=\"text-gray-700\">";
  172.         echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["available_shops"]) || array_key_exists("available_shops"$context) ? $context["available_shops"] : (function () { throw new RuntimeError('Variable "available_shops" does not exist.'118$this->source); })())), "html"nulltrue);
  173.         echo "</span> résultats</p>  
  174.           </div>
  175.           
  176.           <!-- start shop --> 
  177.           ";
  178.         // line 123
  179.         $context['_parent'] = $context;
  180.         $context['_seq'] = twig_ensure_traversable((isset($context["shops"]) || array_key_exists("shops"$context) ? $context["shops"] : (function () { throw new RuntimeError('Variable "shops" does not exist.'123$this->source); })()));
  181.         foreach ($context['_seq'] as $context["_key"] => $context["shop"]) {
  182.             // line 124
  183.             echo "           ";
  184.             if (twig_get_attribute($this->env$this->source$context["shop"], "available", [], "any"falsefalsefalse124)) {
  185.                 // line 125
  186.                 echo "
  187.           <div class=\"pl-7 mb-5 item js-marker\" data-lat=\"";
  188.                 // line 126
  189.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["shop"], "latitude", [], "any"falsefalsefalse126), "html"nulltrue);
  190.                 echo "\" data-lng=\"";
  191.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["shop"], "longitude", [], "any"falsefalsefalse126), "html"nulltrue);
  192.                 echo "\">
  193.             <a
  194.             href=\"";
  195.                 // line 128
  196.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home_show", ["id" => twig_get_attribute($this->env$this->source$context["shop"], "id", [], "any"falsefalsefalse128)]), "html"nulltrue);
  197.                 echo "\"
  198.             class=\"flex lg:flex-row flex-col bg-white shadow-front-2 dark:bg-foreground mb-7\"
  199.           >
  200.           <div class=\"grid lg:grid-cols-1 sm:grid-cols-2 grid-cols-1 gap-7\">
  201.               <div
  202.                 id=\"map-1\"
  203.                 class=\"cursor-pointer overflow-hidden rounded-t-lg group\"
  204.               >
  205.                 <div class=\"relative overflow-hidden\">
  206.                   <img
  207.                     class=\"w-full h-80 object-cover rounded-t-lg group-hover:scale-105 transition-all\"
  208.                     src=\"img/Image/landing-page-image/researching.jpg\"
  209.                     alt=\"\"
  210.                   />
  211.                   <div
  212.                     class=\"absolute bottom-0 top-1/2 flex items-start flex-col justify-end left-0 pb-5 pl-5 pt-2 card-linear-gradient w-full\"
  213.                   >
  214.                   ";
  215.                 // line 146
  216.                 $context['_parent'] = $context;
  217.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["shop"], "categories", [], "any"falsefalsefalse146));
  218.                 foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  219.                     // line 147
  220.                     echo "                    <span
  221.                       class=\"bg-pink-600 text-xs text-white rounded-full px-3 py-1 mb-3 inline-flex\"
  222.                       >";
  223.                     // line 149
  224.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse149), "html"nulltrue);
  225.                     echo "</span
  226.                     >
  227.                   ";
  228.                 }
  229.                 $_parent $context['_parent'];
  230.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  231.                 $context array_intersect_key($context$_parent) + $_parent;
  232.                 // line 152
  233.                 echo "                    <div class=\"flex text-white items-center mb-2\">
  234.                       <h2 class=\"text-xl capitalize font-semibold mr-2\">
  235.                         ";
  236.                 // line 154
  237.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["shop"], "name", [], "any"falsefalsefalse154), "html"nulltrue);
  238.                 echo "
  239.                       </h2>
  240.                       ";
  241.                 // line 156
  242.                 if ((twig_get_attribute($this->env$this->source$context["shop"], "verified", [], "any"falsefalsefalse156) == true)) {
  243.                     // line 157
  244.                     echo "                      <svg
  245.                         width=\"20\"
  246.                         height=\"20\"
  247.                         viewBox=\"0 0 20 20\"
  248.                         fill=\"none\"
  249.                         xmlns=\"http://www.w3.org/2000/svg\"
  250.                       >
  251.                         <path
  252.                           d=\"M15.6562 4.34313C16.4688 5.15625 16.6906 6.31875 16.4031 7.34688C17.3531 7.85 18 8.85 18 10C18 11.15 17.3531 12.15 16.4031 12.6531C16.7188 13.6812 16.4688 14.8156 15.6562 15.6562C14.8156 16.4688 13.6812 16.6906 12.6531 16.4031C12.15 17.3531 11.15 18 10 18C8.85 18 7.85 17.3531 7.34688 16.4031C6.31875 16.7188 5.15625 16.4688 4.34313 15.6562C3.53 14.8156 3.28125 13.6812 3.59687 12.6531C2.64687 12.15 2 11.15 2 10C2 8.85 2.64687 7.85 3.59687 7.34688C3.25312 6.31875 3.53 5.15625 4.34313 4.34313C5.15625 3.53 6.31875 3.28125 7.34688 3.59687C7.85 2.64687 8.85 2 10 2C11.15 2 12.15 2.64687 12.6531 3.59687C13.6812 3.25312 14.8156 3.53 15.6562 4.34313Z\"
  253.                           fill=\"#00AB55\"
  254.                         />
  255.                         <path
  256.                           d=\"M7 10L8.64645 11.6464C8.84171 11.8417 9.15829 11.8417 9.35355 11.6464L13 8\"
  257.                           stroke=\"white\"
  258.                           stroke-width=\"1.2\"
  259.                           stroke-linecap=\"round\"
  260.                         />
  261.                       </svg>
  262.                       ";
  263.                 }
  264.                 // line 176
  265.                 echo "                    </div>
  266.                     <p class=\"text-sm font-normal text-white mb-4\">
  267.                       ";
  268.                 // line 178
  269.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["shop"], "addressCity", [], "any"falsefalsefalse178), "html"nulltrue);
  270.                 echo "
  271.                     </p>
  272.                   </div>
  273.                 </div>
  274.                 <div
  275.                   class=\"flex justify-between p-6 bg-gray-100 dark:bg-foreground rounded-b-lg\"
  276.                 >
  277.                   <div class=\"flex\">
  278.                     <div class=\"flex\">
  279.                       <svg
  280.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  281.                         xmlns=\"http://www.w3.org/2000/svg\"
  282.                         class=\"h-5 w-5\"
  283.                         viewBox=\"0 0 20 20\"
  284.                         fill=\"currentColor\"
  285.                       >
  286.                         <path
  287.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  288.                         />
  289.                       </svg>
  290.                       <svg
  291.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  292.                         xmlns=\"http://www.w3.org/2000/svg\"
  293.                         class=\"h-5 w-5\"
  294.                         viewBox=\"0 0 20 20\"
  295.                         fill=\"currentColor\"
  296.                       >
  297.                         <path
  298.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  299.                         />
  300.                       </svg>
  301.                       <svg
  302.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  303.                         xmlns=\"http://www.w3.org/2000/svg\"
  304.                         class=\"h-5 w-5\"
  305.                         viewBox=\"0 0 20 20\"
  306.                         fill=\"currentColor\"
  307.                       >
  308.                         <path
  309.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  310.                         />
  311.                       </svg>
  312.                       <svg
  313.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  314.                         xmlns=\"http://www.w3.org/2000/svg\"
  315.                         class=\"h-5 w-5\"
  316.                         viewBox=\"0 0 20 20\"
  317.                         fill=\"currentColor\"
  318.                       >
  319.                         <path
  320.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  321.                         />
  322.                       </svg>
  323.                       <svg
  324.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  325.                         xmlns=\"http://www.w3.org/2000/svg\"
  326.                         class=\"h-5 w-5\"
  327.                         viewBox=\"0 0 20 20\"
  328.                         fill=\"currentColor\"
  329.                       >
  330.                         <path
  331.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  332.                         />
  333.                       </svg>
  334.                     </div>
  335.                     <span class=\"text-base mx-2 dark:text-gray-100\">";
  336.                 // line 243
  337.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["shop"], "rating", [], "any"falsefalsefalse243), "html"nulltrue);
  338.                 echo "</span>
  339.                     <span class=\"text-gray-500 dark:text-gray-400\">(56)</span>
  340.                   </div>
  341.                 </div>
  342.               </div>
  343.             </div>
  344.             </a>
  345.           </div>
  346.             ";
  347.             }
  348.             // line 253
  349.             echo "        ";
  350.         }
  351.         $_parent $context['_parent'];
  352.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['shop'], $context['_parent'], $context['loop']);
  353.         $context array_intersect_key($context$_parent) + $_parent;
  354.         // line 254
  355.         echo "
  356.         </div>
  357. <div class=\"w-screen h-90 flex flex-row map-container-grid \">
  358.   <div id=\"map\" class=\"float-right h-full flex-1\">
  359.   </div>
  360. </div>
  361.         <button
  362.           type=\"button\"
  363.           class=\"bg-white p-4 map-btn lg:hidden shadow-front-3 items-center flex fixed bottom-7 left-1/2 -translate-x-1/2\"
  364.         >
  365.           <svg
  366.             class=\"mr-2 text-blue-500\"
  367.             width=\"16\"
  368.             height=\"16\"
  369.             viewBox=\"0 0 16 16\"
  370.             fill=\"none\"
  371.             xmlns=\"http://www.w3.org/2000/svg\"
  372.           >
  373.             <path
  374.               d=\"M10.6668 4.98896C10.6668 6.16693 9.04232 8.26612 8.32899 9.11184C8.15787 9.33837 7.84232 9.33837 7.67121 9.11184C6.95788 8.26612 5.33343 6.16693 5.33343 4.98896C5.33343 3.55922 6.52676 2.40002 8.0001 2.40002C9.47343 2.40002 10.6668 3.55922 10.6668 4.98896ZM8.0001 5.67934C8.49121 5.67934 8.88899 5.29316 8.88899 4.81636C8.88899 4.33978 8.49121 3.95339 8.0001 3.95339C7.50899 3.95339 7.11121 4.33978 7.11121 4.81636C7.11121 5.29316 7.50899 5.67934 8.0001 5.67934ZM11.0579 6.27911C11.069 6.25322 11.0801 6.22733 11.0912 6.19929L13.669 5.19823C14.0201 5.06231 14.4001 5.31258 14.4001 5.67934V11.5217C14.4001 11.7331 14.2668 11.923 14.0645 12.0028L10.8445 13.252V6.72355C10.9223 6.57468 10.9934 6.42798 11.0579 6.27911ZM4.94232 6.27911C5.00676 6.42798 5.07788 6.57468 5.15565 6.72355V12.1474L2.33143 13.2455C1.98121 13.362 1.6001 13.1312 1.6001 12.7644V6.92203C1.6001 6.7106 1.73288 6.50133 1.93543 6.44092L4.65788 5.38377C4.71121 5.69013 4.8201 5.99433 4.94232 6.27911ZM8.88454 9.54333C9.19343 9.18735 9.67787 8.57679 10.1334 7.90151V13.28L5.86676 12.0956V7.90151C6.32232 8.57679 6.80676 9.18735 7.11565 9.54333C7.57121 10.1151 8.42899 10.1151 8.88454 9.54333Z\"
  375.               fill=\"currentColor\"
  376.             />
  377.           </svg>
  378.           Map View
  379.         </button>
  380.       </div>
  381.     </div>
  382.   </div>
  383. </div>
  384.       <div class=\"scroll-top-btn opacity-0 transition-all\">
  385.   <button
  386.     type=\"button\"
  387.     class=\"bg-blue-500 p-2 fixed z-50 bottom-0 hover:-translate-y-2 transition-all right-0 m-10 rounded-full\"
  388.   >
  389.     <svg
  390.       xmlns=\"http://www.w3.org/2000/svg\"
  391.       class=\"h-6 w-6 text-white\"
  392.       fill=\"none\"
  393.       viewBox=\"0 0 24 24\"
  394.       stroke=\"currentColor\"
  395.       stroke-width=\"2\"
  396.     >
  397.       <path
  398.         stroke-linecap=\"round\"
  399.         stroke-linejoin=\"round\"
  400.         d=\"M7 11l5-5m0 0l5 5m-5-5v12\"
  401.       />
  402.     </svg>
  403.   </button>
  404. </div>
  405.  
  406. ";
  407.         
  408.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  409.         
  410.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  411.     }
  412.     // line 66
  413.     public function block__category_widget($context, array $blocks = [])
  414.     {
  415.         $macros $this->macros;
  416.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  417.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""_category_widget"));
  418.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  419.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""_category_widget"));
  420.         // line 67
  421.         echo "          ";
  422.         $context['_parent'] = $context;
  423.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'67$this->source); })()), "Category", [], "any"falsefalsefalse67));
  424.         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  425.             // line 68
  426.             echo "              ";
  427.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
  428.             echo "
  429.               ";
  430.             // line 69
  431.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label');
  432.             echo "
  433.               <br>
  434.           ";
  435.         }
  436.         $_parent $context['_parent'];
  437.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  438.         $context array_intersect_key($context$_parent) + $_parent;
  439.         // line 72
  440.         echo "      ";
  441.         
  442.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  443.         
  444.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  445.     }
  446.     public function getTemplateName()
  447.     {
  448.         return "home/listingGrid.html.twig";
  449.     }
  450.     public function isTraitable()
  451.     {
  452.         return false;
  453.     }
  454.     public function getDebugInfo()
  455.     {
  456.         return array (  475 => 72,  466 => 69,  461 => 68,  456 => 67,  446 => 66,  382 => 254,  376 => 253,  363 => 243,  295 => 178,  291 => 176,  270 => 157,  268 => 156,  263 => 154,  259 => 152,  250 => 149,  246 => 147,  242 => 146,  221 => 128,  214 => 126,  211 => 125,  208 => 124,  204 => 123,  195 => 118,  193 => 117,  172 => 99,  153 => 83,  141 => 73,  139 => 66,  125 => 55,  117 => 50,  69 => 4,  59 => 3,  36 => 1,);
  457.     }
  458.     public function getSourceContext()
  459.     {
  460.         return new Source("{% extends 'base2.html.twig' %}
  461. {% block body %}
  462.     <div class=\"font-inter dark:bg-background sticky-header-first-content\">
  463.       <div class=\"dark:bg-background\">
  464.   <div class=\"relative flex items-start pt-10\">
  465.     <div
  466.   class=\"listing-sidebar bg-white dark:bg-foreground shadow-front-2 z-50 lg:w-80 w-full lg:sticky fixed transition-all ease-in-out translate-x-0 lg:left-0 -left-full top-20 lg:h-full h-screen\"
  467. >
  468.   <div
  469.     class=\"border-b lg:border-gray-200 border-transparent dark:border-foreground p-5\"
  470.   >
  471.     <p
  472.       class=\"text-gray-700 text-lg dark:text-gray-300 font-semibold lg:block hidden\"
  473.     >
  474.       Filter
  475.     </p>
  476.     <div class=\"lg:hidden flex justify-between container mx-auto\">
  477.       <svg
  478.         xmlns=\"http://www.w3.org/2000/svg\"
  479.         class=\"h-6 w-6\"
  480.         fill=\"none\"
  481.         viewBox=\"0 0 24 24\"
  482.         stroke=\"currentColor\"
  483.         stroke-width=\"2\"
  484.       >
  485.         <path
  486.           stroke-linecap=\"round\"
  487.           stroke-linejoin=\"round\"
  488.           d=\"M11 17l-5-5m0 0l5-5m-5 5h12\"
  489.         />
  490.       </svg>
  491.       <svg
  492.         xmlns=\"http://www.w3.org/2000/svg\"
  493.         class=\"h-6 w-6 close-left-sidebar\"
  494.         fill=\"none\"
  495.         viewBox=\"0 0 24 24\"
  496.         stroke=\"currentColor\"
  497.         stroke-width=\"2\"
  498.       >
  499.         <path
  500.           stroke-linecap=\"round\"
  501.           stroke-linejoin=\"round\"
  502.           d=\"M6 18L18 6M6 6l12 12\"
  503.         />
  504.       </svg>
  505.     </div>
  506.   </div>
  507. {{ form_start(form) }}
  508.   <div class=\"p-5 h-5/6 overflow-y-auto\">
  509.     <!-- Search bar Start-->
  510.       <div class=\"\">
  511.         {{ form_row(form.q, { 'attr': {'class': 'border border-gray-200 dark:border-gray-800 dark:text-gray-300 rounded-lg px-4 dark:bg-foreground py-[11px] shadow-input hover:border hover:border-blue-200 focus:border-blue-200 focus:outline-none w-5/6 mb-4'} })}}
  512.       </div>
  513.   <!-- Search bar END-->
  514.   <p
  515.       class=\"mb-1 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
  516.     >
  517.       Les catégories
  518.     </p>
  519.   <!-- Category filter Start-->
  520.       {% block _category_widget %}
  521.           {% for child in form.Category %}
  522.               {{ form_widget(child) }}
  523.               {{ form_label(child) }}
  524.               <br>
  525.           {% endfor %}
  526.       {% endblock %}
  527.   <!-- Category filter END-->
  528.      <p
  529.       class=\"mb-1 mt-4 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
  530.     >
  531.       Commerce véfifié
  532.     </p>
  533.     
  534.     <!-- Vefified filter Start-->
  535.       <label class=\"flex items-center mb-1 cursor-pointer\">
  536.           {{ form_widget(form.verified) }}
  537.           <span class=\"ml-2 text-gray-700 text-[12px] dark:text-gray-300\">
  538.               Vérifié par Best of Sarlat
  539.           </span>
  540.       </label>
  541.     <!-- Vefified filter END-->
  542.     <!-- Submit Start-->
  543.       <button
  544.       type=\"submit\"
  545.       class=\"bg-blue-500 text-white hover:bg-blue-600 rounded-lg w-full p-3.5 mt-9 mb-4\"
  546.     >
  547.       Lancer la recherche
  548.     </button>
  549.     <!-- Submit END-->
  550. {{ form_end(form) }}
  551.   </div>
  552. </div>
  553.     <div
  554.       class=\"listing-sidebar-overlay fixed w-full h-full inset-0 z-10 cursor-pointer bg-black opacity-70 hidden\"
  555.     ></div>
  556.     <div class=\"flex-1\">  
  557.       <!-- content-start  -->
  558.       <!-- main content started  -->
  559.       <div class=\"flex items-start\">
  560.         <div class=\"lg:basis-96 basis-auto lg:flex-shrink-0 flex-shrink mr-7\">
  561.           <div class=\"flex justify-between flex-wrap mb-3\">
  562.             <p
  563.               class=\"text-lg font-semibold text-gray-500 dark:text-gray-200 p-5\"
  564.             >
  565.     {% set available_shops = shops|filter(shop => shop.available == true) %}
  566.     <p>Commerces disponibles - <span class=\"text-gray-700\">{{ available_shops|length }}</span> résultats</p>  
  567.           </div>
  568.           
  569.           <!-- start shop --> 
  570.           {% for shop in shops %}
  571.            {% if shop.available %}
  572.           <div class=\"pl-7 mb-5 item js-marker\" data-lat=\"{{ shop.latitude }}\" data-lng=\"{{ shop.longitude}}\">
  573.             <a
  574.             href=\"{{ path('app_home_show', {'id' : shop.id })}}\"
  575.             class=\"flex lg:flex-row flex-col bg-white shadow-front-2 dark:bg-foreground mb-7\"
  576.           >
  577.           <div class=\"grid lg:grid-cols-1 sm:grid-cols-2 grid-cols-1 gap-7\">
  578.               <div
  579.                 id=\"map-1\"
  580.                 class=\"cursor-pointer overflow-hidden rounded-t-lg group\"
  581.               >
  582.                 <div class=\"relative overflow-hidden\">
  583.                   <img
  584.                     class=\"w-full h-80 object-cover rounded-t-lg group-hover:scale-105 transition-all\"
  585.                     src=\"img/Image/landing-page-image/researching.jpg\"
  586.                     alt=\"\"
  587.                   />
  588.                   <div
  589.                     class=\"absolute bottom-0 top-1/2 flex items-start flex-col justify-end left-0 pb-5 pl-5 pt-2 card-linear-gradient w-full\"
  590.                   >
  591.                   {% for category in shop.categories %}
  592.                     <span
  593.                       class=\"bg-pink-600 text-xs text-white rounded-full px-3 py-1 mb-3 inline-flex\"
  594.                       >{{ category.name }}</span
  595.                     >
  596.                   {% endfor %}
  597.                     <div class=\"flex text-white items-center mb-2\">
  598.                       <h2 class=\"text-xl capitalize font-semibold mr-2\">
  599.                         {{ shop.name }}
  600.                       </h2>
  601.                       {% if shop.verified == true %}
  602.                       <svg
  603.                         width=\"20\"
  604.                         height=\"20\"
  605.                         viewBox=\"0 0 20 20\"
  606.                         fill=\"none\"
  607.                         xmlns=\"http://www.w3.org/2000/svg\"
  608.                       >
  609.                         <path
  610.                           d=\"M15.6562 4.34313C16.4688 5.15625 16.6906 6.31875 16.4031 7.34688C17.3531 7.85 18 8.85 18 10C18 11.15 17.3531 12.15 16.4031 12.6531C16.7188 13.6812 16.4688 14.8156 15.6562 15.6562C14.8156 16.4688 13.6812 16.6906 12.6531 16.4031C12.15 17.3531 11.15 18 10 18C8.85 18 7.85 17.3531 7.34688 16.4031C6.31875 16.7188 5.15625 16.4688 4.34313 15.6562C3.53 14.8156 3.28125 13.6812 3.59687 12.6531C2.64687 12.15 2 11.15 2 10C2 8.85 2.64687 7.85 3.59687 7.34688C3.25312 6.31875 3.53 5.15625 4.34313 4.34313C5.15625 3.53 6.31875 3.28125 7.34688 3.59687C7.85 2.64687 8.85 2 10 2C11.15 2 12.15 2.64687 12.6531 3.59687C13.6812 3.25312 14.8156 3.53 15.6562 4.34313Z\"
  611.                           fill=\"#00AB55\"
  612.                         />
  613.                         <path
  614.                           d=\"M7 10L8.64645 11.6464C8.84171 11.8417 9.15829 11.8417 9.35355 11.6464L13 8\"
  615.                           stroke=\"white\"
  616.                           stroke-width=\"1.2\"
  617.                           stroke-linecap=\"round\"
  618.                         />
  619.                       </svg>
  620.                       {% endif %}
  621.                     </div>
  622.                     <p class=\"text-sm font-normal text-white mb-4\">
  623.                       {{ shop.addressCity }}
  624.                     </p>
  625.                   </div>
  626.                 </div>
  627.                 <div
  628.                   class=\"flex justify-between p-6 bg-gray-100 dark:bg-foreground rounded-b-lg\"
  629.                 >
  630.                   <div class=\"flex\">
  631.                     <div class=\"flex\">
  632.                       <svg
  633.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  634.                         xmlns=\"http://www.w3.org/2000/svg\"
  635.                         class=\"h-5 w-5\"
  636.                         viewBox=\"0 0 20 20\"
  637.                         fill=\"currentColor\"
  638.                       >
  639.                         <path
  640.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  641.                         />
  642.                       </svg>
  643.                       <svg
  644.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  645.                         xmlns=\"http://www.w3.org/2000/svg\"
  646.                         class=\"h-5 w-5\"
  647.                         viewBox=\"0 0 20 20\"
  648.                         fill=\"currentColor\"
  649.                       >
  650.                         <path
  651.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  652.                         />
  653.                       </svg>
  654.                       <svg
  655.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  656.                         xmlns=\"http://www.w3.org/2000/svg\"
  657.                         class=\"h-5 w-5\"
  658.                         viewBox=\"0 0 20 20\"
  659.                         fill=\"currentColor\"
  660.                       >
  661.                         <path
  662.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  663.                         />
  664.                       </svg>
  665.                       <svg
  666.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  667.                         xmlns=\"http://www.w3.org/2000/svg\"
  668.                         class=\"h-5 w-5\"
  669.                         viewBox=\"0 0 20 20\"
  670.                         fill=\"currentColor\"
  671.                       >
  672.                         <path
  673.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  674.                         />
  675.                       </svg>
  676.                       <svg
  677.                         class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
  678.                         xmlns=\"http://www.w3.org/2000/svg\"
  679.                         class=\"h-5 w-5\"
  680.                         viewBox=\"0 0 20 20\"
  681.                         fill=\"currentColor\"
  682.                       >
  683.                         <path
  684.                           d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"
  685.                         />
  686.                       </svg>
  687.                     </div>
  688.                     <span class=\"text-base mx-2 dark:text-gray-100\">{{ shop.rating }}</span>
  689.                     <span class=\"text-gray-500 dark:text-gray-400\">(56)</span>
  690.                   </div>
  691.                 </div>
  692.               </div>
  693.             </div>
  694.             </a>
  695.           </div>
  696.             {% endif %}
  697.         {% endfor %}
  698.         </div>
  699. <div class=\"w-screen h-90 flex flex-row map-container-grid \">
  700.   <div id=\"map\" class=\"float-right h-full flex-1\">
  701.   </div>
  702. </div>
  703.         <button
  704.           type=\"button\"
  705.           class=\"bg-white p-4 map-btn lg:hidden shadow-front-3 items-center flex fixed bottom-7 left-1/2 -translate-x-1/2\"
  706.         >
  707.           <svg
  708.             class=\"mr-2 text-blue-500\"
  709.             width=\"16\"
  710.             height=\"16\"
  711.             viewBox=\"0 0 16 16\"
  712.             fill=\"none\"
  713.             xmlns=\"http://www.w3.org/2000/svg\"
  714.           >
  715.             <path
  716.               d=\"M10.6668 4.98896C10.6668 6.16693 9.04232 8.26612 8.32899 9.11184C8.15787 9.33837 7.84232 9.33837 7.67121 9.11184C6.95788 8.26612 5.33343 6.16693 5.33343 4.98896C5.33343 3.55922 6.52676 2.40002 8.0001 2.40002C9.47343 2.40002 10.6668 3.55922 10.6668 4.98896ZM8.0001 5.67934C8.49121 5.67934 8.88899 5.29316 8.88899 4.81636C8.88899 4.33978 8.49121 3.95339 8.0001 3.95339C7.50899 3.95339 7.11121 4.33978 7.11121 4.81636C7.11121 5.29316 7.50899 5.67934 8.0001 5.67934ZM11.0579 6.27911C11.069 6.25322 11.0801 6.22733 11.0912 6.19929L13.669 5.19823C14.0201 5.06231 14.4001 5.31258 14.4001 5.67934V11.5217C14.4001 11.7331 14.2668 11.923 14.0645 12.0028L10.8445 13.252V6.72355C10.9223 6.57468 10.9934 6.42798 11.0579 6.27911ZM4.94232 6.27911C5.00676 6.42798 5.07788 6.57468 5.15565 6.72355V12.1474L2.33143 13.2455C1.98121 13.362 1.6001 13.1312 1.6001 12.7644V6.92203C1.6001 6.7106 1.73288 6.50133 1.93543 6.44092L4.65788 5.38377C4.71121 5.69013 4.8201 5.99433 4.94232 6.27911ZM8.88454 9.54333C9.19343 9.18735 9.67787 8.57679 10.1334 7.90151V13.28L5.86676 12.0956V7.90151C6.32232 8.57679 6.80676 9.18735 7.11565 9.54333C7.57121 10.1151 8.42899 10.1151 8.88454 9.54333Z\"
  717.               fill=\"currentColor\"
  718.             />
  719.           </svg>
  720.           Map View
  721.         </button>
  722.       </div>
  723.     </div>
  724.   </div>
  725. </div>
  726.       <div class=\"scroll-top-btn opacity-0 transition-all\">
  727.   <button
  728.     type=\"button\"
  729.     class=\"bg-blue-500 p-2 fixed z-50 bottom-0 hover:-translate-y-2 transition-all right-0 m-10 rounded-full\"
  730.   >
  731.     <svg
  732.       xmlns=\"http://www.w3.org/2000/svg\"
  733.       class=\"h-6 w-6 text-white\"
  734.       fill=\"none\"
  735.       viewBox=\"0 0 24 24\"
  736.       stroke=\"currentColor\"
  737.       stroke-width=\"2\"
  738.     >
  739.       <path
  740.         stroke-linecap=\"round\"
  741.         stroke-linejoin=\"round\"
  742.         d=\"M7 11l5-5m0 0l5 5m-5-5v12\"
  743.       />
  744.     </svg>
  745.   </button>
  746. </div>
  747.  
  748. {% endblock %}
  749. ""home/listingGrid.html.twig""/home/bestofi/bestof/templates/home/listingGrid.html.twig");
  750.     }
  751. }