var/cache/dev/twig/46/46100006d0f2ef9f28ec6698356ea17c.php line 221
<?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;
/* home/listingGrid.html.twig */
class __TwigTemplate_3572bb3b9672885d397c11e63bbe10da extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'_category_widget' => [$this, 'block__category_widget'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base2.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/listingGrid.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/listingGrid.html.twig"));
$this->parent = $this->loadTemplate("base2.html.twig", "home/listingGrid.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo " <div class=\"font-inter dark:bg-background sticky-header-first-content\">
<div class=\"dark:bg-background\">
<div class=\"relative flex items-start pt-10\">
<div
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\"
>
<div
class=\"border-b lg:border-gray-200 border-transparent dark:border-foreground p-5\"
>
<p
class=\"text-gray-700 text-lg dark:text-gray-300 font-semibold lg:block hidden\"
>
Filter
</p>
<div class=\"lg:hidden flex justify-between container mx-auto\">
<svg
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-6 w-6\"
fill=\"none\"
viewBox=\"0 0 24 24\"
stroke=\"currentColor\"
stroke-width=\"2\"
>
<path
stroke-linecap=\"round\"
stroke-linejoin=\"round\"
d=\"M11 17l-5-5m0 0l5-5m-5 5h12\"
/>
</svg>
<svg
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-6 w-6 close-left-sidebar\"
fill=\"none\"
viewBox=\"0 0 24 24\"
stroke=\"currentColor\"
stroke-width=\"2\"
>
<path
stroke-linecap=\"round\"
stroke-linejoin=\"round\"
d=\"M6 18L18 6M6 6l12 12\"
/>
</svg>
</div>
</div>
";
// line 50
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');
echo "
<div class=\"p-5 h-5/6 overflow-y-auto\">
<!-- Search bar Start-->
<div class=\"\">
";
// line 55
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", false, false, false, 55), '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"]]);
echo "
</div>
<!-- Search bar END-->
<p
class=\"mb-1 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
>
Les catégories
</p>
<!-- Category filter Start-->
";
// line 66
$this->displayBlock('_category_widget', $context, $blocks);
// line 73
echo " <!-- Category filter END-->
<p
class=\"mb-1 mt-4 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
>
Commerce véfifié
</p>
<!-- Vefified filter Start-->
<label class=\"flex items-center mb-1 cursor-pointer\">
";
// line 83
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", false, false, false, 83), 'widget');
echo "
<span class=\"ml-2 text-gray-700 text-[12px] dark:text-gray-300\">
Vérifié par Best of Sarlat
</span>
</label>
<!-- Vefified filter END-->
<!-- Submit Start-->
<button
type=\"submit\"
class=\"bg-blue-500 text-white hover:bg-blue-600 rounded-lg w-full p-3.5 mt-9 mb-4\"
>
Lancer la recherche
</button>
<!-- Submit END-->
";
// line 99
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');
echo "
</div>
</div>
<div
class=\"listing-sidebar-overlay fixed w-full h-full inset-0 z-10 cursor-pointer bg-black opacity-70 hidden\"
></div>
<div class=\"flex-1\">
<!-- content-start -->
<!-- main content started -->
<div class=\"flex items-start\">
<div class=\"lg:basis-96 basis-auto lg:flex-shrink-0 flex-shrink mr-7\">
<div class=\"flex justify-between flex-wrap mb-3\">
<p
class=\"text-lg font-semibold text-gray-500 dark:text-gray-200 p-5\"
>
";
// line 117
$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", false, false, false, 117) == true); });
// line 118
echo " <p>Commerces disponibles - <span class=\"text-gray-700\">";
echo twig_escape_filter($this->env, twig_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", null, true);
echo "</span> résultats</p>
</div>
<!-- start shop -->
";
// line 123
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["shop"]) {
// line 124
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["shop"], "available", [], "any", false, false, false, 124)) {
// line 125
echo "
<div class=\"pl-7 mb-5 item js-marker\" data-lat=\"";
// line 126
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["shop"], "latitude", [], "any", false, false, false, 126), "html", null, true);
echo "\" data-lng=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["shop"], "longitude", [], "any", false, false, false, 126), "html", null, true);
echo "\">
<a
href=\"";
// line 128
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", false, false, false, 128)]), "html", null, true);
echo "\"
class=\"flex lg:flex-row flex-col bg-white shadow-front-2 dark:bg-foreground mb-7\"
>
<div class=\"grid lg:grid-cols-1 sm:grid-cols-2 grid-cols-1 gap-7\">
<div
id=\"map-1\"
class=\"cursor-pointer overflow-hidden rounded-t-lg group\"
>
<div class=\"relative overflow-hidden\">
<img
class=\"w-full h-80 object-cover rounded-t-lg group-hover:scale-105 transition-all\"
src=\"img/Image/landing-page-image/researching.jpg\"
alt=\"\"
/>
<div
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\"
>
";
// line 146
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["shop"], "categories", [], "any", false, false, false, 146));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 147
echo " <span
class=\"bg-pink-600 text-xs text-white rounded-full px-3 py-1 mb-3 inline-flex\"
>";
// line 149
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 149), "html", null, true);
echo "</span
>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 152
echo " <div class=\"flex text-white items-center mb-2\">
<h2 class=\"text-xl capitalize font-semibold mr-2\">
";
// line 154
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["shop"], "name", [], "any", false, false, false, 154), "html", null, true);
echo "
</h2>
";
// line 156
if ((twig_get_attribute($this->env, $this->source, $context["shop"], "verified", [], "any", false, false, false, 156) == true)) {
// line 157
echo " <svg
width=\"20\"
height=\"20\"
viewBox=\"0 0 20 20\"
fill=\"none\"
xmlns=\"http://www.w3.org/2000/svg\"
>
<path
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\"
fill=\"#00AB55\"
/>
<path
d=\"M7 10L8.64645 11.6464C8.84171 11.8417 9.15829 11.8417 9.35355 11.6464L13 8\"
stroke=\"white\"
stroke-width=\"1.2\"
stroke-linecap=\"round\"
/>
</svg>
";
}
// line 176
echo " </div>
<p class=\"text-sm font-normal text-white mb-4\">
";
// line 178
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["shop"], "addressCity", [], "any", false, false, false, 178), "html", null, true);
echo "
</p>
</div>
</div>
<div
class=\"flex justify-between p-6 bg-gray-100 dark:bg-foreground rounded-b-lg\"
>
<div class=\"flex\">
<div class=\"flex\">
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
</div>
<span class=\"text-base mx-2 dark:text-gray-100\">";
// line 243
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["shop"], "rating", [], "any", false, false, false, 243), "html", null, true);
echo "</span>
<span class=\"text-gray-500 dark:text-gray-400\">(56)</span>
</div>
</div>
</div>
</div>
</a>
</div>
";
}
// line 253
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['shop'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 254
echo "
</div>
<div class=\"w-screen h-90 flex flex-row map-container-grid \">
<div id=\"map\" class=\"float-right h-full flex-1\">
</div>
</div>
<button
type=\"button\"
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\"
>
<svg
class=\"mr-2 text-blue-500\"
width=\"16\"
height=\"16\"
viewBox=\"0 0 16 16\"
fill=\"none\"
xmlns=\"http://www.w3.org/2000/svg\"
>
<path
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\"
fill=\"currentColor\"
/>
</svg>
Map View
</button>
</div>
</div>
</div>
</div>
<div class=\"scroll-top-btn opacity-0 transition-all\">
<button
type=\"button\"
class=\"bg-blue-500 p-2 fixed z-50 bottom-0 hover:-translate-y-2 transition-all right-0 m-10 rounded-full\"
>
<svg
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-6 w-6 text-white\"
fill=\"none\"
viewBox=\"0 0 24 24\"
stroke=\"currentColor\"
stroke-width=\"2\"
>
<path
stroke-linecap=\"round\"
stroke-linejoin=\"round\"
d=\"M7 11l5-5m0 0l5 5m-5-5v12\"
/>
</svg>
</button>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 66
public function block__category_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "_category_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "_category_widget"));
// line 67
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 67));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 68
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
echo "
";
// line 69
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label');
echo "
<br>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "home/listingGrid.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base2.html.twig' %}
{% block body %}
<div class=\"font-inter dark:bg-background sticky-header-first-content\">
<div class=\"dark:bg-background\">
<div class=\"relative flex items-start pt-10\">
<div
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\"
>
<div
class=\"border-b lg:border-gray-200 border-transparent dark:border-foreground p-5\"
>
<p
class=\"text-gray-700 text-lg dark:text-gray-300 font-semibold lg:block hidden\"
>
Filter
</p>
<div class=\"lg:hidden flex justify-between container mx-auto\">
<svg
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-6 w-6\"
fill=\"none\"
viewBox=\"0 0 24 24\"
stroke=\"currentColor\"
stroke-width=\"2\"
>
<path
stroke-linecap=\"round\"
stroke-linejoin=\"round\"
d=\"M11 17l-5-5m0 0l5-5m-5 5h12\"
/>
</svg>
<svg
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-6 w-6 close-left-sidebar\"
fill=\"none\"
viewBox=\"0 0 24 24\"
stroke=\"currentColor\"
stroke-width=\"2\"
>
<path
stroke-linecap=\"round\"
stroke-linejoin=\"round\"
d=\"M6 18L18 6M6 6l12 12\"
/>
</svg>
</div>
</div>
{{ form_start(form) }}
<div class=\"p-5 h-5/6 overflow-y-auto\">
<!-- Search bar Start-->
<div class=\"\">
{{ 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'} })}}
</div>
<!-- Search bar END-->
<p
class=\"mb-1 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
>
Les catégories
</p>
<!-- Category filter Start-->
{% block _category_widget %}
{% for child in form.Category %}
{{ form_widget(child) }}
{{ form_label(child) }}
<br>
{% endfor %}
{% endblock %}
<!-- Category filter END-->
<p
class=\"mb-1 mt-4 text-gray-700 text-[17px] dark:text-gray-300 font-semibold lg:block hidden\"
>
Commerce véfifié
</p>
<!-- Vefified filter Start-->
<label class=\"flex items-center mb-1 cursor-pointer\">
{{ form_widget(form.verified) }}
<span class=\"ml-2 text-gray-700 text-[12px] dark:text-gray-300\">
Vérifié par Best of Sarlat
</span>
</label>
<!-- Vefified filter END-->
<!-- Submit Start-->
<button
type=\"submit\"
class=\"bg-blue-500 text-white hover:bg-blue-600 rounded-lg w-full p-3.5 mt-9 mb-4\"
>
Lancer la recherche
</button>
<!-- Submit END-->
{{ form_end(form) }}
</div>
</div>
<div
class=\"listing-sidebar-overlay fixed w-full h-full inset-0 z-10 cursor-pointer bg-black opacity-70 hidden\"
></div>
<div class=\"flex-1\">
<!-- content-start -->
<!-- main content started -->
<div class=\"flex items-start\">
<div class=\"lg:basis-96 basis-auto lg:flex-shrink-0 flex-shrink mr-7\">
<div class=\"flex justify-between flex-wrap mb-3\">
<p
class=\"text-lg font-semibold text-gray-500 dark:text-gray-200 p-5\"
>
{% set available_shops = shops|filter(shop => shop.available == true) %}
<p>Commerces disponibles - <span class=\"text-gray-700\">{{ available_shops|length }}</span> résultats</p>
</div>
<!-- start shop -->
{% for shop in shops %}
{% if shop.available %}
<div class=\"pl-7 mb-5 item js-marker\" data-lat=\"{{ shop.latitude }}\" data-lng=\"{{ shop.longitude}}\">
<a
href=\"{{ path('app_home_show', {'id' : shop.id })}}\"
class=\"flex lg:flex-row flex-col bg-white shadow-front-2 dark:bg-foreground mb-7\"
>
<div class=\"grid lg:grid-cols-1 sm:grid-cols-2 grid-cols-1 gap-7\">
<div
id=\"map-1\"
class=\"cursor-pointer overflow-hidden rounded-t-lg group\"
>
<div class=\"relative overflow-hidden\">
<img
class=\"w-full h-80 object-cover rounded-t-lg group-hover:scale-105 transition-all\"
src=\"img/Image/landing-page-image/researching.jpg\"
alt=\"\"
/>
<div
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\"
>
{% for category in shop.categories %}
<span
class=\"bg-pink-600 text-xs text-white rounded-full px-3 py-1 mb-3 inline-flex\"
>{{ category.name }}</span
>
{% endfor %}
<div class=\"flex text-white items-center mb-2\">
<h2 class=\"text-xl capitalize font-semibold mr-2\">
{{ shop.name }}
</h2>
{% if shop.verified == true %}
<svg
width=\"20\"
height=\"20\"
viewBox=\"0 0 20 20\"
fill=\"none\"
xmlns=\"http://www.w3.org/2000/svg\"
>
<path
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\"
fill=\"#00AB55\"
/>
<path
d=\"M7 10L8.64645 11.6464C8.84171 11.8417 9.15829 11.8417 9.35355 11.6464L13 8\"
stroke=\"white\"
stroke-width=\"1.2\"
stroke-linecap=\"round\"
/>
</svg>
{% endif %}
</div>
<p class=\"text-sm font-normal text-white mb-4\">
{{ shop.addressCity }}
</p>
</div>
</div>
<div
class=\"flex justify-between p-6 bg-gray-100 dark:bg-foreground rounded-b-lg\"
>
<div class=\"flex\">
<div class=\"flex\">
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
<svg
class=\"w-5 mr-0 h-auto flex-shrink-0 text-yellow-400\"
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-5 w-5\"
viewBox=\"0 0 20 20\"
fill=\"currentColor\"
>
<path
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\"
/>
</svg>
</div>
<span class=\"text-base mx-2 dark:text-gray-100\">{{ shop.rating }}</span>
<span class=\"text-gray-500 dark:text-gray-400\">(56)</span>
</div>
</div>
</div>
</div>
</a>
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"w-screen h-90 flex flex-row map-container-grid \">
<div id=\"map\" class=\"float-right h-full flex-1\">
</div>
</div>
<button
type=\"button\"
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\"
>
<svg
class=\"mr-2 text-blue-500\"
width=\"16\"
height=\"16\"
viewBox=\"0 0 16 16\"
fill=\"none\"
xmlns=\"http://www.w3.org/2000/svg\"
>
<path
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\"
fill=\"currentColor\"
/>
</svg>
Map View
</button>
</div>
</div>
</div>
</div>
<div class=\"scroll-top-btn opacity-0 transition-all\">
<button
type=\"button\"
class=\"bg-blue-500 p-2 fixed z-50 bottom-0 hover:-translate-y-2 transition-all right-0 m-10 rounded-full\"
>
<svg
xmlns=\"http://www.w3.org/2000/svg\"
class=\"h-6 w-6 text-white\"
fill=\"none\"
viewBox=\"0 0 24 24\"
stroke=\"currentColor\"
stroke-width=\"2\"
>
<path
stroke-linecap=\"round\"
stroke-linejoin=\"round\"
d=\"M7 11l5-5m0 0l5 5m-5-5v12\"
/>
</svg>
</button>
</div>
{% endblock %}
", "home/listingGrid.html.twig", "/home/bestofi/bestof/templates/home/listingGrid.html.twig");
}
}