<?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/Includes/teaser/room-teaser.mobile.html.twig */
class __TwigTemplate_8407e379a027d1e7b997f1c0c7aa8e6f 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/Includes/teaser/room-teaser.mobile.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/Includes/teaser/room-teaser.mobile.html.twig"));
// line 13
echo "
";
// line 14
if (( !array_key_exists("searchParam", $context) || twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 14, $this->source); })()), "getDateFrom", [], "method", false, false, false, 14)))) {
// line 15
echo " ";
$context["fromDate"] = null;
} else {
// line 17
echo " ";
$context["fromDate"] = $this->env->getFunction('demi_getSearchFrom')->getCallable()();
}
// line 19
echo "
";
// line 20
if (((twig_test_iterable((isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 20, $this->source); })())) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["productData"] ?? null), "roomRow", [], "any", false, true, false, 20), 0, [], "array", true, true, false, 20)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["productData"] ?? null), "products", [], "any", false, true, false, 20), 0, [], "array", true, true, false, 20))) {
// line 21
echo "
";
// line 22
$context["possibleIndices"] = twig_get_array_keys_filter(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 22, $this->source); })()), "roomRow", [], "any", false, false, false, 22));
// line 23
echo " ";
$context["i"] = twig_first($this->env, (isset($context["possibleIndices"]) || array_key_exists("possibleIndices", $context) ? $context["possibleIndices"] : (function () { throw new RuntimeError('Variable "possibleIndices" does not exist.', 23, $this->source); })()));
// line 24
echo " ";
$context["roomRow"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 24, $this->source); })()), "roomRow", [], "any", false, false, false, 24), (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 24, $this->source); })()), [], "array", false, false, false, 24), "getRowObject", [], "method", false, false, false, 24);
// line 25
echo " ";
$context["product"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 25, $this->source); })()), "products", [], "any", false, false, false, 25), (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 25, $this->source); })()), [], "array", false, false, false, 25);
// line 26
echo " ";
$context["accommodationProduct"] = Pimcore\Model\DataObject::getById(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 26, $this->source); })()), "getProductId", [], "method", false, false, false, 26));
// line 27
echo " ";
if (((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 27, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 27, $this->source); })()), "isPublished", [], "method", false, false, false, 27))) {
// line 28
echo " <li>
";
// line 29
$context["id"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 29, $this->source); })()), "getProductId", [], "method", false, false, false, 29);
// line 30
echo " ";
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 30, $this->source); })()), "getName", [], "method", false, false, false, 30);
// line 31
echo "
";
// line 32
if (( !(null === (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 32, $this->source); })())) && !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 32, $this->source); })())))) {
// line 33
echo " ";
$context["priceData"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 33, $this->source); })()), "getPriceData", [], "method", false, false, false, 33);
// line 34
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 34, $this->source); })()), "getPrice", [], "method", false, false, false, 34);
// line 35
echo " ";
$context["showVacancy"] = true;
// line 36
echo " ";
$context["showSelection"] = true;
// line 37
echo " ";
$context["vacancyCount"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 37, $this->source); })()), "getUnits", [], "method", false, false, false, 37);
// line 38
echo "
";
// line 39
$context["promotionText"] = null;
// line 40
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 40, $this->source); })()), "getCancellationInformation", [], "method", false, false, false, 40))) {
// line 41
echo " ";
$context["cancellationInformation"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 41, $this->source); })()), "getCancellationInformation", [], "method", false, false, false, 41);
// line 42
echo " ";
$context["displayInfo"] = $this->env->getFunction('demi_getCancellationDisplayInfo')->getCallable()((isset($context["cancellationInformation"]) || array_key_exists("cancellationInformation", $context) ? $context["cancellationInformation"] : (function () { throw new RuntimeError('Variable "cancellationInformation" does not exist.', 42, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 42, $this->source); })()), "getDateFrom", [], "method", false, false, false, 42));
// line 43
echo " ";
$context["freeCancelText"] = twig_get_attribute($this->env, $this->source, (isset($context["displayInfo"]) || array_key_exists("displayInfo", $context) ? $context["displayInfo"] : (function () { throw new RuntimeError('Variable "displayInfo" does not exist.', 43, $this->source); })()), "getFreeCancellationText", [], "method", false, false, false, 43);
// line 44
echo " ";
$context["promotionText"] = ((((isset($context["freeCancelText"]) || array_key_exists("freeCancelText", $context) ? $context["freeCancelText"] : (function () { throw new RuntimeError('Variable "freeCancelText" does not exist.', 44, $this->source); })()) == "")) ? (null) : ((isset($context["freeCancelText"]) || array_key_exists("freeCancelText", $context) ? $context["freeCancelText"] : (function () { throw new RuntimeError('Variable "freeCancelText" does not exist.', 44, $this->source); })())));
// line 45
echo " ";
}
// line 46
echo "
";
} elseif ( !(null === // line 48
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 48, $this->source); })()))) {
// line 49
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })()), "getBasePrice", [], "method", false, false, false, 49);
// line 50
echo " ";
$context["showVacancy"] = false;
// line 51
echo " ";
$context["showSelection"] = false;
// line 52
echo " ";
$context["vacancyCount"] = 0;
// line 53
echo "
";
// line 54
$context["priceInfo"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 54, $this->source); })()), "getPriceInfo", [], "method", false, false, false, 54);
// line 55
echo " ";
if ( !twig_test_empty((isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 55, $this->source); })()))) {
// line 56
echo " ";
$context["priceInfoText"] = twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/priceInfoStr.html.twig", ["type" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 56, $this->source); })()), "type", [], "array", false, false, false, 56), "nights" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 56, $this->source); })()), "nights", [], "array", false, false, false, 56)]);
// line 57
echo " ";
}
// line 58
echo " ";
}
// line 59
echo "
";
// line 61
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 61, $this->source); })()), "getDateFrom", [], "method", false, false, false, 61))) {
// line 62
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 62, $this->source); })()), "ElementsDemiLtsAccommodationSearchParameter")) {
// line 63
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 63, $this->source); })()), "getPossibleMealCodes", [], "method", false, false, false, 63);
// line 64
echo " ";
} elseif ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 64, $this->source); })()), "ElementsDemiPackageSearchParameter")) {
// line 65
echo " ";
$context["mealArray"] = [];
// line 66
echo " ";
} else {
// line 67
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 67, $this->source); })()), "getValidMeals", [0 => twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 67, $this->source); })()), "getPeriod", [], "method", false, false, false, 67), 1 => twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 67, $this->source); })()), "getDateFrom", [], "method", false, false, false, 67)], "method", false, false, false, 67);
// line 68
echo " ";
}
// line 69
echo " ";
$context["liveMeal"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 69, $this->source); })()), "getMealCode", [], "method", false, false, false, 69);
// line 70
echo " ";
$context["liveMealObj"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getClassByStringAndIdentifier("\\Elements\\Demi\\Model\\MealType", "getByFid", (isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 70, $this->source); })()));
// line 71
echo " ";
if (!twig_in_filter((isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 71, $this->source); })()), twig_get_array_keys_filter((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 71, $this->source); })())))) {
// line 72
echo " ";
$context["mealArray"] = twig_array_merge((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 72, $this->source); })()), [0 => (isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 72, $this->source); })())]);
// line 73
echo " ";
}
// line 74
echo " ";
} else {
// line 75
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 75, $this->source); })()), "getValidMeals", [0 => 0], "method", false, false, false, 75);
// line 76
echo " ";
}
// line 77
echo "
";
// line 78
$context["images"] = (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 78, $this->source); })()))) ? ($this->env->getFunction('demi_getRoomPictures')->getCallable()((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 78, $this->source); })()), (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 78, $this->source); })()))) : ([]));
// line 79
echo "
<div id=\"room-row-collapse-parent-";
// line 80
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 80, $this->source); })()), "getProductId", [], "method", false, false, false, 80), "html", null, true);
echo "\"
class=\"js-room-selection__room\"
data-availability-reference-id=\"";
// line 82
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "getAvailabilityReference", [], "method", false, false, false, 82) === "Service")) ? (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "getServiceId", [], "method", false, false, false, 82)) : (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "getProductId", [], "method", false, false, false, 82))), "html", null, true);
echo "\"
data-room-id=\"";
// line 83
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 83, $this->source); })()), "getProductId", [], "method", false, false, false, 83), "html", null, true);
echo "\"
data-tracking-variant=\"";
// line 84
echo $this->env->getFunction('demi_impressionVariant')->getCallable()((((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 84, $this->source); })())) ? ((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 84, $this->source); })())) : ((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 84, $this->source); })()))), (isset($context["tvbPackage"]) || array_key_exists("tvbPackage", $context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.', 84, $this->source); })()));
echo "\"
data-tracking-variant-id=\"";
// line 85
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 85, $this->source); })()), "getProductId", [], "method", false, false, false, 85), "html", null, true);
echo "\"
data-settler-code=\"";
// line 86
echo twig_escape_filter($this->env, (isset($context["settlerCode"]) || array_key_exists("settlerCode", $context) ? $context["settlerCode"] : (function () { throw new RuntimeError('Variable "settlerCode" does not exist.', 86, $this->source); })()), "html", null, true);
echo "\"
data-booking-type=\"";
// line 87
echo ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 87, $this->source); })()), "getBookable", [], "method", false, false, false, 87)) ? ("bookable") : ("onrequest"));
echo "\">
<div class=\"card box-shadow mt-3 ";
// line 88
echo (((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 88, $this->source); })())) ? ("js-room-selection__room-row") : ("z-1"));
echo "\"
";
// line 89
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 89, $this->source); })())) {
// line 90
echo " ";
if (((twig_test_iterable((isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 90, $this->source); })())) && twig_test_iterable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 90, $this->source); })()), "products", [], "array", false, false, false, 90))) && twig_test_iterable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 90, $this->source); })()), "roomRow", [], "array", false, false, false, 90)))) {
// line 91
echo " ";
$context["done"] = false;
// line 92
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 92, $this->source); })()), "products", [], "array", false, false, false, 92));
foreach ($context['_seq'] as $context["productIndex"] => $context["product"]) {
// line 93
echo " ";
if ( !(isset($context["done"]) || array_key_exists("done", $context) ? $context["done"] : (function () { throw new RuntimeError('Variable "done" does not exist.', 93, $this->source); })())) {
// line 94
echo " ";
$context["roomRowIndexSingleRoom"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 94, $this->source); })()), "roomRow", [], "array", false, false, false, 94), $context["productIndex"], [], "array", false, false, false, 94), "getIndex", [], "method", false, false, false, 94);
// line 95
echo " ";
$context["done"] = true;
// line 96
echo " ";
}
// line 97
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['productIndex'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 98
echo " ";
} else {
// line 99
echo " ";
$context["roomRowIndexSingleRoom"] = 0;
// line 100
echo " ";
}
// line 101
echo " data-room-row-id=\"";
((array_key_exists("roomRowIndexSingleRoom", $context)) ? (print (twig_escape_filter($this->env, (isset($context["roomRowIndexSingleRoom"]) || array_key_exists("roomRowIndexSingleRoom", $context) ? $context["roomRowIndexSingleRoom"] : (function () { throw new RuntimeError('Variable "roomRowIndexSingleRoom" does not exist.', 101, $this->source); })()), "html", null, true))) : (print (0)));
echo "\"
data-initial-price=\"";
// line 102
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 102, $this->source); })()), 2, ".", ""), "html", null, true);
echo "\"
";
// line 103
if (((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 103, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 103, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 103) > twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 103, $this->source); })()), "getPrice", [], "method", false, false, false, 103)))) {
// line 104
echo " data-initial-price-before-special=\"";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 104, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 104), 2, ".", ""), "html", null, true);
echo "\"
";
}
// line 106
echo " data-room-row-title=\"";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 106, $this->source); })()));
echo "\"
";
}
// line 108
echo " >
<section class=\"teaser teaser--body-padding\">
<div class=\"row row--gutter-width-10\">
<div class=\"col-4 d-flex flex-column\">
";
// line 115
if ((((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 115, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 115, $this->source); })()), "getSpecialPriceType", [], "method", false, false, false, 115) === "None")) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 115, $this->source); })()), "getSpecialPriceName", [], "method", false, false, false, 115)))) {
// line 116
echo " <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
";
// line 117
if (((twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitPay", [], "method", false, false, false, 117) && twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitStay", [], "method", false, false, false, 117)) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitPay", [], "method", false, false, false, 117) != twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitStay", [], "method", false, false, false, 117)))) {
// line 118
echo " ";
echo $this->env->getFunction('demi_fillTranslation')->getCallable()(["[STAY]" => twig_get_attribute($this->env, $this->source, // line 119
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 119, $this->source); })()), "getSplitStay", [], "method", false, false, false, 119), "[PAY]" => twig_get_attribute($this->env, $this->source, // line 120
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 120, $this->source); })()), "getSplitPay", [], "method", false, false, false, 120)], "demi.price-special-type.splitpay");
// line 121
echo "
";
} else {
// line 123
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 123, $this->source); })()), "getSpecialPriceName", [], "method", false, false, false, 123), "html", null, true);
echo "
";
}
// line 125
echo " </div>
";
}
// line 127
echo "
";
// line 128
if (((((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()))) && twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceType", [], "method", false, false, false, 128)) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceType", [], "method", false, false, false, 128) != twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceName", [], "method", false, false, false, 128))) && !(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceType", [], "method", false, false, false, 128) === "None"))) {
// line 129
echo " <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("demi.price-special-type." . twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 130, $this->source); })()), "getSpecialPriceType", [], "method", false, false, false, 130)))), "html", null, true);
echo "
</div>
";
}
// line 133
echo "
";
// line 134
$context["galUrl"] = (("#" . (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 134, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 134, $this->source); })()), "getId", [], "method", false, false, false, 134)) : (""))) . "-imgs-overlay");
// line 135
echo " ";
if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 135, $this->source); })())) == 0)) {
// line 136
echo " ";
$context["images"] = [0 => $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getTeaserFallbackImage", [])];
// line 137
echo " ";
$context["galUrl"] = "";
// line 138
echo " ";
}
// line 139
echo "
<button type=\"button\" class=\"teaser__img btn-no-styling js-overlay__toggle figure js-tracking--click-piwik\"
data-target=\"";
// line 141
echo twig_escape_filter($this->env, (isset($context["galUrl"]) || array_key_exists("galUrl", $context) ? $context["galUrl"] : (function () { throw new RuntimeError('Variable "galUrl" does not exist.', 141, $this->source); })()), "html", null, true);
echo "\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\"
";
// line 144
if (twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 144, $this->source); })()), 0, [], "array", false, false, false, 144)) {
// line 145
echo " style=\"background-image:url(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 145, $this->source); })()), 0, [], "array", false, false, false, 145), "getThumbnail", [0 => "demi-mobile-room-teaser"], "method", false, false, false, 145), "html", null, true);
echo ");\">
";
// line 146
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 146, $this->source); })()), 0, [], "array", false, false, false, 146), "getThumbnail", [0 => "demi-mobile-room-teaser"], "method", false, false, false, 146), "getHTML", [0 => ["imgAttributes" => ["class" => "sr-only", "alt" => (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.image-alt-prefix") . " ") . (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 146, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 146, $this->source); })()), "getName", [], "method", false, false, false, 146)) : (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 146, $this->source); })()), "getDescription", [], "method", false, false, false, 146))))]]], "method", false, false, false, 146);
echo "
";
// line 147
if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 147, $this->source); })())) > 1)) {
// line 148
echo " <span class=\"figure__overlay p-1\">1/";
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 148, $this->source); })())), "html", null, true);
echo "</span>
";
}
// line 150
echo " ";
}
// line 151
echo " </button>
</div>
<div class=\"col-8 teaser__body collapsed js-tracking--click-piwik\"
data-toggle=\"collapse\"
data-target=\"#detail-";
// line 156
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 156, $this->source); })()), "html", null, true);
echo "\"
data-tracking-category=\"Product\"
data-tracking-action=\"click detail\"
data-tracking-label=\"";
// line 159
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 159, $this->source); })()), "html", null, true);
echo "\"
>
<div class=\"teaser__main-body\">
<h3 class=\"mb-1 text-primary\">
<a href=\"#detail-";
// line 165
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 165, $this->source); })()), "html", null, true);
echo "\"
aria-controls=\"detail-";
// line 166
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 166, $this->source); })()), "html", null, true);
echo "\"
aria-expanded=\"false\"
data-toggle=\"collapse\"
class=\"collapsed\"
>";
// line 170
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 170, $this->source); })()), "html", null, true);
echo "</a>
</h3>
";
// line 173
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 173, $this->source); })())) {
// line 174
echo "
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\"
aria-hidden=\"true\"></div>
<div class=\"media-body\">
";
// line 181
if ( !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 181, $this->source); })()))) {
// line 182
echo " ";
$context["adults"] = twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 182, $this->source); })()), "getAdults", [], "method", false, false, false, 182);
// line 183
echo " ";
$context["children"] = twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 183, $this->source); })()), "getChildAges", [], "method", false, false, false, 183));
// line 184
echo " ";
$context["adultsStr"] = ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 184, $this->source); })()) > 1)) ? ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 184, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adults"))) : ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 184, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adult"))));
// line 185
echo " ";
$context["childrenStr"] = ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 185, $this->source); })()) > 1)) ? ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 185, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.children"))) : ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 185, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.child"))));
// line 186
echo "
";
} else {
// line 188
echo " ";
$context["adultsStr"] = ((((twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 188, $this->source); })()), "getBedsMin", [], "method", false, false, false, 188) . "-") . twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 188, $this->source); })()), "getBedsMax", [], "method", false, false, false, 188)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.persons"));
// line 189
echo " ";
}
// line 190
echo " ";
echo twig_escape_filter($this->env, (isset($context["adultsStr"]) || array_key_exists("adultsStr", $context) ? $context["adultsStr"] : (function () { throw new RuntimeError('Variable "adultsStr" does not exist.', 190, $this->source); })()), "html", null, true);
echo "
";
// line 191
if ((array_key_exists("children", $context) && (twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 191, $this->source); })())) > 0))) {
// line 192
echo " , ";
echo twig_escape_filter($this->env, (isset($context["childrenStr"]) || array_key_exists("childrenStr", $context) ? $context["childrenStr"] : (function () { throw new RuntimeError('Variable "childrenStr" does not exist.', 192, $this->source); })()), "html", null, true);
echo "
";
}
// line 194
echo " </div>
</div>
</div>
";
}
// line 199
echo "
";
// line 200
if ((isset($context["showVacancy"]) || array_key_exists("showVacancy", $context) ? $context["showVacancy"] : (function () { throw new RuntimeError('Variable "showVacancy" does not exist.', 200, $this->source); })())) {
// line 201
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/elements/vacancy-info.html.twig", ["vacancyCount" => (isset($context["vacancyCount"]) || array_key_exists("vacancyCount", $context) ? $context["vacancyCount"] : (function () { throw new RuntimeError('Variable "vacancyCount" does not exist.', 201, $this->source); })()), "tvbPackage" => (isset($context["tvbPackage"]) || array_key_exists("tvbPackage", $context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.', 201, $this->source); })())]);
echo "
";
}
// line 203
echo " </div>
";
// line 205
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 205, $this->source); })())) {
// line 206
echo " <hr class=\"my-1\">
<div>
";
// line 209
if ((array_key_exists("liveMealObj", $context) && !twig_test_empty((isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 209, $this->source); })())))) {
// line 210
echo " <div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
";
// line 212
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 212, $this->source); })()), "getText", [], "method", false, false, false, 212), "html", null, true);
echo "
</span>
";
// line 215
if ((twig_length_filter($this->env, (isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 215, $this->source); })())) > 1)) {
// line 216
echo " <label for=\"meal-selector-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 216, $this->source); })()), "getProductId", [], "method", false, false, false, 216), "html", null, true);
echo "\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"";
// line 219
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"
aria-label=\"";
// line 220
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"></span>
</label>
";
}
// line 223
echo " </div>
";
}
// line 225
echo "
<div class=\"row align-items-baseline\">
<div class=\"col\">
";
// line 228
if (((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 228, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 228, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 228) > twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 228, $this->source); })()), "getPrice", [], "method", false, false, false, 228)))) {
// line 229
echo " <span class=\"sr-only\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.old-price"), "html", null, true);
echo "</span>
<s class=\"text-muted js-room-selection__price-before-special\">";
// line 230
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 230, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 230), (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 230, $this->source); })()));
echo "</s>
";
}
// line 232
echo "
";
// line 233
if (array_key_exists("priceInfoText", $context)) {
// line 234
echo " <div class=\"small text-muted\">
";
// line 235
echo twig_escape_filter($this->env, (isset($context["priceInfoText"]) || array_key_exists("priceInfoText", $context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.', 235, $this->source); })()), "html", null, true);
echo "
</div>
";
}
// line 238
echo " </div>
";
// line 240
if (( !(null === (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 240, $this->source); })())) && ((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 240, $this->source); })()) > 0))) {
// line 241
echo " <strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
";
// line 244
if (twig_test_empty((isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 244, $this->source); })()))) {
// line 245
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.price-from-short"), "html", null, true);
echo "
";
}
// line 246
echo " ";
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 246, $this->source); })()), (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 246, $this->source); })()));
echo "
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"";
// line 250
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"
title=\"";
// line 251
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"></span>
</span>
</span>
";
// line 255
if ((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 255, $this->source); })())))) {
// line 256
echo " <button type=\"button\" data-target=\"#price-info-";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 256, $this->source); })()), "html", null, true);
echo "-room-row-0\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium js-tracking--click-piwik\"
data-tracking-category=\"Product\"
data-tracking-action=\"click price\"
data-tracking-label=\"";
// line 260
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 260, $this->source); })()), "html", null, true);
echo "\"
>
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"";
// line 263
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"
aria-label=\"";
// line 264
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"></span>
</button>
";
}
// line 267
echo " </strong>
";
}
// line 269
echo " </div>
</div>
";
}
// line 272
echo " <a class=\"teaser__collapse-arrow collapsed demi-icon demi-icon-chevron-down\"
aria-expanded=\"false\"
aria-controls=\"detail-";
// line 274
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 274, $this->source); })()), "html", null, true);
echo "\"
href=\"#detail-";
// line 275
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 275, $this->source); })()), "html", null, true);
echo "\"
data-toggle=\"collapse\"
title=\"";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.show-details"), "html", null, true);
echo "\"
aria-label=\"";
// line 278
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.show-details"), "html", null, true);
echo "\"></a>
</div>
</div>
</section>
";
// line 285
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig", ["accommodationProduct" => // line 286
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 286, $this->source); })()), "images" => // line 287
(isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 287, $this->source); })()), "availabilityIsChecked" => // line 288
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 288, $this->source); })()), "dateFrom" => twig_get_attribute($this->env, $this->source, // line 289
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 289, $this->source); })()), "getDateFrom", [], "method", false, false, false, 289)]);
// line 290
echo "
";
// line 293
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 293, $this->source); })())) {
// line 294
echo " <div class=\"card-body\">
";
// line 295
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig", ["accommodationProduct" => // line 296
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 296, $this->source); })()), "product" => // line 297
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 297, $this->source); })()), "mealArray" => // line 298
(isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 298, $this->source); })()), "liveMealObj" => (( // line 299
array_key_exists("liveMealObj", $context)) ? ((isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 299, $this->source); })())) : (null)), "availabilityIsChecked" => // line 300
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 300, $this->source); })()), "promotionText" => (( // line 301
array_key_exists("promotionText", $context)) ? ((isset($context["promotionText"]) || array_key_exists("promotionText", $context) ? $context["promotionText"] : (function () { throw new RuntimeError('Variable "promotionText" does not exist.', 301, $this->source); })())) : (null))]);
// line 302
echo "
</div>
";
// line 305
if ((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 305, $this->source); })())))) {
// line 306
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/price-info.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "id" => (("price-info-" . // line 308
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 308, $this->source); })())) . "-room-row-0"), "priceData" => // line 309
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 309, $this->source); })()), "accommodationProduct" => // line 310
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 310, $this->source); })()), "roomRow" => // line 311
(isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 311, $this->source); })()), "roomRowIndex" => 0, "productSet" => // line 313
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 313, $this->source); })())]);
// line 314
echo "
<script>
_config.ajaxOverlay = true;
</script>
";
}
// line 320
echo " ";
}
// line 321
echo "
</div>
";
// line 326
if ( !(isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 326, $this->source); })())) {
// line 327
echo " <div class=\"teaser-detail mx-2\">
<div class=\"card box-shadow\">
";
// line 329
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 329, $this->source); })()), "products", [], "array", false, false, false, 329));
$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["productIndex"] => $context["product"]) {
// line 330
echo " ";
$context["roomRow"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 330, $this->source); })()), "roomRow", [], "array", false, false, false, 330), $context["productIndex"], [], "array", false, false, false, 330), "getRowObject", [], "method", false, false, false, 330);
// line 331
echo " ";
$context["accommodationProduct"] = Pimcore\Model\DataObject::getById(twig_get_attribute($this->env, $this->source, $context["product"], "getProductId", [], "method", false, false, false, 331));
// line 332
echo " ";
$context["id"] = (((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 332, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 332, $this->source); })()), "getId", [], "method", false, false, false, 332)) : (twig_get_attribute($this->env, $this->source, $context["product"], "getProductId", [], "method", false, false, false, 332)));
// line 333
echo " ";
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 333, $this->source); })()), "getName", [], "method", false, false, false, 333);
// line 334
echo " ";
if (( !(null === $context["product"]) && !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 334, $this->source); })())))) {
// line 335
echo " ";
$context["priceData"] = twig_get_attribute($this->env, $this->source, $context["product"], "getPriceData", [], "method", false, false, false, 335);
// line 336
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, false, 336);
// line 337
echo " ";
$context["showVacancy"] = true;
// line 338
echo " ";
$context["showSelection"] = true;
// line 339
echo " ";
$context["vacancyCount"] = twig_get_attribute($this->env, $this->source, $context["product"], "getUnits", [], "method", false, false, false, 339);
// line 340
echo "
";
} elseif ( !(null === // line 341
$context["product"])) {
// line 342
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, $context["product"], "getBasePrice", [], "method", false, false, false, 342);
// line 343
echo " ";
$context["showVacancy"] = false;
// line 344
echo " ";
$context["showSelection"] = false;
// line 345
echo " ";
$context["vacancyCount"] = 0;
// line 346
echo "
";
// line 347
$context["priceInfo"] = twig_get_attribute($this->env, $this->source, $context["product"], "getPriceInfo", [], "method", false, false, false, 347);
// line 348
echo " ";
$context["priceInfoText"] = twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/priceInfoStr.html.twig", ["type" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 348, $this->source); })()), "type", [], "array", false, false, false, 348), "nights" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 348, $this->source); })()), "nights", [], "array", false, false, false, 348)]);
// line 349
echo " ";
}
// line 350
echo "
";
// line 352
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 352, $this->source); })()), "getDateFrom", [], "method", false, false, false, 352))) {
// line 353
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 353, $this->source); })()), "ElementsDemiPackageSearchParameter")) {
// line 354
echo " ";
$context["mealArray"] = [];
// line 355
echo " ";
} else {
// line 356
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 356, $this->source); })()), "getValidMeals", [0 => twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 356, $this->source); })()), "getPeriod", [], "method", false, false, false, 356), 1 => (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 356, $this->source); })())], "method", false, false, false, 356);
// line 357
echo " ";
}
// line 358
echo " ";
$context["liveMeal"] = twig_get_attribute($this->env, $this->source, $context["product"], "getMealCode", [], "method", false, false, false, 358);
// line 359
echo " ";
$context["liveMealObj"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getClassByStringAndIdentifier("\\Elements\\Demi\\Model\\MealType", "getByFid", (isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 359, $this->source); })()));
// line 360
echo " ";
if (!twig_in_filter((isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 360, $this->source); })()), twig_get_array_keys_filter((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 360, $this->source); })())))) {
// line 361
echo " ";
$context["mealArray"] = twig_array_merge((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 361, $this->source); })()), [0 => (isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 361, $this->source); })())]);
// line 362
echo " ";
}
// line 363
echo " ";
} else {
// line 364
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 364, $this->source); })()), "getValidMeals", [0 => 0, 1 => (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 364, $this->source); })())], "method", false, false, false, 364);
// line 365
echo " ";
}
// line 366
echo "
";
// line 368
$context["serviceImages"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 368, $this->source); })()), "getService", [], "method", false, false, false, 368), "getImages", [0 => null, 1 => (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 368, $this->source); })())], "method", false, false, false, 368);
// line 369
echo " ";
$context["productImages"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 369, $this->source); })()), "getImages", [0 => null, 1 => (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 369, $this->source); })())], "method", false, false, false, 369);
// line 370
echo " ";
$context["images"] = twig_array_merge((isset($context["productImages"]) || array_key_exists("productImages", $context) ? $context["productImages"] : (function () { throw new RuntimeError('Variable "productImages" does not exist.', 370, $this->source); })()), (isset($context["serviceImages"]) || array_key_exists("serviceImages", $context) ? $context["serviceImages"] : (function () { throw new RuntimeError('Variable "serviceImages" does not exist.', 370, $this->source); })()));
// line 371
echo "
<div class=\"js-room-selection__room-row\"
data-room-row-id=\"";
// line 373
echo twig_escape_filter($this->env, $context["productIndex"], "html", null, true);
echo "\"
data-initial-price=\"";
// line 374
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, false, 374), 2, ".", ""), "html", null, true);
echo "\"
";
// line 375
if (((isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 375, $this->source); })()) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 375, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 375) > twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, false, 375)))) {
// line 376
echo " data-initial-price-before-special=\"";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 376, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 376), 2, ".", ""), "html", null, true);
echo "\"
";
}
// line 378
echo " data-room-row-title=\"";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 378, $this->source); })()));
echo "\">
";
// line 379
if ($context["productIndex"]) {
// line 380
echo " <hr class=\"m-0\">
";
}
// line 382
echo "
<div class=\"card-body p-2\">
";
// line 384
$context["translation"] = ("demi.detail.room.select-headline-" . twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 384, $this->source); })()), "getAccommodationType", [], "method", false, false, false, 384)));
// line 385
echo " <h4 class=\"h3 font-medium\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 385, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ($context["productIndex"] + 1), "html", null, true);
echo "</h4>
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\" aria-hidden=\"true\"></div>
<div class=\"media-body\">
";
// line 392
if ( !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 392, $this->source); })()))) {
// line 393
echo " ";
$context["adults"] = twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 393, $this->source); })()), "getAdults", [], "method", false, false, false, 393);
// line 394
echo " ";
$context["children"] = twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 394, $this->source); })()), "getChildAges", [], "method", false, false, false, 394));
// line 395
echo " ";
$context["adultsStr"] = ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 395, $this->source); })()) > 1)) ? ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 395, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adults"))) : ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 395, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adult"))));
// line 396
echo " ";
$context["childrenStr"] = ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 396, $this->source); })()) > 1)) ? ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 396, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.children"))) : ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 396, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.child"))));
// line 397
echo "
";
} else {
// line 399
echo " ";
$context["adultsStr"] = (((twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 399, $this->source); })()), "getBedsMin", [], "method", false, false, false, 399) . "-") . twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 399, $this->source); })()), "getBedsMax", [], "method", false, false, false, 399)) . twig_get_attribute($this->env, $this->source, " ", "translate", [0 => "demi.detail.room.occupancy.persons"], "method", false, false, false, 399));
// line 400
echo " ";
}
// line 401
echo "
";
// line 402
echo twig_escape_filter($this->env, (isset($context["adultsStr"]) || array_key_exists("adultsStr", $context) ? $context["adultsStr"] : (function () { throw new RuntimeError('Variable "adultsStr" does not exist.', 402, $this->source); })()), "html", null, true);
echo "
";
// line 403
if (((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 403, $this->source); })()) > 0)) {
// line 404
echo " , ";
echo twig_escape_filter($this->env, (isset($context["childrenStr"]) || array_key_exists("childrenStr", $context) ? $context["childrenStr"] : (function () { throw new RuntimeError('Variable "childrenStr" does not exist.', 404, $this->source); })()), "html", null, true);
echo "
";
}
// line 406
echo " </div>
</div>
</div>
";
// line 411
if ((isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 411, $this->source); })())) {
// line 412
echo " <div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
";
// line 414
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 414, $this->source); })()), "getText", [], "method", false, false, false, 414), "html", null, true);
echo "
</span>
";
// line 417
if ((twig_length_filter($this->env, (isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 417, $this->source); })())) > 1)) {
// line 418
echo " <label for=\"meal-selector-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "getProductId", [], "method", false, false, false, 418), "html", null, true);
echo "\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"";
// line 421
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"
aria-label=\"";
// line 422
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"></span>
</label>
";
}
// line 425
echo " </div>
";
}
// line 427
echo "
<div class=\"row align-items-baseline\">
<div class=\"col\">
";
// line 430
if (( !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 430, $this->source); })())) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 430, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 430) > twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, false, 430)))) {
// line 431
echo " <span class=\"sr-only\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.old-price"), "html", null, true);
echo "</span>
<s class=\"text-muted js-room-selection__price-before-special\">";
// line 432
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 432, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, false, 432), (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 432, $this->source); })()));
echo "</s>
";
}
// line 434
echo "
";
// line 435
if ( !twig_test_empty((isset($context["priceInfoText"]) || array_key_exists("priceInfoText", $context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.', 435, $this->source); })()))) {
// line 436
echo " <div class=\"small text-muted\">
";
// line 437
echo twig_escape_filter($this->env, (isset($context["priceInfoText"]) || array_key_exists("priceInfoText", $context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.', 437, $this->source); })()), "html", null, true);
echo "
</div>
";
}
// line 440
echo " </div>
";
// line 442
if ((array_key_exists("price", $context) && ((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 442, $this->source); })()) > 0))) {
// line 443
echo " <strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
";
// line 446
if ((null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 446, $this->source); })()))) {
// line 447
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.price-from-short"), "html", null, true);
echo "
";
}
// line 448
echo " ";
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 448, $this->source); })()), (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 448, $this->source); })()));
echo "
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"";
// line 452
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"
title=\"";
// line 453
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"></span>
</span>
</span>
";
// line 457
if ( !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 457, $this->source); })()))) {
// line 458
echo " <button type=\"button\" data-target=\"#price-info-";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 458, $this->source); })()), "html", null, true);
echo "-room-row-";
echo twig_escape_filter($this->env, $context["productIndex"], "html", null, true);
echo "\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium\">
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"";
// line 461
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"
aria-label=\"";
// line 462
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"></span>
</button>
";
}
// line 465
echo " </strong>
";
}
// line 467
echo " </div>
<div class=\"mt-2\">
";
// line 470
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig", ["accommodationProduct" => // line 471
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 471, $this->source); })()), "product" => // line 472
$context["product"], "mealArray" => // line 473
(isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 473, $this->source); })()), "liveMealObj" => // line 474
(isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 474, $this->source); })()), "availabilityIsChecked" => // line 475
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 475, $this->source); })()), "showSelection" => // line 476
(isset($context["showSelection"]) || array_key_exists("showSelection", $context) ? $context["showSelection"] : (function () { throw new RuntimeError('Variable "showSelection" does not exist.', 476, $this->source); })()), "promotionText" => // line 477
(isset($context["promotionText"]) || array_key_exists("promotionText", $context) ? $context["promotionText"] : (function () { throw new RuntimeError('Variable "promotionText" does not exist.', 477, $this->source); })())]);
// line 478
echo "
</div>
</div>
";
// line 482
if ( !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 482, $this->source); })()))) {
// line 483
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/price-info.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "id" => ((("price-info-" . // line 486
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 486, $this->source); })())) . "-room-row-") . $context["productIndex"]), "priceData" => // line 487
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 487, $this->source); })()), "accommodationProduct" => // line 488
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 488, $this->source); })()), "roomRow" => // line 489
(isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 489, $this->source); })()), "roomRowIndex" => // line 490
$context["productIndex"], "productSet" => // line 491
$context["product"]]);
// line 492
echo "
";
}
// line 494
echo "
</div>
";
++$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['productIndex'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 498
echo " </div>
</div>
";
}
// line 501
echo "
";
// line 502
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig", ["imagesTypes" => [0 => "Service", 1 => "Product"], "accommodation" => // line 504
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 504, $this->source); })()), "accommodationProduct" => // line 505
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 505, $this->source); })()), "lazyLoadAll" => true]);
// line 507
echo "
</div>
</li>
";
}
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1186 => 507, 1184 => 505, 1183 => 504, 1182 => 502, 1179 => 501, 1174 => 498, 1157 => 494, 1153 => 492, 1151 => 491, 1150 => 490, 1149 => 489, 1148 => 488, 1147 => 487, 1146 => 486, 1144 => 483, 1142 => 482, 1136 => 478, 1134 => 477, 1133 => 476, 1132 => 475, 1131 => 474, 1130 => 473, 1129 => 472, 1128 => 471, 1127 => 470, 1122 => 467, 1118 => 465, 1112 => 462, 1108 => 461, 1099 => 458, 1097 => 457, 1090 => 453, 1086 => 452, 1078 => 448, 1072 => 447, 1070 => 446, 1065 => 443, 1063 => 442, 1059 => 440, 1053 => 437, 1050 => 436, 1048 => 435, 1045 => 434, 1040 => 432, 1035 => 431, 1033 => 430, 1028 => 427, 1024 => 425, 1018 => 422, 1014 => 421, 1007 => 418, 1005 => 417, 999 => 414, 995 => 412, 993 => 411, 986 => 406, 980 => 404, 978 => 403, 974 => 402, 971 => 401, 968 => 400, 965 => 399, 961 => 397, 958 => 396, 955 => 395, 952 => 394, 949 => 393, 947 => 392, 934 => 385, 932 => 384, 928 => 382, 924 => 380, 922 => 379, 917 => 378, 911 => 376, 909 => 375, 905 => 374, 901 => 373, 897 => 371, 894 => 370, 891 => 369, 889 => 368, 885 => 366, 882 => 365, 879 => 364, 876 => 363, 873 => 362, 870 => 361, 867 => 360, 864 => 359, 861 => 358, 858 => 357, 855 => 356, 852 => 355, 849 => 354, 846 => 353, 844 => 352, 840 => 350, 837 => 349, 834 => 348, 832 => 347, 829 => 346, 826 => 345, 823 => 344, 820 => 343, 817 => 342, 815 => 341, 812 => 340, 809 => 339, 806 => 338, 803 => 337, 800 => 336, 797 => 335, 794 => 334, 791 => 333, 788 => 332, 785 => 331, 782 => 330, 765 => 329, 761 => 327, 759 => 326, 752 => 321, 749 => 320, 741 => 314, 739 => 313, 738 => 311, 737 => 310, 736 => 309, 735 => 308, 733 => 306, 731 => 305, 726 => 302, 724 => 301, 723 => 300, 722 => 299, 721 => 298, 720 => 297, 719 => 296, 718 => 295, 715 => 294, 713 => 293, 708 => 290, 706 => 289, 705 => 288, 704 => 287, 703 => 286, 702 => 285, 692 => 278, 688 => 277, 683 => 275, 679 => 274, 675 => 272, 670 => 269, 666 => 267, 660 => 264, 656 => 263, 650 => 260, 642 => 256, 640 => 255, 633 => 251, 629 => 250, 621 => 246, 615 => 245, 613 => 244, 608 => 241, 606 => 240, 602 => 238, 596 => 235, 593 => 234, 591 => 233, 588 => 232, 583 => 230, 578 => 229, 576 => 228, 571 => 225, 567 => 223, 561 => 220, 557 => 219, 550 => 216, 548 => 215, 542 => 212, 538 => 210, 536 => 209, 531 => 206, 529 => 205, 525 => 203, 519 => 201, 517 => 200, 514 => 199, 507 => 194, 501 => 192, 499 => 191, 494 => 190, 491 => 189, 488 => 188, 484 => 186, 481 => 185, 478 => 184, 475 => 183, 472 => 182, 470 => 181, 461 => 174, 459 => 173, 453 => 170, 446 => 166, 442 => 165, 433 => 159, 427 => 156, 420 => 151, 417 => 150, 411 => 148, 409 => 147, 405 => 146, 400 => 145, 398 => 144, 392 => 141, 388 => 139, 385 => 138, 382 => 137, 379 => 136, 376 => 135, 374 => 134, 371 => 133, 365 => 130, 362 => 129, 360 => 128, 357 => 127, 353 => 125, 347 => 123, 343 => 121, 341 => 120, 340 => 119, 338 => 118, 336 => 117, 333 => 116, 331 => 115, 322 => 108, 316 => 106, 310 => 104, 308 => 103, 304 => 102, 299 => 101, 296 => 100, 293 => 99, 290 => 98, 284 => 97, 281 => 96, 278 => 95, 275 => 94, 272 => 93, 267 => 92, 264 => 91, 261 => 90, 259 => 89, 255 => 88, 251 => 87, 247 => 86, 243 => 85, 239 => 84, 235 => 83, 231 => 82, 226 => 80, 223 => 79, 221 => 78, 218 => 77, 215 => 76, 212 => 75, 209 => 74, 206 => 73, 203 => 72, 200 => 71, 197 => 70, 194 => 69, 191 => 68, 188 => 67, 185 => 66, 182 => 65, 179 => 64, 176 => 63, 173 => 62, 171 => 61, 167 => 59, 164 => 58, 161 => 57, 158 => 56, 155 => 55, 153 => 54, 150 => 53, 147 => 52, 144 => 51, 141 => 50, 138 => 49, 136 => 48, 132 => 46, 129 => 45, 126 => 44, 123 => 43, 120 => 42, 117 => 41, 114 => 40, 112 => 39, 109 => 38, 106 => 37, 103 => 36, 100 => 35, 97 => 34, 94 => 33, 92 => 32, 89 => 31, 86 => 30, 84 => 29, 81 => 28, 78 => 27, 75 => 26, 72 => 25, 69 => 24, 66 => 23, 64 => 22, 61 => 21, 59 => 20, 56 => 19, 52 => 17, 48 => 15, 46 => 14, 43 => 13,);
}
public function getSourceContext()
{
return new Source("{#
/**
* @var \\\\Pimcore\\\\Templating\\\\GlobalVariables app
* #
* @var productData array
* @var accommodation \\\\Elements\\\\Demi\\\\Model\\\\AccommodationServiceProvider
* @var settlerCode string
* @var bookOnRequest bool
* @var availabilityIsChecked bool
* @var hasSingleRoomRow bool
* @var searchParam \\\\Elements\\\\Demi\\\\Accommodation\\\\Search\\\\Parameter
*/ #}
{% if searchParam is not defined or searchParam.getDateFrom() is empty %}
{% set fromDate = null %}
{% else %}
{% set fromDate = demi_getSearchFrom() %}
{% endif %}
{% if productData is iterable and productData.roomRow[0] is defined and productData.products[0] is defined %}
{% set possibleIndices = productData.roomRow | keys %}
{% set i = possibleIndices | first %}
{% set roomRow = productData.roomRow[i].getRowObject() %}
{% set product = productData.products[i] %}
{% set accommodationProduct = pimcore_object(product.getProductId()) %}
{% if accommodationProduct and accommodationProduct.isPublished() %}
<li>
{% set id = product.getProductId() %}
{% set title = accommodationProduct.getName() %}
{% if product is not null and roomRow is not null %}
{% set priceData = product.getPriceData() %}
{% set price = product.getPrice() %}
{% set showVacancy = true %}
{% set showSelection = true %}
{% set vacancyCount = product.getUnits() %}
{% set promotionText = null %}
{% if product.getCancellationInformation() is not empty %}
{% set cancellationInformation = product.getCancellationInformation() %}
{% set displayInfo = demi_getCancellationDisplayInfo(cancellationInformation,searchParam.getDateFrom()) %}
{% set freeCancelText = displayInfo.getFreeCancellationText() %}
{% set promotionText = freeCancelText == \"\" ? null : freeCancelText %}
{% endif %}
{% elseif product is not null %}
{% set price = product.getBasePrice() %}
{% set showVacancy = false %}
{% set showSelection = false %}
{% set vacancyCount = 0 %}
{% set priceInfo = product.getPriceInfo() %}
{% if priceInfo is not empty %}
{% set priceInfoText = include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig', {'type': priceInfo['type'], 'nights': priceInfo['nights']}) %}
{% endif %}
{% endif %}
{% if searchParam.getDateFrom() is not null %}
{% if searchParam is instanceof('\\Elements\\Demi\\Lts\\Accommodation\\Search\\Parameter') %}
{% set mealArray = product.getPossibleMealCodes() %}
{% elseif searchParam is instanceof('\\Elements\\Demi\\Package\\Search\\Parameter') %}
{% set mealArray = [] %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(searchParam.getPeriod(), searchParam.getDateFrom()) %}
{% endif %}
{% set liveMeal = product.getMealCode() %}
{% set liveMealObj = demi_getClassByStringAndIdentifier(\"\\\\Elements\\\\Demi\\\\Model\\\\MealType\", \"getByFid\", liveMeal) %}
{% if liveMeal not in mealArray|keys %}
{% set mealArray = mealArray|merge([liveMealObj]) %}
{% endif %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(0) %}
{% endif %}
{% set images = accommodationProduct is not null ? demi_getRoomPictures(accommodationProduct,fromDate) : [] %}
<div id=\"room-row-collapse-parent-{{ product.getProductId() }}\"
class=\"js-room-selection__room\"
data-availability-reference-id=\"{{ product.getAvailabilityReference() is same as \"Service\" ? product.getServiceId() : product.getProductId() }}\"
data-room-id=\"{{ product.getProductId() }}\"
data-tracking-variant=\"{{ demi_impressionVariant(accommodationProduct ?: product, tvbPackage) }}\"
data-tracking-variant-id=\"{{ product.getProductId() }}\"
data-settler-code=\"{{ settlerCode }}\"
data-booking-type=\"{{ product.getBookable() ? 'bookable' : 'onrequest' }}\">
<div class=\"card box-shadow mt-3 {{ hasSingleRoomRow ? 'js-room-selection__room-row' : 'z-1' }}\"
{% if hasSingleRoomRow %}
{% if productData is iterable and productData['products'] is iterable and productData['roomRow'] is iterable %}
{% set done = false %}
{% for productIndex, product in productData['products'] %}
{% if not done %}
{% set roomRowIndexSingleRoom = productData['roomRow'][productIndex].getIndex() %}
{% set done = true %}
{% endif %}
{% endfor %}
{% else %}
{% set roomRowIndexSingleRoom = 0 %}
{% endif %}
data-room-row-id=\"{{ roomRowIndexSingleRoom is defined ? roomRowIndexSingleRoom : 0 }}\"
data-initial-price=\"{{ price | number_format(2, '.', '') }}\"
{% if priceData is defined and priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
data-initial-price-before-special=\"{{ priceData.getPriceBeforeSpecial() | number_format(2, '.', '') }}\"
{% endif %}
data-room-row-title=\"{{ title|escape }}\"
{% endif %}
>
<section class=\"teaser teaser--body-padding\">
<div class=\"row row--gutter-width-10\">
<div class=\"col-4 d-flex flex-column\">
{% if priceData is defined and priceData is not null and priceData.getSpecialPriceType() is same as \"None\" and priceData.getSpecialPriceName() is not empty %}
<div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
{% if priceData.getSplitPay() and priceData.getSplitStay() and priceData.getSplitPay() != priceData.getSplitStay() %}
{{ demi_fillTranslation({
'[STAY]' : priceData.getSplitStay(),
'[PAY]' : priceData.getSplitPay()
}, 'demi.price-special-type.splitpay') }}
{% else %}
{{ priceData.getSpecialPriceName() }}
{% endif %}
</div>
{% endif %}
{% if priceData is defined and priceData is not null and priceData.getSpecialPriceType() and priceData.getSpecialPriceType()!= priceData.getSpecialPriceName() and priceData.getSpecialPriceType() is not same as \"None\" %}
<div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
{{ (\"demi.price-special-type.\" ~ priceData.getSpecialPriceType() | lower) | trans }}
</div>
{% endif %}
{% set galUrl = '#' ~ (accommodationProduct is not null ? accommodationProduct.getId() : '') ~ '-imgs-overlay' %}
{% if images|length == 0 %}
{% set images = [demi_core_configuration('getTeaserFallbackImage',[])] %}
{% set galUrl = '' %}
{% endif %}
<button type=\"button\" class=\"teaser__img btn-no-styling js-overlay__toggle figure js-tracking--click-piwik\"
data-target=\"{{ galUrl }}\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\"
{% if (images[0]) %}
style=\"background-image:url({{ images[0].getThumbnail('demi-mobile-room-teaser') }});\">
{{ images[0].getThumbnail('demi-mobile-room-teaser').getHTML({ 'imgAttributes': {'class': 'sr-only', 'alt': 'demi.image-alt-prefix'|trans ~ ' '~ (accommodationProduct is not null ? accommodationProduct.getName() : product.getDescription()) }})|raw }}
{% if images|length > 1 %}
<span class=\"figure__overlay p-1\">1/{{ images|length }}</span>
{% endif %}
{% endif %}
</button>
</div>
<div class=\"col-8 teaser__body collapsed js-tracking--click-piwik\"
data-toggle=\"collapse\"
data-target=\"#detail-{{ id }}\"
data-tracking-category=\"Product\"
data-tracking-action=\"click detail\"
data-tracking-label=\"{{ id }}\"
>
<div class=\"teaser__main-body\">
<h3 class=\"mb-1 text-primary\">
<a href=\"#detail-{{ id }}\"
aria-controls=\"detail-{{ id }}\"
aria-expanded=\"false\"
data-toggle=\"collapse\"
class=\"collapsed\"
>{{ title }}</a>
</h3>
{% if hasSingleRoomRow %}
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\"
aria-hidden=\"true\"></div>
<div class=\"media-body\">
{% if roomRow is not null %}
{% set adults = roomRow.getAdults() %}
{% set children = roomRow.getChildAges()|length %}
{% set adultsStr = adults > 1 ? adults ~ \" \" ~ 'demi.detail.room.occupancy.adults'|trans : adults ~ \" \" ~ 'demi.detail.room.occupancy.adult'|trans %}
{% set childrenStr = children > 1 ? children ~ \" \" ~ 'demi.detail.room.occupancy.children'|trans : children ~ \" \" ~ 'demi.detail.room.occupancy.child'|trans %}
{% else %}
{% set adultsStr = accommodationProduct.getBedsMin() ~ \"-\" ~ accommodationProduct.getBedsMax() ~ \" \" ~ 'demi.detail.room.occupancy.persons'|trans %}
{% endif %}
{{ adultsStr }}
{% if children is defined and children|length > 0 %}
, {{ childrenStr }}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% if showVacancy %}
{{ include('@ElementsDemiFrontend/Includes/elements/vacancy-info.html.twig', {'vacancyCount':vacancyCount, 'tvbPackage':tvbPackage}) }}
{% endif %}
</div>
{% if hasSingleRoomRow %}
<hr class=\"my-1\">
<div>
{% if liveMealObj is defined and liveMealObj is not empty %}
<div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
{{ liveMealObj.getText() }}
</span>
{% if mealArray|length > 1 %}
<label for=\"meal-selector-{{ product.getProductId() }}\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"{{ \"demi.detail.change-meal\"|trans }}\"
aria-label=\"{{ \"demi.detail.change-meal\"|trans }}\"></span>
</label>
{% endif %}
</div>
{% endif %}
<div class=\"row align-items-baseline\">
<div class=\"col\">
{% if priceData is defined and priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
<span class=\"sr-only\">{{ 'demi.detail.room.old-price'|trans }}</span>
<s class=\"text-muted js-room-selection__price-before-special\">{{ demi_paymentGetPriceObject(priceData.getPriceBeforeSpecial(), accommodation) }}</s>
{% endif %}
{% if priceInfoText is defined %}
<div class=\"small text-muted\">
{{ priceInfoText }}
</div>
{% endif %}
</div>
{% if (price is not null and price > 0) %}
<strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
{% if roomRow is empty %}
{{ 'demi.price-from-short'|trans }}
{% endif %} {{ demi_paymentGetPriceObject(price, accommodation) }}
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"{{ 'demi.content-loading'|trans }}\"
title=\"{{ 'demi.content-loading'|trans }}\"></span>
</span>
</span>
{% if priceData is defined and priceData is not null %}
<button type=\"button\" data-target=\"#price-info-{{ id }}-room-row-0\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium js-tracking--click-piwik\"
data-tracking-category=\"Product\"
data-tracking-action=\"click price\"
data-tracking-label=\"{{ id }}\"
>
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"{{ 'demi.detail.room.price-info'|trans }}\"
aria-label=\"{{ 'demi.detail.room.price-info'|trans }}\"></span>
</button>
{% endif %}
</strong>
{% endif %}
</div>
</div>
{% endif %}
<a class=\"teaser__collapse-arrow collapsed demi-icon demi-icon-chevron-down\"
aria-expanded=\"false\"
aria-controls=\"detail-{{ id }}\"
href=\"#detail-{{ id }}\"
data-toggle=\"collapse\"
title=\"{{ 'demi.detail.room.show-details'|trans }}\"
aria-label=\"{{ 'demi.detail.room.show-details'|trans }}\"></a>
</div>
</div>
</section>
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-details.html.twig\", {
\"accommodationProduct\": accommodationProduct,
\"images\": images,
\"availabilityIsChecked\": availabilityIsChecked,
\"dateFrom\": searchParam.getDateFrom()
}) }}
{% if hasSingleRoomRow %}
<div class=\"card-body\">
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig\", {
'accommodationProduct': accommodationProduct,
'product': product,
'mealArray': mealArray,
'liveMealObj': liveMealObj is defined ? liveMealObj : null,
'availabilityIsChecked': availabilityIsChecked,
'promotionText': promotionText is defined ? promotionText : null
}) }}
</div>
{% if priceData is defined and priceData is not null %}
{{ include('@ElementsDemiFrontend/Includes/overlays/price-info.html.twig', {
'title': 'demi.detail.room.price-info'|trans ,
'id': 'price-info-' ~ id ~ '-room-row-0',
'priceData': priceData,
'accommodationProduct': accommodationProduct,
'roomRow': roomRow,
'roomRowIndex': 0,
'productSet': product,
}) }}
<script>
_config.ajaxOverlay = true;
</script>
{% endif %}
{% endif %}
</div>
{% if not hasSingleRoomRow %}
<div class=\"teaser-detail mx-2\">
<div class=\"card box-shadow\">
{% for productIndex, product in productData['products'] %}
{% set roomRow = productData['roomRow'][productIndex].getRowObject() %}
{% set accommodationProduct = pimcore_object(product.getProductId()) %}
{% set id = accommodationProduct ? accommodationProduct.getId() : product.getProductId() %}
{% set title = accommodationProduct.getName() %}
{% if product is not null and roomRow is not null %}
{% set priceData = product.getPriceData() %}
{% set price = product.getPrice() %}
{% set showVacancy = true %}
{% set showSelection = true %}
{% set vacancyCount = product.getUnits() %}
{% elseif product is not null %}
{% set price = product.getBasePrice() %}
{% set showVacancy = false %}
{% set showSelection = false %}
{% set vacancyCount = 0 %}
{% set priceInfo = product.getPriceInfo() %}
{% set priceInfoText = include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig', {'type': priceInfo['type'], 'nights': priceInfo['nights']}) %}
{% endif %}
{% if searchParam.getDateFrom() is not null %}
{% if searchParam is instanceof('\\Elements\\Demi\\Package\\Search\\Parameter') %}
{% set mealArray = [] %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(searchParam.getPeriod(), fromDate) %}
{% endif %}
{% set liveMeal = product.getMealCode() %}
{% set liveMealObj = demi_getClassByStringAndIdentifier(\"\\\\Elements\\\\Demi\\\\Model\\\\MealType\", \"getByFid\", liveMeal) %}
{% if liveMeal not in mealArray|keys %}
{% set mealArray = mealArray|merge([liveMealObj]) %}
{% endif %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(0, fromDate) %}
{% endif %}
{% set serviceImages = accommodationProduct.getService().getImages(null, fromDate) %}
{% set productImages = accommodationProduct.getImages(null, fromDate) %}
{% set images = productImages|merge(serviceImages) %}
<div class=\"js-room-selection__room-row\"
data-room-row-id=\"{{ productIndex }}\"
data-initial-price=\"{{ product.getPrice() | number_format(2, '.', '') }}\"
{% if (priceData and priceData.getPriceBeforeSpecial() > product.getPrice()) %}
data-initial-price-before-special=\"{{ priceData.getPriceBeforeSpecial() | number_format(2, '.', '') }}\"
{% endif %}
data-room-row-title=\"{{ title|escape }}\">
{% if (productIndex) %}
<hr class=\"m-0\">
{% endif %}
<div class=\"card-body p-2\">
{% set translation = 'demi.detail.room.select-headline-'~ (accommodationProduct.getAccommodationType()|lower) %}
<h4 class=\"h3 font-medium\">{{ translation|trans }} {{ productIndex + 1 }}</h4>
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\" aria-hidden=\"true\"></div>
<div class=\"media-body\">
{% if roomRow is not null %}
{% set adults = roomRow.getAdults() %}
{% set children = roomRow.getChildAges()|length %}
{% set adultsStr = adults > 1 ? adults ~ \" \" ~ 'demi.detail.room.occupancy.adults'|trans : adults ~ \" \" ~ 'demi.detail.room.occupancy.adult'|trans %}
{% set childrenStr = children > 1 ? children ~ \" \" ~ 'demi.detail.room.occupancy.children'|trans : children ~ \" \" ~ 'demi.detail.room.occupancy.child'|trans %}
{% else %}
{% set adultsStr = accommodationProduct.getBedsMin() ~ \"-\" ~ accommodationProduct.getBedsMax()~ \" \".translate('demi.detail.room.occupancy.persons') %}
{% endif %}
{{ adultsStr }}
{% if (children > 0) %}
, {{ childrenStr }}
{% endif %}
</div>
</div>
</div>
{% if (liveMealObj) %}
<div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
{{ liveMealObj.getText() }}
</span>
{% if mealArray|length > 1 %}
<label for=\"meal-selector-{{ product.getProductId() }}\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"{{ 'demi.detail.change-meal'|trans }}\"
aria-label=\"{{ 'demi.detail.change-meal'|trans }}\"></span>
</label>
{% endif %}
</div>
{% endif %}
<div class=\"row align-items-baseline\">
<div class=\"col\">
{% if priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
<span class=\"sr-only\">{{ 'demi.detail.room.old-price'|trans }}</span>
<s class=\"text-muted js-room-selection__price-before-special\">{{ demi_paymentGetPriceObject(priceData.getPriceBeforeSpecial(), accommodation) }}</s>
{% endif %}
{% if priceInfoText is not empty %}
<div class=\"small text-muted\">
{{ priceInfoText }}
</div>
{% endif %}
</div>
{% if price is defined and price > 0 %}
<strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
{% if roomRow is null %}
{{ 'demi.price-from-short'|trans }}
{% endif %} {{ demi_paymentGetPriceObject(price, accommodation) }}
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"{{ 'demi.content-loading'|trans }}\"
title=\"{{ 'demi.content-loading'|trans }}\"></span>
</span>
</span>
{% if priceData is not null %}
<button type=\"button\" data-target=\"#price-info-{{ id }}-room-row-{{ productIndex }}\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium\">
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"{{ 'demi.detail.room.price-info'|trans }}\"
aria-label=\"{{ 'demi.detail.room.price-info'|trans }}\"></span>
</button>
{% endif %}
</strong>
{% endif %}
</div>
<div class=\"mt-2\">
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig\", {
'accommodationProduct': accommodationProduct,
'product': product,
'mealArray': mealArray,
'liveMealObj': liveMealObj,
'availabilityIsChecked': availabilityIsChecked,
'showSelection': showSelection,
'promotionText': promotionText
}) }}
</div>
</div>
{% if priceData is not null %}
{{ include('@ElementsDemiFrontend/Includes/overlays/price-info.html.twig',
{
'title': 'demi.detail.room.price-info'|trans,
'id': 'price-info-' ~ id ~ '-room-row-' ~ productIndex,
'priceData': priceData,
'accommodationProduct': accommodationProduct,
'roomRow': roomRow,
'roomRowIndex': productIndex,
'productSet': product
}) }}
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{{ include('@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig', {
'imagesTypes': ['Service', 'Product'],
'accommodation': accommodation,
'accommodationProduct': accommodationProduct,
'lazyLoadAll': true
}) }}
</div>
</li>
{% endif %}
{% endif %}
", "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/teaser/room-teaser.mobile.html.twig");
}
}