";
// line 15
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "slug", [], "any", false, false, false, 15) == "ferienwohnungen")) {
// line 16
echo " ";
if ( !twig_test_empty((isset($context["lodgingGroups"]) || array_key_exists("lodgingGroups", $context) ? $context["lodgingGroups"] : (function () { throw new RuntimeError('Variable "lodgingGroups" does not exist.', 16, $this->source); })()))) {
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lodgingGroups"]) || array_key_exists("lodgingGroups", $context) ? $context["lodgingGroups"] : (function () { throw new RuntimeError('Variable "lodgingGroups" does not exist.', 17, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["lodgingGroup"]) {
// line 18
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["lodgingGroup"], "name", [], "any", false, false, false, 18), "html", null, true);
echo "
";
// line 21
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["lodgingGroup"], "lodgings", [], "any", false, false, false, 21))) {
// line 22
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["lodgingGroup"], "lodgings", [], "any", false, false, false, 22));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["lodging"]) {
// line 23
echo " ";
$this->loadTemplate("default/components/pageLodgingBox.html.twig", "default/pages/cms/overview.html.twig", 23)->display($context);
// line 24
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lodging'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " ";
}
// line 26
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lodgingGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " ";
}
// line 29
echo " ";
} else {
// line 30
echo " ";
// line 31
echo "
";
// line 32
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 32, $this->source); })()), "children", [], "any", false, false, false, 32));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
foreach ($context['_seq'] as $context["_key"] => $context["child_page"]) {
if ((twig_get_attribute($this->env, $this->source, $context["child_page"], "status", [], "any", false, false, false, 32) == 1)) {
// line 33
echo " ";
$this->loadTemplate("default/components/pageBox.html.twig", "default/pages/cms/overview.html.twig", 33)->display($context);
// line 34
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child_page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo "
";
}
// line 37
echo "