<?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;
/* front/accommodation/accommodation-1.html.twig */
class __TwigTemplate_a72288f7dc9cb3c28c22e87660065538 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body_class' => [$this, 'block_body_class'],
'meta_title' => [$this, 'block_meta_title'],
'meta_description' => [$this, 'block_meta_description'],
'header_class' => [$this, 'block_header_class'],
'header_content' => [$this, 'block_header_content'],
'page_content' => [$this, 'block_page_content'],
'javascripts' => [$this, 'block_javascripts'],
'javascripts_footer' => [$this, 'block_javascripts_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front/page.html.twig";
}
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", "front/accommodation/accommodation-1.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/accommodation/accommodation-1.html.twig"));
// line 3
$macros["macro"] = $this->macros["macro"] = $this->loadTemplate("front/_shared/macros.html.twig", "front/accommodation/accommodation-1.html.twig", 3)->unwrap();
// line 10
$context["isMobile"] = $this->env->getRuntime('App\Twig\FrontRuntime')->isMobile();
// line 1
$this->parent = $this->loadTemplate("front/page.html.twig", "front/accommodation/accommodation-1.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_body_class($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(), "block", "body_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
$this->displayParentBlock("body_class", $context, $blocks);
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_meta_title($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(), "block", "meta_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
echo twig_escape_filter($this->env, 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.', 7, $this->source); })()), "metaTitle", [], "any", false, false, false, 7), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_meta_description($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(), "block", "meta_description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
echo twig_escape_filter($this->env, 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.', 8, $this->source); })()), "metaDescription", [], "any", false, false, false, 8), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_header_class($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(), "block", "header_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_class"));
// line 13
echo " ";
echo (((isset($context["isMobile"]) || array_key_exists("isMobile", $context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.', 13, $this->source); })())) ? ("detail-head") : ("dark-header"));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_header_content($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(), "block", "header_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_content"));
// line 17
echo " ";
if ((isset($context["isMobile"]) || array_key_exists("isMobile", $context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.', 17, $this->source); })())) {
// line 18
echo " <div id=\"accommodation-detail-header\" class=\"mobile\" style=\"";
if (twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 18, $this->source); })()), "cover", [], "any", false, false, false, 18)) {
echo "background-image: url(";
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 18, $this->source); })()), "cover", [], "any", false, false, false, 18), "accommodation_slider"), "html", null, true);
echo ");";
}
echo "\">
<div class=\"intro\">
<h1><span>";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 20, $this->source); })()), "name", [], "any", false, false, false, 20), "html", null, true);
echo "</span></h1>
<h2 class=\"subtitle\">
";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 22, $this->source); })()), "address", [], "any", false, false, false, 22), "address", [], "any", false, false, false, 22), "html", null, true);
echo "
<br>";
// line 23
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 23, $this->source); })()), "address", [], "any", false, false, false, 23), "zipcode", [], "any", false, false, false, 23), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 23, $this->source); })()), "address", [], "any", false, false, false, 23), "city", [], "any", false, false, false, 23), "html", null, true);
echo "
</h2>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 30
public function block_page_content($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(), "block", "page_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content"));
// line 31
echo "
";
// line 32
if ( !(isset($context["isMobile"]) || array_key_exists("isMobile", $context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.', 32, $this->source); })())) {
// line 33
echo " <div class=\"detail-head\">
<div class=\"detail-title-container container-fluid\">
<div class=\"owl-carousel carousel-detail\" data-controller=\"carousel\" data-type=\"detail\">
";
// line 36
if (twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 36, $this->source); })()), "cover", [], "any", false, false, false, 36)) {
// line 37
echo " <div>
<img src=\"";
// line 38
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 38, $this->source); })()), "cover", [], "any", false, false, false, 38), "accommodation_inline_slider"), "html", null, true);
echo "\" alt=\"\">
</div>
";
}
// line 41
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 41, $this->source); })()), "images", [], "any", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 42
echo " <div>
<img src=\"";
// line 43
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($context["image"], "accommodation_inline_slider"), "html", null, true);
echo "\" alt=\"\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " </div>
</div>
</div>
";
} else {
// line 50
echo "
<div class=\"lightbox-gallery\">
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 52, $this->source); })()), "images", [], "any", false, false, false, 52));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 53
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($context["image"], "accommodation_slider"), "html", null, true);
echo "\"></a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
<div id=\"mobile-gallery-thumbs\">
";
// line 58
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 58, $this->source); })()), "images", [], "any", false, false, false, 58), 0, 4));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 59
echo " <div class=\"image-container\">
<a href=\"";
// line 60
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($context["image"], "accommodation_slider"), "html", null, true);
echo "\" class=\"open-lightbox-gallery\">
<img src=\"";
// line 61
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($context["image"], "accommodation_square_gallery"), "html", null, true);
echo "\" class=\"d-block w-100\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 61, $this->source); })()), "name", [], "any", false, false, false, 61), "html", null, true);
echo " - photo\">
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </div>
<div class=\"text-center mb-3\">
<button class=\"btn btn-primary open-lightbox-gallery\">VOIR TOUTES LES PHOTOS</button>
</div>
";
}
// line 71
echo "
<main class=\"detail detail-1\" data-controller=\"accommodation\">
";
// line 74
if ( !(isset($context["isMobile"]) || array_key_exists("isMobile", $context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.', 74, $this->source); })())) {
// line 75
echo " <div class=\"menu-detail d-none d-lg-block\">
<ul>
<li class=\"active\"><a href=\"#description\">Description</a></li>
<li><a href=\"#services\">Services</a></li>
<li><a href=\"#colocataires\">Colocataires</a></li>
<li><a href=\"#emplacement\">Emplacement</a></li>
<li><a href=\"#chambres\">Chambres</a></li>
<li><a href=\"";
// line 82
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 82, $this->source); })()), "virtualTour", [], "any", false, false, false, 82), "html", null, true);
echo "\" target=\"_blank\" class=\"btn-explore\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/icon_play.svg"), "html", null, true);
echo "\" alt=\"\"> Explorer</a></li>
</ul>
</div>
<div id=\"virtual-tour-modal\">
<div class=\"overlay\"></div>
<div class=\"content\">
<button class=\"btn-close\">x</button>
<iframe></iframe>
</div>
</div>
";
}
// line 94
echo "
<div class=\"bg-info-ctn\">
";
// line 96
$this->loadTemplate("front/accommodation/blocks/infos-1.html.twig", "front/accommodation/accommodation-1.html.twig", 96)->display($context);
// line 97
echo "
<section class=\"container rooms\" id=\"chambres\">
<div class=\"row\">
<div class=\"col rooms-inner\">
";
// line 102
if ( !(isset($context["isMobile"]) || array_key_exists("isMobile", $context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.', 102, $this->source); })())) {
// line 103
echo " <h2 class=\"title-room\">Toutes <span>les chambres</span></h2>
<p class=\"intro-room\">
Retrouvez les autres chambres que nous proposons
</p>
<div class=\"row mb-5\">
<div class=\"col-12 col-md-12 lightbox-gallery text-center\">
";
// line 109
if (twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 109, $this->source); })()), "plan", [], "any", false, false, false, 109)) {
// line 110
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 110, $this->source); })()), "plan", [], "any", false, false, false, 110), "accommodation_slider"), "html", null, true);
echo "\">
<img class=\"plan\" src=\"";
// line 111
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 111, $this->source); })()), "plan", [], "any", false, false, false, 111), "accommodation_wide_thumb"), "html", null, true);
echo "\" alt=\"Plan des chambres\">
</a>
";
}
// line 114
echo " </div>
</div>
";
} else {
// line 117
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 117, $this->source); })()), "virtualTour", [], "any", false, false, false, 117)) {
// line 118
echo " <h2 class=\"detail-title\">
Visite <span>virtuelle</span>
</h2>
<div id=\"explore-button-container\" style=\"";
// line 121
if (twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 121, $this->source); })()), "cover", [], "any", false, false, false, 121)) {
echo "background-image: url(";
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 121, $this->source); })()), "cover", [], "any", false, false, false, 121), "accommodation_slider"), "html", null, true);
echo ");";
}
echo "\">
<a href=\"";
// line 122
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 122, $this->source); })()), "virtualTour", [], "any", false, false, false, 122), "html", null, true);
echo "\" target=\"_blank\" class=\"btn-explore\">
<span class=\"icon-play\"></span>
<span class=\"label\">";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title.explore_accommodation", [], "front"), "html", null, true);
echo "</span>
</a>
<div id=\"virtual-tour-modal\">
<div class=\"overlay\"></div>
<div class=\"content\">
<button class=\"btn-close\">x</button>
<iframe></iframe>
</div>
</div>
</div>
<br>
";
}
// line 137
echo "
";
}
// line 139
echo "
";
// line 140
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 140, $this->source); })()), "activeRooms", [], "any", false, false, false, 140));
foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
// line 141
echo " ";
$context["availabilityDate"] = twig_get_attribute($this->env, $this->source, $context["room"], "availablilityDate", [], "any", false, false, false, 141);
// line 142
echo "
<div class=\"row room\" id=\"room-";
// line 143
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 143), "html", null, true);
echo "\">
<div class=\"col-12 col-lg-3 col-xl-3 images\">
<div class=\"owl-carousel carousel-homes\" data-controller=\"carousel\" data-type=\"homes\">
";
// line 146
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["room"], "images", [], "any", false, false, false, 146));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 147
echo " <div class=\"illu\">
<img src=\"";
// line 148
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($context["image"], "room_slider"), "html", null, true);
echo "\" alt=\"\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 151
echo " </div> <!-- carousel -->
";
// line 153
if (twig_get_attribute($this->env, $this->source, $context["room"], "available", [], "any", false, false, false, 153)) {
// line 154
echo " <div class=\"available\">
<div class=\"text-ctn\">";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.room_available_now", [], "front"), "html", null, true);
echo "</div>
<img src=\"";
// line 156
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/triangle-darkgreen.png"), "html", null, true);
echo "\">
</div>
";
} else {
// line 159
echo " <div class=\"occupied\">
";
// line 160
if ( !(null === (isset($context["availabilityDate"]) || array_key_exists("availabilityDate", $context) ? $context["availabilityDate"] : (function () { throw new RuntimeError('Variable "availabilityDate" does not exist.', 160, $this->source); })()))) {
// line 161
echo " <div class=\"text-ctn\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.available_from", ["date" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, (isset($context["availabilityDate"]) || array_key_exists("availabilityDate", $context) ? $context["availabilityDate"] : (function () { throw new RuntimeError('Variable "availabilityDate" does not exist.', 161, $this->source); })()), "short", "none")], "front");
echo "</div>
";
} else {
// line 163
echo " <div class=\"text-ctn\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.room_not_available", [], "front"), "html", null, true);
echo "</div>
";
}
// line 165
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/triangle-darkgreen.png"), "html", null, true);
echo "\">
</div>
";
}
// line 168
echo " </div> <!-- images-->
<div class=\"col-12 col-lg-9 col-xl-6 infos\">
<h2>";
// line 170
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["room"], "name", [], "any", false, false, false, 170), "html", null, true);
echo "</h2>
<p>";
// line 171
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["room"], "description", [], "any", false, false, false, 171), "html", null, true);
echo "</p>
<h3>";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.room_equipment", [], "front"), "html", null, true);
echo "</h3>
<div class=\"equipment-list\" data-controller=\"equipment-list\">
";
// line 175
$context["totalEquipment"] = 0;
// line 176
echo " <ul class=\"equip-list\">
";
// line 177
if (twig_get_attribute($this->env, $this->source, $context["room"], "privateToilet", [], "any", false, false, false, 177)) {
// line 178
echo " ";
$context["totalEquipment"] = ((isset($context["totalEquipment"]) || array_key_exists("totalEquipment", $context) ? $context["totalEquipment"] : (function () { throw new RuntimeError('Variable "totalEquipment" does not exist.', 178, $this->source); })()) + 1);
// line 179
echo " <li><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/toilet.svg"), "html", null, true);
echo "\" alt=\"\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.privateToilet", [], "front"), "html", null, true);
echo "</li>
";
}
// line 181
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["room"], "privateBathroom", [], "any", false, false, false, 181)) {
// line 182
echo " ";
$context["totalEquipment"] = ((isset($context["totalEquipment"]) || array_key_exists("totalEquipment", $context) ? $context["totalEquipment"] : (function () { throw new RuntimeError('Variable "totalEquipment" does not exist.', 182, $this->source); })()) + 1);
// line 183
echo " <li><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/bathtub.svg"), "html", null, true);
echo "\" alt=\"\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.privateBathroom", [], "front"), "html", null, true);
echo "</li>
";
}
// line 185
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["room"], "privateKitchen", [], "any", false, false, false, 185)) {
// line 186
echo " ";
$context["totalEquipment"] = ((isset($context["totalEquipment"]) || array_key_exists("totalEquipment", $context) ? $context["totalEquipment"] : (function () { throw new RuntimeError('Variable "totalEquipment" does not exist.', 186, $this->source); })()) + 1);
// line 187
echo " <li><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/kitchen.svg"), "html", null, true);
echo "\" alt=\"\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.privateKitchen", [], "front"), "html", null, true);
echo "</li>
";
}
// line 189
echo "
";
// line 190
$context["totalEquipment"] = ((isset($context["totalEquipment"]) || array_key_exists("totalEquipment", $context) ? $context["totalEquipment"] : (function () { throw new RuntimeError('Variable "totalEquipment" does not exist.', 190, $this->source); })()) + twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["room"], "equipments", [], "any", false, false, false, 190)));
// line 191
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["room"], "equipments", [], "any", false, false, false, 191));
foreach ($context['_seq'] as $context["_key"] => $context["equipment"]) {
// line 192
echo " <li>
";
// line 193
if (twig_get_attribute($this->env, $this->source, $context["equipment"], "image", [], "any", false, false, false, 193)) {
// line 194
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["equipment"], "image", [], "any", false, false, false, 194), "getUrl", [], "method", false, false, false, 194), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["equipment"], "label", [], "any", false, false, false, 194), "html", null, true);
echo "\">
";
} else {
// line 196
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/icon-layers.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["equipment"], "label", [], "any", false, false, false, 196), "html", null, true);
echo "\">
";
}
// line 198
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["equipment"], "label", [], "any", false, false, false, 198), "html", null, true);
echo "
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 201
echo " </ul>
";
// line 202
if (((isset($context["totalEquipment"]) || array_key_exists("totalEquipment", $context) ? $context["totalEquipment"] : (function () { throw new RuntimeError('Variable "totalEquipment" does not exist.', 202, $this->source); })()) > 9)) {
// line 203
echo " <a href=\"\" class=\"seemore open-list\" data-action=\"equipment-list#more\">Voir tous les équipements</a>
<a href=\"\" class=\"seemore close-list\" data-action=\"equipment-list#less\">Réduire les équipements</a>
";
}
// line 206
echo " </div>
</div> <!-- infos-->
<div class=\"col-12 col-lg-12 col-xl-3 resa\">
<h3 class=\"price\">";
// line 210
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\FrontRuntime')->currency($this->extensions['Twig\Extra\Intl\IntlExtension']->formatCurrency(twig_get_attribute($this->env, $this->source, $context["room"], "rent", [], "any", false, false, false, 210), "EUR")), "html", null, true);
echo " <small>/ ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.month", [], "front"), "html", null, true);
echo "*</small></h3>
<p class=\"notice\">";
// line 211
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.maxHousingAssistance", [], "front"), "html", null, true);
echo " <span>-";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\FrontRuntime')->currency($this->extensions['Twig\Extra\Intl\IntlExtension']->formatCurrency(twig_get_attribute($this->env, $this->source, $context["room"], "maxHousingAssistance", [], "any", false, false, false, 211), "EUR")), "html", null, true);
echo "</span></p>
<p class=\"notice\">";
// line 212
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.charges", [], "front"), "html", null, true);
echo " <span>+";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\FrontRuntime')->currency($this->extensions['Twig\Extra\Intl\IntlExtension']->formatCurrency(twig_get_attribute($this->env, $this->source, $context["room"], "chargesFees", [], "any", false, false, false, 212), "EUR")), "html", null, true);
echo "</span></p>
";
// line 213
if (twig_get_attribute($this->env, $this->source, $context["room"], "cleaningFees", [], "any", false, false, false, 213)) {
// line 214
echo " <p class=\"notice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.cleaningFees", [], "front"), "html", null, true);
echo " <span>+";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\FrontRuntime')->currency($this->extensions['Twig\Extra\Intl\IntlExtension']->formatCurrency(twig_get_attribute($this->env, $this->source, $context["room"], "cleaningFees", [], "any", false, false, false, 214), "EUR")), "html", null, true);
echo "</span></p>
";
}
// line 216
echo " <h4>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.includedInCharges", [], "front"), "html", null, true);
echo "</h4>
<p class=\"included\"><span>•</span> ";
// line 217
echo twig_escape_filter($this->env, twig_join_filter(twig_array_map($this->env, twig_get_attribute($this->env, $this->source, $context["room"], "chargesDetails", [], "any", false, false, false, 217), function ($__c__) use ($context, $macros) { $context["c"] = $__c__; return twig_get_attribute($this->env, $this->source, (isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 217, $this->source); })()), "label", [], "any", false, false, false, 217); }), ", "), "html", null, true);
echo "</p>
";
// line 219
if (twig_get_attribute($this->env, $this->source, $context["room"], "available", [], "any", false, false, false, 219)) {
// line 220
echo " ";
if ( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
// line 221
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_booking_index", ["room" => twig_get_attribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 221)]), "html", null, true);
echo "\" class=\"reserve open-dynamic-modal\" data-route=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_user_modal_login");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.book_room", [], "front"), "html", null, true);
echo "</a>
";
} else {
// line 223
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_booking_index", ["room" => twig_get_attribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 223)]), "html", null, true);
echo "\" class=\"reserve\">
";
// line 224
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 224, $this->source); })()), "user", [], "any", false, false, false, 224), "isOccupyingRoom", [], "any", false, false, false, 224)) {
// line 225
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.book_room", [], "front"), "html", null, true);
echo "
";
} else {
// line 227
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.change_room", [], "front"), "html", null, true);
echo "
";
}
// line 229
echo " </a>
";
}
// line 231
echo " ";
} else {
// line 232
echo " <a href=\"#\" class=\"alert open-dynamic-modal\" data-route=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_accommodation_modal_waiting_list", ["id" => twig_get_attribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 232)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.availability_alert", [], "front"), "html", null, true);
echo "</a>
";
// line 233
if ( !(null === (isset($context["availabilityDate"]) || array_key_exists("availabilityDate", $context) ? $context["availabilityDate"] : (function () { throw new RuntimeError('Variable "availabilityDate" does not exist.', 233, $this->source); })()))) {
// line 234
echo " <p class=\"alert-notice\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.available_from", ["date" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, (isset($context["availabilityDate"]) || array_key_exists("availabilityDate", $context) ? $context["availabilityDate"] : (function () { throw new RuntimeError('Variable "availabilityDate" does not exist.', 234, $this->source); })()), "short", "none")], "front");
echo "</p>
";
}
// line 236
echo " ";
}
// line 237
echo "
<a href=\"https://api.whatsapp.com/send?phone=\" class=\"whatsapp\">Chat Whatsapp</a>
</div> <!-- resa-->
</div> <!-- room -->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['room'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 242
echo " <div class=\"btn-contact-room-container\">
<a href=\"";
// line 243
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_page_contact_room", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 243, $this->source); })()), "id", [], "any", false, false, false, 243)]), "html", null, true);
echo "\" class=\"btn btn-outline-dark btn-contact-room\">SE METTRE SUR LISTE D'ATTENTE</a>
</div>
</div>
</div>
</section> <!-- rooms -->
</div>
";
// line 250
$this->loadTemplate("front/_shared/faq.html.twig", "front/accommodation/accommodation-1.html.twig", 250)->display($context);
// line 251
echo " </main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 254
public function block_javascripts($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(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 255
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 258
public function block_javascripts_footer($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(), "block", "javascripts_footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts_footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/accommodation/accommodation-1.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 778 => 258, 765 => 255, 755 => 254, 744 => 251, 742 => 250, 732 => 243, 729 => 242, 719 => 237, 716 => 236, 710 => 234, 708 => 233, 701 => 232, 698 => 231, 694 => 229, 688 => 227, 682 => 225, 680 => 224, 675 => 223, 665 => 221, 662 => 220, 660 => 219, 655 => 217, 650 => 216, 642 => 214, 640 => 213, 634 => 212, 628 => 211, 622 => 210, 616 => 206, 611 => 203, 609 => 202, 606 => 201, 596 => 198, 588 => 196, 580 => 194, 578 => 193, 575 => 192, 570 => 191, 568 => 190, 565 => 189, 557 => 187, 554 => 186, 551 => 185, 543 => 183, 540 => 182, 537 => 181, 529 => 179, 526 => 178, 524 => 177, 521 => 176, 519 => 175, 514 => 173, 509 => 171, 505 => 170, 501 => 168, 494 => 165, 488 => 163, 482 => 161, 480 => 160, 477 => 159, 471 => 156, 467 => 155, 464 => 154, 462 => 153, 458 => 151, 449 => 148, 446 => 147, 442 => 146, 436 => 143, 433 => 142, 430 => 141, 426 => 140, 423 => 139, 419 => 137, 403 => 124, 398 => 122, 390 => 121, 385 => 118, 382 => 117, 377 => 114, 371 => 111, 366 => 110, 364 => 109, 356 => 103, 354 => 102, 347 => 97, 345 => 96, 341 => 94, 324 => 82, 315 => 75, 313 => 74, 308 => 71, 300 => 65, 288 => 61, 284 => 60, 281 => 59, 277 => 58, 272 => 55, 263 => 53, 259 => 52, 255 => 50, 249 => 46, 240 => 43, 237 => 42, 232 => 41, 226 => 38, 223 => 37, 221 => 36, 216 => 33, 214 => 32, 211 => 31, 201 => 30, 183 => 23, 179 => 22, 174 => 20, 164 => 18, 161 => 17, 151 => 16, 138 => 13, 128 => 12, 109 => 8, 90 => 7, 70 => 5, 59 => 1, 57 => 10, 55 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front/page.html.twig' %}
{% trans_default_domain 'front' %}
{% import \"front/_shared/macros.html.twig\" as macro %}
{% block body_class %}{{ parent() }} {% endblock %}
{% block meta_title %}{{ page.metaTitle }}{% endblock %}
{% block meta_description %}{{ page.metaDescription }}{% endblock %}
{% set isMobile = isMobile() %}
{% block header_class %}
{{ (isMobile) ? \"detail-head\" : \"dark-header\" }}
{% endblock %}
{% block header_content %}
{% if isMobile %}
<div id=\"accommodation-detail-header\" class=\"mobile\" style=\"{% if accommodation.cover %}background-image: url({{ accommodation.cover | imagine_filter('accommodation_slider') }});{% endif %}\">
<div class=\"intro\">
<h1><span>{{ accommodation.name }}</span></h1>
<h2 class=\"subtitle\">
{{ accommodation.address.address }}
<br>{{ accommodation.address.zipcode }} {{ accommodation.address.city }}
</h2>
</div>
</div>
{% endif %}
{% endblock %}
{% block page_content %}
{% if not isMobile %}
<div class=\"detail-head\">
<div class=\"detail-title-container container-fluid\">
<div class=\"owl-carousel carousel-detail\" data-controller=\"carousel\" data-type=\"detail\">
{% if accommodation.cover %}
<div>
<img src=\"{{ accommodation.cover | imagine_filter('accommodation_inline_slider') }}\" alt=\"\">
</div>
{% endif %}
{% for image in accommodation.images %}
<div>
<img src=\"{{ image | imagine_filter('accommodation_inline_slider') }}\" alt=\"\">
</div>
{% endfor %}
</div>
</div>
</div>
{% else %}
<div class=\"lightbox-gallery\">
{% for image in accommodation.images %}
<a href=\"{{ image | imagine_filter('accommodation_slider') }}\"></a>
{% endfor %}
</div>
<div id=\"mobile-gallery-thumbs\">
{% for image in accommodation.images|slice(0,4) %}
<div class=\"image-container\">
<a href=\"{{ image | imagine_filter('accommodation_slider') }}\" class=\"open-lightbox-gallery\">
<img src=\"{{ image | imagine_filter('accommodation_square_gallery') }}\" class=\"d-block w-100\" alt=\"{{ accommodation.name }} - photo\">
</a>
</div>
{% endfor %}
</div>
<div class=\"text-center mb-3\">
<button class=\"btn btn-primary open-lightbox-gallery\">VOIR TOUTES LES PHOTOS</button>
</div>
{% endif %}
<main class=\"detail detail-1\" data-controller=\"accommodation\">
{% if not isMobile %}
<div class=\"menu-detail d-none d-lg-block\">
<ul>
<li class=\"active\"><a href=\"#description\">Description</a></li>
<li><a href=\"#services\">Services</a></li>
<li><a href=\"#colocataires\">Colocataires</a></li>
<li><a href=\"#emplacement\">Emplacement</a></li>
<li><a href=\"#chambres\">Chambres</a></li>
<li><a href=\"{{ accommodation.virtualTour }}\" target=\"_blank\" class=\"btn-explore\"><img src=\"{{ asset('build/images/icons/icon_play.svg') }}\" alt=\"\"> Explorer</a></li>
</ul>
</div>
<div id=\"virtual-tour-modal\">
<div class=\"overlay\"></div>
<div class=\"content\">
<button class=\"btn-close\">x</button>
<iframe></iframe>
</div>
</div>
{% endif %}
<div class=\"bg-info-ctn\">
{% include 'front/accommodation/blocks/infos-1.html.twig' %}
<section class=\"container rooms\" id=\"chambres\">
<div class=\"row\">
<div class=\"col rooms-inner\">
{% if not isMobile %}
<h2 class=\"title-room\">Toutes <span>les chambres</span></h2>
<p class=\"intro-room\">
Retrouvez les autres chambres que nous proposons
</p>
<div class=\"row mb-5\">
<div class=\"col-12 col-md-12 lightbox-gallery text-center\">
{% if accommodation.plan %}
<a href=\"{{ accommodation.plan | imagine_filter('accommodation_slider') }}\">
<img class=\"plan\" src=\"{{ accommodation.plan | imagine_filter('accommodation_wide_thumb') }}\" alt=\"Plan des chambres\">
</a>
{% endif %}
</div>
</div>
{% else %}
{% if accommodation.virtualTour %}
<h2 class=\"detail-title\">
Visite <span>virtuelle</span>
</h2>
<div id=\"explore-button-container\" style=\"{% if accommodation.cover %}background-image: url({{ accommodation.cover | imagine_filter('accommodation_slider') }});{% endif %}\">
<a href=\"{{ accommodation.virtualTour }}\" target=\"_blank\" class=\"btn-explore\">
<span class=\"icon-play\"></span>
<span class=\"label\">{{ 'title.explore_accommodation'|trans }}</span>
</a>
<div id=\"virtual-tour-modal\">
<div class=\"overlay\"></div>
<div class=\"content\">
<button class=\"btn-close\">x</button>
<iframe></iframe>
</div>
</div>
</div>
<br>
{% endif %}
{% endif %}
{% for room in accommodation.activeRooms %}
{% set availabilityDate = room.availablilityDate %}
<div class=\"row room\" id=\"room-{{ room.id }}\">
<div class=\"col-12 col-lg-3 col-xl-3 images\">
<div class=\"owl-carousel carousel-homes\" data-controller=\"carousel\" data-type=\"homes\">
{% for image in room.images %}
<div class=\"illu\">
<img src=\"{{ image | imagine_filter('room_slider') }}\" alt=\"\">
</div>
{% endfor %}
</div> <!-- carousel -->
{% if room.available %}
<div class=\"available\">
<div class=\"text-ctn\">{{ 'label.room_available_now'|trans }}</div>
<img src=\"{{ asset('build/images/icons/triangle-darkgreen.png') }}\">
</div>
{% else %}
<div class=\"occupied\">
{% if availabilityDate is not null %}
<div class=\"text-ctn\">{{ 'label.available_from'|trans({date: availabilityDate|format_datetime('short', 'none')})|raw }}</div>
{% else %}
<div class=\"text-ctn\">{{ 'label.room_not_available'|trans }}</div>
{% endif %}
<img src=\"{{ asset('build/images/icons/triangle-darkgreen.png') }}\">
</div>
{% endif %}
</div> <!-- images-->
<div class=\"col-12 col-lg-9 col-xl-6 infos\">
<h2>{{ room.name }}</h2>
<p>{{ room.description }}</p>
<h3>{{ 'label.room_equipment'|trans }}</h3>
<div class=\"equipment-list\" data-controller=\"equipment-list\">
{% set totalEquipment = 0 %}
<ul class=\"equip-list\">
{% if room.privateToilet %}
{% set totalEquipment = totalEquipment+1 %}
<li><img src=\"{{ asset('build/images/icons/toilet.svg') }}\" alt=\"\"> {{ 'label.privateToilet'|trans }}</li>
{% endif %}
{% if room.privateBathroom %}
{% set totalEquipment = totalEquipment+1 %}
<li><img src=\"{{ asset('build/images/icons/bathtub.svg') }}\" alt=\"\"> {{ 'label.privateBathroom'|trans }}</li>
{% endif %}
{% if room.privateKitchen %}
{% set totalEquipment = totalEquipment+1 %}
<li><img src=\"{{ asset('build/images/icons/kitchen.svg') }}\" alt=\"\"> {{ 'label.privateKitchen'|trans }}</li>
{% endif %}
{% set totalEquipment = totalEquipment + room.equipments|length %}
{% for equipment in room.equipments %}
<li>
{% if equipment.image %}
<img src=\"{{ equipment.image.getUrl() }}\" alt=\"{{ equipment.label }}\">
{% else %}
<img src=\"{{ asset('build/images/icons/icon-layers.png') }}\" alt=\"{{ equipment.label }}\">
{% endif %}
{{ equipment.label }}
</li>
{% endfor %}
</ul>
{% if totalEquipment > 9 %}
<a href=\"\" class=\"seemore open-list\" data-action=\"equipment-list#more\">Voir tous les équipements</a>
<a href=\"\" class=\"seemore close-list\" data-action=\"equipment-list#less\">Réduire les équipements</a>
{% endif %}
</div>
</div> <!-- infos-->
<div class=\"col-12 col-lg-12 col-xl-3 resa\">
<h3 class=\"price\">{{ room.rent|format_currency('EUR')|currency }} <small>/ {{ 'label.month'|trans }}*</small></h3>
<p class=\"notice\">{{ 'label.maxHousingAssistance'|trans }} <span>-{{ room.maxHousingAssistance|format_currency('EUR')|currency }}</span></p>
<p class=\"notice\">{{ 'label.charges'|trans }} <span>+{{ room.chargesFees|format_currency('EUR')|currency }}</span></p>
{% if room.cleaningFees %}
<p class=\"notice\">{{ 'label.cleaningFees'|trans }} <span>+{{ room.cleaningFees|format_currency('EUR')|currency }}</span></p>
{% endif %}
<h4>{{ 'label.includedInCharges'|trans }}</h4>
<p class=\"included\"><span>•</span> {{ room.chargesDetails|map(c => c.label)|join(', ') }}</p>
{% if room.available %}
{% if not is_granted('IS_AUTHENTICATED_FULLY') %}
<a href=\"{{ path('front_booking_index', {room: room.id}) }}\" class=\"reserve open-dynamic-modal\" data-route=\"{{ path('front_user_modal_login') }}\">{{ 'action.book_room'|trans }}</a>
{% else %}
<a href=\"{{ path('front_booking_index', {room: room.id}) }}\" class=\"reserve\">
{% if not app.user.isOccupyingRoom %}
{{ 'action.book_room'|trans }}
{% else %}
{{ 'action.change_room'|trans }}
{% endif %}
</a>
{% endif %}
{% else %}
<a href=\"#\" class=\"alert open-dynamic-modal\" data-route=\"{{ path('front_accommodation_modal_waiting_list', {id: room.id}) }}\">{{ 'action.availability_alert'|trans }}</a>
{% if availabilityDate is not null %}
<p class=\"alert-notice\">{{ 'label.available_from'|trans({date: availabilityDate|format_datetime('short', 'none')})|raw }}</p>
{% endif %}
{% endif %}
<a href=\"https://api.whatsapp.com/send?phone=\" class=\"whatsapp\">Chat Whatsapp</a>
</div> <!-- resa-->
</div> <!-- room -->
{% endfor %}
<div class=\"btn-contact-room-container\">
<a href=\"{{ path('front_page_contact_room', {id: accommodation.id}) }}\" class=\"btn btn-outline-dark btn-contact-room\">SE METTRE SUR LISTE D'ATTENTE</a>
</div>
</div>
</div>
</section> <!-- rooms -->
</div>
{% include \"front/_shared/faq.html.twig\" %}
</main>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% block javascripts_footer %}
{% endblock %}", "front/accommodation/accommodation-1.html.twig", "/var/www/vps.citizens.fr/templates/front/accommodation/accommodation-1.html.twig");
}
}