var/cache/dev/twig/e1/e1fbbbdeccd2fd1682f869a3b5479b21.php line 312

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. /* @ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig */
  14. class __TwigTemplate_15c573df2d576e8228edd9dad03e3e6c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig"));
  35.         // line 15
  36.         echo "
  37. ";
  38.         // line 16
  39.         $context["resultSetPresent"] = ((array_key_exists("resultSetPresent"$context)) ? ((isset($context["resultSetPresent"]) || array_key_exists("resultSetPresent"$context) ? $context["resultSetPresent"] : (function () { throw new RuntimeError('Variable "resultSetPresent" does not exist.'16$this->source); })())) : (false));
  40.         // line 17
  41.         $context["devicePhone"] = twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue17);
  42.         // line 18
  43.         echo "<section class=\"mt-4 ";
  44.         echo (((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'18$this->source); })())) ? ("container") : (""));
  45.         echo "\"
  46.          data-track-content
  47.          data-content-name=\"";
  48.         // line 20
  49.         echo (((isset($context["package"]) || array_key_exists("package"$context) ? $context["package"] : (function () { throw new RuntimeError('Variable "package" does not exist.'20$this->source); })())) ? ("package-") : ("accommodation-"));
  50.         echo "availabilities\">
  51.     <div
  52.         class=\"js-search-data__show-if-submitted ";
  53.         // line 23
  54.         echo (((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'23$this->source); })())) ? ("mb-3") : (""));
  55.         echo "\" ";
  56.         echo (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'23$this->source); })())) ? ("") : ("hidden"));
  57.         echo " >
  58.         ";
  59.         // line 24
  60.         if ((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'24$this->source); })())) {
  61.             // line 25
  62.             echo "            ";
  63.             $context["classes"] = "h3 mb-2";
  64.             // line 26
  65.             echo "        ";
  66.         } else {
  67.             // line 27
  68.             echo "            ";
  69.             $context["classes"] = "mb-4 text-primary";
  70.             // line 28
  71.             echo "        ";
  72.         }
  73.         // line 29
  74.         echo "        ";
  75.         if ((isset($context["isAffiliate"]) || array_key_exists("isAffiliate"$context) ? $context["isAffiliate"] : (function () { throw new RuntimeError('Variable "isAffiliate" does not exist.'29$this->source); })())) {
  76.             // line 30
  77.             echo "
  78.             ";
  79.             // line 32
  80.             if (((isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster"$context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.'32$this->source); })()) || (isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'32$this->source); })()))) {
  81.                 // line 33
  82.                 echo "                <h2 class=\"";
  83.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["classes"]) || array_key_exists("classes"$context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.'33$this->source); })()), 33$this->source), "html"nulltrue);
  84.                 echo "\">";
  85.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.package-prices"), "html"nulltrue);
  86.                 echo "</h2>
  87.             ";
  88.             } else {
  89.                 // line 35
  90.                 echo "                <h2 class=\"";
  91.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["classes"]) || array_key_exists("classes"$context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.'35$this->source); })()), 35$this->source), "html"nulltrue);
  92.                 echo "\">";
  93.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->env->getFunction('demi_getRoomsTabTranslationKey')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'35$this->source); })()), 35$this->source))), "html"nulltrue);
  94.                 echo " &
  95.                 ";
  96.                 // line 36
  97.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.prices"), "html"nulltrue);
  98.                 echo "</h2>
  99.             ";
  100.             }
  101.             // line 40
  102.             echo "        ";
  103.         }
  104.         // line 41
  105.         echo "        ";
  106.         if ((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'41$this->source); })())) {
  107.             // line 42
  108.             echo "
  109.             ";
  110.             // line 44
  111.             echo twig_include($this->env$context"@ElementsDemiFrontend/Accommodation/includes/acco-detail-searchInfo.html.twig", ["availabilityIsChecked" => (isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'44$this->source); })())]);
  112.             echo "
  113.         ";
  114.         }
  115.         // line 46
  116.         echo "
  117.         ";
  118.         // line 47
  119.         if ( !(isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'47$this->source); })())) {
  120.             // line 48
  121.             echo "
  122.             ";
  123.             // line 50
  124.             echo twig_include($this->env$context"@ElementsDemiFrontend/Accommodation/includes/corridor-matrix.html.twig", ["styleModifier" => "pt-3""type" => "rooms""isPackage" => ((            // line 53
  125. (isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster"$context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.'53$this->source); })())) ? (true) : (false))]);
  126.             // line 54
  127.             echo "
  128.         ";
  129.         }
  130.         // line 56
  131.         echo "    </div>
  132.     ";
  133.         // line 59
  134.         if ( !(isset($context["isAffiliate"]) || array_key_exists("isAffiliate"$context) ? $context["isAffiliate"] : (function () { throw new RuntimeError('Variable "isAffiliate" does not exist.'59$this->source); })())) {
  135.             // line 60
  136.             echo "        <div
  137.             class=\"js-search-data__hide-if-submitted ";
  138.             // line 61
  139.             echo (((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'61$this->source); })())) ? ("") : ("text-center "));
  140.             echo "\" ";
  141.             echo (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'61$this->source); })())) ? ("hidden") : (""));
  142.             echo " >
  143.             <h2 class=\"";
  144.             // line 62
  145.             echo (((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'62$this->source); })())) ? ("h3") : ("text-primary"));
  146.             echo "  mb-2\">";
  147.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room-overview"), "html"nulltrue);
  148.             echo " </h2>
  149.             ";
  150.             // line 64
  151.             if (( !(isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'64$this->source); })()) || (((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'64$this->source); })()) && (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'64$this->source); })())) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'64$this->source); })()), "getAccommodations", [false], "method"falsefalsetrue64)) == 0)))) {
  152.                 // line 65
  153.                 echo "
  154.                 <button type=\"button\"
  155.                         class=\"btn btn-success ";
  156.                 // line 68
  157.                 echo (((isset($context["devicePhone"]) || array_key_exists("devicePhone"$context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.'68$this->source); })())) ? ("btn-block") : (""));
  158.                 echo " btn-lg js-overlay__toggle my-3\"
  159.                         data-target=\"#search-overlay\">
  160.                     ";
  161.                 // line 70
  162.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.search-vacancies-button"), "html"nulltrue);
  163.                 echo "
  164.                 </button>
  165.             ";
  166.             }
  167.             // line 73
  168.             echo "        </div>
  169.     ";
  170.         }
  171.         // line 75
  172.         echo "
  173.     <div class=\"js-room-list\" aria-live=\"polite\">
  174.         <div class=\"js-room-list__loading\" hidden>
  175.             <div class=\"text-center py-5 room-selection-box\">
  176.                 ";
  177.         // line 80
  178.         echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/elements/spinner/loading-spinner.html.twig");
  179.         echo "
  180.             </div>
  181.         </div>
  182.         <div class=\"js-room-list__content\" data-list=\"rooms\">
  183.             ";
  184.         // line 86
  185.         if ((( !(isset($context["resultSetPresent"]) || array_key_exists("resultSetPresent"$context) ? $context["resultSetPresent"] : (function () { throw new RuntimeError('Variable "resultSetPresent" does not exist.'86$this->source); })()) || (isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster"$context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.'86$this->source); })())) || (isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'86$this->source); })()))) {
  186.             // line 87
  187.             echo "
  188.             ";
  189.             // line 89
  190.             if ((isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'89$this->source); })())) {
  191.                 // line 90
  192.                 echo "                ";
  193.                 $context["accommodationProductArray"] = [];
  194.                 // line 91
  195.                 echo "                ";
  196.                 $context["sections"] = twig_get_attribute($this->env$this->source, (isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'91$this->source); })()), "getSections", [], "method"falsefalsetrue91);
  197.                 // line 92
  198.                 echo "                ";
  199.                 $context['_parent'] = $context;
  200.                 $context['_seq'] = twig_ensure_traversable((isset($context["sections"]) || array_key_exists("sections"$context) ? $context["sections"] : (function () { throw new RuntimeError('Variable "sections" does not exist.'92$this->source); })()));
  201.                 foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  202.                     // line 93
  203.                     echo "                ";
  204.                     if (((twig_get_attribute($this->env$this->source$context["section"], "getProductType", [], "method"falsefalsetrue93) === "Accommodation") && twig_get_attribute($this->env$this->source$context["section"], "getProducts", [], "method"falsefalsetrue93))) {
  205.                         // line 94
  206.                         echo "                    ";
  207.                         $context['_parent'] = $context;
  208.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["section"], "getProducts", [], "method"falsefalsetrue94));
  209.                         foreach ($context['_seq'] as $context["_key"] => $context["assignedProduct"]) {
  210.                             // line 95
  211.                             echo "                        ";
  212.                             if ((twig_get_attribute($this->env$this->source$context["assignedProduct"], "getServiceProvider", [], "method"falsefalsetrue95) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["assignedProduct"], "getServiceProvider", [], "method"falsefalsetrue95), "getId", [], "method"falsefalsetrue95) == twig_get_attribute($this->env$this->source, (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'95$this->source); })()), "getId", [], "method"falsefalsetrue95)))) {
  213.                                 // line 96
  214.                                 echo "                            ";
  215.                                 $context["accommodationProductArray"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["accommodationProductArray"]) || array_key_exists("accommodationProductArray"$context) ? $context["accommodationProductArray"] : (function () { throw new RuntimeError('Variable "accommodationProductArray" does not exist.'96$this->source); })()), 96$this->source), [twig_get_attribute($this->env$this->source$context["assignedProduct"], "getProduct", [], "method"falsefalsetrue96)]);
  216.                                 // line 97
  217.                                 echo "                        ";
  218.                             }
  219.                             // line 98
  220.                             echo "                    ";
  221.                         }
  222.                         $_parent $context['_parent'];
  223.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['assignedProduct'], $context['_parent'], $context['loop']);
  224.                         $context array_intersect_key($context$_parent) + $_parent;
  225.                         // line 99
  226.                         echo "                ";
  227.                     }
  228.                     // line 100
  229.                     echo "                ";
  230.                 }
  231.                 $_parent $context['_parent'];
  232.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  233.                 $context array_intersect_key($context$_parent) + $_parent;
  234.                 // line 101
  235.                 echo "            ";
  236.             } elseif ((isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster"$context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.'101$this->source); })())) {
  237.                 // line 102
  238.                 echo "                ";
  239.                 $context["accommodationProductArray"] = twig_get_attribute($this->env$this->source, (isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster"$context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.'102$this->source); })()), "demiGetProducts", [true], "method"falsefalsetrue102);
  240.                 // line 103
  241.                 echo "            ";
  242.             } else {
  243.                 // line 104
  244.                 echo "                ";
  245.                 $context["accommodationProductArray"] = twig_get_attribute($this->env$this->source, (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'104$this->source); })()), "getAccommodations", [false], "method"falsefalsetrue104);
  246.                 // line 105
  247.                 echo "            ";
  248.             }
  249.             // line 106
  250.             echo "
  251.             <div>
  252.                 <ul class=\"list-unstyled\">
  253.                     ";
  254.             // line 111
  255.             if (( !(null === (isset($context["productResultSet"]) || array_key_exists("productResultSet"$context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.'111$this->source); })())) && ((isset($context["productResultSet"]) || array_key_exists("productResultSet"$context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.'111$this->source); })()) != false))) {
  256.                 // line 112
  257.                 echo "                        ";
  258.                 $context["productDataArray"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiAccommodationExtension']->prepareProductArray($this->sandbox->ensureToStringAllowed((isset($context["accommodationProductArray"]) || array_key_exists("accommodationProductArray"$context) ? $context["accommodationProductArray"] : (function () { throw new RuntimeError('Variable "accommodationProductArray" does not exist.'112$this->source); })()), 112$this->source), $this->sandbox->ensureToStringAllowed((isset($context["searchParam"]) || array_key_exists("searchParam"$context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.'112$this->source); })()), 112$this->source), $this->sandbox->ensureToStringAllowed((isset($context["productResultSet"]) || array_key_exists("productResultSet"$context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.'112$this->source); })()), 112$this->source), $this->sandbox->ensureToStringAllowed((isset($context["tvbPackage"]) || array_key_exists("tvbPackage"$context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.'112$this->source); })()), 112$this->source));
  259.                 // line 113
  260.                 echo "                        ";
  261.                 if ( !twig_test_empty((isset($context["productDataArray"]) || array_key_exists("productDataArray"$context) ? $context["productDataArray"] : (function () { throw new RuntimeError('Variable "productDataArray" does not exist.'113$this->source); })()))) {
  262.                     // line 114
  263.                     echo "
  264.                             ";
  265.                     // line 115
  266.                     $context['_parent'] = $context;
  267.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["productDataArray"]) || array_key_exists("productDataArray"$context) ? $context["productDataArray"] : (function () { throw new RuntimeError('Variable "productDataArray" does not exist.'115$this->source); })()), "productData", [], "any"falsefalsetrue115));
  268.                     $context['loop'] = [
  269.                       'parent' => $context['_parent'],
  270.                       'index0' => 0,
  271.                       'index'  => 1,
  272.                       'first'  => true,
  273.                     ];
  274.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  275.                         $length count($context['_seq']);
  276.                         $context['loop']['revindex0'] = $length 1;
  277.                         $context['loop']['revindex'] = $length;
  278.                         $context['loop']['length'] = $length;
  279.                         $context['loop']['last'] = === $length;
  280.                     }
  281.                     foreach ($context['_seq'] as $context["_key"] => $context["productData"]) {
  282.                         // line 116
  283.                         echo "                            ";
  284.                         $context["templatename"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getDeviceDependentTemplate("@ElementsDemiFrontend/Includes/teaser/""room-teaser"$this->sandbox->ensureToStringAllowed((isset($context["container"]) || array_key_exists("container"$context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.'116$this->source); })()), 116$this->source));
  285.                         // line 117
  286.                         echo "                            ";
  287.                         echo twig_include($this->env$context$this->sandbox->ensureToStringAllowed((isset($context["templatename"]) || array_key_exists("templatename"$context) ? $context["templatename"] : (function () { throw new RuntimeError('Variable "templatename" does not exist.'117$this->source); })()), 117$this->source), ["hasSingleRoomRow" => true"availabilityIsChecked" =>                         // line 119
  288. (isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked"$context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.'119$this->source); })()), "productData" =>                         // line 120
  289. $context["productData"], "accommodation" =>                         // line 121
  290. (isset($context["accommodation"]) || array_key_exists("accommodation"$context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.'121$this->source); })()), "settlerCode" => null]);
  291.                         // line 123
  292.                         echo "
  293.                             ";
  294.                         ++$context['loop']['index0'];
  295.                         ++$context['loop']['index'];
  296.                         $context['loop']['first'] = false;
  297.                         if (isset($context['loop']['length'])) {
  298.                             --$context['loop']['revindex0'];
  299.                             --$context['loop']['revindex'];
  300.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  301.                         }
  302.                     }
  303.                     $_parent $context['_parent'];
  304.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productData'], $context['_parent'], $context['loop']);
  305.                     $context array_intersect_key($context$_parent) + $_parent;
  306.                     // line 125
  307.                     echo "                        ";
  308.                 }
  309.                 // line 126
  310.                 echo "
  311.                         ";
  312.                 // line 127
  313.                 if ((((isset($context["productResultSet"]) || array_key_exists("productResultSet"$context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.'127$this->source); })()) == null) &&  !twig_get_attribute($this->env$this->source, (isset($context["productDataArray"]) || array_key_exists("productDataArray"$context) ? $context["productDataArray"] : (function () { throw new RuntimeError('Variable "productDataArray" does not exist.'127$this->source); })()), "foundTvbProductToDisplay", [], "any"falsefalsetrue127))) {
  314.                     // line 128
  315.                     echo "                            <div class=\"card-body\">
  316.                                 <div class=\"font-medium text-muted\">
  317.                                     <div class=\"row row--gutter-width-10\">
  318.                                         <div class=\"col col-auto\">
  319.                                 <span class=\"demi-icon demi-icon-warning icon-in-text\"
  320.                                       aria-label=\"";
  321.                     // line 133
  322.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.warning"), "html"nulltrue);
  323.                     echo "\"
  324.                                       title=\"";
  325.                     // line 134
  326.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.warning"), "html"nulltrue);
  327.                     echo "\"></span>
  328.                                         </div>
  329.                                         <div class=\"col\">
  330.                                             ";
  331.                     // line 137
  332.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.no-rooms"), "html"nulltrue);
  333.                     echo "
  334.                                         </div>
  335.                                     </div>
  336.                                 </div>
  337.                             </div>
  338.                         ";
  339.                 }
  340.                 // line 143
  341.                 echo "                    ";
  342.             }
  343.             // line 144
  344.             echo "                </ul>
  345.             </div>
  346.             ";
  347.         }
  348.         // line 147
  349.         echo "        </div>
  350.     </div>
  351.     <div class=\"js-corridor__room-alternatives\"></div>
  352.     <button class=\"selection-bar btn-no-styling js-room-selection__bar js-room-selection__submit\"
  353.             type=\"submit\">
  354.         <script data-cookieconsent=\"ignore\">
  355.             _config.roomSelectionBar = true;
  356.         </script>
  357.         <div class=\"row align-items-center\">
  358.             <div class=\"col\">
  359.                 <div><span
  360.                         class=\"js-room-selection__units\">0 ";
  361.         // line 160
  362.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.units"), "html"nulltrue);
  363.         echo "</span> ";
  364.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.selected"), "html"nulltrue);
  365.         echo "
  366.                 </div>
  367.                 <div><strong class=\"font-medium\">";
  368.         // line 162
  369.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.selected-total-price"), "html"nulltrue);
  370.         echo "
  371.                         <span class=\"js-room-selection__total-price\"><span
  372.                                 class=\"price\">";
  373.         // line 164
  374.         echo $this->env->getFunction('demi_paymentGetCurrency')->getCallable()();
  375.         echo " </span>
  376.                     </span>
  377.                     </strong></div>
  378.             </div>
  379.             <div class=\"col col-auto\" aria-label=\"";
  380.         // line 168
  381.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.booking-button"), "html"nulltrue);
  382.         echo "\">
  383.                 <span class=\"demi-icon demi-icon-cart selection-bar__cart-icon\" aria-hidden=\"true\"></span>
  384.                 <span class=\"demi-icon demi-icon-arrow-right selection-bar__arrow-icon\" aria-hidden=\"true\"></span>
  385.             </div>
  386.         </div>
  387.     </button>
  388. </section>
  389. ";
  390.         
  391.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  392.         
  393.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  394.     }
  395.     /**
  396.      * @codeCoverageIgnore
  397.      */
  398.     public function getTemplateName()
  399.     {
  400.         return "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig";
  401.     }
  402.     /**
  403.      * @codeCoverageIgnore
  404.      */
  405.     public function isTraitable()
  406.     {
  407.         return false;
  408.     }
  409.     /**
  410.      * @codeCoverageIgnore
  411.      */
  412.     public function getDebugInfo()
  413.     {
  414.         return array (  408 => 168,  401 => 164,  396 => 162,  389 => 160,  374 => 147,  369 => 144,  366 => 143,  357 => 137,  351 => 134,  347 => 133,  340 => 128,  338 => 127,  335 => 126,  332 => 125,  317 => 123,  315 => 121,  314 => 120,  313 => 119,  311 => 117,  308 => 116,  291 => 115,  288 => 114,  285 => 113,  282 => 112,  280 => 111,  273 => 106,  270 => 105,  267 => 104,  264 => 103,  261 => 102,  258 => 101,  252 => 100,  249 => 99,  243 => 98,  240 => 97,  237 => 96,  234 => 95,  229 => 94,  226 => 93,  221 => 92,  218 => 91,  215 => 90,  213 => 89,  209 => 87,  207 => 86,  198 => 80,  191 => 75,  187 => 73,  181 => 70,  176 => 68,  171 => 65,  169 => 64,  162 => 62,  156 => 61,  153 => 60,  151 => 59,  146 => 56,  142 => 54,  140 => 53,  139 => 50,  135 => 48,  133 => 47,  130 => 46,  125 => 44,  121 => 42,  118 => 41,  115 => 40,  108 => 36,  101 => 35,  93 => 33,  91 => 32,  87 => 30,  84 => 29,  81 => 28,  78 => 27,  75 => 26,  72 => 25,  70 => 24,  64 => 23,  58 => 20,  52 => 18,  50 => 17,  48 => 16,  45 => 15,);
  415.     }
  416.     public function getSourceContext()
  417.     {
  418.         return new Source("{#
  419. /**
  420.  * @var \\Pimcore\\Templating\\PhpEngine this
  421.  * @var \\Pimcore\\Templating\\PhpEngine view
  422.  * @var \\Pimcore\\Templating\\GlobalVariables app
  423.  * #
  424.  * @var package bool
  425.  * @var availabilityIsChecked bool
  426.  * @var accommodation \\Elements\\Demi\\Model\\AccommodationServiceProvider
  427.  * @var housePackageMaster \\Elements\\Demi\\Model\\HousePackageMaster
  428.  * @var tvbPackage \\Elements\\Demi\\Model\\Package
  429.  * @var searchParam Elements\\Demi\\Accommodation\\Search\\Parameter
  430.  * @var productResultSet \\Elements\\Demi\\Accommodation\\Search\\ResultSet\\Accommodation
  431.  */ #}
  432. {% set resultSetPresent = resultSetPresent is defined ? resultSetPresent : false %}
  433. {% set devicePhone = pimcore_device().isPhone() %}
  434. <section class=\"mt-4 {{ devicePhone ? 'container' : '' }}\"
  435.          data-track-content
  436.          data-content-name=\"{{ package ? 'package-' : 'accommodation-' }}availabilities\">
  437.     <div
  438.         class=\"js-search-data__show-if-submitted {{ devicePhone ? 'mb-3' : '' }}\" {{ availabilityIsChecked ? '' : 'hidden' }} >
  439.         {% if devicePhone %}
  440.             {% set classes = \"h3 mb-2\" %}
  441.         {% else %}
  442.             {% set classes = \"mb-4 text-primary\" %}
  443.         {% endif %}
  444.         {% if isAffiliate %}
  445.             {% if housePackageMaster or tvbPackage %}
  446.                 <h2 class=\"{{ classes }}\">{{ 'demi.detail.tab.package-prices' | trans }}</h2>
  447.             {% else %}
  448.                 <h2 class=\"{{ classes }}\">{{ demi_getRoomsTabTranslationKey(accommodation) | trans }} &
  449.                 {{ \"demi.detail.tab.prices\" | trans }}</h2>
  450.             {% endif %}
  451.         {% endif %}
  452.         {% if devicePhone %}
  453.             {{ include('@ElementsDemiFrontend/Accommodation/includes/acco-detail-searchInfo.html.twig', {'availabilityIsChecked' : availabilityIsChecked}) }}
  454.         {% endif %}
  455.         {% if not tvbPackage %}
  456.             {{ include('@ElementsDemiFrontend/Accommodation/includes/corridor-matrix.html.twig', {
  457.                 'styleModifier' : 'pt-3',
  458.                 'type' : 'rooms',
  459.                 'isPackage' : housePackageMaster ? true:false
  460.             }) }}
  461.         {% endif %}
  462.     </div>
  463.     {% if not isAffiliate %}
  464.         <div
  465.             class=\"js-search-data__hide-if-submitted {{ devicePhone ? '' : 'text-center ' }}\" {{ availabilityIsChecked ? 'hidden' : '' }} >
  466.             <h2 class=\"{{ devicePhone ? 'h3' : 'text-primary' }}  mb-2\">{{ \"demi.detail.room-overview\" | trans }} </h2>
  467.             {% if not devicePhone or (devicePhone and accommodation and accommodation.getAccommodations(false) | length == 0) %}
  468.                 <button type=\"button\"
  469.                         class=\"btn btn-success {{ devicePhone ? 'btn-block' : '' }} btn-lg js-overlay__toggle my-3\"
  470.                         data-target=\"#search-overlay\">
  471.                     {{ \"demi.detail.search-vacancies-button\" | trans }}
  472.                 </button>
  473.             {% endif %}
  474.         </div>
  475.     {% endif %}
  476.     <div class=\"js-room-list\" aria-live=\"polite\">
  477.         <div class=\"js-room-list__loading\" hidden>
  478.             <div class=\"text-center py-5 room-selection-box\">
  479.                 {{ include('@ElementsDemiFrontend/Includes/elements/spinner/loading-spinner.html.twig') }}
  480.             </div>
  481.         </div>
  482.         <div class=\"js-room-list__content\" data-list=\"rooms\">
  483.             {% if not resultSetPresent or housePackageMaster or tvbPackage %}
  484.             {% if tvbPackage %}
  485.                 {% set accommodationProductArray = [] %}
  486.                 {% set sections = tvbPackage.getSections() %}
  487.                 {% for section in sections %}
  488.                 {% if section.getProductType() is same as \"Accommodation\" and section.getProducts() %}
  489.                     {% for assignedProduct in section.getProducts() %}
  490.                         {% if assignedProduct.getServiceProvider() and assignedProduct.getServiceProvider().getId() == accommodation.getId() %}
  491.                             {% set accommodationProductArray = accommodationProductArray | merge([assignedProduct.getProduct()]) %}
  492.                         {% endif %}
  493.                     {% endfor %}
  494.                 {% endif %}
  495.                 {% endfor %}
  496.             {% elseif housePackageMaster %}
  497.                 {% set accommodationProductArray = housePackageMaster.demiGetProducts(true) %}
  498.             {% else %}
  499.                 {% set accommodationProductArray = accommodation.getAccommodations(false) %}
  500.             {% endif %}
  501.             <div>
  502.                 <ul class=\"list-unstyled\">
  503.                     {% if productResultSet is not null and productResultSet != false %}
  504.                         {% set productDataArray = demi_prepareProductArray(accommodationProductArray, searchParam, productResultSet, tvbPackage) %}
  505.                         {% if productDataArray is not empty %}
  506.                             {% for productData in productDataArray.productData %}
  507.                             {% set templatename = demi_getDeviceDependentTemplate('@ElementsDemiFrontend/Includes/teaser/', 'room-teaser', container) %}
  508.                             {{ include(templatename, {
  509.                                 'hasSingleRoomRow' : true,
  510.                                 'availabilityIsChecked' : availabilityIsChecked,
  511.                                 'productData': productData,
  512.                                 'accommodation':accommodation,
  513.                                 'settlerCode' : null
  514.                             }) }}
  515.                             {% endfor %}
  516.                         {% endif %}
  517.                         {% if productResultSet == null and not productDataArray.foundTvbProductToDisplay %}
  518.                             <div class=\"card-body\">
  519.                                 <div class=\"font-medium text-muted\">
  520.                                     <div class=\"row row--gutter-width-10\">
  521.                                         <div class=\"col col-auto\">
  522.                                 <span class=\"demi-icon demi-icon-warning icon-in-text\"
  523.                                       aria-label=\"{{ 'demi.warning' | trans }}\"
  524.                                       title=\"{{ 'demi.warning' | trans }}\"></span>
  525.                                         </div>
  526.                                         <div class=\"col\">
  527.                                             {{ \"demi.detail.no-rooms\" | trans }}
  528.                                         </div>
  529.                                     </div>
  530.                                 </div>
  531.                             </div>
  532.                         {% endif %}
  533.                     {% endif %}
  534.                 </ul>
  535.             </div>
  536.             {% endif %}
  537.         </div>
  538.     </div>
  539.     <div class=\"js-corridor__room-alternatives\"></div>
  540.     <button class=\"selection-bar btn-no-styling js-room-selection__bar js-room-selection__submit\"
  541.             type=\"submit\">
  542.         <script data-cookieconsent=\"ignore\">
  543.             _config.roomSelectionBar = true;
  544.         </script>
  545.         <div class=\"row align-items-center\">
  546.             <div class=\"col\">
  547.                 <div><span
  548.                         class=\"js-room-selection__units\">0 {{ 'demi.units'| trans }}</span> {{ 'demi.detail.room.selected'| trans }}
  549.                 </div>
  550.                 <div><strong class=\"font-medium\">{{ 'demi.detail.room.selected-total-price' | trans }}
  551.                         <span class=\"js-room-selection__total-price\"><span
  552.                                 class=\"price\">{{ demi_paymentGetCurrency() }} </span>
  553.                     </span>
  554.                     </strong></div>
  555.             </div>
  556.             <div class=\"col col-auto\" aria-label=\"{{ 'demi.detail.room.booking-button' | trans }}\">
  557.                 <span class=\"demi-icon demi-icon-cart selection-bar__cart-icon\" aria-hidden=\"true\"></span>
  558.                 <span class=\"demi-icon demi-icon-arrow-right selection-bar__arrow-icon\" aria-hidden=\"true\"></span>
  559.             </div>
  560.         </div>
  561.     </button>
  562. </section>
  563. ""@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig""/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Accommodation/includes/acco-rooms.html.twig");
  564.     }
  565.     
  566.     public function checkSecurity()
  567.     {
  568.         static $tags = array("set" => 16"if" => 24"for" => 92);
  569.         static $filters = array("escape" => 33"trans" => 33"length" => 64"merge" => 96);
  570.         static $functions = array("pimcore_device" => 17"demi_getRoomsTabTranslationKey" => 35"include" => 44"demi_prepareProductArray" => 112"demi_getDeviceDependentTemplate" => 116"demi_paymentGetCurrency" => 164);
  571.         try {
  572.             $this->sandbox->checkSecurity(
  573.                 ['set''if''for'],
  574.                 ['escape''trans''length''merge'],
  575.                 ['pimcore_device''demi_getRoomsTabTranslationKey''include''demi_prepareProductArray''demi_getDeviceDependentTemplate''demi_paymentGetCurrency']
  576.             );
  577.         } catch (SecurityError $e) {
  578.             $e->setSourceContext($this->source);
  579.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  580.                 $e->setTemplateLine($tags[$e->getTagName()]);
  581.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  582.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  583.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  584.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  585.             }
  586.             throw $e;
  587.         }
  588.     }
  589. }