var/cache/dev/twig/8f/8f84bfefde8c5c881f69346294c17440d276ffb53258f0333fb192e91049c1fb.php line 43

Open in your IDE?
  1. <?php
  2. /* page/rooms_view.html.twig */
  3. class __TwigTemplate_24a70972f8d0b815dc17953f577189c5c4b8b315927e2a081f50e41b41067b66 extends Twig_Template
  4. {
  5.     public function __construct(Twig_Environment $env)
  6.     {
  7.         parent::__construct($env);
  8.         // line 1
  9.         $this->parent $this->loadTemplate("base.html.twig""page/rooms_view.html.twig"1);
  10.         $this->blocks = array(
  11.             'meta' => array($this'block_meta'),
  12.             'title' => array($this'block_title'),
  13.             'stylesheets' => array($this'block_stylesheets'),
  14.             'body' => array($this'block_body'),
  15.             'javascripts' => array($this'block_javascripts'),
  16.         );
  17.     }
  18.     protected function doGetParent(array $context)
  19.     {
  20.         return "base.html.twig";
  21.     }
  22.     protected function doDisplay(array $context, array $blocks = array())
  23.     {
  24.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  25.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""page/rooms_view.html.twig"));
  26.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  27.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""page/rooms_view.html.twig"));
  28.         // line 2
  29.         $context["metaParams"] = array("title" => $this->getAttribute(        // line 3
  30. ($context["room"] ?? $this->getContext($context"room")), "title", array()), "description" => twig_slice($this->env$this->getAttribute(        // line 4
  31. ($context["room"] ?? $this->getContext($context"room")), "text", array()), 3300), "keywords" => twig_slice($this->env$this->getAttribute(        // line 5
  32. ($context["room"] ?? $this->getContext($context"room")), "text", array()), 3300), "ogImage" => $this->getAttribute(        // line 6
  33. ($context["room"] ?? $this->getContext($context"room")), "ogImage", array()));
  34.         // line 12
  35.         $context["roomActive"] = true;
  36.         // line 1
  37.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  38.         
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  40.         
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  42.     }
  43.     // line 8
  44.     public function block_meta($context, array $blocks = array())
  45.     {
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""meta"));
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""meta"));
  50.         // line 9
  51.         echo "    ";
  52.         $this->loadTemplate("parts/meta.html.twig""page/rooms_view.html.twig"9)->display(array_merge($context, ($context["metaParams"] ?? $this->getContext($context"metaParams"))));
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.         
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  57.     }
  58.     // line 11
  59.     public function block_title($context, array $blocks = array())
  60.     {
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""title"));
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""title"));
  65.         $this->displayParentBlock("title"$context$blocks);
  66.         echo " ";
  67.         echo twig_escape_filter($this->env$this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "title", array()), "html"nulltrue);
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.         
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  72.     }
  73.     // line 13
  74.     public function block_stylesheets($context, array $blocks = array())
  75.     {
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""stylesheets"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""stylesheets"));
  80.         // line 14
  81.         echo "    <style>
  82.         .item-slick {
  83.             background-size: cover;
  84.             background-position: center;
  85.         }
  86.     </style>
  87. ";
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  92.     }
  93.     // line 21
  94.     public function block_body($context, array $blocks = array())
  95.     {
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""body"));
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""body"));
  100.         // line 22
  101.         echo "    <div class=\"room-slider\">
  102.         <div class=\"room-title\">
  103.             ";
  104.         // line 24
  105.         echo twig_escape_filter($this->env$this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "title", array()), "html"nulltrue);
  106.         echo "<br>
  107.         </div>
  108.     </div>
  109.     <div class=\"\" style=\"overflow:hidden;\">
  110.         <div class=\"slider-for\">
  111.             ";
  112.         // line 29
  113.         $context['_parent'] = $context;
  114.         $context['_seq'] = twig_ensure_traversable($this->env->getExtension('ToolBox\FileBrowserBundle\Twig\AppExtension')->jsonDecode($this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "images", array())));
  115.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  116.             // line 30
  117.             echo "                <div class=\"item-slick\" style=\"background-image:url(";
  118.             echo twig_escape_filter($this->env$context["item"], "html"nulltrue);
  119.             echo ");\"></div>
  120.             ";
  121.         }
  122.         $_parent $context['_parent'];
  123.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  124.         $context array_intersect_key($context$_parent) + $_parent;
  125.         // line 32
  126.         echo "        </div>
  127.         <div class=\"slider-nav\" style=\"top: -125px;\">
  128.             ";
  129.         // line 34
  130.         $context['_parent'] = $context;
  131.         $context['_seq'] = twig_ensure_traversable($this->env->getExtension('ToolBox\FileBrowserBundle\Twig\AppExtension')->jsonDecode($this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "images", array())));
  132.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  133.             // line 35
  134.             echo "                <div><img src=\"";
  135.             echo twig_escape_filter($this->env$context["item"], "html"nulltrue);
  136.             echo "\" alt=\"\" style=\"width: 150px;\"></div>
  137.             ";
  138.         }
  139.         $_parent $context['_parent'];
  140.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  141.         $context array_intersect_key($context$_parent) + $_parent;
  142.         // line 37
  143.         echo "        </div>
  144.     </div>
  145.     ";
  146.         // line 41
  147.         echo "    ";
  148.         // line 42
  149.         echo "    ";
  150.         // line 43
  151.         echo "    ";
  152.         // line 44
  153.         echo "    ";
  154.         // line 45
  155.         echo "    ";
  156.         // line 46
  157.         echo "    ";
  158.         // line 47
  159.         echo "    ";
  160.         // line 48
  161.         echo "    ";
  162.         // line 49
  163.         echo "    ";
  164.         // line 50
  165.         echo "    ";
  166.         // line 51
  167.         echo "    ";
  168.         // line 52
  169.         echo "    ";
  170.         // line 53
  171.         echo "
  172.     <section style=\"margin: 0;\">
  173.         <div class=\"container\">
  174.             <div class=\"details-section-ravis\">
  175.                 <ul>
  176.                     ";
  177.         // line 58
  178.         $context['_parent'] = $context;
  179.         $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "room", array()));
  180.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  181.             // line 59
  182.             echo "                        <li><img src=\"";
  183.             echo twig_escape_filter($this->env$this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("img/check.png"), "html"nulltrue);
  184.             echo "\" alt=\"\"><i class=\"";
  185.             echo twig_escape_filter($this->env$this->getAttribute($context["item"], "iconInfo", array()), "html"nulltrue);
  186.             echo "\"></i></li>
  187.                     ";
  188.         }
  189.         $_parent $context['_parent'];
  190.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  191.         $context array_intersect_key($context$_parent) + $_parent;
  192.         // line 61
  193.         echo "                </ul>
  194.             </div>
  195.             <div class=\"details-section-info\">
  196.                 <div class=\"row\">
  197.                     <div class=\"col-lg-8 col-sm-12\">
  198.                         <div class=\"room-info\">
  199.                             ";
  200.         // line 68
  201.         echo $this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "text", array());
  202.         echo "
  203.                         </div>
  204.                         <div class=\"form-booking\" style=\"margin: 25px 15px;\">
  205.                             <form action=\"";
  206.         // line 71
  207.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("reservation_room");
  208.         echo "\" method=\"get\">
  209.                                 <input type=\"hidden\" name=\"room-type\" value=\"";
  210.         // line 72
  211.         echo twig_escape_filter($this->env$this->getAttribute(($context["room"] ?? $this->getContext($context"room")), "roomType", array()), "html"nulltrue);
  212.         echo "\">
  213.                                 <button class=\"btn-ramada hvr-sweep-to-right\">Book</button>
  214.                             </form>
  215.                         </div>
  216.                     </div>
  217.                     <div class=\"col-lg-4 col-sm-12\">
  218.                         <div class=\"form-reserve\">
  219.                             <div class=\"main-title\">
  220.                                 <h5>";
  221.         // line 80
  222.         echo twig_escape_filter($this->env$this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reserved Room"), "html"nulltrue);
  223.         echo "</h5>
  224.                             </div>
  225.                             <div class=\"input-daterange\">
  226.                                 <form action=\"#!\" id=\"form\" method=\"get\">
  227.                                     <div class=\"booking-fields form-group \">
  228.                                         <input id=\"form-arrival\" placeholder=\"Check in\"
  229.                                                class=\"datepicker-fields form-control check-in\" type=\"text\"
  230.                                                name=\"date\"/>
  231.                                     </div>
  232.                                     <div class=\"booking-fields form-group \" style=\"\">
  233.                                         <input id=\"form-departure\" placeholder=\"Check out\"
  234.                                                class=\"datepicker-fields form-control check-out\" type=\"text\"
  235.                                         />
  236.                                         <input type=\"hidden\" name=\"nights\" id=\"nights\">
  237.                                     </div>
  238.                                     <div class=\"form-group\">
  239.                                         <select name=\"adults\" id=\"adults\" class=\"form-control\">
  240.                                             <option value=\"\">";
  241.         // line 98
  242.         echo twig_escape_filter($this->env$this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Adult"), "html"nulltrue);
  243.         echo "</option>
  244.                                             <option value=\"\">1</option>
  245.                                             <option value=\"\">2</option>
  246.                                             <option value=\"\">3</option>
  247.                                             <option value=\"\">4</option>
  248.                                             <option value=\"\">5</option>
  249.                                         </select>
  250.                                     </div>
  251.                                     <div class=\"form-group\">
  252.                                         <select name=\"children\" id=\"children\" class=\"form-control\">
  253.                                             <option value=\"\">";
  254.         // line 108
  255.         echo twig_escape_filter($this->env$this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Child"), "html"nulltrue);
  256.         echo "</option>
  257.                                             <option value=\"\">1</option>
  258.                                             <option value=\"\">2</option>
  259.                                             <option value=\"\">3</option>
  260.                                             <option value=\"\">4</option>
  261.                                             <option value=\"\">5</option>
  262.                                         </select>
  263.                                     </div>
  264.                                     <div class=\"form-group \">
  265.                                         <button type=\"submit\"
  266.                                                 class=\"btn-ramada-2 hvr-sweep-to-right\">";
  267.         // line 118
  268.         echo twig_escape_filter($this->env$this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Book"), "html"nulltrue);
  269.         echo "</button>
  270.                                     </div>
  271.                                 </form>
  272.                             </div>
  273.                         </div>
  274.                     </div>
  275.                 </div>
  276.             </div>
  277.         </div>
  278.     </section>
  279.     ";
  280.         // line 130
  281.         echo "    <section>
  282.         <div class=\"container\">
  283.             <div class=\"main-title\">
  284.                 <h5> ";
  285.         // line 133
  286.         echo twig_escape_filter($this->env$this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Other Rooms"), "html"nulltrue);
  287.         echo "</h5>
  288.             </div>
  289.             ";
  290.         // line 135
  291.         $context["totalServices"] = twig_length_filter($this->env, ($context["other"] ?? $this->getContext($context"other")));
  292.         // line 136
  293.         echo "            ";
  294.         $context["currentRow"] = 0;
  295.         // line 137
  296.         echo "            ";
  297.         $context["serviceCount"] = 0;
  298.         // line 138
  299.         echo "            ";
  300.         $context['_parent'] = $context;
  301.         $context['_seq'] = twig_ensure_traversable(($context["other"] ?? $this->getContext($context"other")));
  302.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  303.             // line 139
  304.             echo "                ";
  305.             if ((($context["currentRow"] ?? $this->getContext($context"currentRow")) == 0)) {
  306.                 // line 140
  307.                 echo "                    <div class=\"row mt-4\">
  308.                 ";
  309.             }
  310.             // line 142
  311.             echo "                <div class=\"col-md-4\">
  312.                     <a href=\"";
  313.             // line 143
  314.             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"nulltrue);
  315.             echo "\">
  316.                         <div style=\"background-image: linear-gradient(rgba(0, 0, 0, 0.36),rgba(30, 30, 30, 0.47058823529411764)),url(";
  317.             // line 144
  318.             echo twig_escape_filter($this->env$this->getAttribute($context["item"], "ogImage", array()), "html"nulltrue);
  319.             echo ")\"
  320.                              class=\"rooms-item\">
  321.                             <p>";
  322.             // line 146
  323.             echo twig_escape_filter($this->env$this->getAttribute($context["item"], "title", array()), "html"nulltrue);
  324.             echo "
  325.                                 <br>
  326.                             </p>
  327.                         </div>
  328.                     </a>
  329.                 </div>
  330.                 ";
  331.             // line 152
  332.             $context["currentRow"] = (($context["currentRow"] ?? $this->getContext($context"currentRow")) + 1);
  333.             // line 153
  334.             echo "                ";
  335.             $context["serviceCount"] = (($context["serviceCount"] ?? $this->getContext($context"serviceCount")) + 1);
  336.             // line 154
  337.             echo "                ";
  338.             if (((($context["currentRow"] ?? $this->getContext($context"currentRow")) == 3) || (($context["serviceCount"] ?? $this->getContext($context"serviceCount")) == ($context["totalServices"] ?? $this->getContext($context"totalServices"))))) {
  339.                 // line 155
  340.                 echo "                    ";
  341.                 $context["currentRow"] = 0;
  342.                 // line 156
  343.                 echo "                    </div>
  344.                 ";
  345.             }
  346.             // line 158
  347.             echo "            ";
  348.         }
  349.         $_parent $context['_parent'];
  350.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  351.         $context array_intersect_key($context$_parent) + $_parent;
  352.         // line 159
  353.         echo "
  354.         </div>
  355.     </section>
  356.     ";
  357.         
  358.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  359.         
  360.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  361.     }
  362.     // line 165
  363.     public function block_javascripts($context, array $blocks = array())
  364.     {
  365.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  366.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""javascripts"));
  367.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  368.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block""javascripts"));
  369.         // line 166
  370.         echo "    ";
  371.         $this->displayParentBlock("javascripts"$context$blocks);
  372.         echo "
  373.     <script>
  374.         // booking
  375.         jQuery('#form').submit(function () {
  376.             var arrival = new Date(jQuery('#form-arrival').val());
  377.             var arrivalMonth = arrival.getMonth() + 1;
  378.             if (arrivalMonth < 10) {
  379.                 arrivalMonth = \"0\" + arrivalMonth;
  380.             }
  381.             var arrivalDate = arrival.getFullYear() + \"-\" + arrivalMonth + \"-\" + arrival.getDate();
  382.             // var adults = jQuery('#adults').val();
  383.             // var children = jQuery('#children').val();
  384.             var departure = new Date(jQuery('#form-departure').val());
  385.             var nights = (departure - arrival) / (1000 * 60 * 60 * 24);
  386.             jQuery('#nights').val(nights);
  387.             jQuery(this).attr(\"action\", \"/";
  388.         // line 183
  389.         echo twig_escape_filter($this->env$this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context"app")), "request", array()), "locale", array()), "html"nulltrue);
  390.         echo "/booking/?date=\" + arrivalDate + \"&nights=\" + nights);
  391.         });
  392.         // \$(window).ready(function () {
  393.         //     // The slider being synced must be initialized first
  394.         //     \$('#carousel').flexslider({
  395.         //         animation: \"slide\",
  396.         //         controlNav: \"thumbnails\",
  397.         //         animationLoop: true,
  398.         //         itemWidth: 230,
  399.         //         itemMargin: 5,
  400.         //         asNavFor: '#slider'
  401.         //     });
  402.         //
  403.         //     \$('#slider').flexslider({
  404.         //         animation: \"slide\",
  405.         //         controlNav: false,
  406.         //         animationLoop: true,
  407.         //         slideshow: false,
  408.         //         sync: \"#carousel\"
  409.         //     });
  410.         // });
  411.         \$('.slider-for').slick({
  412.             slidesToShow: 1,
  413.             slidesToScroll: 1,
  414.             arrows: true,
  415.             fade: true,
  416.             asNavFor: '.slider-nav'
  417.         });
  418.         \$('.slider-nav').slick({
  419.             slidesToShow: 10,
  420.             slidesToScroll: 1,
  421.             asNavFor: '.slider-for',
  422.             dots: false,
  423.             centerMode: false,
  424.             focusOnSelect: true,
  425.             responsive: [
  426.                 {
  427.                     breakpoint: 1200,
  428.                     settings: {
  429.                         slidesToShow: 4,
  430.                         slidesToScroll: 1
  431.                     }
  432.                 },
  433.                 {
  434.                     breakpoint: 991,
  435.                     settings: {
  436.                         slidesToShow: 4,
  437.                         slidesToScroll: 1
  438.                     }
  439.                 },
  440.                 {
  441.                     breakpoint: 578,
  442.                     settings: {
  443.                         slidesToShow: 2,
  444.                         slidesToScroll: 1
  445.                     }
  446.                 }
  447.                 ]
  448.         });
  449.         // \$(document).ready(function () {
  450.         //     let height = window.innerHeight - 200;
  451.         //     let _class = document.querySelectorAll('.item-slick');
  452.         //     if (height <= 400) {
  453.         //         for (let i = 0; i <= _class.length - 1; i++) {
  454.         //             _class[i].style.height = 470 + 'px'
  455.         //         }
  456.         //
  457.         //     } else {
  458.         //         for (let i = 0; i <= _class.length - 1; i++) {
  459.         //             _class[i].style.height = height + 'px';
  460.         //         }
  461.         //     }
  462.         //
  463.         // })
  464.     </script>
  465. ";
  466.         
  467.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  468.         
  469.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  470.     }
  471.     public function getTemplateName()
  472.     {
  473.         return "page/rooms_view.html.twig";
  474.     }
  475.     public function isTraitable()
  476.     {
  477.         return false;
  478.     }
  479.     public function getDebugInfo()
  480.     {
  481.         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,);
  482.     }
  483.     /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  484.     public function getSource()
  485.     {
  486.         @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.'E_USER_DEPRECATED);
  487.         return $this->getSourceContext()->getCode();
  488.     }
  489.     public function getSourceContext()
  490.     {
  491.         return new Twig_Source("{% extends 'base.html.twig' %}
  492. {% set metaParams = {
  493.     'title': room.title,
  494.     'description': room.text|slice(3,300),
  495.     'keywords': room.text|slice(3,300),
  496.     'ogImage': room.ogImage
  497. } %}
  498. {% block meta %}
  499.     {% include 'parts/meta.html.twig' with metaParams %}
  500. {% endblock %}
  501. {% block title %}{{ parent() }} {{ room.title }}{% endblock %}
  502. {% set roomActive = true %}
  503. {% block stylesheets %}
  504.     <style>
  505.         .item-slick {
  506.             background-size: cover;
  507.             background-position: center;
  508.         }
  509.     </style>
  510. {% endblock %}
  511. {% block body %}
  512.     <div class=\"room-slider\">
  513.         <div class=\"room-title\">
  514.             {{ room.title }}<br>
  515.         </div>
  516.     </div>
  517.     <div class=\"\" style=\"overflow:hidden;\">
  518.         <div class=\"slider-for\">
  519.             {% for item in room.images|json_decode %}
  520.                 <div class=\"item-slick\" style=\"background-image:url({{ item }});\"></div>
  521.             {% endfor %}
  522.         </div>
  523.         <div class=\"slider-nav\" style=\"top: -125px;\">
  524.             {% for item in room.images|json_decode %}
  525.                 <div><img src=\"{{ item }}\" alt=\"\" style=\"width: 150px;\"></div>
  526.             {% endfor %}
  527.         </div>
  528.     </div>
  529.     {#<div class=\"carousel-detail\">#}
  530.     {#{% set hash = 0 %}#}
  531.     {#{% for item in room.images|json_decode %}#}
  532.     {#<div data-image=\"{{ item|get_thumb }}\" class=\"item hash{{ hash}} {% if hash == 0  %}active{% endif %}\"#}
  533.     {#{% if room.images|json_decode|length <= 6 %}#}
  534.     {#style=\"flex:  50%;height: 25vh;overflow:hidden;background-image:url({{ item|get_thumb }});\"#}
  535.     {#{% elseif room.images|json_decode|length >= 7 %}#}
  536.     {#style=\"flex-basis:  33.3%\"#}
  537.     {#{% endif %}#}
  538.     {#href=\"#hash{{ hash}}\"></div>#}
  539.     {#{% set hash = hash + 1 %}#}
  540.     {#{% endfor %}#}
  541.     {#</div>#}
  542.     <section style=\"margin: 0;\">
  543.         <div class=\"container\">
  544.             <div class=\"details-section-ravis\">
  545.                 <ul>
  546.                     {% for item in room.room %}
  547.                         <li><img src=\"{{ asset('img/check.png') }}\" alt=\"\"><i class=\"{{ item.iconInfo }}\"></i></li>
  548.                     {% endfor %}
  549.                 </ul>
  550.             </div>
  551.             <div class=\"details-section-info\">
  552.                 <div class=\"row\">
  553.                     <div class=\"col-lg-8 col-sm-12\">
  554.                         <div class=\"room-info\">
  555.                             {{ room.text|raw }}
  556.                         </div>
  557.                         <div class=\"form-booking\" style=\"margin: 25px 15px;\">
  558.                             <form action=\"{{ path('reservation_room') }}\" method=\"get\">
  559.                                 <input type=\"hidden\" name=\"room-type\" value=\"{{ room.roomType }}\">
  560.                                 <button class=\"btn-ramada hvr-sweep-to-right\">Book</button>
  561.                             </form>
  562.                         </div>
  563.                     </div>
  564.                     <div class=\"col-lg-4 col-sm-12\">
  565.                         <div class=\"form-reserve\">
  566.                             <div class=\"main-title\">
  567.                                 <h5>{{ 'Reserved Room'|trans }}</h5>
  568.                             </div>
  569.                             <div class=\"input-daterange\">
  570.                                 <form action=\"#!\" id=\"form\" method=\"get\">
  571.                                     <div class=\"booking-fields form-group \">
  572.                                         <input id=\"form-arrival\" placeholder=\"Check in\"
  573.                                                class=\"datepicker-fields form-control check-in\" type=\"text\"
  574.                                                name=\"date\"/>
  575.                                     </div>
  576.                                     <div class=\"booking-fields form-group \" style=\"\">
  577.                                         <input id=\"form-departure\" placeholder=\"Check out\"
  578.                                                class=\"datepicker-fields form-control check-out\" type=\"text\"
  579.                                         />
  580.                                         <input type=\"hidden\" name=\"nights\" id=\"nights\">
  581.                                     </div>
  582.                                     <div class=\"form-group\">
  583.                                         <select name=\"adults\" id=\"adults\" class=\"form-control\">
  584.                                             <option value=\"\">{{ 'Adult'|trans }}</option>
  585.                                             <option value=\"\">1</option>
  586.                                             <option value=\"\">2</option>
  587.                                             <option value=\"\">3</option>
  588.                                             <option value=\"\">4</option>
  589.                                             <option value=\"\">5</option>
  590.                                         </select>
  591.                                     </div>
  592.                                     <div class=\"form-group\">
  593.                                         <select name=\"children\" id=\"children\" class=\"form-control\">
  594.                                             <option value=\"\">{{ 'Child'|trans }}</option>
  595.                                             <option value=\"\">1</option>
  596.                                             <option value=\"\">2</option>
  597.                                             <option value=\"\">3</option>
  598.                                             <option value=\"\">4</option>
  599.                                             <option value=\"\">5</option>
  600.                                         </select>
  601.                                     </div>
  602.                                     <div class=\"form-group \">
  603.                                         <button type=\"submit\"
  604.                                                 class=\"btn-ramada-2 hvr-sweep-to-right\">{{ 'Book'|trans }}</button>
  605.                                     </div>
  606.                                 </form>
  607.                             </div>
  608.                         </div>
  609.                     </div>
  610.                 </div>
  611.             </div>
  612.         </div>
  613.     </section>
  614.     {#{% if other %}#}
  615.     <section>
  616.         <div class=\"container\">
  617.             <div class=\"main-title\">
  618.                 <h5> {{ 'Other Rooms'|trans }}</h5>
  619.             </div>
  620.             {% set totalServices = other|length %}
  621.             {% set currentRow = 0 %}
  622.             {% set serviceCount = 0 %}
  623.             {% for item in other %}
  624.                 {% if currentRow == 0 %}
  625.                     <div class=\"row mt-4\">
  626.                 {% endif %}
  627.                 <div class=\"col-md-4\">
  628.                     <a href=\"{{ path('rooms_view_page', {'slug':item.id}) }}\">
  629.                         <div style=\"background-image: linear-gradient(rgba(0, 0, 0, 0.36),rgba(30, 30, 30, 0.47058823529411764)),url({{ item.ogImage }})\"
  630.                              class=\"rooms-item\">
  631.                             <p>{{ item.title }}
  632.                                 <br>
  633.                             </p>
  634.                         </div>
  635.                     </a>
  636.                 </div>
  637.                 {% set currentRow = currentRow + 1 %}
  638.                 {% set serviceCount = serviceCount + 1 %}
  639.                 {% if currentRow == 3 or serviceCount == totalServices %}
  640.                     {% set currentRow = 0 %}
  641.                     </div>
  642.                 {% endif %}
  643.             {% endfor %}
  644.         </div>
  645.     </section>
  646.     {#{% endif %}#}
  647. {% endblock %}
  648. {% block javascripts %}
  649.     {{ parent() }}
  650.     <script>
  651.         // booking
  652.         jQuery('#form').submit(function () {
  653.             var arrival = new Date(jQuery('#form-arrival').val());
  654.             var arrivalMonth = arrival.getMonth() + 1;
  655.             if (arrivalMonth < 10) {
  656.                 arrivalMonth = \"0\" + arrivalMonth;
  657.             }
  658.             var arrivalDate = arrival.getFullYear() + \"-\" + arrivalMonth + \"-\" + arrival.getDate();
  659.             // var adults = jQuery('#adults').val();
  660.             // var children = jQuery('#children').val();
  661.             var departure = new Date(jQuery('#form-departure').val());
  662.             var nights = (departure - arrival) / (1000 * 60 * 60 * 24);
  663.             jQuery('#nights').val(nights);
  664.             jQuery(this).attr(\"action\", \"/{{ app.request.locale }}/booking/?date=\" + arrivalDate + \"&nights=\" + nights);
  665.         });
  666.         // \$(window).ready(function () {
  667.         //     // The slider being synced must be initialized first
  668.         //     \$('#carousel').flexslider({
  669.         //         animation: \"slide\",
  670.         //         controlNav: \"thumbnails\",
  671.         //         animationLoop: true,
  672.         //         itemWidth: 230,
  673.         //         itemMargin: 5,
  674.         //         asNavFor: '#slider'
  675.         //     });
  676.         //
  677.         //     \$('#slider').flexslider({
  678.         //         animation: \"slide\",
  679.         //         controlNav: false,
  680.         //         animationLoop: true,
  681.         //         slideshow: false,
  682.         //         sync: \"#carousel\"
  683.         //     });
  684.         // });
  685.         \$('.slider-for').slick({
  686.             slidesToShow: 1,
  687.             slidesToScroll: 1,
  688.             arrows: true,
  689.             fade: true,
  690.             asNavFor: '.slider-nav'
  691.         });
  692.         \$('.slider-nav').slick({
  693.             slidesToShow: 10,
  694.             slidesToScroll: 1,
  695.             asNavFor: '.slider-for',
  696.             dots: false,
  697.             centerMode: false,
  698.             focusOnSelect: true,
  699.             responsive: [
  700.                 {
  701.                     breakpoint: 1200,
  702.                     settings: {
  703.                         slidesToShow: 4,
  704.                         slidesToScroll: 1
  705.                     }
  706.                 },
  707.                 {
  708.                     breakpoint: 991,
  709.                     settings: {
  710.                         slidesToShow: 4,
  711.                         slidesToScroll: 1
  712.                     }
  713.                 },
  714.                 {
  715.                     breakpoint: 578,
  716.                     settings: {
  717.                         slidesToShow: 2,
  718.                         slidesToScroll: 1
  719.                     }
  720.                 }
  721.                 ]
  722.         });
  723.         // \$(document).ready(function () {
  724.         //     let height = window.innerHeight - 200;
  725.         //     let _class = document.querySelectorAll('.item-slick');
  726.         //     if (height <= 400) {
  727.         //         for (let i = 0; i <= _class.length - 1; i++) {
  728.         //             _class[i].style.height = 470 + 'px'
  729.         //         }
  730.         //
  731.         //     } else {
  732.         //         for (let i = 0; i <= _class.length - 1; i++) {
  733.         //             _class[i].style.height = height + 'px';
  734.         //         }
  735.         //     }
  736.         //
  737.         // })
  738.     </script>
  739. {% endblock %}""page/rooms_view.html.twig""/home/ramaday/public_html/ramadahotelandsuitesyerevan.am/app/Resources/views/page/rooms_view.html.twig");
  740.     }
  741. }