<?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;
/* @View/pages/akaru/search.html.twig */
class __TwigTemplate_47d45eac71aa4c0b28f982d81962830d40d478249aafa644ab8bb59f35575a2d extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 5
return "layouts/base.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", "@View/pages/akaru/search.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@View/pages/akaru/search.html.twig"));
// line 7
if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
// line 8
$context["jsPageId"] = "residence-search";
// line 9
$context["pageClass"] = "ResidencePage ResidenceSearch";
} else {
// line 12
$context["jsPageId"] = "search";
// line 13
$context["pageClass"] = "Search";
}
// line 5
$this->parent = $this->loadTemplate("layouts/base.html.twig", "@View/pages/akaru/search.html.twig", 5);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 17
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 18
echo "
\t";
// line 25
echo "\t";
// line 26
echo "\t";
$context["product_results"] = [];
// line 27
echo "\t";
$context["room_results"] = [];
// line 28
echo "\t\t";
if ((twig_get_attribute($this->env, $this->source, ($context["search_result"] ?? null), "type_result", [], "array", true, true, false, 28) && (twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 28, $this->source); })()), "type_result", [], "array", false, false, false, 28) == "produit"))) {
// line 29
echo "
\t\t\t";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 30, $this->source); })()), "results", [], "array", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
// line 31
echo "
\t\t\t";
// line 33
echo "\t\t\t";
$context["price_display"] = twig_get_attribute($this->env, $this->source, $context["result"], "price", [], "any", false, false, false, 33);
// line 34
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, ($context["search_result"] ?? null), "type_bar", [], "array", true, true, false, 34) && ((twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 34, $this->source); })()), "type_bar", [], "array", false, false, false, 34) == "Thalasso avec hébergement") || (twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 34, $this->source); })()), "type_bar", [], "array", false, false, false, 34) == "Treatments with accomodation")))) {
// line 35
echo "\t\t\t\t";
$context["price_cure"] = $this->extensions['App\Twig\TwigExtension']->getCalendarThalasso(twig_get_attribute($this->env, $this->source, $context["result"], "id_produit", [], "any", false, false, false, 35), true, true);
// line 36
echo "\t\t\t";
$context["price_display"] = (twig_get_attribute($this->env, $this->source, (isset($context["price_cure"]) || array_key_exists("price_cure", $context) ? $context["price_cure"] : (function () { throw new RuntimeError('Variable "price_cure" does not exist.', 36, $this->source); })()), "price", [], "any", false, false, false, 36) . "€");
// line 37
echo "\t\t\t";
}
// line 38
echo "
\t\t\t";
// line 40
$context["button_display"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search.reserve.libelle");
// line 41
echo "\t\t\t";
$context["button_link"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["result"], "link", [], "any", false, false, false, 41), "to", [], "any", false, false, false, 41);
// line 42
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 42, $this->source); })()), "type_bar", [], "array", false, false, false, 42) == "Idées cadeaux")) {
// line 43
echo "\t\t\t\t";
$context["button_display"] = "Offrir";
// line 44
echo "\t\t\t";
$context["button_link"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["result"], "link", [], "any", false, false, false, 44), "togift", [], "any", false, false, false, 44);
// line 45
echo "\t\t\t";
}
// line 46
echo "
\t\t";
// line 47
$context["product_results"] = twig_array_merge((isset($context["product_results"]) || array_key_exists("product_results", $context) ? $context["product_results"] : (function () { throw new RuntimeError('Variable "product_results" does not exist.', 47, $this->source); })()), [0 => ["image" => twig_get_attribute($this->env, $this->source, // line 49
$context["result"], "image", [], "any", false, false, false, 49), "title" => twig_get_attribute($this->env, $this->source, // line 50
$context["result"], "title", [], "any", false, false, false, 50), "titleAnnex" => "", "duration" => twig_get_attribute($this->env, $this->source, // line 52
$context["result"], "duration", [], "any", false, false, false, 52), "list" => twig_get_attribute($this->env, $this->source, // line 53
$context["result"], "accroche", [], "any", false, false, false, 53), "description" => twig_get_attribute($this->env, $this->source, // line 54
$context["result"], "description", [], "any", false, false, false, 54), "details" => ((((twig_get_attribute($this->env, $this->source, // line 55
$context["result"], "id_cat", [], "any", false, false, false, 55) != 2) && (twig_get_attribute($this->env, $this->source, $context["result"], "id_cat", [], "any", false, false, false, 55) != 1))) ? (null) : (["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.avecHeb.detailDesSoins"), "list" => twig_get_attribute($this->env, $this->source, // line 57
$context["result"], "description_2", [], "any", false, false, false, 57), "description" => twig_get_attribute($this->env, $this->source, // line 58
$context["result"], "description", [], "any", false, false, false, 58), "button" => ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.avecHeb.lesSoins"), "to" => "#"]])), "priceFrom" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.apartirde"), "price" => // line 65
(isset($context["price_display"]) || array_key_exists("price_display", $context) ? $context["price_display"] : (function () { throw new RuntimeError('Variable "price_display" does not exist.', 65, $this->source); })()), "priceDetails" => "TTC/Pers.", "link" => ["text" => // line 68
(isset($context["button_display"]) || array_key_exists("button_display", $context) ? $context["button_display"] : (function () { throw new RuntimeError('Variable "button_display" does not exist.', 68, $this->source); })()), "bookingLink" => // line 69
(isset($context["button_link"]) || array_key_exists("button_link", $context) ? $context["button_link"] : (function () { throw new RuntimeError('Variable "button_link" does not exist.', 69, $this->source); })()), "aquao" => null, "category" => (((twig_get_attribute($this->env, $this->source, // line 71
(isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 71, $this->source); })()), "type_bar", [], "array", false, false, false, 71) == "Idées cadeaux")) ? ("offer") : ("reservation"))]]]);
// line 75
echo "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo "
\t\t";
// line 78
echo "\t";
} elseif ((twig_get_attribute($this->env, $this->source, ($context["search_result"] ?? null), "type_result", [], "array", true, true, false, 78) && (twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 78, $this->source); })()), "type_result", [], "array", false, false, false, 78) == "chambre"))) {
// line 79
echo "
\t\t";
// line 80
$context["search_params"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 80, $this->source); })()), "session", [], "any", false, false, false, 80), "get", [0 => "search_params"], "method", false, false, false, 80);
// line 81
echo "
\t\t";
// line 83
$context["roomsdb"] = $this->extensions['App\Twig\TwigExtension']->getRooms(twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 83, $this->source); })()), "adults", [], "any", false, false, false, 83), twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 83, $this->source); })()), "children", [], "any", false, false, false, 83), twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 83, $this->source); })()), "date_start", [], "any", false, false, false, 83), twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 83, $this->source); })()), "date_end", [], "any", false, false, false, 83));
// line 84
echo "
\t\t";
// line 86
$context["valboardHidden"] = false;
// line 87
echo "\t\t";
if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
// line 88
echo "\t\t\t";
$context["valboardHidden"] = true;
// line 89
echo "\t\t";
}
// line 90
echo "
\t\t";
// line 91
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 91, $this->source); })()), "results", [], "array", false, false, false, 91));
foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
// line 92
echo "
\t\t\t";
// line 94
echo "\t\t\t";
$context["room_persons"] = [];
// line 95
echo "\t\t\t";
$context["selected_room_persons"] = [];
// line 96
echo "\t\t\t";
$context["room_combinaisons"] = $this->extensions['App\Twig\TwigExtension']->getCapaciteRoom(twig_get_attribute($this->env, $this->source, $context["result"], "id", [], "any", false, false, false, 96));
// line 97
echo "
\t\t\t";
// line 98
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["room_combinaisons"]) || array_key_exists("room_combinaisons", $context) ? $context["room_combinaisons"] : (function () { throw new RuntimeError('Variable "room_combinaisons" does not exist.', 98, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["combinaison"]) {
// line 99
echo "\t\t\t\t";
$context["labelpers"] = "";
// line 100
echo "\t\t\t\t";
$context["valpers"] = ((twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_adultes", [], "any", false, false, false, 100) . ",") . twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_enfants", [], "any", false, false, false, 100));
// line 101
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_adultes", [], "any", false, false, false, 101) > 1)) {
// line 102
echo "\t\t\t\t\t";
$context["labelpers"] = ((((isset($context["labelpers"]) || array_key_exists("labelpers", $context) ? $context["labelpers"] : (function () { throw new RuntimeError('Variable "labelpers" does not exist.', 102, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_adultes", [], "any", false, false, false, 102)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.adultes"));
// line 103
echo "\t\t\t\t";
}
// line 104
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_adultes", [], "any", false, false, false, 104) == 1)) {
// line 105
echo "\t\t\t\t\t";
$context["labelpers"] = ((((isset($context["labelpers"]) || array_key_exists("labelpers", $context) ? $context["labelpers"] : (function () { throw new RuntimeError('Variable "labelpers" does not exist.', 105, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_adultes", [], "any", false, false, false, 105)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.adulte"));
// line 106
echo "\t\t\t\t";
}
// line 107
echo "
\t\t\t\t";
// line 108
if ((twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_enfants", [], "any", false, false, false, 108) > 1)) {
// line 109
echo "\t\t\t\t\t";
$context["labelpers"] = (((((isset($context["labelpers"]) || array_key_exists("labelpers", $context) ? $context["labelpers"] : (function () { throw new RuntimeError('Variable "labelpers" does not exist.', 109, $this->source); })()) . ", ") . twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_enfants", [], "any", false, false, false, 109)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.enfants"));
// line 110
echo "\t\t\t\t";
}
// line 111
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_enfants", [], "any", false, false, false, 111) == 1)) {
// line 112
echo "\t\t\t\t\t";
$context["labelpers"] = (((((isset($context["labelpers"]) || array_key_exists("labelpers", $context) ? $context["labelpers"] : (function () { throw new RuntimeError('Variable "labelpers" does not exist.', 112, $this->source); })()) . ", ") . twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_enfants", [], "any", false, false, false, 112)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.enfant"));
// line 113
echo "\t\t\t\t";
}
// line 114
echo "
\t\t\t\t";
// line 116
echo "\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_enfants", [], "any", false, false, false, 116) == twig_get_attribute($this->env, $this->source, $context["result"], "nbr_enfants", [], "any", false, false, false, 116)) && (twig_get_attribute($this->env, $this->source, $context["combinaison"], "nbr_adultes", [], "any", false, false, false, 116) == twig_get_attribute($this->env, $this->source, $context["result"], "nbr_adultes", [], "any", false, false, false, 116)))) {
// line 117
echo "\t\t\t\t\t";
$context["selected_room_persons"] = twig_array_merge((isset($context["selected_room_persons"]) || array_key_exists("selected_room_persons", $context) ? $context["selected_room_persons"] : (function () { throw new RuntimeError('Variable "selected_room_persons" does not exist.', 117, $this->source); })()), [0 => ["label" => // line 118
(isset($context["labelpers"]) || array_key_exists("labelpers", $context) ? $context["labelpers"] : (function () { throw new RuntimeError('Variable "labelpers" does not exist.', 118, $this->source); })()), "value" => (isset($context["valpers"]) || array_key_exists("valpers", $context) ? $context["valpers"] : (function () { throw new RuntimeError('Variable "valpers" does not exist.', 118, $this->source); })())]]);
// line 120
echo "\t\t\t\t";
} else {
// line 121
echo "\t\t\t\t\t";
$context["room_persons"] = twig_array_merge((isset($context["room_persons"]) || array_key_exists("room_persons", $context) ? $context["room_persons"] : (function () { throw new RuntimeError('Variable "room_persons" does not exist.', 121, $this->source); })()), [0 => ["label" => // line 122
(isset($context["labelpers"]) || array_key_exists("labelpers", $context) ? $context["labelpers"] : (function () { throw new RuntimeError('Variable "labelpers" does not exist.', 122, $this->source); })()), "value" => (isset($context["valpers"]) || array_key_exists("valpers", $context) ? $context["valpers"] : (function () { throw new RuntimeError('Variable "valpers" does not exist.', 122, $this->source); })())]]);
// line 124
echo "\t\t\t\t";
}
// line 125
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['combinaison'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
echo "
\t\t\t";
// line 127
$context["room_persons"] = twig_array_merge((isset($context["selected_room_persons"]) || array_key_exists("selected_room_persons", $context) ? $context["selected_room_persons"] : (function () { throw new RuntimeError('Variable "selected_room_persons" does not exist.', 127, $this->source); })()), (isset($context["room_persons"]) || array_key_exists("room_persons", $context) ? $context["room_persons"] : (function () { throw new RuntimeError('Variable "room_persons" does not exist.', 127, $this->source); })()));
// line 128
echo "
\t\t\t";
// line 130
$context["room_prices"] = [];
// line 131
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["roomsdb"]) || array_key_exists("roomsdb", $context) ? $context["roomsdb"] : (function () { throw new RuntimeError('Variable "roomsdb" does not exist.', 131, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
// line 132
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["result"], "id", [], "any", false, false, false, 132) == twig_get_attribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 132))) {
// line 133
echo "\t\t\t\t\t";
// line 134
echo "
\t\t\t\t\t";
// line 135
if ((twig_get_attribute($this->env, $this->source, $context["room"], "regime_data", [], "any", false, false, false, 135) != null)) {
// line 136
echo "\t\t\t\t\t\t";
$context["regimedet"] = twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, $context["room"], "regime_data", [], "any", false, false, false, 136), ",");
// line 137
echo "\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["regimedet"]) || array_key_exists("regimedet", $context) ? $context["regimedet"] : (function () { throw new RuntimeError('Variable "regimedet" does not exist.', 137, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["regime"]) {
// line 138
echo "\t\t\t\t\t\t\t";
$context["room_pensions"] = [];
// line 139
echo "\t\t\t\t\t\t\t";
$context["regimeval"] = twig_split_filter($this->env, $context["regime"], "|");
// line 140
echo "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["room_persons"]) || array_key_exists("room_persons", $context) ? $context["room_persons"] : (function () { throw new RuntimeError('Variable "room_persons" does not exist.', 140, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["room_person"]) {
// line 141
echo "\t\t\t\t\t\t\t\t";
$context["pers_ads"] = twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, $context["room_person"], "value", [], "any", false, false, false, 141), ",");
// line 142
echo "\t\t\t\t\t\t\t\t";
if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
// line 143
echo "\t\t\t\t\t\t\t\t\t";
$context["room_pensions"] = twig_array_merge((isset($context["room_pensions"]) || array_key_exists("room_pensions", $context) ? $context["room_pensions"] : (function () { throw new RuntimeError('Variable "room_pensions" does not exist.', 143, $this->source); })()), [0 => ["value" => twig_get_attribute($this->env, $this->source, // line 145
$context["room_person"], "value", [], "any", false, false, false, 145), "price" => ((twig_replace_filter(twig_get_attribute($this->env, $this->source, // line 146
$context["room"], "price", [], "any", false, false, false, 146), ["€" => ""]) * 1) . "€"), "priceday" => (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.soit") . ((twig_replace_filter(twig_get_attribute($this->env, $this->source, // line 147
$context["room"], "price", [], "any", false, false, false, 147), ["€" => ""]) * 1) / (twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 147, $this->source); })()), "duration", [], "any", false, false, false, 147) * 1))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.parJour"))]]);
// line 150
echo "\t\t\t\t\t\t\t\t";
} else {
// line 151
echo "\t\t\t\t\t\t\t\t\t";
$context["room_pensions"] = twig_array_merge((isset($context["room_pensions"]) || array_key_exists("room_pensions", $context) ? $context["room_pensions"] : (function () { throw new RuntimeError('Variable "room_pensions" does not exist.', 151, $this->source); })()), [0 => ["value" => twig_get_attribute($this->env, $this->source, // line 153
$context["room_person"], "value", [], "any", false, false, false, 153), "price" => (((twig_replace_filter(twig_get_attribute($this->env, $this->source, // line 154
$context["room"], "price", [], "any", false, false, false, 154), ["€" => ""]) * 1) + (((twig_get_attribute($this->env, $this->source, (isset($context["regimeval"]) || array_key_exists("regimeval", $context) ? $context["regimeval"] : (function () { throw new RuntimeError('Variable "regimeval" does not exist.', 154, $this->source); })()), 2, [], "array", false, false, false, 154) * twig_get_attribute($this->env, $this->source, (isset($context["pers_ads"]) || array_key_exists("pers_ads", $context) ? $context["pers_ads"] : (function () { throw new RuntimeError('Variable "pers_ads" does not exist.', 154, $this->source); })()), 0, [], "array", false, false, false, 154)) * twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 154, $this->source); })()), "duration", [], "any", false, false, false, 154)) * 1)) . "€"), "priceDay" => (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.soit") . (((twig_replace_filter(twig_get_attribute($this->env, $this->source, // line 155
$context["room"], "price", [], "any", false, false, false, 155), ["€" => ""]) * 1) + (((twig_get_attribute($this->env, $this->source, (isset($context["regimeval"]) || array_key_exists("regimeval", $context) ? $context["regimeval"] : (function () { throw new RuntimeError('Variable "regimeval" does not exist.', 155, $this->source); })()), 2, [], "array", false, false, false, 155) * twig_get_attribute($this->env, $this->source, (isset($context["pers_ads"]) || array_key_exists("pers_ads", $context) ? $context["pers_ads"] : (function () { throw new RuntimeError('Variable "pers_ads" does not exist.', 155, $this->source); })()), 0, [], "array", false, false, false, 155)) * twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 155, $this->source); })()), "duration", [], "any", false, false, false, 155)) * 1)) / (twig_get_attribute($this->env, $this->source, (isset($context["search_params"]) || array_key_exists("search_params", $context) ? $context["search_params"] : (function () { throw new RuntimeError('Variable "search_params" does not exist.', 155, $this->source); })()), "duration", [], "any", false, false, false, 155) * 1))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.parJour"))]]);
// line 158
echo "\t\t\t\t\t\t\t\t";
}
// line 159
echo "
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['room_person'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 161
echo "\t\t\t\t\t\t\t";
$context["room_prices"] = twig_array_merge((isset($context["room_prices"]) || array_key_exists("room_prices", $context) ? $context["room_prices"] : (function () { throw new RuntimeError('Variable "room_prices" does not exist.', 161, $this->source); })()), [0 => ["pensionId" => (twig_get_attribute($this->env, $this->source, // line 163
(isset($context["regimeval"]) || array_key_exists("regimeval", $context) ? $context["regimeval"] : (function () { throw new RuntimeError('Variable "regimeval" does not exist.', 163, $this->source); })()), 0, [], "array", false, false, false, 163) * 1), "persons" => // line 164
(isset($context["room_pensions"]) || array_key_exists("room_pensions", $context) ? $context["room_pensions"] : (function () { throw new RuntimeError('Variable "room_pensions" does not exist.', 164, $this->source); })())]]);
// line 167
echo "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['regime'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo "\t\t\t\t\t";
}
// line 169
echo "
\t\t\t\t";
}
// line 172
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['room'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 173
echo "
\t\t\t";
// line 174
$context["max_room"] = 3;
// line 175
echo "
\t\t\t";
// line 176
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["result"], "form", [], "any", false, false, false, 176), "numoptions", [], "any", false, false, false, 176), "chambres", [], "any", false, false, false, 176), "max", [], "any", false, false, false, 176) < (isset($context["max_room"]) || array_key_exists("max_room", $context) ? $context["max_room"] : (function () { throw new RuntimeError('Variable "max_room" does not exist.', 176, $this->source); })()))) {
// line 177
echo "\t\t\t\t";
$context["max_room"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["result"], "form", [], "any", false, false, false, 177), "numoptions", [], "any", false, false, false, 177), "chambres", [], "any", false, false, false, 177), "max", [], "any", false, false, false, 177);
// line 178
echo "\t\t\t";
}
// line 179
echo "
\t\t\t";
// line 181
$context["room_results"] = twig_array_merge((isset($context["room_results"]) || array_key_exists("room_results", $context) ? $context["room_results"] : (function () { throw new RuntimeError('Variable "room_results" does not exist.', 181, $this->source); })()), [0 => ["image" => twig_get_attribute($this->env, $this->source, // line 182
$context["result"], "image", [], "any", false, false, false, 182), "title" => twig_get_attribute($this->env, $this->source, // line 183
$context["result"], "title", [], "any", false, false, false, 183), "titleAnnex" => "", "person" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nbr.person", ["%nbr_person%" => twig_get_attribute($this->env, $this->source, // line 185
$context["result"], "person", [], "any", false, false, false, 185)], "messages"), "description" => twig_get_attribute($this->env, $this->source, // line 186
$context["result"], "description", [], "any", false, false, false, 186), "price" => twig_get_attribute($this->env, $this->source, // line 187
$context["result"], "price", [], "any", false, false, false, 187), "prices" => // line 188
(isset($context["room_prices"]) || array_key_exists("room_prices", $context) ? $context["room_prices"] : (function () { throw new RuntimeError('Variable "room_prices" does not exist.', 188, $this->source); })()), "realPrice" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("room.realprice", ["%realprice%" => twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 189
$context["result"], "realPrice", [], "any", false, false, false, 189), 2, ".", "")], "messages"), "maxRoomsBooking" => // line 190
(isset($context["max_room"]) || array_key_exists("max_room", $context) ? $context["max_room"] : (function () { throw new RuntimeError('Variable "max_room" does not exist.', 190, $this->source); })()), "priceFrom" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.tarif.libelle"), "id" => twig_get_attribute($this->env, $this->source, // line 192
$context["result"], "id", [], "any", false, false, false, 192), "room_id" => twig_get_attribute($this->env, $this->source, // line 193
$context["result"], "id", [], "any", false, false, false, 193), "form" => ["action" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 195
$context["result"], "form", [], "any", false, false, false, 195), "action", [], "any", false, false, false, 195), "numoptions" => [0 => ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.chambres"), "id" => "rooms", "name" => "chambres[]", "min" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 201
$context["result"], "form", [], "any", false, false, false, 201), "numoptions", [], "any", false, false, false, 201), "chambres", [], "any", false, false, false, 201), "min", [], "any", false, false, false, 201), "max" => // line 202
(isset($context["max_room"]) || array_key_exists("max_room", $context) ? $context["max_room"] : (function () { throw new RuntimeError('Variable "max_room" does not exist.', 202, $this->source); })()), "result" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 203
$context["result"], "form", [], "any", false, false, false, 203), "numoptions", [], "any", false, false, false, 203), "chambres", [], "any", false, false, false, 203), "result", [], "any", false, false, false, 203), "hidden" => false]], "persons" => // line 206
(isset($context["room_persons"]) || array_key_exists("room_persons", $context) ? $context["room_persons"] : (function () { throw new RuntimeError('Variable "room_persons" does not exist.', 206, $this->source); })()), "boardHidden" => // line 207
(isset($context["valboardHidden"]) || array_key_exists("valboardHidden", $context) ? $context["valboardHidden"] : (function () { throw new RuntimeError('Variable "valboardHidden" does not exist.', 207, $this->source); })()), "board" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 208
$context["result"], "form", [], "any", false, false, false, 208), "board", [], "any", false, false, false, 208)], "link" => ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search.reserve.libelle"), "to" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 212
$context["result"], "link", [], "any", false, false, false, 212), "to", [], "any", false, false, false, 212)], "aquao" => null]]);
// line 216
echo "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 217
echo "
\t";
}
// line 219
echo "
\t";
// line 222
echo "
\t";
// line 223
$context["results"] = ["cures" => // line 224
(isset($context["product_results"]) || array_key_exists("product_results", $context) ? $context["product_results"] : (function () { throw new RuntimeError('Variable "product_results" does not exist.', 224, $this->source); })()), "rooms" => // line 225
(isset($context["room_results"]) || array_key_exists("room_results", $context) ? $context["room_results"] : (function () { throw new RuntimeError('Variable "room_results" does not exist.', 225, $this->source); })())];
// line 227
echo "
\t";
// line 228
$context["total"] = (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 228, $this->source); })()), "cures", [], "any", false, false, false, 228)) + twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 228, $this->source); })()), "rooms", [], "any", false, false, false, 228)));
// line 229
echo "\t";
$context["hasResults"] = ((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 229, $this->source); })()) > 0);
// line 230
echo "
\t";
// line 231
$context["searchResultsLabel"] = null;
// line 232
echo "\t";
if ((isset($context["hasResults"]) || array_key_exists("hasResults", $context) ? $context["hasResults"] : (function () { throw new RuntimeError('Variable "hasResults" does not exist.', 232, $this->source); })())) {
// line 233
echo "\t\t";
$context["searchResultsLabel"] = ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.nbrResults1") . (isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 233, $this->source); })())) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.nbrResults2"));
// line 234
echo "\t";
}
// line 235
echo "
\t";
// line 238
echo "\t";
$this->loadTemplate("component/header.html.twig", "@View/pages/akaru/search.html.twig", 238)->display(twig_array_merge($context, ["props" => ["account" => ["link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_signin", ["_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 241
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 241, $this->source); })()), "request", [], "any", false, false, false, 241), "getLocale", [], "method", false, false, false, 241)]), "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("myaccount.title")]]]));
// line 246
echo "
\t";
// line 248
echo "\t";
$this->loadTemplate("component/hero_tunnel.html.twig", "@View/pages/akaru/search.html.twig", 248)->display(twig_to_array(["props" => ["heading" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.search.resultatDe"), "titleAnnex" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.search.recherche")], "breadcrumb" => [0 => twig_get_attribute($this->env, $this->source, // line 254
(isset($context["frontservice"]) || array_key_exists("frontservice", $context) ? $context["frontservice"] : (function () { throw new RuntimeError('Variable "frontservice" does not exist.', 254, $this->source); })()), "getHome", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 254, $this->source); })()), "request", [], "any", false, false, false, 254), "getLocale", [], "method", false, false, false, 254)], "method", false, false, false, 254), 1 => ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.search.resultatRecherches")]], "background" => ["src" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/14 002.jpg")]]]));
// line 263
echo "\t";
$context["searchItemLabel"] = "Hotel seul";
// line 264
echo "
\t";
// line 265
if (twig_get_attribute($this->env, $this->source, ($context["search_result"] ?? null), "type_bar", [], "array", true, true, false, 265)) {
// line 266
echo "
\t\t";
// line 267
if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
// line 268
echo "\t\t\t";
$context["searchItemLabel"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filtre_bar.titre");
// line 269
echo "\t\t";
} else {
// line 270
echo "\t\t\t";
$context["searchItemLabel"] = twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 270, $this->source); })()), "type_bar", [], "array", false, false, false, 270);
// line 271
echo "\t\t";
}
// line 272
echo "
\t";
}
// line 274
echo "
\t";
// line 276
echo "\t";
if (preg_match("/^\\d+\$/", twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 276, $this->source); })()), "id_type_bar", [], "array", false, false, false, 276))) {
// line 277
echo "\t\t";
$context["searchItemId"] = (twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 277, $this->source); })()), "id_type_bar", [], "array", false, false, false, 277) * 1);
// line 278
echo "\t";
} else {
// line 279
echo "\t\t";
$context["searchItemId"] = twig_get_attribute($this->env, $this->source, (isset($context["search_result"]) || array_key_exists("search_result", $context) ? $context["search_result"] : (function () { throw new RuntimeError('Variable "search_result" does not exist.', 279, $this->source); })()), "id_type_bar", [], "array", false, false, false, 279);
// line 280
echo "\t";
}
// line 281
echo "\t
\t";
// line 284
if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
// line 285
echo "\t\t";
// line 286
echo "\t\t";
$this->loadTemplate("component/header/filter_bar.html.twig", "@View/pages/akaru/search.html.twig", 286)->display(twig_to_array(["props" => ["bookingtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking.title"), "research" => ["searchItem" => // line 290
(isset($context["searchItemLabel"]) || array_key_exists("searchItemLabel", $context) ? $context["searchItemLabel"] : (function () { throw new RuntimeError('Variable "searchItemLabel" does not exist.', 290, $this->source); })()), "searchItemId" => // line 291
(isset($context["searchItemId"]) || array_key_exists("searchItemId", $context) ? $context["searchItemId"] : (function () { throw new RuntimeError('Variable "searchItemId" does not exist.', 291, $this->source); })()), "searchResults" => // line 292
(isset($context["searchResultsLabel"]) || array_key_exists("searchResultsLabel", $context) ? $context["searchResultsLabel"] : (function () { throw new RuntimeError('Variable "searchResultsLabel" does not exist.', 292, $this->source); })())]]]));
// line 297
echo "\t";
} else {
// line 298
echo "\t\t";
// line 299
echo "\t\t";
$this->loadTemplate("component/header/filter_bar.html.twig", "@View/pages/akaru/search.html.twig", 299)->display(twig_to_array(["props" => ["bookingtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking.title"), "research" => ["searchItem" => // line 303
(isset($context["searchItemLabel"]) || array_key_exists("searchItemLabel", $context) ? $context["searchItemLabel"] : (function () { throw new RuntimeError('Variable "searchItemLabel" does not exist.', 303, $this->source); })()), "searchItemId" => // line 304
(isset($context["searchItemId"]) || array_key_exists("searchItemId", $context) ? $context["searchItemId"] : (function () { throw new RuntimeError('Variable "searchItemId" does not exist.', 304, $this->source); })()), "searchResults" => // line 305
(isset($context["searchResultsLabel"]) || array_key_exists("searchResultsLabel", $context) ? $context["searchResultsLabel"] : (function () { throw new RuntimeError('Variable "searchResultsLabel" does not exist.', 305, $this->source); })())]]]));
// line 310
echo "\t";
}
echo "
\t";
// line 313
if ((isset($context["hasResults"]) || array_key_exists("hasResults", $context) ? $context["hasResults"] : (function () { throw new RuntimeError('Variable "hasResults" does not exist.', 313, $this->source); })())) {
// line 314
echo "\t\t";
// line 315
echo "\t\t";
$this->loadTemplate("component/search_results_cure.html.twig", "@View/pages/akaru/search.html.twig", 315)->display(twig_array_merge($context, ["props" => ["results" => twig_get_attribute($this->env, $this->source, // line 317
(isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 317, $this->source); })()), "cures", [], "any", false, false, false, 317)]]));
// line 320
echo "
\t\t";
// line 322
echo "\t\t";
$this->loadTemplate("component/search_results_room.html.twig", "@View/pages/akaru/search.html.twig", 322)->display(twig_array_merge($context, ["props" => ["results" => twig_get_attribute($this->env, $this->source, // line 324
(isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 324, $this->source); })()), "rooms", [], "any", false, false, false, 324)]]));
// line 327
echo "
\t";
} else {
// line 329
echo "\t\t<div class=\"Search-noresults\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reser.no.result", [], "messages"), "html", null, true);
echo "</div>
\t";
}
// line 331
echo "
\t";
// line 333
echo "\t";
$this->loadTemplate("component/footer.html.twig", "@View/pages/akaru/search.html.twig", 333)->display($context);
// line 334
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@View/pages/akaru/search.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 602 => 334, 599 => 333, 596 => 331, 590 => 329, 586 => 327, 584 => 324, 582 => 322, 579 => 320, 577 => 317, 575 => 315, 573 => 314, 571 => 313, 564 => 310, 562 => 305, 561 => 304, 560 => 303, 558 => 299, 556 => 298, 553 => 297, 551 => 292, 550 => 291, 549 => 290, 547 => 286, 545 => 285, 543 => 284, 538 => 281, 535 => 280, 532 => 279, 529 => 278, 526 => 277, 523 => 276, 520 => 274, 516 => 272, 513 => 271, 510 => 270, 507 => 269, 504 => 268, 502 => 267, 499 => 266, 497 => 265, 494 => 264, 491 => 263, 489 => 254, 487 => 248, 484 => 246, 482 => 241, 480 => 238, 476 => 235, 473 => 234, 470 => 233, 467 => 232, 465 => 231, 462 => 230, 459 => 229, 457 => 228, 454 => 227, 452 => 225, 451 => 224, 450 => 223, 447 => 222, 443 => 219, 439 => 217, 433 => 216, 431 => 212, 430 => 208, 429 => 207, 428 => 206, 427 => 203, 426 => 202, 425 => 201, 424 => 195, 423 => 193, 422 => 192, 421 => 190, 420 => 189, 419 => 188, 418 => 187, 417 => 186, 416 => 185, 415 => 183, 414 => 182, 413 => 181, 409 => 179, 406 => 178, 403 => 177, 401 => 176, 398 => 175, 396 => 174, 393 => 173, 387 => 172, 382 => 169, 379 => 168, 373 => 167, 371 => 164, 370 => 163, 368 => 161, 361 => 159, 358 => 158, 356 => 155, 355 => 154, 354 => 153, 352 => 151, 349 => 150, 347 => 147, 346 => 146, 345 => 145, 343 => 143, 340 => 142, 337 => 141, 332 => 140, 329 => 139, 326 => 138, 321 => 137, 318 => 136, 316 => 135, 313 => 134, 311 => 133, 308 => 132, 303 => 131, 301 => 130, 297 => 128, 295 => 127, 292 => 126, 286 => 125, 283 => 124, 281 => 122, 279 => 121, 276 => 120, 274 => 118, 272 => 117, 269 => 116, 266 => 114, 263 => 113, 260 => 112, 257 => 111, 254 => 110, 251 => 109, 249 => 108, 246 => 107, 243 => 106, 240 => 105, 237 => 104, 234 => 103, 231 => 102, 228 => 101, 225 => 100, 222 => 99, 218 => 98, 215 => 97, 212 => 96, 209 => 95, 206 => 94, 203 => 92, 199 => 91, 196 => 90, 193 => 89, 190 => 88, 187 => 87, 185 => 86, 181 => 84, 179 => 83, 175 => 81, 173 => 80, 170 => 79, 167 => 78, 164 => 76, 158 => 75, 156 => 71, 155 => 69, 154 => 68, 153 => 65, 152 => 58, 151 => 57, 150 => 55, 149 => 54, 148 => 53, 147 => 52, 146 => 50, 145 => 49, 144 => 47, 141 => 46, 138 => 45, 135 => 44, 132 => 43, 129 => 42, 126 => 41, 124 => 40, 120 => 38, 117 => 37, 114 => 36, 111 => 35, 108 => 34, 105 => 33, 102 => 31, 98 => 30, 95 => 29, 92 => 28, 89 => 27, 86 => 26, 84 => 25, 81 => 18, 71 => 17, 60 => 5, 57 => 13, 55 => 12, 52 => 9, 50 => 8, 48 => 7, 35 => 5,);
}
public function getSourceContext()
{
return new Source("{#
page: search test
#}
{% extends \"layouts/base.html.twig\" %}
{% if getResidenceMode() %}
\t{% set jsPageId = 'residence-search' %}
\t{% set pageClass = 'ResidencePage ResidenceSearch' %}
{% else %}
\t{% set jsPageId = 'search' %}
\t{% set pageClass = 'Search' %}
{% endif %}
{% block content %}
\t{# Exemple sans résultats
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set results = {
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t cures:[],
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t rooms:[]
\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{# Search Results Cure #}
\t{% set product_results = [] %}
\t{% set room_results = [] %}
\t\t{% if search_result['type_result'] is defined and search_result['type_result'] == 'produit' %}
\t\t\t{% for result in search_result['results'] %}
\t\t\t{# get min price cure #}
\t\t\t{% set price_display = result.price %}
\t\t\t\t{% if search_result['type_bar'] is defined and (search_result['type_bar'] == 'Thalasso avec hébergement' or search_result['type_bar'] =='Treatments with accomodation' ) %}
\t\t\t\t{% set price_cure = getCalendarThalasso(result.id_produit,true,true) %}
\t\t\t{% set price_display = price_cure.price ~ \"€\" %}
\t\t\t{% endif %}
\t\t\t{% set button_display = \"search.reserve.libelle\"|trans %}
\t\t\t{% set button_link = result.link.to %}
\t\t\t\t{% if search_result['type_bar'] == \"Idées cadeaux\" %}
\t\t\t\t{% set button_display = \"Offrir\" %}
\t\t\t{% set button_link = result.link.togift %}
\t\t\t{% endif %}
\t\t{% set product_results = product_results|merge([
{
image:result.image,
title:result.title,
titleAnnex:'',
duration:result.duration,
list:result.accroche,
description:result.description,
details:(result.id_cat != 2 and result.id_cat != 1 ) ? null : {
title:'result.avecHeb.detailDesSoins'|trans,
list:result.description_2,
description:result.description,
button:{
text: 'result.avecHeb.lesSoins'|trans,
to: '#',
}
},
priceFrom:\"product.apartirde\"|trans,
price:price_display,
priceDetails:'TTC/Pers.',\t\t\t
link: {
text: button_display,
bookingLink: button_link,
\t\t\t aquao: null ,
\t\t\t\tcategory:search_result['type_bar'] == \"Idées cadeaux\" ?'offer':'reservation'
},
}
]) %}
\t\t{% endfor %}
\t\t{# Search Results Room #}
\t{% elseif search_result['type_result'] is defined and search_result['type_result'] == 'chambre' %}
\t\t{% set search_params = app.session.get(\"search_params\") %}
\t\t{% set roomsdb = getRooms(search_params.adults, search_params.children, search_params.date_start, search_params.date_end) %}
\t\t{% set valboardHidden = false %}
\t\t{% if getResidenceMode() %}
\t\t\t{% set valboardHidden = true %}
\t\t{% endif %}
\t\t{% for result in search_result['results'] %}
\t\t\t{# set room persons #}
\t\t\t{% set room_persons =[] %}
\t\t\t{% set selected_room_persons =[] %}
\t\t\t{% set room_combinaisons = getCapaciteRoom(result.id) %}
\t\t\t{% for combinaison in room_combinaisons %}
\t\t\t\t{% set labelpers = '' %}
\t\t\t\t{% set valpers = combinaison.nbr_adultes ~ ',' ~ combinaison.nbr_enfants %}
\t\t\t\t{% if combinaison.nbr_adultes > 1 %}
\t\t\t\t\t{% set labelpers = labelpers ~ combinaison.nbr_adultes ~ \" \" ~ \"result.hotelSeul.adultes\"|trans %}
\t\t\t\t{% endif %}
\t\t\t\t{% if combinaison.nbr_adultes == 1 %}
\t\t\t\t\t{% set labelpers = labelpers ~ combinaison.nbr_adultes ~ \" \" ~ \"result.hotelSeul.adulte\"|trans %}
\t\t\t\t{% endif %}
\t\t\t\t{% if combinaison.nbr_enfants > 1 %}
\t\t\t\t\t{% set labelpers = labelpers ~ \", \" ~ combinaison.nbr_enfants ~ \" \" ~ \"result.hotelSeul.enfants\"|trans %}
\t\t\t\t{% endif %}
\t\t\t\t{% if combinaison.nbr_enfants == 1 %}
\t\t\t\t\t{% set labelpers = labelpers ~ \", \" ~ combinaison.nbr_enfants ~ \" \" ~ \"result.hotelSeul.enfant\"|trans %}
\t\t\t\t{% endif %}
\t\t\t\t{# set selected persons first #}
\t\t\t\t{% if combinaison.nbr_enfants == result.nbr_enfants and combinaison.nbr_adultes == result.nbr_adultes %}
\t\t\t\t\t{% set selected_room_persons = selected_room_persons|merge([
{label:labelpers, value:valpers}
])%}
\t\t\t\t{% else %}
\t\t\t\t\t{% set room_persons = room_persons|merge([
{label:labelpers, value:valpers}
])%}
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t{% set room_persons = selected_room_persons|merge(room_persons)%}
\t\t\t{% set room_prices =[] %}
\t\t\t{% for room in roomsdb %}
\t\t\t\t{% if result.id == room.id %}
\t\t\t\t\t{# set room pensions #}
\t\t\t\t\t{% if room.regime_data != null %}
\t\t\t\t\t\t{% set regimedet = room.regime_data|split(',') %}
\t\t\t\t\t\t{% for regime in regimedet %}
\t\t\t\t\t\t\t{% set room_pensions =[] %}
\t\t\t\t\t\t\t{% set regimeval = regime|split('|') %}
\t\t\t\t\t\t\t{% for room_person in room_persons %}
\t\t\t\t\t\t\t\t{% set pers_ads = room_person.value|split(',') %}
\t\t\t\t\t\t\t\t{% if getResidenceMode() %}
\t\t\t\t\t\t\t\t\t{% set room_pensions = room_pensions|merge([
{
value: room_person.value ,
price: (room.price|replace({'€': ''}) * 1) ~ \"€\" ,
priceday: \"result.hotelSeul.soit\"|trans ~ (room.price|replace({'€': ''}) * 1 / (search_params.duration * 1)) ~ \"result.hotelSeul.parJour\"|trans ,
}
])%}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% set room_pensions = room_pensions|merge([
{
value: room_person.value ,
price: (room.price|replace({'€': ''}) * 1 + ( regimeval[2] * pers_ads[0] * search_params.duration * 1 )) ~ \"€\" ,
priceDay: \"result.hotelSeul.soit\"|trans ~ (( room.price|replace({'€': ''}) * 1 + ( regimeval[2] * pers_ads[0] * search_params.duration * 1 ) ) / (search_params.duration * 1)) ~ \"result.hotelSeul.parJour\"|trans ,
}
])%}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t{% set room_prices = room_prices|merge([
{
pensionId:(regimeval[0] * 1),
persons: room_pensions
}
])%}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t{% set max_room = 3 %}
\t\t\t{% if result.form.numoptions.chambres.max < max_room %}
\t\t\t\t{% set max_room = result.form.numoptions.chambres.max %}
\t\t\t{% endif %}
\t\t\t{% set room_results = room_results|merge([{
image:result.image,
title:result.title,
titleAnnex:'',
person: \"nbr.person\"|trans({'%nbr_person%': result.person}, \"messages\"),
description: result.description,
price:result.price,
prices:room_prices,
realPrice:\"room.realprice\"|trans({'%realprice%': result.realPrice|number_format(2, '.', '')}, \"messages\"),
maxRoomsBooking:max_room,
priceFrom:\"product.tarif.libelle\"|trans,
id: result.id,
room_id: result.id,
form:{
action:result.form.action,
numoptions:[
{
label: \"result.hotelSeul.chambres\"|trans,
id:\"rooms\",
name: \"chambres[]\",
min:result.form.numoptions.chambres.min,
max:max_room,
result:result.form.numoptions.chambres.result,
hidden:false
}],
persons:room_persons,
boardHidden:valboardHidden,
board:result.form.board
},
link: {
text: \"search.reserve.libelle\"|trans,
to: result.link.to,
},
\t\taquao: null,
}]) %}
\t\t{% endfor %}
\t{% endif %}
\t{# Exemple avec des résultats #}
\t{% set results = {
cures: product_results,
rooms: room_results
} %}
\t{% set total = results.cures|length + results.rooms|length %}
\t{% set hasResults = total > 0 %}
\t{% set searchResultsLabel = null %}
\t{% if hasResults %}
\t\t{% set searchResultsLabel = \"result.hotelSeul.nbrResults1\"|trans ~ total ~ \" \" ~ \"result.hotelSeul.nbrResults2\"|trans %}
\t{% endif %}
\t{# Header #}
\t{% include \"component/header.html.twig\" with {
props: {
account:{
link: path(\"app_signin\", { '_locale': app.request.getLocale() }),
text: \"myaccount.title\"|trans
}
}
} %}
\t{# Hero tunnel #}
\t{% include \"component/hero_tunnel.html.twig\" with {
props: {
heading: {
title: 'pages.search.resultatDe'|trans,
titleAnnex: 'pages.search.recherche'|trans
},
breadcrumb: [frontservice.getHome(app.request.getLocale()),
{
text: 'pages.search.resultatRecherches'|trans
}],
background : {
src: asset('img/14 002.jpg')
}
}
} only %}
\t{% set searchItemLabel = \"Hotel seul\" %}
\t{% if search_result['type_bar'] is defined %}
\t\t{% if getResidenceMode() %}
\t\t\t{% set searchItemLabel = \"filtre_bar.titre\"|trans %}
\t\t{% else %}
\t\t\t{% set searchItemLabel = search_result['type_bar'] %}
\t\t{% endif %}
\t{% endif %}
\t{# Renseigner le bon id de la type_bar #}
\t{% if search_result['id_type_bar'] matches '/^\\\\d+\$/' %}
\t\t{% set searchItemId = search_result['id_type_bar'] * 1 %}
\t{% else %}
\t\t{% set searchItemId = search_result['id_type_bar'] %}
\t{% endif %}
\t
\t{% if getResidenceMode() %}
\t\t{# Filter Bar #}
\t\t{% include \"component/header/filter_bar.html.twig\" with {
props:{
bookingtitle:\"booking.title\"|trans,
research: {
searchItem: searchItemLabel,
searchItemId: searchItemId,
searchResults: searchResultsLabel
}
}
} only %}
\t{% else %}
\t\t{# Filter Bar #}
\t\t{% include \"component/header/filter_bar.html.twig\" with {
props:{
bookingtitle:\"booking.title\"|trans,
research: {
searchItem: searchItemLabel,
searchItemId: searchItemId,
searchResults: searchResultsLabel
}
}
} only %}
\t{% endif %}
\t{% if hasResults %}
\t\t{# Search Results Cure #}
\t\t{% include \"component/search_results_cure.html.twig\" with {
props: {
results:results.cures
}
} %}
\t\t{# Search Results Room #}
\t\t{% include \"component/search_results_room.html.twig\" with {
props: {
results:results.rooms
}
} %}
\t{% else %}
\t\t<div class=\"Search-noresults\">{{\"reser.no.result\"|trans({}, \"messages\") }}</div>
\t{% endif %}
\t{# Footer #}
\t{% include \"component/footer.html.twig\" %}
{% endblock %}
", "@View/pages/akaru/search.html.twig", "/home/clients/7d218f7ec097b4ce0b2b1414f88fe0d1/sites/mlc/templates/pages/akaru/search.html.twig");
}
}