<?php
/* page/rooms_view.html.twig */
class __TwigTemplate_24a70972f8d0b815dc17953f577189c5c4b8b315927e2a081f50e41b41067b66 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "page/rooms_view.html.twig", 1);
$this->blocks = array(
'meta' => array($this, 'block_meta'),
'title' => array($this, 'block_title'),
'stylesheets' => array($this, 'block_stylesheets'),
'body' => array($this, 'block_body'),
'javascripts' => array($this, 'block_javascripts'),
);
}
protected function doGetParent(array $context)
{
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "page/rooms_view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "page/rooms_view.html.twig"));
// line 2
$context["metaParams"] = array("title" => $this->getAttribute( // line 3
($context["room"] ?? $this->getContext($context, "room")), "title", array()), "description" => twig_slice($this->env, $this->getAttribute( // line 4
($context["room"] ?? $this->getContext($context, "room")), "text", array()), 3, 300), "keywords" => twig_slice($this->env, $this->getAttribute( // line 5
($context["room"] ?? $this->getContext($context, "room")), "text", array()), 3, 300), "ogImage" => $this->getAttribute( // line 6
($context["room"] ?? $this->getContext($context, "room")), "ogImage", array()));
// line 12
$context["roomActive"] = true;
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_meta($context, array $blocks = array())
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "meta"));
// line 9
echo " ";
$this->loadTemplate("parts/meta.html.twig", "page/rooms_view.html.twig", 9)->display(array_merge($context, ($context["metaParams"] ?? $this->getContext($context, "metaParams"))));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_title($context, array $blocks = array())
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));
$this->displayParentBlock("title", $context, $blocks);
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "title", array()), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_stylesheets($context, array $blocks = array())
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "stylesheets"));
// line 14
echo " <style>
.item-slick {
background-size: cover;
background-position: center;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_body($context, array $blocks = array())
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
// line 22
echo " <div class=\"room-slider\">
<div class=\"room-title\">
";
// line 24
echo twig_escape_filter($this->env, $this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "title", array()), "html", null, true);
echo "<br>
</div>
</div>
<div class=\"\" style=\"overflow:hidden;\">
<div class=\"slider-for\">
";
// line 29
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('ToolBox\FileBrowserBundle\Twig\AppExtension')->jsonDecode($this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "images", array())));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 30
echo " <div class=\"item-slick\" style=\"background-image:url(";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo ");\"></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " </div>
<div class=\"slider-nav\" style=\"top: -125px;\">
";
// line 34
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('ToolBox\FileBrowserBundle\Twig\AppExtension')->jsonDecode($this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "images", array())));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 35
echo " <div><img src=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" alt=\"\" style=\"width: 150px;\"></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo " </div>
</div>
";
// line 41
echo " ";
// line 42
echo " ";
// line 43
echo " ";
// line 44
echo " ";
// line 45
echo " ";
// line 46
echo " ";
// line 47
echo " ";
// line 48
echo " ";
// line 49
echo " ";
// line 50
echo " ";
// line 51
echo " ";
// line 52
echo " ";
// line 53
echo "
<section style=\"margin: 0;\">
<div class=\"container\">
<div class=\"details-section-ravis\">
<ul>
";
// line 58
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "room", array()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 59
echo " <li><img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("img/check.png"), "html", null, true);
echo "\" alt=\"\"><i class=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "iconInfo", array()), "html", null, true);
echo "\"></i></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </ul>
</div>
<div class=\"details-section-info\">
<div class=\"row\">
<div class=\"col-lg-8 col-sm-12\">
<div class=\"room-info\">
";
// line 68
echo $this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "text", array());
echo "
</div>
<div class=\"form-booking\" style=\"margin: 25px 15px;\">
<form action=\"";
// line 71
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("reservation_room");
echo "\" method=\"get\">
<input type=\"hidden\" name=\"room-type\" value=\"";
// line 72
echo twig_escape_filter($this->env, $this->getAttribute(($context["room"] ?? $this->getContext($context, "room")), "roomType", array()), "html", null, true);
echo "\">
<button class=\"btn-ramada hvr-sweep-to-right\">Book</button>
</form>
</div>
</div>
<div class=\"col-lg-4 col-sm-12\">
<div class=\"form-reserve\">
<div class=\"main-title\">
<h5>";
// line 80
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reserved Room"), "html", null, true);
echo "</h5>
</div>
<div class=\"input-daterange\">
<form action=\"#!\" id=\"form\" method=\"get\">
<div class=\"booking-fields form-group \">
<input id=\"form-arrival\" placeholder=\"Check in\"
class=\"datepicker-fields form-control check-in\" type=\"text\"
name=\"date\"/>
</div>
<div class=\"booking-fields form-group \" style=\"\">
<input id=\"form-departure\" placeholder=\"Check out\"
class=\"datepicker-fields form-control check-out\" type=\"text\"
/>
<input type=\"hidden\" name=\"nights\" id=\"nights\">
</div>
<div class=\"form-group\">
<select name=\"adults\" id=\"adults\" class=\"form-control\">
<option value=\"\">";
// line 98
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Adult"), "html", null, true);
echo "</option>
<option value=\"\">1</option>
<option value=\"\">2</option>
<option value=\"\">3</option>
<option value=\"\">4</option>
<option value=\"\">5</option>
</select>
</div>
<div class=\"form-group\">
<select name=\"children\" id=\"children\" class=\"form-control\">
<option value=\"\">";
// line 108
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Child"), "html", null, true);
echo "</option>
<option value=\"\">1</option>
<option value=\"\">2</option>
<option value=\"\">3</option>
<option value=\"\">4</option>
<option value=\"\">5</option>
</select>
</div>
<div class=\"form-group \">
<button type=\"submit\"
class=\"btn-ramada-2 hvr-sweep-to-right\">";
// line 118
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Book"), "html", null, true);
echo "</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
";
// line 130
echo " <section>
<div class=\"container\">
<div class=\"main-title\">
<h5> ";
// line 133
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Other Rooms"), "html", null, true);
echo "</h5>
</div>
";
// line 135
$context["totalServices"] = twig_length_filter($this->env, ($context["other"] ?? $this->getContext($context, "other")));
// line 136
echo " ";
$context["currentRow"] = 0;
// line 137
echo " ";
$context["serviceCount"] = 0;
// line 138
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["other"] ?? $this->getContext($context, "other")));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 139
echo " ";
if ((($context["currentRow"] ?? $this->getContext($context, "currentRow")) == 0)) {
// line 140
echo " <div class=\"row mt-4\">
";
}
// line 142
echo " <div class=\"col-md-4\">
<a href=\"";
// line 143
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("rooms_view_page", array("slug" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
echo "\">
<div style=\"background-image: linear-gradient(rgba(0, 0, 0, 0.36),rgba(30, 30, 30, 0.47058823529411764)),url(";
// line 144
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "ogImage", array()), "html", null, true);
echo ")\"
class=\"rooms-item\">
<p>";
// line 146
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true);
echo "
<br>
</p>
</div>
</a>
</div>
";
// line 152
$context["currentRow"] = (($context["currentRow"] ?? $this->getContext($context, "currentRow")) + 1);
// line 153
echo " ";
$context["serviceCount"] = (($context["serviceCount"] ?? $this->getContext($context, "serviceCount")) + 1);
// line 154
echo " ";
if (((($context["currentRow"] ?? $this->getContext($context, "currentRow")) == 3) || (($context["serviceCount"] ?? $this->getContext($context, "serviceCount")) == ($context["totalServices"] ?? $this->getContext($context, "totalServices"))))) {
// line 155
echo " ";
$context["currentRow"] = 0;
// line 156
echo " </div>
";
}
// line 158
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 159
echo "
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 165
public function block_javascripts($context, array $blocks = array())
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "javascripts"));
// line 166
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
// booking
jQuery('#form').submit(function () {
var arrival = new Date(jQuery('#form-arrival').val());
var arrivalMonth = arrival.getMonth() + 1;
if (arrivalMonth < 10) {
arrivalMonth = \"0\" + arrivalMonth;
}
var arrivalDate = arrival.getFullYear() + \"-\" + arrivalMonth + \"-\" + arrival.getDate();
// var adults = jQuery('#adults').val();
// var children = jQuery('#children').val();
var departure = new Date(jQuery('#form-departure').val());
var nights = (departure - arrival) / (1000 * 60 * 60 * 24);
jQuery('#nights').val(nights);
jQuery(this).attr(\"action\", \"/";
// line 183
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "request", array()), "locale", array()), "html", null, true);
echo "/booking/?date=\" + arrivalDate + \"&nights=\" + nights);
});
// \$(window).ready(function () {
// // The slider being synced must be initialized first
// \$('#carousel').flexslider({
// animation: \"slide\",
// controlNav: \"thumbnails\",
// animationLoop: true,
// itemWidth: 230,
// itemMargin: 5,
// asNavFor: '#slider'
// });
//
// \$('#slider').flexslider({
// animation: \"slide\",
// controlNav: false,
// animationLoop: true,
// slideshow: false,
// sync: \"#carousel\"
// });
// });
\$('.slider-for').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
asNavFor: '.slider-nav'
});
\$('.slider-nav').slick({
slidesToShow: 10,
slidesToScroll: 1,
asNavFor: '.slider-for',
dots: false,
centerMode: false,
focusOnSelect: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4,
slidesToScroll: 1
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 4,
slidesToScroll: 1
}
},
{
breakpoint: 578,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
}
]
});
// \$(document).ready(function () {
// let height = window.innerHeight - 200;
// let _class = document.querySelectorAll('.item-slick');
// if (height <= 400) {
// for (let i = 0; i <= _class.length - 1; i++) {
// _class[i].style.height = 470 + 'px'
// }
//
// } else {
// for (let i = 0; i <= _class.length - 1; i++) {
// _class[i].style.height = height + 'px';
// }
// }
//
// })
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "page/rooms_view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 426 => 183, 405 => 166, 396 => 165, 383 => 159, 377 => 158, 373 => 156, 370 => 155, 367 => 154, 364 => 153, 362 => 152, 353 => 146, 348 => 144, 344 => 143, 341 => 142, 337 => 140, 334 => 139, 329 => 138, 326 => 137, 323 => 136, 321 => 135, 316 => 133, 311 => 130, 297 => 118, 284 => 108, 271 => 98, 250 => 80, 239 => 72, 235 => 71, 229 => 68, 220 => 61, 209 => 59, 205 => 58, 198 => 53, 196 => 52, 194 => 51, 192 => 50, 190 => 49, 188 => 48, 186 => 47, 184 => 46, 182 => 45, 180 => 44, 178 => 43, 176 => 42, 174 => 41, 169 => 37, 160 => 35, 156 => 34, 152 => 32, 143 => 30, 139 => 29, 131 => 24, 127 => 22, 118 => 21, 102 => 14, 93 => 13, 73 => 11, 62 => 9, 53 => 8, 43 => 1, 41 => 12, 39 => 6, 38 => 5, 37 => 4, 36 => 3, 35 => 2, 11 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% extends 'base.html.twig' %}
{% set metaParams = {
'title': room.title,
'description': room.text|slice(3,300),
'keywords': room.text|slice(3,300),
'ogImage': room.ogImage
} %}
{% block meta %}
{% include 'parts/meta.html.twig' with metaParams %}
{% endblock %}
{% block title %}{{ parent() }} {{ room.title }}{% endblock %}
{% set roomActive = true %}
{% block stylesheets %}
<style>
.item-slick {
background-size: cover;
background-position: center;
}
</style>
{% endblock %}
{% block body %}
<div class=\"room-slider\">
<div class=\"room-title\">
{{ room.title }}<br>
</div>
</div>
<div class=\"\" style=\"overflow:hidden;\">
<div class=\"slider-for\">
{% for item in room.images|json_decode %}
<div class=\"item-slick\" style=\"background-image:url({{ item }});\"></div>
{% endfor %}
</div>
<div class=\"slider-nav\" style=\"top: -125px;\">
{% for item in room.images|json_decode %}
<div><img src=\"{{ item }}\" alt=\"\" style=\"width: 150px;\"></div>
{% endfor %}
</div>
</div>
{#<div class=\"carousel-detail\">#}
{#{% set hash = 0 %}#}
{#{% for item in room.images|json_decode %}#}
{#<div data-image=\"{{ item|get_thumb }}\" class=\"item hash{{ hash}} {% if hash == 0 %}active{% endif %}\"#}
{#{% if room.images|json_decode|length <= 6 %}#}
{#style=\"flex: 50%;height: 25vh;overflow:hidden;background-image:url({{ item|get_thumb }});\"#}
{#{% elseif room.images|json_decode|length >= 7 %}#}
{#style=\"flex-basis: 33.3%\"#}
{#{% endif %}#}
{#href=\"#hash{{ hash}}\"></div>#}
{#{% set hash = hash + 1 %}#}
{#{% endfor %}#}
{#</div>#}
<section style=\"margin: 0;\">
<div class=\"container\">
<div class=\"details-section-ravis\">
<ul>
{% for item in room.room %}
<li><img src=\"{{ asset('img/check.png') }}\" alt=\"\"><i class=\"{{ item.iconInfo }}\"></i></li>
{% endfor %}
</ul>
</div>
<div class=\"details-section-info\">
<div class=\"row\">
<div class=\"col-lg-8 col-sm-12\">
<div class=\"room-info\">
{{ room.text|raw }}
</div>
<div class=\"form-booking\" style=\"margin: 25px 15px;\">
<form action=\"{{ path('reservation_room') }}\" method=\"get\">
<input type=\"hidden\" name=\"room-type\" value=\"{{ room.roomType }}\">
<button class=\"btn-ramada hvr-sweep-to-right\">Book</button>
</form>
</div>
</div>
<div class=\"col-lg-4 col-sm-12\">
<div class=\"form-reserve\">
<div class=\"main-title\">
<h5>{{ 'Reserved Room'|trans }}</h5>
</div>
<div class=\"input-daterange\">
<form action=\"#!\" id=\"form\" method=\"get\">
<div class=\"booking-fields form-group \">
<input id=\"form-arrival\" placeholder=\"Check in\"
class=\"datepicker-fields form-control check-in\" type=\"text\"
name=\"date\"/>
</div>
<div class=\"booking-fields form-group \" style=\"\">
<input id=\"form-departure\" placeholder=\"Check out\"
class=\"datepicker-fields form-control check-out\" type=\"text\"
/>
<input type=\"hidden\" name=\"nights\" id=\"nights\">
</div>
<div class=\"form-group\">
<select name=\"adults\" id=\"adults\" class=\"form-control\">
<option value=\"\">{{ 'Adult'|trans }}</option>
<option value=\"\">1</option>
<option value=\"\">2</option>
<option value=\"\">3</option>
<option value=\"\">4</option>
<option value=\"\">5</option>
</select>
</div>
<div class=\"form-group\">
<select name=\"children\" id=\"children\" class=\"form-control\">
<option value=\"\">{{ 'Child'|trans }}</option>
<option value=\"\">1</option>
<option value=\"\">2</option>
<option value=\"\">3</option>
<option value=\"\">4</option>
<option value=\"\">5</option>
</select>
</div>
<div class=\"form-group \">
<button type=\"submit\"
class=\"btn-ramada-2 hvr-sweep-to-right\">{{ 'Book'|trans }}</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{#{% if other %}#}
<section>
<div class=\"container\">
<div class=\"main-title\">
<h5> {{ 'Other Rooms'|trans }}</h5>
</div>
{% set totalServices = other|length %}
{% set currentRow = 0 %}
{% set serviceCount = 0 %}
{% for item in other %}
{% if currentRow == 0 %}
<div class=\"row mt-4\">
{% endif %}
<div class=\"col-md-4\">
<a href=\"{{ path('rooms_view_page', {'slug':item.id}) }}\">
<div style=\"background-image: linear-gradient(rgba(0, 0, 0, 0.36),rgba(30, 30, 30, 0.47058823529411764)),url({{ item.ogImage }})\"
class=\"rooms-item\">
<p>{{ item.title }}
<br>
</p>
</div>
</a>
</div>
{% set currentRow = currentRow + 1 %}
{% set serviceCount = serviceCount + 1 %}
{% if currentRow == 3 or serviceCount == totalServices %}
{% set currentRow = 0 %}
</div>
{% endif %}
{% endfor %}
</div>
</section>
{#{% endif %}#}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
// booking
jQuery('#form').submit(function () {
var arrival = new Date(jQuery('#form-arrival').val());
var arrivalMonth = arrival.getMonth() + 1;
if (arrivalMonth < 10) {
arrivalMonth = \"0\" + arrivalMonth;
}
var arrivalDate = arrival.getFullYear() + \"-\" + arrivalMonth + \"-\" + arrival.getDate();
// var adults = jQuery('#adults').val();
// var children = jQuery('#children').val();
var departure = new Date(jQuery('#form-departure').val());
var nights = (departure - arrival) / (1000 * 60 * 60 * 24);
jQuery('#nights').val(nights);
jQuery(this).attr(\"action\", \"/{{ app.request.locale }}/booking/?date=\" + arrivalDate + \"&nights=\" + nights);
});
// \$(window).ready(function () {
// // The slider being synced must be initialized first
// \$('#carousel').flexslider({
// animation: \"slide\",
// controlNav: \"thumbnails\",
// animationLoop: true,
// itemWidth: 230,
// itemMargin: 5,
// asNavFor: '#slider'
// });
//
// \$('#slider').flexslider({
// animation: \"slide\",
// controlNav: false,
// animationLoop: true,
// slideshow: false,
// sync: \"#carousel\"
// });
// });
\$('.slider-for').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
asNavFor: '.slider-nav'
});
\$('.slider-nav').slick({
slidesToShow: 10,
slidesToScroll: 1,
asNavFor: '.slider-for',
dots: false,
centerMode: false,
focusOnSelect: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4,
slidesToScroll: 1
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 4,
slidesToScroll: 1
}
},
{
breakpoint: 578,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
}
]
});
// \$(document).ready(function () {
// let height = window.innerHeight - 200;
// let _class = document.querySelectorAll('.item-slick');
// if (height <= 400) {
// for (let i = 0; i <= _class.length - 1; i++) {
// _class[i].style.height = 470 + 'px'
// }
//
// } else {
// for (let i = 0; i <= _class.length - 1; i++) {
// _class[i].style.height = height + 'px';
// }
// }
//
// })
</script>
{% endblock %}", "page/rooms_view.html.twig", "/home/ramaday/public_html/ramadahotelandsuitesyerevan.am/app/Resources/views/page/rooms_view.html.twig");
}
}