<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/product/listSearch.html.twig */
class __TwigTemplate_ea484de62d8f72bf066b48cc54b2ad1caf4bf635f7f4ca07780cf505df3fc215 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'style' => [$this, 'block_style'],
'body' => [$this, 'block_body'],
'javascript' => [$this, 'block_javascript'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_front.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/product/listSearch.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/product/listSearch.html.twig"));
$this->parent = $this->loadTemplate("base_front.html.twig", "front/product/listSearch.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 4
yield "\t<title>Les resultats</title>
\t<meta name=\"description\" content=\"Les produits disponibles. Actuellement, ";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["countProducts"]) || array_key_exists("countProducts", $context) ? $context["countProducts"] : (function () { throw new RuntimeError('Variable "countProducts" does not exist.', 5, $this->source); })()), "html", null, true);
yield " produits disponibles.\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 8
public function block_style($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style"));
// line 9
yield "\t<link rel=\"stylesheet\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/styleFiltreHebergement.css"), "html", null, true);
yield "\">
\t<link rel=\"stylesheet\" href=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/front/promo.css"), "html", null, true);
yield "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 13
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 14
yield "
\t<div class=\"page-header heor-section-style mine\" style=\"
height: 100%;
";
// line 17
if (((array_key_exists("categoryBackground", $context) && !(null === (isset($context["categoryBackground"]) || array_key_exists("categoryBackground", $context) ? $context["categoryBackground"] : (function () { throw new RuntimeError('Variable "categoryBackground" does not exist.', 17, $this->source); })()))) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["categoryBackground"]) || array_key_exists("categoryBackground", $context) ? $context["categoryBackground"] : (function () { throw new RuntimeError('Variable "categoryBackground" does not exist.', 17, $this->source); })()), "image", [], "any", false, false, false, 17)))) {
// line 18
yield " background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_CATEGORY_DIR") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["categoryBackground"]) || array_key_exists("categoryBackground", $context) ? $context["categoryBackground"] : (function () { throw new RuntimeError('Variable "categoryBackground" does not exist.', 18, $this->source); })()), "image", [], "any", false, false, false, 18))), "html", null, true);
yield ")
";
} else {
// line 20
yield " background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vacance_background.jpg"), "html", null, true);
yield ")
";
}
// line 22
yield " no-repeat center;background-size: cover\">
\t\t<div class=\"container\">
\t\t\t<div
\t\t\t\tclass=\"row\">
\t\t\t\t<!-- page caption -->
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
\t\t\t\t\t<div class=\"page-caption\">
\t\t\t\t\t\t<h1 class=\"page-title\">Resultat</h1>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.page caption -->
\t\t\t</div>
\t\t</div>
\t\t<!-- page caption -->
\t\t<div class=\"page-breadcrumb\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<nav aria-label=\"breadcrumb\">
\t\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 42
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\" class=\"breadcrumb-link\">Accueil</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Recherche :
\t\t\t\t\t\t\t\t";
// line 45
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 45, $this->source); })()), "session", [], "any", false, false, false, 45), "get", ["categoryName"], "method", false, false, false, 45)) {
// line 46
yield "\t\t\t\t\t\t\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "session", [], "any", false, false, false, 46), "get", ["categoryName"], "method", false, false, false, 46), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
}
// line 48
yield "\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 48, $this->source); })()), "session", [], "any", false, false, false, 48), "get", ["departmentName"], "method", false, false, false, 48)) {
yield "-
\t\t\t\t\t\t\t\t\t";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "session", [], "any", false, false, false, 49), "get", ["departmentName"], "method", false, false, false, 49), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
}
// line 51
yield "\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "session", [], "any", false, false, false, 51), "get", ["weddingdate"], "method", false, false, false, 51)) {
yield "-
\t\t\t\t\t\t\t\t\t";
// line 52
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "session", [], "any", false, false, false, 52), "get", ["weddingdate"], "method", false, false, false, 52), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
}
// line 54
yield "\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "session", [], "any", false, false, false, 54), "get", ["weddingdate_start"], "method", false, false, false, 54) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "session", [], "any", false, false, false, 54), "get", ["weddingdate_end"], "method", false, false, false, 54))) {
// line 55
yield "\t\t\t\t\t\t\t\t\t- ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "session", [], "any", false, false, false, 55), "get", ["weddingdate_start"], "method", false, false, false, 55), "html", null, true);
yield " - ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "session", [], "any", false, false, false, 55), "get", ["weddingdate_end"], "method", false, false, false, 55), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
}
// line 57
yield "\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t</ol>
\t\t\t\t\t</nav>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- page breadcrumb -->
\t</div>
\t<!-- /.page-header -->
\t";
// line 67
if ((isset($context["isPromoAdmin"]) || array_key_exists("isPromoAdmin", $context) ? $context["isPromoAdmin"] : (function () { throw new RuntimeError('Variable "isPromoAdmin" does not exist.', 67, $this->source); })())) {
// line 68
yield "\t<div class=\"bannier-promo mt-5\">
\t\t<div class=\"cont\">
\t\t\tPromotion
\t\t\t<span class=\"percent\">";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["isPromoAdmin"]) || array_key_exists("isPromoAdmin", $context) ? $context["isPromoAdmin"] : (function () { throw new RuntimeError('Variable "isPromoAdmin" does not exist.', 71, $this->source); })()), "value", [], "any", false, false, false, 71), "html", null, true);
yield "%</span>
\t\t\t";
// line 75
yield "\t\t\tde commission en cours jusqu'au <span class=\"date-fin-prom\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["isPromoAdmin"]) || array_key_exists("isPromoAdmin", $context) ? $context["isPromoAdmin"] : (function () { throw new RuntimeError('Variable "isPromoAdmin" does not exist.', 75, $this->source); })()), "endAt", [], "any", false, false, false, 75), "long", "", null, "gregorian", "fr"), "html", null, true);
yield "</span>
\t\t\tpour tous les serveices
\t\t</div>
\t</div>
\t";
}
// line 80
yield "
\t<!-- vendor-section -->
\t<div class=\"content\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-7 col-sm-12 col-12\">
\t\t\t\t\t";
// line 86
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 86, $this->source); })()), "flashes", ["success"], "method", false, false, false, 86));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 87
yield "\t\t\t\t\t\t<div class=\"alert alert-success\">
\t\t\t\t\t\t\t";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html", null, true);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
yield "\t\t\t\t\t<div id=\"allProduct\" class=\"row\">
\t\t\t\t\t\t";
// line 92
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 92, $this->source); })())) > 0)) {
// line 93
yield "\t\t\t\t\t\t";
// line 96
yield "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 96, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 97
yield "\t\t\t\t\t\t\t\t";
$context["subCategorySlug"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, false, false, 97), "toArray", [], "method", false, false, false, 97), 0, [], "array", false, false, false, 97), "subCategorySlug", [], "any", false, false, false, 97);
// line 98
yield "\t\t\t\t\t\t\t\t<div class=\"col-lg-6 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t\t<div class=\"container-block-Pcompanies mb-3\">
\t\t\t\t\t\t\t\t\t\t";
// line 101
yield "\t\t\t\t\t\t\t\t\t\t<div class=\"container-slide-image\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 102
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 102), "first", [], "any", false, false, false, 102) != false)) {
// line 103
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 103), "toArray", [], "method", false, false, false, 103));
foreach ($context['_seq'] as $context["_key"] => $context["imgHebmt"]) {
// line 104
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_PRODUCT_DIR") . CoreExtension::getAttribute($this->env, $this->source, $context["imgHebmt"], "url", [], "any", false, false, false, 104))), "html", null, true);
yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['imgHebmt'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
yield "\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 107
yield "\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg"), "html", null, true);
yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 109
yield "\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\" style=\"padding-bottom: 80px;\">
\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 113
yield "
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 114
$context["subCategory"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, false, false, 114), "toArray", [], "method", false, false, false, 114), 0, [], "array", false, false, false, 114);
// line 115
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
// line 118
yield "
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 119
$context["slug"] = "";
// line 120
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "typeActivity", [], "any", false, false, false, 120))) {
// line 121
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["slug"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "typeActivity", [], "any", false, false, false, 121), "slug", [], "any", false, false, false, 121);
// line 122
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "typeHebergements", [], "any", false, false, false, 122))) {
// line 123
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["slug"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "typeHebergements", [], "any", false, false, false, 123), "slugTypeHebergm", [], "any", false, false, false, 123);
// line 124
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 125
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["slug"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subCategory"]) || array_key_exists("subCategory", $context) ? $context["subCategory"] : (function () { throw new RuntimeError('Variable "subCategory" does not exist.', 125, $this->source); })()), "categories", [], "any", false, false, false, 125), "toArray", [], "any", false, false, false, 125), 0, [], "array", false, false, false, 125), "slug", [], "any", false, false, false, 125);
// line 126
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 127
yield "\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 129
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_single", ["slug" => // line 130
(isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 130, $this->source); })()), "subCategorySlug" => CoreExtension::getAttribute($this->env, $this->source, // line 131
(isset($context["subCategory"]) || array_key_exists("subCategory", $context) ? $context["subCategory"] : (function () { throw new RuntimeError('Variable "subCategory" does not exist.', 131, $this->source); })()), "subCategorySlug", [], "any", false, false, false, 131), "product_id" => CoreExtension::getAttribute($this->env, $this->source, // line 132
$context["product"], "id", [], "any", false, false, false, 132), "productSlug" => CoreExtension::getAttribute($this->env, $this->source, // line 133
$context["product"], "productSlug", [], "any", false, false, false, 133)]), "html", null, true);
// line 134
yield "\" class=\"title\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 134), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 138
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "departments", [], "any", false, false, false, 138));
$context['_iterated'] = false;
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["department"]) {
// line 139
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "name", [], "any", false, false, false, 139), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 140
if ( !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 140)) {
yield ",
\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 142
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 143
yield "\t\t\t\t\t\t\t\t\t\t\t\t\tToute la France
\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
yield "\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 147
if (((null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "typeHebergements", [], "any", false, false, false, 147)) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "typeHebergements", [], "any", false, false, false, 147), "slugTypeHebergm", [], "any", false, false, false, 147) != "hotel"))) {
// line 148
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\tPrix :
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 150
$context["today"] = $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d");
// line 151
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["customPriceFound"] = false;
// line 152
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["customPrice"] = 0;
// line 153
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
// line 154
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["price"] = 0;
// line 155
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["difference"] = null;
// line 156
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["reductionPercentage"] = 0;
// line 157
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["duration"] = null;
// line 158
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["countdown"] = null;
// line 159
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["reductionValid"] = false;
// line 160
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 161
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "dayPrice", [], "any", false, false, false, 161));
foreach ($context['_seq'] as $context["_key"] => $context["dayPrice"]) {
// line 162
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["formattedDate"] = $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["dayPrice"], "customDate", [], "any", false, false, false, 162), "Y-m-d");
// line 163
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((isset($context["formattedDate"]) || array_key_exists("formattedDate", $context) ? $context["formattedDate"] : (function () { throw new RuntimeError('Variable "formattedDate" does not exist.', 163, $this->source); })()) == (isset($context["today"]) || array_key_exists("today", $context) ? $context["today"] : (function () { throw new RuntimeError('Variable "today" does not exist.', 163, $this->source); })()))) {
// line 164
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["customPriceFound"] = true;
// line 165
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["customPrice"] = $this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["dayPrice"], "customPrice", [], "any", false, false, false, 165), 2, ".");
// line 166
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 167
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dayPrice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 169
$context["month"] = $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "n");
// line 170
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 170, $this->source); })()) >= 3) && ((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 170, $this->source); })()) <= 5))) {
// line 171
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["springPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "springPrice", [], "any", false, false, false, 171);
// line 172
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["springPrice"]) || array_key_exists("springPrice", $context) ? $context["springPrice"] : (function () { throw new RuntimeError('Variable "springPrice" does not exist.', 172, $this->source); })()))) {
// line 173
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "springPrice", [], "any", false, false, false, 173);
// line 174
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 175
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 177
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif ((((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 177, $this->source); })()) >= 6) && ((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 177, $this->source); })()) <= 8))) {
// line 178
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["summerPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "summerPrice", [], "any", false, false, false, 178);
// line 179
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["summerPrice"]) || array_key_exists("summerPrice", $context) ? $context["summerPrice"] : (function () { throw new RuntimeError('Variable "summerPrice" does not exist.', 179, $this->source); })()))) {
// line 180
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "summerPrice", [], "any", false, false, false, 180);
// line 181
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 182
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 184
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif ((((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 184, $this->source); })()) >= 9) && ((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 184, $this->source); })()) <= 11))) {
// line 185
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["autumnPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "autumnPrice", [], "any", false, false, false, 185);
// line 186
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["autumnPrice"]) || array_key_exists("autumnPrice", $context) ? $context["autumnPrice"] : (function () { throw new RuntimeError('Variable "autumnPrice" does not exist.', 186, $this->source); })()))) {
// line 187
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "autumnPrice", [], "any", false, false, false, 187);
// line 188
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 189
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 191
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 192
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["winterPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "winterPrice", [], "any", false, false, false, 192);
// line 193
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["winterPrice"]) || array_key_exists("winterPrice", $context) ? $context["winterPrice"] : (function () { throw new RuntimeError('Variable "winterPrice" does not exist.', 193, $this->source); })()))) {
// line 194
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "winterPrice", [], "any", false, false, false, 194);
// line 195
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 196
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 198
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 199
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["day"] = $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "N");
// line 200
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((((isset($context["day"]) || array_key_exists("day", $context) ? $context["day"] : (function () { throw new RuntimeError('Variable "day" does not exist.', 200, $this->source); })()) == 6) || ((isset($context["day"]) || array_key_exists("day", $context) ? $context["day"] : (function () { throw new RuntimeError('Variable "day" does not exist.', 200, $this->source); })()) == 7))) {
// line 201
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["weekEndPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "weekEndPrice", [], "any", false, false, false, 201);
// line 202
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["weekEndPrice"]) || array_key_exists("weekEndPrice", $context) ? $context["weekEndPrice"] : (function () { throw new RuntimeError('Variable "weekEndPrice" does not exist.', 202, $this->source); })()))) {
// line 203
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "weekEndPrice", [], "any", false, false, false, 203);
yield "\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 205
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 207
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 208
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 210
$context["periodPrice"] = 0;
// line 211
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "periodPrice", [], "any", false, false, false, 211), "toArray", [], "method", false, false, false, 211));
foreach ($context['_seq'] as $context["_key"] => $context["period"]) {
// line 212
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["startDate"] = $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["period"], "startDate", [], "any", false, false, false, 212), "Y-m-d");
// line 213
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["endDate"] = $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["period"], "endDate", [], "any", false, false, false, 213), "Y-m-d");
// line 214
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((((isset($context["today"]) || array_key_exists("today", $context) ? $context["today"] : (function () { throw new RuntimeError('Variable "today" does not exist.', 214, $this->source); })()) >= (isset($context["startDate"]) || array_key_exists("startDate", $context) ? $context["startDate"] : (function () { throw new RuntimeError('Variable "startDate" does not exist.', 214, $this->source); })())) && ((isset($context["today"]) || array_key_exists("today", $context) ? $context["today"] : (function () { throw new RuntimeError('Variable "today" does not exist.', 214, $this->source); })()) <= (isset($context["endDate"]) || array_key_exists("endDate", $context) ? $context["endDate"] : (function () { throw new RuntimeError('Variable "endDate" does not exist.', 214, $this->source); })()))) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["period"], "price", [], "any", false, false, false, 214)))) {
// line 215
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["periodPrice"] = CoreExtension::getAttribute($this->env, $this->source, $context["period"], "price", [], "any", false, false, false, 215);
// line 216
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 217
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = 0;
// line 218
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 219
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['period'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 220
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((isset($context["periodPrice"]) || array_key_exists("periodPrice", $context) ? $context["periodPrice"] : (function () { throw new RuntimeError('Variable "periodPrice" does not exist.', 220, $this->source); })()) != 0)) {
// line 221
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["currentPrice"] = (isset($context["periodPrice"]) || array_key_exists("periodPrice", $context) ? $context["periodPrice"] : (function () { throw new RuntimeError('Variable "periodPrice" does not exist.', 221, $this->source); })());
// line 222
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 223
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 224
if (((isset($context["customPriceFound"]) || array_key_exists("customPriceFound", $context) ? $context["customPriceFound"] : (function () { throw new RuntimeError('Variable "customPriceFound" does not exist.', 224, $this->source); })()) && ((isset($context["customPrice"]) || array_key_exists("customPrice", $context) ? $context["customPrice"] : (function () { throw new RuntimeError('Variable "customPrice" does not exist.', 224, $this->source); })()) != 0))) {
// line 225
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["price"] = (isset($context["customPrice"]) || array_key_exists("customPrice", $context) ? $context["customPrice"] : (function () { throw new RuntimeError('Variable "customPrice" does not exist.', 225, $this->source); })());
// line 226
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif (((((isset($context["currentPrice"]) || array_key_exists("currentPrice", $context) ? $context["currentPrice"] : (function () { throw new RuntimeError('Variable "currentPrice" does not exist.', 226, $this->source); })()) != 0) && !(null === (isset($context["currentPrice"]) || array_key_exists("currentPrice", $context) ? $context["currentPrice"] : (function () { throw new RuntimeError('Variable "currentPrice" does not exist.', 226, $this->source); })()))) && ((isset($context["customPrice"]) || array_key_exists("customPrice", $context) ? $context["customPrice"] : (function () { throw new RuntimeError('Variable "customPrice" does not exist.', 226, $this->source); })()) == 0))) {
// line 227
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["price"] = (isset($context["currentPrice"]) || array_key_exists("currentPrice", $context) ? $context["currentPrice"] : (function () { throw new RuntimeError('Variable "currentPrice" does not exist.', 227, $this->source); })());
// line 228
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif ((((isset($context["currentPrice"]) || array_key_exists("currentPrice", $context) ? $context["currentPrice"] : (function () { throw new RuntimeError('Variable "currentPrice" does not exist.', 228, $this->source); })()) == 0) || ((null === (isset($context["currentPrice"]) || array_key_exists("currentPrice", $context) ? $context["currentPrice"] : (function () { throw new RuntimeError('Variable "currentPrice" does not exist.', 228, $this->source); })())) && ((isset($context["customPrice"]) || array_key_exists("customPrice", $context) ? $context["customPrice"] : (function () { throw new RuntimeError('Variable "customPrice" does not exist.', 228, $this->source); })()) == 0)))) {
// line 229
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["price"] = CoreExtension::getAttribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 229);
// line 230
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 231
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "productAutoReduction", [], "any", false, false, false, 231), "toArray", [], "any", false, false, false, 231));
foreach ($context['_seq'] as $context["_key"] => $context["autoReduce"]) {
// line 232
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "createdAt", [], "any", false, false, false, 232)) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "countdown", [], "any", false, false, false, 232))) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "duration", [], "any", false, false, false, 232))) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "reductionPercentage", [], "any", false, false, false, 232)))) {
// line 233
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["difference"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Twig\Extension\CoreExtension']->convertDate((isset($context["today"]) || array_key_exists("today", $context) ? $context["today"] : (function () { throw new RuntimeError('Variable "today" does not exist.', 233, $this->source); })())), "diff", [CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "createdAt", [], "any", false, false, false, 233)], "method", false, false, false, 233), "days", [], "any", false, false, false, 233);
// line 234
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["duration"] = CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "duration", [], "any", false, false, false, 234);
// line 235
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["countdown"] = CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "countdown", [], "any", false, false, false, 235);
// line 236
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["reductionPercentage"] = CoreExtension::getAttribute($this->env, $this->source, $context["autoReduce"], "reductionPercentage", [], "any", false, false, false, 236);
// line 237
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["durationout"] = ((isset($context["duration"]) || array_key_exists("duration", $context) ? $context["duration"] : (function () { throw new RuntimeError('Variable "duration" does not exist.', 237, $this->source); })()) + (isset($context["countdown"]) || array_key_exists("countdown", $context) ? $context["countdown"] : (function () { throw new RuntimeError('Variable "countdown" does not exist.', 237, $this->source); })()));
// line 238
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 239
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["reductionValid"] = (((isset($context["difference"]) || array_key_exists("difference", $context) ? $context["difference"] : (function () { throw new RuntimeError('Variable "difference" does not exist.', 239, $this->source); })()) > (isset($context["countdown"]) || array_key_exists("countdown", $context) ? $context["countdown"] : (function () { throw new RuntimeError('Variable "countdown" does not exist.', 239, $this->source); })())) && ((isset($context["difference"]) || array_key_exists("difference", $context) ? $context["difference"] : (function () { throw new RuntimeError('Variable "difference" does not exist.', 239, $this->source); })()) <= (isset($context["durationout"]) || array_key_exists("durationout", $context) ? $context["durationout"] : (function () { throw new RuntimeError('Variable "durationout" does not exist.', 239, $this->source); })())));
// line 240
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 241
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['autoReduce'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 242
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 243
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "company", [], "any", false, false, false, 243), "type", [], "any", false, false, false, 243) != "service")) {
// line 244
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"vendor-price\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 245
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 245), 2, ".", ""), "html", null, true);
yield "€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif ( // line 247
(isset($context["reductionValid"]) || array_key_exists("reductionValid", $context) ? $context["reductionValid"] : (function () { throw new RuntimeError('Variable "reductionValid" does not exist.', 247, $this->source); })())) {
// line 248
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["priceReduced"] = ((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 248, $this->source); })()) - (((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 248, $this->source); })()) * (isset($context["reductionPercentage"]) || array_key_exists("reductionPercentage", $context) ? $context["reductionPercentage"] : (function () { throw new RuntimeError('Variable "reductionPercentage" does not exist.', 248, $this->source); })())) / 100));
// line 249
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["priceReduced"]) || array_key_exists("priceReduced", $context) ? $context["priceReduced"] : (function () { throw new RuntimeError('Variable "priceReduced" does not exist.', 249, $this->source); })()), 2, "."), "html", null, true);
yield "</strong>€\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 251
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 251, $this->source); })()), 2, "."), "html", null, true);
yield "</strong>€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 253
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 254
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["lengthRoomNight"] = 0;
// line 255
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["statusByNight"] = false;
// line 256
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["allPriceByNight"] = 0;
// line 257
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 258
$context["lengthRoomDay"] = 0;
// line 259
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["statusByDay"] = false;
// line 260
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["allPriceByDay"] = 0;
// line 261
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "chambres", [], "any", true, true, false, 261)) {
// line 262
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "chambres", [], "any", false, false, false, 262), "toArray", [], "any", false, false, false, 262));
foreach ($context['_seq'] as $context["_key"] => $context["roomOption"]) {
// line 263
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, $context["roomOption"], "tarifNuit", [], "any", true, true, false, 263)) {
// line 264
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["lengthRoomNight"] = ((isset($context["lengthRoomNight"]) || array_key_exists("lengthRoomNight", $context) ? $context["lengthRoomNight"] : (function () { throw new RuntimeError('Variable "lengthRoomNight" does not exist.', 264, $this->source); })()) + 1);
// line 265
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["statusByNight"] = true;
// line 266
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["allPriceByNight"] = ((isset($context["allPriceByNight"]) || array_key_exists("allPriceByNight", $context) ? $context["allPriceByNight"] : (function () { throw new RuntimeError('Variable "allPriceByNight" does not exist.', 266, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["roomOption"], "tarifNuit", [], "any", false, false, false, 266));
// line 267
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 268
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["roomOption"], "tarifJour", [], "any", false, false, false, 268))) {
// line 269
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["lengthRoomDay"] = ((isset($context["lengthRoomDay"]) || array_key_exists("lengthRoomDay", $context) ? $context["lengthRoomDay"] : (function () { throw new RuntimeError('Variable "lengthRoomDay" does not exist.', 269, $this->source); })()) + 1);
// line 270
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["statusByDay"] = true;
// line 271
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["allPriceByDay"] = ((isset($context["allPriceByDay"]) || array_key_exists("allPriceByDay", $context) ? $context["allPriceByDay"] : (function () { throw new RuntimeError('Variable "allPriceByDay" does not exist.', 271, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["roomOption"], "tarifJour", [], "any", false, false, false, 271));
// line 272
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 273
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['roomOption'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 275
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((isset($context["statusByDay"]) || array_key_exists("statusByDay", $context) ? $context["statusByDay"] : (function () { throw new RuntimeError('Variable "statusByDay" does not exist.', 275, $this->source); })()) || (isset($context["statusByNight"]) || array_key_exists("statusByNight", $context) ? $context["statusByNight"] : (function () { throw new RuntimeError('Variable "statusByNight" does not exist.', 275, $this->source); })()))) {
// line 276
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>Prix moyen d'une chambre:</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 278
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((isset($context["statusByNight"]) || array_key_exists("statusByNight", $context) ? $context["statusByNight"] : (function () { throw new RuntimeError('Variable "statusByNight" does not exist.', 278, $this->source); })())) {
// line 279
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpar nuit
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>";
// line 282
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(((isset($context["allPriceByNight"]) || array_key_exists("allPriceByNight", $context) ? $context["allPriceByNight"] : (function () { throw new RuntimeError('Variable "allPriceByNight" does not exist.', 282, $this->source); })()) / (isset($context["lengthRoomNight"]) || array_key_exists("lengthRoomNight", $context) ? $context["lengthRoomNight"] : (function () { throw new RuntimeError('Variable "lengthRoomNight" does not exist.', 282, $this->source); })())), 2, "."), "html", null, true);
yield "</strong>€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 285
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((isset($context["statusByDay"]) || array_key_exists("statusByDay", $context) ? $context["statusByDay"] : (function () { throw new RuntimeError('Variable "statusByDay" does not exist.', 285, $this->source); })())) {
// line 286
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 292
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 293
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (( !(isset($context["statusByNight"]) || array_key_exists("statusByNight", $context) ? $context["statusByNight"] : (function () { throw new RuntimeError('Variable "statusByNight" does not exist.', 293, $this->source); })()) && !(isset($context["statusByDay"]) || array_key_exists("statusByDay", $context) ? $context["statusByDay"] : (function () { throw new RuntimeError('Variable "statusByDay" does not exist.', 293, $this->source); })()))) {
// line 294
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrix : <strong>Prix en attente</strong>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 298
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 301
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 302
yield "\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 305
$context["notes"] = 0;
// line 306
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "avis", [], "any", false, false, false, 306));
foreach ($context['_seq'] as $context["_key"] => $context["avi"]) {
// line 307
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["notes"] = ((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 307, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["avi"], "globalNote", [], "any", false, false, false, 307));
// line 308
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['avi'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 309
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["noteTotal"] = ((((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 309, $this->source); })()) > 0)) ? (((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 309, $this->source); })()) / Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["product"], "avis", [], "any", false, false, false, 309)))) : (0));
// line 310
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["product"], "avis", [], "any", false, false, false, 310)), "html", null, true);
yield " Avis</p>
\t\t\t\t\t\t\t\t\t\t\t<p>";
// line 311
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 311), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\tQuantité restante</p>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
// line 319
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, true, false, 319), 0, [], "array", false, true, false, 319), "categories", [], "any", false, true, false, 319), 0, [], "array", true, true, false, 319)) {
// line 320
yield "\t\t\t\t\t\t\t\t\t\t<a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_single", ["slug" => // line 321
(isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 321, $this->source); })()), "subCategorySlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 322
$context["product"], "subCategories", [], "any", false, false, false, 322), 0, [], "array", false, false, false, 322), "subCategorySlug", [], "any", false, false, false, 322), "product_id" => CoreExtension::getAttribute($this->env, $this->source, // line 323
$context["product"], "id", [], "any", false, false, false, 323), "productSlug" => CoreExtension::getAttribute($this->env, $this->source, // line 324
$context["product"], "productSlug", [], "any", false, false, false, 324)]), "html", null, true);
// line 325
yield "\" class=\"title\">
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btnVoirP btn\">Voir ";
// line 327
if (((isset($context["subCategorySlug"]) || array_key_exists("subCategorySlug", $context) ? $context["subCategorySlug"] : (function () { throw new RuntimeError('Variable "subCategorySlug" does not exist.', 327, $this->source); })()) == "hebergements")) {
yield "l'hébergement";
} else {
yield "plus";
}
// line 328
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t";
}
// line 332
yield "\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 336
yield "\t\t\t\t\t\t";
} else {
// line 337
yield "\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary mb-2\" data-toggle=\"modal\" data-target=\"#modalFilter\">Filter</button>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"vendor-thumbnail list-view p-4\">Aucun service correspondant</div>
\t\t\t\t\t\t";
}
// line 342
yield "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pagination\">
\t\t\t\t\t\t<nav aria-label=\"Page navigation example\">
\t\t\t\t\t\t\t";
// line 346
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 346, $this->source); })()));
yield "
\t\t\t\t\t\t</nav>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- /.paginations -->
\t\t\t\t</div>
\t\t\t\t<!-- sidebar-section -->
";
// line 353
yield Twig\Extension\CoreExtension::include($this->env, $context, "front/inc/filter_sidebar.html.twig");
yield "
\t\t\t\t<!-- /.sidebar-section -->
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 361
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 362
yield "\t<script
\t\ttype=\"text/javascript\"
\t\tsrc=\"https://cdn.jsdelivr.net/gh/maxshuty/accessible-web-components@latest/dist/simpleRange.min.js\">
\t</script>
\t<script src=\"";
// line 366
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jsForHebergementFilter.js"), "html", null, true);
yield "\"></script>
\t<script src=\"";
// line 367
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/getCommune.js"), "html", null, true);
yield "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/product/listSearch.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 992 => 367, 988 => 366, 982 => 362, 972 => 361, 954 => 353, 944 => 346, 938 => 342, 931 => 337, 928 => 336, 919 => 332, 913 => 328, 907 => 327, 903 => 325, 901 => 324, 900 => 323, 899 => 322, 898 => 321, 896 => 320, 894 => 319, 883 => 311, 878 => 310, 875 => 309, 869 => 308, 866 => 307, 861 => 306, 859 => 305, 854 => 302, 851 => 301, 849 => 298, 843 => 294, 840 => 293, 837 => 292, 834 => 286, 831 => 285, 825 => 282, 820 => 279, 817 => 278, 813 => 276, 810 => 275, 803 => 273, 800 => 272, 797 => 271, 794 => 270, 791 => 269, 788 => 268, 785 => 267, 782 => 266, 779 => 265, 776 => 264, 773 => 263, 768 => 262, 765 => 261, 762 => 260, 759 => 259, 757 => 258, 754 => 257, 751 => 256, 748 => 255, 745 => 254, 742 => 253, 736 => 251, 730 => 249, 727 => 248, 725 => 247, 720 => 245, 717 => 244, 714 => 243, 712 => 242, 706 => 241, 703 => 240, 700 => 239, 698 => 238, 695 => 237, 692 => 236, 689 => 235, 686 => 234, 683 => 233, 680 => 232, 675 => 231, 672 => 230, 669 => 229, 666 => 228, 663 => 227, 660 => 226, 657 => 225, 655 => 224, 652 => 223, 649 => 222, 646 => 221, 643 => 220, 637 => 219, 634 => 218, 631 => 217, 628 => 216, 625 => 215, 622 => 214, 619 => 213, 616 => 212, 611 => 211, 609 => 210, 605 => 208, 602 => 207, 596 => 205, 590 => 203, 587 => 202, 584 => 201, 581 => 200, 578 => 199, 575 => 198, 569 => 196, 566 => 195, 563 => 194, 560 => 193, 557 => 192, 554 => 191, 548 => 189, 545 => 188, 542 => 187, 539 => 186, 536 => 185, 533 => 184, 527 => 182, 524 => 181, 521 => 180, 518 => 179, 515 => 178, 512 => 177, 506 => 175, 503 => 174, 500 => 173, 497 => 172, 494 => 171, 491 => 170, 489 => 169, 486 => 168, 480 => 167, 477 => 166, 474 => 165, 471 => 164, 468 => 163, 465 => 162, 461 => 161, 458 => 160, 455 => 159, 452 => 158, 449 => 157, 446 => 156, 443 => 155, 440 => 154, 437 => 153, 434 => 152, 431 => 151, 429 => 150, 425 => 148, 423 => 147, 419 => 145, 412 => 143, 399 => 142, 394 => 140, 389 => 139, 371 => 138, 363 => 134, 361 => 133, 360 => 132, 359 => 131, 358 => 130, 357 => 129, 353 => 127, 350 => 126, 347 => 125, 344 => 124, 341 => 123, 338 => 122, 335 => 121, 332 => 120, 330 => 119, 327 => 118, 325 => 115, 323 => 114, 320 => 113, 315 => 109, 309 => 107, 306 => 106, 297 => 104, 292 => 103, 290 => 102, 287 => 101, 283 => 98, 280 => 97, 275 => 96, 273 => 93, 271 => 92, 268 => 91, 259 => 88, 256 => 87, 252 => 86, 244 => 80, 235 => 75, 231 => 71, 226 => 68, 224 => 67, 212 => 57, 204 => 55, 201 => 54, 196 => 52, 191 => 51, 186 => 49, 181 => 48, 175 => 46, 173 => 45, 167 => 42, 145 => 22, 139 => 20, 133 => 18, 131 => 17, 126 => 14, 116 => 13, 103 => 10, 98 => 9, 88 => 8, 75 => 5, 72 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_front.html.twig' %}
{% block meta %}
\t<title>Les resultats</title>
\t<meta name=\"description\" content=\"Les produits disponibles. Actuellement, {{ countProducts }} produits disponibles.\">
{% endblock %}
{% block style %}
\t<link rel=\"stylesheet\" href=\"{{ asset('css/styleFiltreHebergement.css') }}\">
\t<link rel=\"stylesheet\" href=\"{{ asset('css/front/promo.css') }}\">
{% endblock %}
{% block body %}
\t<div class=\"page-header heor-section-style mine\" style=\"
height: 100%;
{% if categoryBackground is defined and categoryBackground is not null and categoryBackground.image is not null %}
background: url({{ asset(constant('App\\\\Services\\\\File::IMAGE_CATEGORY_DIR') ~ categoryBackground.image) }})
{% else %}
background: url({{ asset('images/vacance_background.jpg') }})
{% endif %}
no-repeat center;background-size: cover\">
\t\t<div class=\"container\">
\t\t\t<div
\t\t\t\tclass=\"row\">
\t\t\t\t<!-- page caption -->
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
\t\t\t\t\t<div class=\"page-caption\">
\t\t\t\t\t\t<h1 class=\"page-title\">Resultat</h1>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.page caption -->
\t\t\t</div>
\t\t</div>
\t\t<!-- page caption -->
\t\t<div class=\"page-breadcrumb\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<nav aria-label=\"breadcrumb\">
\t\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Recherche :
\t\t\t\t\t\t\t\t{% if app.session.get('categoryName') %}
\t\t\t\t\t\t\t\t\t{{ app.session.get('categoryName') }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% if app.session.get('departmentName') %}-
\t\t\t\t\t\t\t\t\t{{ app.session.get('departmentName') }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% if app.session.get('weddingdate') %}-
\t\t\t\t\t\t\t\t\t{{ app.session.get('weddingdate') }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% if app.session.get('weddingdate_start') and app.session.get('weddingdate_end') %}
\t\t\t\t\t\t\t\t\t- {{ app.session.get('weddingdate_start') }} - {{ app.session.get('weddingdate_end') }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t</ol>
\t\t\t\t\t</nav>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- page breadcrumb -->
\t</div>
\t<!-- /.page-header -->
\t{% if isPromoAdmin %}
\t<div class=\"bannier-promo mt-5\">
\t\t<div class=\"cont\">
\t\t\tPromotion
\t\t\t<span class=\"percent\">{{ isPromoAdmin.value }}%</span>
\t\t\t{# <svg class=\"outlined-text\" width=\"80%\" height=\"200\" viewBox=\"0 0 800 200\" preserveAspectRatio=\"xMidYMid meet\">
\t\t\t\t<text x=\"50\" y=\"140\">-20%</text>
\t\t\t</svg> #}
\t\t\tde commission en cours jusqu'au <span class=\"date-fin-prom\">{{ isPromoAdmin.endAt|format_date('long', locale='fr') }}</span>
\t\t\tpour tous les serveices
\t\t</div>
\t</div>
\t{% endif %}
\t<!-- vendor-section -->
\t<div class=\"content\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-7 col-sm-12 col-12\">
\t\t\t\t\t{% for message in app.flashes('success') %}
\t\t\t\t\t\t<div class=\"alert alert-success\">
\t\t\t\t\t\t\t{{ message }}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t<div id=\"allProduct\" class=\"row\">
\t\t\t\t\t\t{% if products|length > 0 %}
\t\t\t\t\t\t{# <div class=\"col-12\">
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary mb-2\" data-toggle=\"modal\" data-target=\"#modalFilter\">Filter</button>
\t\t\t\t\t\t</div> #}
\t\t\t\t\t\t\t{% for product in products %}
\t\t\t\t\t\t\t\t{% set subCategorySlug = product.subCategories.toArray()[0].subCategorySlug %}
\t\t\t\t\t\t\t\t<div class=\"col-lg-6 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t\t<div class=\"container-block-Pcompanies mb-3\">
\t\t\t\t\t\t\t\t\t\t{# <div class=\"container-imageP zoomimg\"> #}
\t\t\t\t\t\t\t\t\t\t<div class=\"container-slide-image\">
\t\t\t\t\t\t\t\t\t\t\t{% if product.photos.first != false %}
\t\t\t\t\t\t\t\t\t\t\t\t{% for imgHebmt in product.photos.toArray() %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_PRODUCT_DIR') ~ imgHebmt.url) }}\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg') }}\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\" style=\"padding-bottom: 80px;\">
\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t\t\t\t{# <a href=\"{{ path('front_product_single', {'slug': product.subCategories[0].categories[0].slug, 'subCategorySlug': product.subCategories[0].subCategorySlug, 'product_id': product.id, 'productSlug': product.productSlug}) }}\" class=\"title\">{{ product.name }}</a> #}
\t\t\t\t\t\t\t\t\t\t\t\t{% set subCategory = product.subCategories.toArray()[0] %}
\t\t\t\t\t\t\t\t\t\t\t\t{# <pre>
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ dump(subCategory.categories.toArray[0].slug) }}
\t\t\t\t\t\t\t\t\t\t\t\t</pre> #}
\t\t\t\t\t\t\t\t\t\t\t\t{% set slug = \"\" %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if product.typeActivity is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set slug = product.typeActivity.slug %}
\t\t\t\t\t\t\t\t\t\t\t\t{% elseif product.typeHebergements is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set slug = product.typeHebergements.slugTypeHebergm %}
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set slug = subCategory.categories.toArray[0].slug %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_product_single', {
\t\t\t\t\t\t\t\t\t\t\t\t\t'slug': slug,
\t\t\t\t\t\t\t\t\t\t\t\t\t'subCategorySlug': subCategory.subCategorySlug,
\t\t\t\t\t\t\t\t\t\t\t\t\t'product_id': product.id,
\t\t\t\t\t\t\t\t\t\t\t\t\t'productSlug': product.productSlug
\t\t\t\t\t\t\t\t\t\t\t\t}) }}\" class=\"title\">{{ product.name }}</a>
\t\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t\t\t\t{% for department in product.departments %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ department.name }}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if not loop.last %},
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\tToute la France
\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t{% if product.typeHebergements is null or product.typeHebergements.slugTypeHebergm != 'hotel' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\tPrix :
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set today = \"now\"|date('Y-m-d') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set customPriceFound = false %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set customPrice = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set price = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set difference = null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set reductionPercentage = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set duration = null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set countdown = null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set reductionValid = false %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for dayPrice in product.dayPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set formattedDate = dayPrice.customDate|date('Y-m-d') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if formattedDate == today %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set customPriceFound = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set customPrice = dayPrice.customPrice|number_format(2, '.') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set month = \"now\"|date('n') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if month >= 3 and month <= 5 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set springPrice = product.springPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if springPrice is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = product.springPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif month >= 6 and month <= 8 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set summerPrice = product.summerPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if summerPrice is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = product.summerPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif month >= 9 and month <= 11 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set autumnPrice = product.autumnPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if autumnPrice is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = product.autumnPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set winterPrice = product.winterPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if winterPrice is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = product.winterPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set day = \"now\"|date('N') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if day == 6 or day == 7 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set weekEndPrice = product.weekEndPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if weekEndPrice is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = product.weekEndPrice %}\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set periodPrice = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for period in product.periodPrice.toArray() %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set startDate = period.startDate|date(\"Y-m-d\") %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set endDate = period.endDate|date(\"Y-m-d\") %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if today >= startDate and today <= endDate and period.price is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set periodPrice = period.price %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if periodPrice != 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set currentPrice = periodPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if customPriceFound and customPrice != 0%}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set price = customPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif currentPrice != 0 and currentPrice is not null and customPrice == 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set price = currentPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif currentPrice == 0 or currentPrice is null and customPrice == 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set price = product.price %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for autoReduce in product.productAutoReduction.toArray %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if autoReduce.createdAt is not null and autoReduce.countdown is not null and autoReduce.duration is not null and autoReduce.reductionPercentage is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set difference = date(today).diff(autoReduce.createdAt).days %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set duration = autoReduce.duration %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set countdown = autoReduce.countdown %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set reductionPercentage = autoReduce.reductionPercentage %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set durationout = duration + countdown %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# {{ dump(countdown,difference,durationout,duration) }} #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set reductionValid = difference > countdown and difference <= durationout %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# {{ dump(reductionValid) }} #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if product.company.type != \"service\" %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"vendor-price\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ product.price|number_format(2, '.', '') }}€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif reductionValid %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set priceReduced = price - ((price * reductionPercentage) / 100) %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ priceReduced|number_format(2, '.') }}</strong>€\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ price|number_format(2, '.') }}</strong>€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set lengthRoomNight = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set statusByNight = false %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set allPriceByNight = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set lengthRoomDay = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set statusByDay = false %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set allPriceByDay = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if product.chambres is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for roomOption in product.chambres.toArray %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if roomOption.tarifNuit is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set lengthRoomNight = lengthRoomNight + 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set statusByNight = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set allPriceByNight = allPriceByNight + roomOption.tarifNuit %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if roomOption.tarifJour is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set lengthRoomDay = lengthRoomDay + 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set statusByDay = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set allPriceByDay = allPriceByDay + roomOption.tarifJour %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if statusByDay or statusByNight %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>Prix moyen d'une chambre:</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if statusByNight %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpar nuit
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ (allPriceByNight / lengthRoomNight)|number_format(2, '.') }}</strong>€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if statusByDay %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpar jour
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ (allPriceByDay / lengthRoomDay)|number_format(2, '.') }}</strong>€
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p> #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if not statusByNight and not statusByDay %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrix : <strong>Prix en attente</strong>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{# <i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\tPrix :
\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ product.price|number_format(2, '.') }}</strong>€ #}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t{% set notes = 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% for avi in product.avis %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set notes = notes + avi.globalNote %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set noteTotal = (notes > 0) ? notes / product.avis|length : 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ product.avis|length }} Avis</p>
\t\t\t\t\t\t\t\t\t\t\t<p>{{ product.quantity }}
\t\t\t\t\t\t\t\t\t\t\t\tQuantité restante</p>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{% if product.subCategories[0].categories[0] is defined %}
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_product_single', {
\t\t\t\t\t\t\t\t\t\t\t\t'slug': slug,
\t\t\t\t\t\t\t\t\t\t\t\t'subCategorySlug': product.subCategories[0].subCategorySlug,
\t\t\t\t\t\t\t\t\t\t\t\t'product_id': product.id,
\t\t\t\t\t\t\t\t\t\t\t\t'productSlug': product.productSlug
\t\t\t\t\t\t\t\t\t\t\t}) }}\" class=\"title\">
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btnVoirP btn\">Voir {% if subCategorySlug == \"hebergements\"%}l'hébergement{% else %}plus{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary mb-2\" data-toggle=\"modal\" data-target=\"#modalFilter\">Filter</button>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"vendor-thumbnail list-view p-4\">Aucun service correspondant</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pagination\">
\t\t\t\t\t\t<nav aria-label=\"Page navigation example\">
\t\t\t\t\t\t\t{{ knp_pagination_render(products) }}
\t\t\t\t\t\t</nav>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- /.paginations -->
\t\t\t\t</div>
\t\t\t\t<!-- sidebar-section -->
{{ include('front/inc/filter_sidebar.html.twig') }}
\t\t\t\t<!-- /.sidebar-section -->
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
{% block javascript %}
\t<script
\t\ttype=\"text/javascript\"
\t\tsrc=\"https://cdn.jsdelivr.net/gh/maxshuty/accessible-web-components@latest/dist/simpleRange.min.js\">
\t</script>
\t<script src=\"{{ asset('js/jsForHebergementFilter.js') }}\"></script>
\t<script src=\"{{ asset('js/getCommune.js') }}\"></script>
{% endblock %}", "front/product/listSearch.html.twig", "/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/product/listSearch.html.twig");
}
}