var/cache/dev/twig/5a/5a73e941a27bfa078873e904cbd05e5d.php line 310

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