<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig */
class __TwigTemplate_d8eb8b785048ccb14d5bc61cfc837b0b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig"));
// line 15
echo "
";
// line 16
$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));
// line 17
$context["devicePhone"] = twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, false, 17);
// line 18
echo "<section class=\"mt-4 ";
echo (((isset($context["devicePhone"]) || array_key_exists("devicePhone", $context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.', 18, $this->source); })())) ? ("container") : (""));
echo "\"
data-track-content
data-content-name=\"";
// line 20
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-"));
echo "availabilities\">
<div
class=\"js-search-data__show-if-submitted ";
// line 23
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") : (""));
echo "\" ";
echo (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 23, $this->source); })())) ? ("") : ("hidden"));
echo " >
";
// line 24
if ((isset($context["devicePhone"]) || array_key_exists("devicePhone", $context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.', 24, $this->source); })())) {
// line 25
echo " ";
$context["classes"] = "h3 mb-2";
// line 26
echo " ";
} else {
// line 27
echo " ";
$context["classes"] = "mb-4 text-primary";
// line 28
echo " ";
}
// line 29
echo " ";
if ((isset($context["isAffiliate"]) || array_key_exists("isAffiliate", $context) ? $context["isAffiliate"] : (function () { throw new RuntimeError('Variable "isAffiliate" does not exist.', 29, $this->source); })())) {
// line 30
echo "
";
// line 32
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); })()))) {
// line 33
echo " <h2 class=\"";
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", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.package-prices"), "html", null, true);
echo "</h2>
";
} else {
// line 35
echo " <h2 class=\"";
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", null, true);
echo "\">";
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", null, true);
echo " &
";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.prices"), "html", null, true);
echo "</h2>
";
}
// line 40
echo " ";
}
// line 41
echo " ";
if ((isset($context["devicePhone"]) || array_key_exists("devicePhone", $context) ? $context["devicePhone"] : (function () { throw new RuntimeError('Variable "devicePhone" does not exist.', 41, $this->source); })())) {
// line 42
echo "
";
// line 44
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); })())]);
echo "
";
}
// line 46
echo "
";
// line 47
if ( !(isset($context["tvbPackage"]) || array_key_exists("tvbPackage", $context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.', 47, $this->source); })())) {
// line 48
echo "
";
// line 50
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/corridor-matrix.html.twig", ["styleModifier" => "pt-3", "type" => "rooms", "isPackage" => (( // line 53
(isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster", $context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.', 53, $this->source); })())) ? (true) : (false))]);
// line 54
echo "
";
}
// line 56
echo " </div>
";
// line 59
if ( !(isset($context["isAffiliate"]) || array_key_exists("isAffiliate", $context) ? $context["isAffiliate"] : (function () { throw new RuntimeError('Variable "isAffiliate" does not exist.', 59, $this->source); })())) {
// line 60
echo " <div
class=\"js-search-data__hide-if-submitted ";
// line 61
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 "));
echo "\" ";
echo (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 61, $this->source); })())) ? ("hidden") : (""));
echo " >
<h2 class=\"";
// line 62
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"));
echo " mb-2\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room-overview"), "html", null, true);
echo " </h2>
";
// line 64
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->env, 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.', 64, $this->source); })()), "getAccommodations", [0 => false], "method", false, false, false, 64)) == 0)))) {
// line 65
echo "
<button type=\"button\"
class=\"btn btn-success ";
// line 68
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") : (""));
echo " btn-lg js-overlay__toggle my-3\"
data-target=\"#search-overlay\">
";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.search-vacancies-button"), "html", null, true);
echo "
</button>
";
}
// line 73
echo " </div>
";
}
// line 75
echo "
<div class=\"js-room-list\" aria-live=\"polite\">
<div class=\"js-room-list__loading\" hidden>
<div class=\"text-center py-5 room-selection-box\">
";
// line 80
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/elements/spinner/loading-spinner.html.twig");
echo "
</div>
</div>
<div class=\"js-room-list__content\" data-list=\"rooms\">
";
// line 86
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); })()))) {
// line 87
echo "
";
// line 89
if ((isset($context["tvbPackage"]) || array_key_exists("tvbPackage", $context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.', 89, $this->source); })())) {
// line 90
echo " ";
$context["accommodationProductArray"] = [];
// line 91
echo " ";
$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", false, false, false, 91);
// line 92
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 93
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["section"], "getProductType", [], "method", false, false, false, 93) === "Accommodation") && twig_get_attribute($this->env, $this->source, $context["section"], "getProducts", [], "method", false, false, false, 93))) {
// line 94
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["section"], "getProducts", [], "method", false, false, false, 94));
foreach ($context['_seq'] as $context["_key"] => $context["assignedProduct"]) {
// line 95
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["assignedProduct"], "getServiceProvider", [], "method", false, false, false, 95) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["assignedProduct"], "getServiceProvider", [], "method", false, false, false, 95), "getId", [], "method", false, false, false, 95) == 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", false, false, false, 95)))) {
// line 96
echo " ";
$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); })()), [0 => twig_get_attribute($this->env, $this->source, $context["assignedProduct"], "getProduct", [], "method", false, false, false, 96)]);
// line 97
echo " ";
}
// line 98
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['assignedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 99
echo " ";
}
// line 100
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
echo " ";
} elseif ((isset($context["housePackageMaster"]) || array_key_exists("housePackageMaster", $context) ? $context["housePackageMaster"] : (function () { throw new RuntimeError('Variable "housePackageMaster" does not exist.', 101, $this->source); })())) {
// line 102
echo " ";
$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", [0 => true], "method", false, false, false, 102);
// line 103
echo " ";
} else {
// line 104
echo " ";
$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", [0 => false], "method", false, false, false, 104);
// line 105
echo " ";
}
// line 106
echo "
<div>
<ul class=\"list-unstyled\">
";
// line 111
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))) {
// line 112
echo " ";
$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); })()));
// line 113
echo " ";
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); })()))) {
// line 114
echo "
";
// line 115
$context['_parent'] = $context;
$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", false, false, false, 115));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["productData"]) {
// line 116
echo " ";
$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); })()));
// line 117
echo " ";
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
(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
$context["productData"], "accommodation" => // line 121
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 121, $this->source); })()), "settlerCode" => null]);
// line 123
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 125
echo " ";
}
// line 126
echo "
";
// line 127
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", false, false, false, 127))) {
// line 128
echo " <div class=\"card-body\">
<div class=\"font-medium text-muted\">
<div class=\"row row--gutter-width-10\">
<div class=\"col col-auto\">
<span class=\"demi-icon demi-icon-warning icon-in-text\"
aria-label=\"";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.warning"), "html", null, true);
echo "\"
title=\"";
// line 134
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.warning"), "html", null, true);
echo "\"></span>
</div>
<div class=\"col\">
";
// line 137
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.no-rooms"), "html", null, true);
echo "
</div>
</div>
</div>
</div>
";
}
// line 143
echo " ";
}
// line 144
echo " </ul>
</div>
";
}
// line 147
echo " </div>
</div>
<div class=\"js-corridor__room-alternatives\"></div>
<button class=\"selection-bar btn-no-styling js-room-selection__bar js-room-selection__submit\"
type=\"submit\">
<script data-cookieconsent=\"ignore\">
_config.roomSelectionBar = true;
</script>
<div class=\"row align-items-center\">
<div class=\"col\">
<div><span
class=\"js-room-selection__units\">0 ";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.units"), "html", null, true);
echo "</span> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.selected"), "html", null, true);
echo "
</div>
<div><strong class=\"font-medium\">";
// line 162
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.selected-total-price"), "html", null, true);
echo "
<span class=\"js-room-selection__total-price\"><span
class=\"price\">";
// line 164
echo $this->env->getFunction('demi_paymentGetCurrency')->getCallable()();
echo " </span>
</span>
</strong></div>
</div>
<div class=\"col col-auto\" aria-label=\"";
// line 168
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.booking-button"), "html", null, true);
echo "\">
<span class=\"demi-icon demi-icon-cart selection-bar__cart-icon\" aria-hidden=\"true\"></span>
<span class=\"demi-icon demi-icon-arrow-right selection-bar__arrow-icon\" aria-hidden=\"true\"></span>
</div>
</div>
</button>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
/**
* @var \\Pimcore\\Templating\\PhpEngine this
* @var \\Pimcore\\Templating\\PhpEngine view
* @var \\Pimcore\\Templating\\GlobalVariables app
* #
* @var package bool
* @var availabilityIsChecked bool
* @var accommodation \\Elements\\Demi\\Model\\AccommodationServiceProvider
* @var housePackageMaster \\Elements\\Demi\\Model\\HousePackageMaster
* @var tvbPackage \\Elements\\Demi\\Model\\Package
* @var searchParam Elements\\Demi\\Accommodation\\Search\\Parameter
* @var productResultSet \\Elements\\Demi\\Accommodation\\Search\\ResultSet\\Accommodation
*/ #}
{% set resultSetPresent = resultSetPresent is defined ? resultSetPresent : false %}
{% set devicePhone = pimcore_device().isPhone() %}
<section class=\"mt-4 {{ devicePhone ? 'container' : '' }}\"
data-track-content
data-content-name=\"{{ package ? 'package-' : 'accommodation-' }}availabilities\">
<div
class=\"js-search-data__show-if-submitted {{ devicePhone ? 'mb-3' : '' }}\" {{ availabilityIsChecked ? '' : 'hidden' }} >
{% if devicePhone %}
{% set classes = \"h3 mb-2\" %}
{% else %}
{% set classes = \"mb-4 text-primary\" %}
{% endif %}
{% if isAffiliate %}
{% if housePackageMaster or tvbPackage %}
<h2 class=\"{{ classes }}\">{{ 'demi.detail.tab.package-prices' | trans }}</h2>
{% else %}
<h2 class=\"{{ classes }}\">{{ demi_getRoomsTabTranslationKey(accommodation) | trans }} &
{{ \"demi.detail.tab.prices\" | trans }}</h2>
{% endif %}
{% endif %}
{% if devicePhone %}
{{ include('@ElementsDemiFrontend/Accommodation/includes/acco-detail-searchInfo.html.twig', {'availabilityIsChecked' : availabilityIsChecked}) }}
{% endif %}
{% if not tvbPackage %}
{{ include('@ElementsDemiFrontend/Accommodation/includes/corridor-matrix.html.twig', {
'styleModifier' : 'pt-3',
'type' : 'rooms',
'isPackage' : housePackageMaster ? true:false
}) }}
{% endif %}
</div>
{% if not isAffiliate %}
<div
class=\"js-search-data__hide-if-submitted {{ devicePhone ? '' : 'text-center ' }}\" {{ availabilityIsChecked ? 'hidden' : '' }} >
<h2 class=\"{{ devicePhone ? 'h3' : 'text-primary' }} mb-2\">{{ \"demi.detail.room-overview\" | trans }} </h2>
{% if not devicePhone or (devicePhone and accommodation and accommodation.getAccommodations(false) | length == 0) %}
<button type=\"button\"
class=\"btn btn-success {{ devicePhone ? 'btn-block' : '' }} btn-lg js-overlay__toggle my-3\"
data-target=\"#search-overlay\">
{{ \"demi.detail.search-vacancies-button\" | trans }}
</button>
{% endif %}
</div>
{% endif %}
<div class=\"js-room-list\" aria-live=\"polite\">
<div class=\"js-room-list__loading\" hidden>
<div class=\"text-center py-5 room-selection-box\">
{{ include('@ElementsDemiFrontend/Includes/elements/spinner/loading-spinner.html.twig') }}
</div>
</div>
<div class=\"js-room-list__content\" data-list=\"rooms\">
{% if not resultSetPresent or housePackageMaster or tvbPackage %}
{% if tvbPackage %}
{% set accommodationProductArray = [] %}
{% set sections = tvbPackage.getSections() %}
{% for section in sections %}
{% if section.getProductType() is same as \"Accommodation\" and section.getProducts() %}
{% for assignedProduct in section.getProducts() %}
{% if assignedProduct.getServiceProvider() and assignedProduct.getServiceProvider().getId() == accommodation.getId() %}
{% set accommodationProductArray = accommodationProductArray | merge([assignedProduct.getProduct()]) %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% elseif housePackageMaster %}
{% set accommodationProductArray = housePackageMaster.demiGetProducts(true) %}
{% else %}
{% set accommodationProductArray = accommodation.getAccommodations(false) %}
{% endif %}
<div>
<ul class=\"list-unstyled\">
{% if productResultSet is not null and productResultSet != false %}
{% set productDataArray = demi_prepareProductArray(accommodationProductArray, searchParam, productResultSet, tvbPackage) %}
{% if productDataArray is not empty %}
{% for productData in productDataArray.productData %}
{% set templatename = demi_getDeviceDependentTemplate('@ElementsDemiFrontend/Includes/teaser/', 'room-teaser', container) %}
{{ include(templatename, {
'hasSingleRoomRow' : true,
'availabilityIsChecked' : availabilityIsChecked,
'productData': productData,
'accommodation':accommodation,
'settlerCode' : null
}) }}
{% endfor %}
{% endif %}
{% if productResultSet == null and not productDataArray.foundTvbProductToDisplay %}
<div class=\"card-body\">
<div class=\"font-medium text-muted\">
<div class=\"row row--gutter-width-10\">
<div class=\"col col-auto\">
<span class=\"demi-icon demi-icon-warning icon-in-text\"
aria-label=\"{{ 'demi.warning' | trans }}\"
title=\"{{ 'demi.warning' | trans }}\"></span>
</div>
<div class=\"col\">
{{ \"demi.detail.no-rooms\" | trans }}
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</ul>
</div>
{% endif %}
</div>
</div>
<div class=\"js-corridor__room-alternatives\"></div>
<button class=\"selection-bar btn-no-styling js-room-selection__bar js-room-selection__submit\"
type=\"submit\">
<script data-cookieconsent=\"ignore\">
_config.roomSelectionBar = true;
</script>
<div class=\"row align-items-center\">
<div class=\"col\">
<div><span
class=\"js-room-selection__units\">0 {{ 'demi.units'| trans }}</span> {{ 'demi.detail.room.selected'| trans }}
</div>
<div><strong class=\"font-medium\">{{ 'demi.detail.room.selected-total-price' | trans }}
<span class=\"js-room-selection__total-price\"><span
class=\"price\">{{ demi_paymentGetCurrency() }} </span>
</span>
</strong></div>
</div>
<div class=\"col col-auto\" aria-label=\"{{ 'demi.detail.room.booking-button' | trans }}\">
<span class=\"demi-icon demi-icon-cart selection-bar__cart-icon\" aria-hidden=\"true\"></span>
<span class=\"demi-icon demi-icon-arrow-right selection-bar__arrow-icon\" aria-hidden=\"true\"></span>
</div>
</div>
</button>
</section>
", "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Accommodation/includes/acco-rooms.html.twig");
}
}