var/cache/dev/twig/db/db24933f0a23f8b39c1493c786d4626fb6cf711968b41bf914eb9906932cad6a.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @View/pages/akaru/search.html.twig */
  14. class __TwigTemplate_47d45eac71aa4c0b28f982d81962830d40d478249aafa644ab8bb59f35575a2d extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 5
  29.         return "layouts/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@View/pages/akaru/search.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@View/pages/akaru/search.html.twig"));
  38.         // line 7
  39.         if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
  40.             // line 8
  41.             $context["jsPageId"] = "residence-search";
  42.             // line 9
  43.             $context["pageClass"] = "ResidencePage ResidenceSearch";
  44.         } else {
  45.             // line 12
  46.             $context["jsPageId"] = "search";
  47.             // line 13
  48.             $context["pageClass"] = "Search";
  49.         }
  50.         // line 5
  51.         $this->parent $this->loadTemplate("layouts/base.html.twig""@View/pages/akaru/search.html.twig"5);
  52.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  53.         
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.     }
  58.     // line 17
  59.     public function block_content($context, array $blocks = [])
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  66.         // line 18
  67.         echo "
  68. \t";
  69.         // line 25
  70.         echo "\t";
  71.         // line 26
  72.         echo "\t";
  73.         $context["product_results"] = [];
  74.         // line 27
  75.         echo "\t";
  76.         $context["room_results"] = [];
  77.         // line 28
  78.         echo "\t\t";
  79.         if ((twig_get_attribute($this->env$this->source, ($context["search_result"] ?? null), "type_result", [], "array"truetruefalse28) && (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"falsefalsefalse28) == "produit"))) {
  80.             // line 29
  81.             echo "
  82. \t\t\t";
  83.             // line 30
  84.             $context['_parent'] = $context;
  85.             $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"falsefalsefalse30));
  86.             foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
  87.                 // line 31
  88.                 echo "
  89. \t\t\t";
  90.                 // line 33
  91.                 echo "\t\t\t";
  92.                 $context["price_display"] = twig_get_attribute($this->env$this->source$context["result"], "price", [], "any"falsefalsefalse33);
  93.                 // line 34
  94.                 echo "\t\t\t\t";
  95.                 if ((twig_get_attribute($this->env$this->source, ($context["search_result"] ?? null), "type_bar", [], "array"truetruefalse34) && ((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"falsefalsefalse34) == "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"falsefalsefalse34) == "Treatments with accomodation")))) {
  96.                     // line 35
  97.                     echo "\t\t\t\t";
  98.                     $context["price_cure"] = $this->extensions['App\Twig\TwigExtension']->getCalendarThalasso(twig_get_attribute($this->env$this->source$context["result"], "id_produit", [], "any"falsefalsefalse35), truetrue);
  99.                     // line 36
  100.                     echo "\t\t\t";
  101.                     $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"falsefalsefalse36) . "€");
  102.                     // line 37
  103.                     echo "\t\t\t";
  104.                 }
  105.                 // line 38
  106.                 echo "
  107. \t\t\t";
  108.                 // line 40
  109.                 $context["button_display"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search.reserve.libelle");
  110.                 // line 41
  111.                 echo "\t\t\t";
  112.                 $context["button_link"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["result"], "link", [], "any"falsefalsefalse41), "to", [], "any"falsefalsefalse41);
  113.                 // line 42
  114.                 echo "\t\t\t\t";
  115.                 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"falsefalsefalse42) == "Idées cadeaux")) {
  116.                     // line 43
  117.                     echo "\t\t\t\t";
  118.                     $context["button_display"] = "Offrir";
  119.                     // line 44
  120.                     echo "\t\t\t";
  121.                     $context["button_link"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["result"], "link", [], "any"falsefalsefalse44), "togift", [], "any"falsefalsefalse44);
  122.                     // line 45
  123.                     echo "\t\t\t";
  124.                 }
  125.                 // line 46
  126.                 echo "
  127. \t\t";
  128.                 // line 47
  129.                 $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); })()), [=> ["image" => twig_get_attribute($this->env$this->source,                 // line 49
  130. $context["result"], "image", [], "any"falsefalsefalse49), "title" => twig_get_attribute($this->env$this->source,                 // line 50
  131. $context["result"], "title", [], "any"falsefalsefalse50), "titleAnnex" => """duration" => twig_get_attribute($this->env$this->source,                 // line 52
  132. $context["result"], "duration", [], "any"falsefalsefalse52), "list" => twig_get_attribute($this->env$this->source,                 // line 53
  133. $context["result"], "accroche", [], "any"falsefalsefalse53), "description" => twig_get_attribute($this->env$this->source,                 // line 54
  134. $context["result"], "description", [], "any"falsefalsefalse54), "details" => ((((twig_get_attribute($this->env$this->source,                 // line 55
  135. $context["result"], "id_cat", [], "any"falsefalsefalse55) != 2) && (twig_get_attribute($this->env$this->source$context["result"], "id_cat", [], "any"falsefalsefalse55) != 1))) ? (null) : (["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.avecHeb.detailDesSoins"), "list" => twig_get_attribute($this->env$this->source,                 // line 57
  136. $context["result"], "description_2", [], "any"falsefalsefalse57), "description" => twig_get_attribute($this->env$this->source,                 // line 58
  137. $context["result"], "description", [], "any"falsefalsefalse58), "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
  138. (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
  139. (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
  140. (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
  141. (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"falsefalsefalse71) == "Idées cadeaux")) ? ("offer") : ("reservation"))]]]);
  142.                 // line 75
  143.                 echo "\t\t";
  144.             }
  145.             $_parent $context['_parent'];
  146.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
  147.             $context array_intersect_key($context$_parent) + $_parent;
  148.             // line 76
  149.             echo "
  150. \t\t";
  151.             // line 78
  152.             echo "\t";
  153.         } elseif ((twig_get_attribute($this->env$this->source, ($context["search_result"] ?? null), "type_result", [], "array"truetruefalse78) && (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"falsefalsefalse78) == "chambre"))) {
  154.             // line 79
  155.             echo "
  156. \t\t";
  157.             // line 80
  158.             $context["search_params"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'80$this->source); })()), "session", [], "any"falsefalsefalse80), "get", [=> "search_params"], "method"falsefalsefalse80);
  159.             // line 81
  160.             echo "
  161. \t\t";
  162.             // line 83
  163.             $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"falsefalsefalse83), 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"falsefalsefalse83), 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"falsefalsefalse83), 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"falsefalsefalse83));
  164.             // line 84
  165.             echo "
  166. \t\t";
  167.             // line 86
  168.             $context["valboardHidden"] = false;
  169.             // line 87
  170.             echo "\t\t";
  171.             if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
  172.                 // line 88
  173.                 echo "\t\t\t";
  174.                 $context["valboardHidden"] = true;
  175.                 // line 89
  176.                 echo "\t\t";
  177.             }
  178.             // line 90
  179.             echo "
  180. \t\t";
  181.             // line 91
  182.             $context['_parent'] = $context;
  183.             $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"falsefalsefalse91));
  184.             foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
  185.                 // line 92
  186.                 echo "
  187. \t\t\t";
  188.                 // line 94
  189.                 echo "\t\t\t";
  190.                 $context["room_persons"] = [];
  191.                 // line 95
  192.                 echo "\t\t\t";
  193.                 $context["selected_room_persons"] = [];
  194.                 // line 96
  195.                 echo "\t\t\t";
  196.                 $context["room_combinaisons"] = $this->extensions['App\Twig\TwigExtension']->getCapaciteRoom(twig_get_attribute($this->env$this->source$context["result"], "id", [], "any"falsefalsefalse96));
  197.                 // line 97
  198.                 echo "
  199. \t\t\t";
  200.                 // line 98
  201.                 $context['_parent'] = $context;
  202.                 $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); })()));
  203.                 foreach ($context['_seq'] as $context["_key"] => $context["combinaison"]) {
  204.                     // line 99
  205.                     echo "\t\t\t\t";
  206.                     $context["labelpers"] = "";
  207.                     // line 100
  208.                     echo "\t\t\t\t";
  209.                     $context["valpers"] = ((twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_adultes", [], "any"falsefalsefalse100) . ",") . twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_enfants", [], "any"falsefalsefalse100));
  210.                     // line 101
  211.                     echo "\t\t\t\t";
  212.                     if ((twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_adultes", [], "any"falsefalsefalse101) > 1)) {
  213.                         // line 102
  214.                         echo "\t\t\t\t\t";
  215.                         $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"falsefalsefalse102)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.adultes"));
  216.                         // line 103
  217.                         echo "\t\t\t\t";
  218.                     }
  219.                     // line 104
  220.                     echo "\t\t\t\t";
  221.                     if ((twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_adultes", [], "any"falsefalsefalse104) == 1)) {
  222.                         // line 105
  223.                         echo "\t\t\t\t\t";
  224.                         $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"falsefalsefalse105)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.adulte"));
  225.                         // line 106
  226.                         echo "\t\t\t\t";
  227.                     }
  228.                     // line 107
  229.                     echo "
  230. \t\t\t\t";
  231.                     // line 108
  232.                     if ((twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_enfants", [], "any"falsefalsefalse108) > 1)) {
  233.                         // line 109
  234.                         echo "\t\t\t\t\t";
  235.                         $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"falsefalsefalse109)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.enfants"));
  236.                         // line 110
  237.                         echo "\t\t\t\t";
  238.                     }
  239.                     // line 111
  240.                     echo "\t\t\t\t";
  241.                     if ((twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_enfants", [], "any"falsefalsefalse111) == 1)) {
  242.                         // line 112
  243.                         echo "\t\t\t\t\t";
  244.                         $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"falsefalsefalse112)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.enfant"));
  245.                         // line 113
  246.                         echo "\t\t\t\t";
  247.                     }
  248.                     // line 114
  249.                     echo "
  250. \t\t\t\t";
  251.                     // line 116
  252.                     echo "\t\t\t\t";
  253.                     if (((twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_enfants", [], "any"falsefalsefalse116) == twig_get_attribute($this->env$this->source$context["result"], "nbr_enfants", [], "any"falsefalsefalse116)) && (twig_get_attribute($this->env$this->source$context["combinaison"], "nbr_adultes", [], "any"falsefalsefalse116) == twig_get_attribute($this->env$this->source$context["result"], "nbr_adultes", [], "any"falsefalsefalse116)))) {
  254.                         // line 117
  255.                         echo "\t\t\t\t\t";
  256.                         $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); })()), [=> ["label" =>                         // line 118
  257. (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); })())]]);
  258.                         // line 120
  259.                         echo "\t\t\t\t";
  260.                     } else {
  261.                         // line 121
  262.                         echo "\t\t\t\t\t";
  263.                         $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); })()), [=> ["label" =>                         // line 122
  264. (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); })())]]);
  265.                         // line 124
  266.                         echo "\t\t\t\t";
  267.                     }
  268.                     // line 125
  269.                     echo "\t\t\t";
  270.                 }
  271.                 $_parent $context['_parent'];
  272.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['combinaison'], $context['_parent'], $context['loop']);
  273.                 $context array_intersect_key($context$_parent) + $_parent;
  274.                 // line 126
  275.                 echo "
  276. \t\t\t";
  277.                 // line 127
  278.                 $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); })()));
  279.                 // line 128
  280.                 echo "
  281. \t\t\t";
  282.                 // line 130
  283.                 $context["room_prices"] = [];
  284.                 // line 131
  285.                 echo "\t\t\t";
  286.                 $context['_parent'] = $context;
  287.                 $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); })()));
  288.                 foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
  289.                     // line 132
  290.                     echo "\t\t\t\t";
  291.                     if ((twig_get_attribute($this->env$this->source$context["result"], "id", [], "any"falsefalsefalse132) == twig_get_attribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse132))) {
  292.                         // line 133
  293.                         echo "\t\t\t\t\t";
  294.                         // line 134
  295.                         echo "
  296. \t\t\t\t\t";
  297.                         // line 135
  298.                         if ((twig_get_attribute($this->env$this->source$context["room"], "regime_data", [], "any"falsefalsefalse135) != null)) {
  299.                             // line 136
  300.                             echo "\t\t\t\t\t\t";
  301.                             $context["regimedet"] = twig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["room"], "regime_data", [], "any"falsefalsefalse136), ",");
  302.                             // line 137
  303.                             echo "\t\t\t\t\t\t";
  304.                             $context['_parent'] = $context;
  305.                             $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); })()));
  306.                             foreach ($context['_seq'] as $context["_key"] => $context["regime"]) {
  307.                                 // line 138
  308.                                 echo "\t\t\t\t\t\t\t";
  309.                                 $context["room_pensions"] = [];
  310.                                 // line 139
  311.                                 echo "\t\t\t\t\t\t\t";
  312.                                 $context["regimeval"] = twig_split_filter($this->env$context["regime"], "|");
  313.                                 // line 140
  314.                                 echo "\t\t\t\t\t\t\t";
  315.                                 $context['_parent'] = $context;
  316.                                 $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); })()));
  317.                                 foreach ($context['_seq'] as $context["_key"] => $context["room_person"]) {
  318.                                     // line 141
  319.                                     echo "\t\t\t\t\t\t\t\t";
  320.                                     $context["pers_ads"] = twig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["room_person"], "value", [], "any"falsefalsefalse141), ",");
  321.                                     // line 142
  322.                                     echo "\t\t\t\t\t\t\t\t";
  323.                                     if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
  324.                                         // line 143
  325.                                         echo "\t\t\t\t\t\t\t\t\t";
  326.                                         $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); })()), [=> ["value" => twig_get_attribute($this->env$this->source,                                         // line 145
  327. $context["room_person"], "value", [], "any"falsefalsefalse145), "price" => ((twig_replace_filter(twig_get_attribute($this->env$this->source,                                         // line 146
  328. $context["room"], "price", [], "any"falsefalsefalse146), ["€" => ""]) * 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
  329. $context["room"], "price", [], "any"falsefalsefalse147), ["€" => ""]) * 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"falsefalsefalse147) * 1))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.parJour"))]]);
  330.                                         // line 150
  331.                                         echo "\t\t\t\t\t\t\t\t";
  332.                                     } else {
  333.                                         // line 151
  334.                                         echo "\t\t\t\t\t\t\t\t\t";
  335.                                         $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); })()), [=> ["value" => twig_get_attribute($this->env$this->source,                                         // line 153
  336. $context["room_person"], "value", [], "any"falsefalsefalse153), "price" => (((twig_replace_filter(twig_get_attribute($this->env$this->source,                                         // line 154
  337. $context["room"], "price", [], "any"falsefalsefalse154), ["€" => ""]) * 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"falsefalsefalse154) * 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"falsefalsefalse154)) * 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"falsefalsefalse154)) * 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
  338. $context["room"], "price", [], "any"falsefalsefalse155), ["€" => ""]) * 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"falsefalsefalse155) * 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"falsefalsefalse155)) * 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"falsefalsefalse155)) * 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"falsefalsefalse155) * 1))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.parJour"))]]);
  339.                                         // line 158
  340.                                         echo "\t\t\t\t\t\t\t\t";
  341.                                     }
  342.                                     // line 159
  343.                                     echo "
  344. \t\t\t\t\t\t\t";
  345.                                 }
  346.                                 $_parent $context['_parent'];
  347.                                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['room_person'], $context['_parent'], $context['loop']);
  348.                                 $context array_intersect_key($context$_parent) + $_parent;
  349.                                 // line 161
  350.                                 echo "\t\t\t\t\t\t\t";
  351.                                 $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); })()), [=> ["pensionId" => (twig_get_attribute($this->env$this->source,                                 // line 163
  352. (isset($context["regimeval"]) || array_key_exists("regimeval"$context) ? $context["regimeval"] : (function () { throw new RuntimeError('Variable "regimeval" does not exist.'163$this->source); })()), 0, [], "array"falsefalsefalse163) * 1), "persons" =>                                 // line 164
  353. (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); })())]]);
  354.                                 // line 167
  355.                                 echo "\t\t\t\t\t\t";
  356.                             }
  357.                             $_parent $context['_parent'];
  358.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['regime'], $context['_parent'], $context['loop']);
  359.                             $context array_intersect_key($context$_parent) + $_parent;
  360.                             // line 168
  361.                             echo "\t\t\t\t\t";
  362.                         }
  363.                         // line 169
  364.                         echo "
  365. \t\t\t\t";
  366.                     }
  367.                     // line 172
  368.                     echo "\t\t\t";
  369.                 }
  370.                 $_parent $context['_parent'];
  371.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['room'], $context['_parent'], $context['loop']);
  372.                 $context array_intersect_key($context$_parent) + $_parent;
  373.                 // line 173
  374.                 echo "
  375. \t\t\t";
  376.                 // line 174
  377.                 $context["max_room"] = 3;
  378.                 // line 175
  379.                 echo "
  380. \t\t\t";
  381.                 // line 176
  382.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["result"], "form", [], "any"falsefalsefalse176), "numoptions", [], "any"falsefalsefalse176), "chambres", [], "any"falsefalsefalse176), "max", [], "any"falsefalsefalse176) < (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); })()))) {
  383.                     // line 177
  384.                     echo "\t\t\t\t";
  385.                     $context["max_room"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["result"], "form", [], "any"falsefalsefalse177), "numoptions", [], "any"falsefalsefalse177), "chambres", [], "any"falsefalsefalse177), "max", [], "any"falsefalsefalse177);
  386.                     // line 178
  387.                     echo "\t\t\t";
  388.                 }
  389.                 // line 179
  390.                 echo "
  391. \t\t\t";
  392.                 // line 181
  393.                 $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); })()), [=> ["image" => twig_get_attribute($this->env$this->source,                 // line 182
  394. $context["result"], "image", [], "any"falsefalsefalse182), "title" => twig_get_attribute($this->env$this->source,                 // line 183
  395. $context["result"], "title", [], "any"falsefalsefalse183), "titleAnnex" => """person" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nbr.person", ["%nbr_person%" => twig_get_attribute($this->env$this->source,                 // line 185
  396. $context["result"], "person", [], "any"falsefalsefalse185)], "messages"), "description" => twig_get_attribute($this->env$this->source,                 // line 186
  397. $context["result"], "description", [], "any"falsefalsefalse186), "price" => twig_get_attribute($this->env$this->source,                 // line 187
  398. $context["result"], "price", [], "any"falsefalsefalse187), "prices" =>                 // line 188
  399. (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->envtwig_get_attribute($this->env$this->source,                 // line 189
  400. $context["result"], "realPrice", [], "any"falsefalsefalse189), 2".""")], "messages"), "maxRoomsBooking" =>                 // line 190
  401. (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
  402. $context["result"], "id", [], "any"falsefalsefalse192), "room_id" => twig_get_attribute($this->env$this->source,                 // line 193
  403. $context["result"], "id", [], "any"falsefalsefalse193), "form" => ["action" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 195
  404. $context["result"], "form", [], "any"falsefalsefalse195), "action", [], "any"falsefalsefalse195), "numoptions" => [=> ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("result.hotelSeul.chambres"), "id" => "rooms""name" => "chambres[]""min" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 201
  405. $context["result"], "form", [], "any"falsefalsefalse201), "numoptions", [], "any"falsefalsefalse201), "chambres", [], "any"falsefalsefalse201), "min", [], "any"falsefalsefalse201), "max" =>                 // line 202
  406. (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->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 203
  407. $context["result"], "form", [], "any"falsefalsefalse203), "numoptions", [], "any"falsefalsefalse203), "chambres", [], "any"falsefalsefalse203), "result", [], "any"falsefalsefalse203), "hidden" => false]], "persons" =>                 // line 206
  408. (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
  409. (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->sourcetwig_get_attribute($this->env$this->source,                 // line 208
  410. $context["result"], "form", [], "any"falsefalsefalse208), "board", [], "any"falsefalsefalse208)], "link" => ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search.reserve.libelle"), "to" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 212
  411. $context["result"], "link", [], "any"falsefalsefalse212), "to", [], "any"falsefalsefalse212)], "aquao" => null]]);
  412.                 // line 216
  413.                 echo "\t\t";
  414.             }
  415.             $_parent $context['_parent'];
  416.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
  417.             $context array_intersect_key($context$_parent) + $_parent;
  418.             // line 217
  419.             echo "
  420. \t";
  421.         }
  422.         // line 219
  423.         echo "
  424. \t";
  425.         // line 222
  426.         echo "
  427. \t";
  428.         // line 223
  429.         $context["results"] = ["cures" =>         // line 224
  430. (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
  431. (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); })())];
  432.         // line 227
  433.         echo "
  434. \t";
  435.         // line 228
  436.         $context["total"] = (twig_length_filter($this->envtwig_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"falsefalsefalse228)) + twig_length_filter($this->envtwig_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"falsefalsefalse228)));
  437.         // line 229
  438.         echo "\t";
  439.         $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);
  440.         // line 230
  441.         echo "
  442. \t";
  443.         // line 231
  444.         $context["searchResultsLabel"] = null;
  445.         // line 232
  446.         echo "\t";
  447.         if ((isset($context["hasResults"]) || array_key_exists("hasResults"$context) ? $context["hasResults"] : (function () { throw new RuntimeError('Variable "hasResults" does not exist.'232$this->source); })())) {
  448.             // line 233
  449.             echo "\t\t";
  450.             $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"));
  451.             // line 234
  452.             echo "\t";
  453.         }
  454.         // line 235
  455.         echo "
  456. \t";
  457.         // line 238
  458.         echo "\t";
  459.         $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->sourcetwig_get_attribute($this->env$this->source,         // line 241
  460. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'241$this->source); })()), "request", [], "any"falsefalsefalse241), "getLocale", [], "method"falsefalsefalse241)]), "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("myaccount.title")]]]));
  461.         // line 246
  462.         echo "
  463. \t";
  464.         // line 248
  465.         echo "\t";
  466.         $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" => [=> twig_get_attribute($this->env$this->source,         // line 254
  467. (isset($context["frontservice"]) || array_key_exists("frontservice"$context) ? $context["frontservice"] : (function () { throw new RuntimeError('Variable "frontservice" does not exist.'254$this->source); })()), "getHome", [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'254$this->source); })()), "request", [], "any"falsefalsefalse254), "getLocale", [], "method"falsefalsefalse254)], "method"falsefalsefalse254), => ["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")]]]));
  468.         // line 263
  469.         echo "\t";
  470.         $context["searchItemLabel"] = "Hotel seul";
  471.         // line 264
  472.         echo "
  473. \t";
  474.         // line 265
  475.         if (twig_get_attribute($this->env$this->source, ($context["search_result"] ?? null), "type_bar", [], "array"truetruefalse265)) {
  476.             // line 266
  477.             echo "
  478. \t\t";
  479.             // line 267
  480.             if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
  481.                 // line 268
  482.                 echo "\t\t\t";
  483.                 $context["searchItemLabel"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filtre_bar.titre");
  484.                 // line 269
  485.                 echo "\t\t";
  486.             } else {
  487.                 // line 270
  488.                 echo "\t\t\t";
  489.                 $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"falsefalsefalse270);
  490.                 // line 271
  491.                 echo "\t\t";
  492.             }
  493.             // line 272
  494.             echo "
  495. \t";
  496.         }
  497.         // line 274
  498.         echo "
  499. \t";
  500.         // line 276
  501.         echo "\t";
  502.         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"falsefalsefalse276))) {
  503.             // line 277
  504.             echo "\t\t";
  505.             $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"falsefalsefalse277) * 1);
  506.             // line 278
  507.             echo "\t";
  508.         } else {
  509.             // line 279
  510.             echo "\t\t";
  511.             $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"falsefalsefalse279);
  512.             // line 280
  513.             echo "\t";
  514.         }
  515.         // line 281
  516.         echo "\t
  517. \t";
  518.         // line 284
  519.         if ($this->extensions['App\Twig\TwigExtension']->getResidenceMode()) {
  520.             // line 285
  521.             echo "\t\t";
  522.             // line 286
  523.             echo "\t\t";
  524.             $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
  525. (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
  526. (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
  527. (isset($context["searchResultsLabel"]) || array_key_exists("searchResultsLabel"$context) ? $context["searchResultsLabel"] : (function () { throw new RuntimeError('Variable "searchResultsLabel" does not exist.'292$this->source); })())]]]));
  528.             // line 297
  529.             echo "\t";
  530.         } else {
  531.             // line 298
  532.             echo "\t\t";
  533.             // line 299
  534.             echo "\t\t";
  535.             $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
  536. (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
  537. (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
  538. (isset($context["searchResultsLabel"]) || array_key_exists("searchResultsLabel"$context) ? $context["searchResultsLabel"] : (function () { throw new RuntimeError('Variable "searchResultsLabel" does not exist.'305$this->source); })())]]]));
  539.             // line 310
  540.             echo "\t";
  541.         }
  542.         echo 
  543. \t";
  544.         // line 313
  545.         if ((isset($context["hasResults"]) || array_key_exists("hasResults"$context) ? $context["hasResults"] : (function () { throw new RuntimeError('Variable "hasResults" does not exist.'313$this->source); })())) {
  546.             // line 314
  547.             echo "\t\t";
  548.             // line 315
  549.             echo "\t\t";
  550.             $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
  551. (isset($context["results"]) || array_key_exists("results"$context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.'317$this->source); })()), "cures", [], "any"falsefalsefalse317)]]));
  552.             // line 320
  553.             echo "
  554. \t\t";
  555.             // line 322
  556.             echo "\t\t";
  557.             $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
  558. (isset($context["results"]) || array_key_exists("results"$context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.'324$this->source); })()), "rooms", [], "any"falsefalsefalse324)]]));
  559.             // line 327
  560.             echo "
  561. \t";
  562.         } else {
  563.             // line 329
  564.             echo "\t\t<div class=\"Search-noresults\">";
  565.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reser.no.result", [], "messages"), "html"nulltrue);
  566.             echo "</div>
  567. \t";
  568.         }
  569.         // line 331
  570.         echo "
  571. \t";
  572.         // line 333
  573.         echo "\t";
  574.         $this->loadTemplate("component/footer.html.twig""@View/pages/akaru/search.html.twig"333)->display($context);
  575.         // line 334
  576.         echo "
  577. ";
  578.         
  579.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  580.         
  581.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  582.     }
  583.     public function getTemplateName()
  584.     {
  585.         return "@View/pages/akaru/search.html.twig";
  586.     }
  587.     public function isTraitable()
  588.     {
  589.         return false;
  590.     }
  591.     public function getDebugInfo()
  592.     {
  593.         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,);
  594.     }
  595.     public function getSourceContext()
  596.     {
  597.         return new Source("{#
  598.   page: search test
  599. #}
  600. {% extends \"layouts/base.html.twig\" %}
  601. {% if getResidenceMode() %}
  602. \t{% set jsPageId = 'residence-search' %}
  603. \t{% set pageClass = 'ResidencePage ResidenceSearch' %}
  604. {% else %}
  605. \t{% set jsPageId = 'search' %}
  606. \t{% set pageClass = 'Search' %}
  607. {% endif %}
  608. {% block content %}
  609. \t{#  Exemple sans résultats
  610. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set results = {
  611. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t  cures:[],
  612. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t  rooms:[]
  613. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} %}
  614. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t#}
  615. \t{# Search Results Cure #}
  616. \t{% set product_results = [] %}
  617. \t{% set room_results = [] %}
  618. \t\t{% if search_result['type_result'] is defined and search_result['type_result'] == 'produit' %}
  619. \t\t\t{% for result in search_result['results'] %}
  620. \t\t\t{# get min price cure #}
  621. \t\t\t{% set price_display = result.price %}
  622. \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' ) %}
  623. \t\t\t\t{% set price_cure = getCalendarThalasso(result.id_produit,true,true) %}
  624. \t\t\t{% set price_display = price_cure.price ~ \"€\" %}
  625. \t\t\t{% endif %}
  626. \t\t\t{% set button_display = \"search.reserve.libelle\"|trans %}
  627. \t\t\t{% set button_link = result.link.to %}
  628. \t\t\t\t{% if search_result['type_bar'] == \"Idées cadeaux\"   %}
  629. \t\t\t\t{% set button_display = \"Offrir\" %}
  630. \t\t\t{% set button_link = result.link.togift %}
  631. \t\t\t{% endif %}
  632. \t\t{% set product_results = product_results|merge([
  633.         {
  634.             image:result.image,
  635.             title:result.title,
  636.             titleAnnex:'',
  637.             duration:result.duration,
  638.             list:result.accroche,
  639.             description:result.description,
  640.             details:(result.id_cat != 2 and result.id_cat != 1 ) ? null : {
  641.                 title:'result.avecHeb.detailDesSoins'|trans,
  642.                 list:result.description_2,
  643.                 description:result.description,
  644.                 button:{
  645.                   text: 'result.avecHeb.lesSoins'|trans,
  646.                   to: '#',
  647.                 }
  648.             },
  649.             priceFrom:\"product.apartirde\"|trans,
  650.             price:price_display,
  651.             priceDetails:'TTC/Pers.',\t\t\t
  652.             link: {
  653.               text: button_display,
  654.               bookingLink: button_link,
  655. \t\t\t  aquao: null ,
  656. \t\t\t\tcategory:search_result['type_bar'] == \"Idées cadeaux\" ?'offer':'reservation'
  657.             },
  658.         }
  659.       ]) %}
  660. \t\t{% endfor %}
  661. \t\t{# Search Results Room #}
  662. \t{% elseif search_result['type_result'] is defined and search_result['type_result'] == 'chambre' %}
  663. \t\t{% set search_params = app.session.get(\"search_params\") %}
  664. \t\t{% set roomsdb = getRooms(search_params.adults, search_params.children, search_params.date_start, search_params.date_end) %}
  665. \t\t{% set valboardHidden = false %}
  666. \t\t{% if getResidenceMode() %}
  667. \t\t\t{% set valboardHidden = true %}
  668. \t\t{% endif %}
  669. \t\t{% for result in search_result['results'] %}
  670. \t\t\t{# set room persons #}
  671. \t\t\t{% set room_persons =[] %}
  672. \t\t\t{% set selected_room_persons =[] %}
  673. \t\t\t{%  set room_combinaisons =  getCapaciteRoom(result.id) %}
  674. \t\t\t{% for combinaison in room_combinaisons %}
  675. \t\t\t\t{% set labelpers = '' %}
  676. \t\t\t\t{% set valpers = combinaison.nbr_adultes ~ ',' ~ combinaison.nbr_enfants %}
  677. \t\t\t\t{% if combinaison.nbr_adultes > 1  %}
  678. \t\t\t\t\t{% set labelpers = labelpers ~ combinaison.nbr_adultes ~ \" \" ~ \"result.hotelSeul.adultes\"|trans %}
  679. \t\t\t\t{% endif %}
  680. \t\t\t\t{% if combinaison.nbr_adultes == 1 %}
  681. \t\t\t\t\t{% set labelpers = labelpers ~ combinaison.nbr_adultes ~ \" \" ~ \"result.hotelSeul.adulte\"|trans %}
  682. \t\t\t\t{% endif %}
  683. \t\t\t\t{% if combinaison.nbr_enfants > 1 %}
  684. \t\t\t\t\t{% set labelpers = labelpers ~ \", \" ~ combinaison.nbr_enfants ~ \" \" ~ \"result.hotelSeul.enfants\"|trans %}
  685. \t\t\t\t{% endif %}
  686. \t\t\t\t{% if combinaison.nbr_enfants == 1 %}
  687. \t\t\t\t\t{% set labelpers = labelpers ~ \", \" ~ combinaison.nbr_enfants ~ \" \" ~ \"result.hotelSeul.enfant\"|trans %}
  688. \t\t\t\t{% endif %}
  689. \t\t\t\t{# set selected persons first #}
  690. \t\t\t\t{% if combinaison.nbr_enfants == result.nbr_enfants  and combinaison.nbr_adultes == result.nbr_adultes  %}
  691. \t\t\t\t\t{% set selected_room_persons = selected_room_persons|merge([ 
  692.             {label:labelpers, value:valpers}
  693.              ])%}
  694. \t\t\t\t{% else %}
  695. \t\t\t\t\t{% set room_persons = room_persons|merge([ 
  696.             {label:labelpers, value:valpers}
  697.              ])%}
  698. \t\t\t\t{% endif %}
  699. \t\t\t{% endfor %}
  700. \t\t\t{% set room_persons = selected_room_persons|merge(room_persons)%}
  701. \t\t\t{% set room_prices =[] %}
  702. \t\t\t{% for room in roomsdb %}
  703. \t\t\t\t{% if  result.id == room.id %}
  704. \t\t\t\t\t{# set room pensions #}
  705. \t\t\t\t\t{% if room.regime_data != null %}
  706. \t\t\t\t\t\t{% set regimedet = room.regime_data|split(',') %}
  707. \t\t\t\t\t\t{% for regime in regimedet %}
  708. \t\t\t\t\t\t\t{% set room_pensions =[] %}
  709. \t\t\t\t\t\t\t{% set regimeval = regime|split('|') %}
  710. \t\t\t\t\t\t\t{% for room_person in room_persons %}
  711. \t\t\t\t\t\t\t\t{% set pers_ads = room_person.value|split(',') %}
  712. \t\t\t\t\t\t\t\t{% if getResidenceMode() %}
  713. \t\t\t\t\t\t\t\t\t{% set room_pensions = room_pensions|merge([ 
  714.                     {
  715.                                 value: room_person.value ,
  716.                                 price: (room.price|replace({'€': ''}) * 1) ~ \"€\" ,
  717.                                 priceday: \"result.hotelSeul.soit\"|trans ~ (room.price|replace({'€': ''}) * 1 / (search_params.duration * 1)) ~ \"result.hotelSeul.parJour\"|trans  ,
  718.                     }
  719.                     ])%}
  720. \t\t\t\t\t\t\t\t{% else %}
  721. \t\t\t\t\t\t\t\t\t{% set room_pensions = room_pensions|merge([ 
  722.                     {
  723.                                 value: room_person.value ,
  724.                                 price: (room.price|replace({'€': ''}) * 1 + ( regimeval[2] * pers_ads[0] * search_params.duration * 1 )) ~ \"€\" ,
  725.                                 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 , 
  726.                     }
  727.                     ])%}
  728. \t\t\t\t\t\t\t\t{% endif %}
  729. \t\t\t\t\t\t\t{% endfor %}
  730. \t\t\t\t\t\t\t{% set room_prices = room_prices|merge([ 
  731.                     {
  732.                         pensionId:(regimeval[0] * 1),
  733.                         persons: room_pensions
  734.                     }
  735.                     ])%}
  736. \t\t\t\t\t\t{% endfor %}
  737. \t\t\t\t\t{% endif %}
  738. \t\t\t\t{% endif %}
  739. \t\t\t{% endfor %}
  740. \t\t\t{% set max_room = 3 %}
  741. \t\t\t{% if result.form.numoptions.chambres.max < max_room %}
  742. \t\t\t\t{% set max_room = result.form.numoptions.chambres.max %}
  743. \t\t\t{% endif %}
  744. \t\t\t{% set room_results = room_results|merge([{
  745.         image:result.image,
  746.         title:result.title,
  747.         titleAnnex:'',
  748.         person: \"nbr.person\"|trans({'%nbr_person%': result.person}, \"messages\"),
  749.         description: result.description,
  750.         price:result.price,
  751.         prices:room_prices,
  752.         realPrice:\"room.realprice\"|trans({'%realprice%': result.realPrice|number_format(2, '.', '')}, \"messages\"),
  753.         maxRoomsBooking:max_room,
  754.         priceFrom:\"product.tarif.libelle\"|trans,
  755.         id: result.id,
  756.         room_id: result.id,
  757.         form:{
  758.             action:result.form.action,
  759.             numoptions:[
  760.             {
  761.               label: \"result.hotelSeul.chambres\"|trans,
  762.               id:\"rooms\",
  763.               name: \"chambres[]\",
  764.               min:result.form.numoptions.chambres.min,
  765.               max:max_room,
  766.               result:result.form.numoptions.chambres.result,
  767.               hidden:false
  768.             }],
  769.             persons:room_persons,
  770.             boardHidden:valboardHidden,
  771.             board:result.form.board
  772.         },
  773.         link: {
  774.           text: \"search.reserve.libelle\"|trans,
  775.           to: result.link.to,
  776.         },
  777. \t\taquao: null,
  778.       }]) %}
  779. \t\t{% endfor %}
  780. \t{% endif %}
  781. \t{#  Exemple avec des résultats #}
  782. \t{% set results = {
  783.   cures: product_results,
  784.   rooms: room_results
  785. } %}
  786. \t{% set total = results.cures|length + results.rooms|length %}
  787. \t{% set hasResults = total > 0 %}
  788. \t{% set searchResultsLabel = null %}
  789. \t{% if hasResults %}
  790. \t\t{% set searchResultsLabel = \"result.hotelSeul.nbrResults1\"|trans ~ total ~ \" \" ~ \"result.hotelSeul.nbrResults2\"|trans %}
  791. \t{% endif %}
  792. \t{# Header #}
  793. \t{% include \"component/header.html.twig\" with {
  794.       props: {
  795.         account:{
  796.           link: path(\"app_signin\", { '_locale': app.request.getLocale() }),
  797.           text: \"myaccount.title\"|trans
  798.         }
  799.       }
  800.     } %}
  801. \t{# Hero tunnel #}
  802. \t{% include \"component/hero_tunnel.html.twig\" with {
  803.     props: {
  804.         heading: {
  805.             title: 'pages.search.resultatDe'|trans,
  806.             titleAnnex: 'pages.search.recherche'|trans
  807.         },
  808.         breadcrumb: [frontservice.getHome(app.request.getLocale()),
  809.         {
  810.           text: 'pages.search.resultatRecherches'|trans
  811.         }],
  812.       background : {
  813.         src: asset('img/14 002.jpg')
  814.       }
  815.     }
  816.   } only %}
  817. \t{% set searchItemLabel = \"Hotel seul\" %}
  818. \t{% if search_result['type_bar'] is defined %}
  819. \t\t{% if getResidenceMode() %}
  820. \t\t\t{% set searchItemLabel = \"filtre_bar.titre\"|trans %}
  821. \t\t{% else %}
  822. \t\t\t{% set searchItemLabel = search_result['type_bar'] %}
  823. \t\t{% endif %}
  824. \t{% endif %}
  825. \t{# Renseigner le bon id de la type_bar #}
  826. \t{% if search_result['id_type_bar'] matches '/^\\\\d+\$/' %}
  827. \t\t{% set searchItemId = search_result['id_type_bar'] * 1  %}
  828. \t{% else %}
  829. \t\t{% set searchItemId = search_result['id_type_bar']  %}
  830. \t{% endif %}
  831. \t
  832. \t{% if getResidenceMode() %}
  833. \t\t{# Filter Bar #}
  834. \t\t{% include \"component/header/filter_bar.html.twig\" with {
  835.     props:{
  836.       bookingtitle:\"booking.title\"|trans,
  837.       research: {
  838.         searchItem: searchItemLabel,
  839.         searchItemId: searchItemId,
  840.         searchResults:  searchResultsLabel
  841.       }
  842.     }
  843.   } only %}
  844. \t{% else %}
  845. \t\t{# Filter Bar #}
  846. \t\t{% include \"component/header/filter_bar.html.twig\" with {
  847.     props:{
  848.       bookingtitle:\"booking.title\"|trans,
  849.       research: {
  850.         searchItem: searchItemLabel,
  851.         searchItemId: searchItemId,
  852.         searchResults:  searchResultsLabel
  853.       }
  854.     }
  855.   } only %}
  856. \t{% endif %} 
  857. \t{% if hasResults %}
  858. \t\t{# Search Results Cure #}
  859. \t\t{% include \"component/search_results_cure.html.twig\" with {
  860.       props: {
  861.           results:results.cures
  862.       }
  863.     } %}
  864. \t\t{# Search Results Room #}
  865. \t\t{% include \"component/search_results_room.html.twig\" with {
  866.       props: {
  867.           results:results.rooms
  868.       }
  869.     } %}
  870. \t{% else %}
  871. \t\t<div class=\"Search-noresults\">{{\"reser.no.result\"|trans({}, \"messages\") }}</div>
  872. \t{% endif %}
  873. \t{# Footer #}
  874. \t{% include \"component/footer.html.twig\" %}
  875. {% endblock %}
  876. ""@View/pages/akaru/search.html.twig""/home/clients/7d218f7ec097b4ce0b2b1414f88fe0d1/sites/mlc/templates/pages/akaru/search.html.twig");
  877.     }
  878. }