var/cache/dev/twig/9a/9a264e364956f987326cf3dcc9fa64db.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/accommodation/blocks/sidebar-1.html.twig */
  14. class __TwigTemplate_81bdc97e144d8c04b889f8b30615134f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/accommodation/blocks/sidebar-1.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/accommodation/blocks/sidebar-1.html.twig"));
  33.         // line 2
  34.         $macros["macro"] = $this->macros["macro"] = $this->loadTemplate("front/_shared/macros.html.twig""front/accommodation/blocks/sidebar-1.html.twig"2)->unwrap();
  35.         // line 3
  36.         echo "
  37. <div class=\"accommodation-sidebar rooms-mini\">
  38.     <h2>Toutes <span>les chambres</span></h2>
  39.     ";
  40.         // line 8
  41.         $context['_parent'] = $context;
  42.         $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.'8$this->source); })()), "activeRooms", [], "any"falsefalsefalse8));
  43.         foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
  44.             // line 9
  45.             echo "    ";
  46.             $context["availabilityDate"] = twig_get_attribute($this->env$this->source$context["room"], "availablilityDate", [], "any"falsefalsefalse9);
  47.             // line 10
  48.             echo "        <div class=\"room row\">
  49.             <div class=\"col-12 col-lg-4 images\">
  50.                 <div class=\"owl-carousel carousel-homes\" data-controller=\"carousel\" data-type=\"homes\">
  51.                     ";
  52.             // line 13
  53.             $context['_parent'] = $context;
  54.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["room"], "images", [], "any"falsefalsefalse13));
  55.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  56.                 // line 14
  57.                 echo "                        <div class=\"illu\">
  58.                             <img src=\"";
  59.                 // line 15
  60.                 echo twig_escape_filter($this->env$this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($context["image"], "room_slider"), "html"nulltrue);
  61.                 echo "\" alt=\"\">
  62.                         </div>
  63.                     ";
  64.             }
  65.             $_parent $context['_parent'];
  66.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  67.             $context array_intersect_key($context$_parent) + $_parent;
  68.             // line 18
  69.             echo "                </div>
  70.                 ";
  71.             // line 19
  72.             if (twig_get_attribute($this->env$this->source$context["room"], "available", [], "any"falsefalsefalse19)) {
  73.                 // line 20
  74.                 echo "                    <div class=\"available\">
  75.                         <div class=\"text-ctn\">";
  76.                 // line 21
  77.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.room_available", [], "front"), "html"nulltrue);
  78.                 echo "</div>
  79.                         <img src=\"";
  80.                 // line 22
  81.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/triangle-darkgreen.png"), "html"nulltrue);
  82.                 echo "\">
  83.                     </div>
  84.                 ";
  85.             } else {
  86.                 // line 25
  87.                 echo "                    <div class=\"occupied\">
  88.                         ";
  89.                 // line 26
  90.                 if ( !(null === (isset($context["availabilityDate"]) || array_key_exists("availabilityDate"$context) ? $context["availabilityDate"] : (function () { throw new RuntimeError('Variable "availabilityDate" does not exist.'26$this->source); })()))) {
  91.                     // line 27
  92.                     echo "                            <div class=\"text-ctn\">";
  93.                     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.'27$this->source); })()), "short""none")], "front");
  94.                     echo "</div>
  95.                         ";
  96.                 } else {
  97.                     // line 29
  98.                     echo "                            <div class=\"text-ctn\">";
  99.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.room_not_available", [], "front"), "html"nulltrue);
  100.                     echo "</div>
  101.                         ";
  102.                 }
  103.                 // line 31
  104.                 echo "                        <img src=\"";
  105.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/triangle-darkgreen.png"), "html"nulltrue);
  106.                 echo "\">
  107.                     </div>
  108.                 ";
  109.             }
  110.             // line 34
  111.             echo "
  112.             </div> <!-- images-->
  113.             <div class=\"col-12 col-lg-8 infos\">
  114.                 <h3>";
  115.             // line 37
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["room"], "name", [], "any"falsefalsefalse37), "html"nulltrue);
  117.             echo "</h3>
  118.                 <p class=\"price\">";
  119.             // line 38
  120.             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"falsefalsefalse38), "EUR")), "html"nulltrue);
  121.             echo " <small>/ ";
  122.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.month", [], "front"), "html"nulltrue);
  123.             echo "*</p>
  124.                 <p class=\"notice\">";
  125.             // line 39
  126.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.maxHousingAssistance", [], "front"), "html"nulltrue);
  127.             echo " <span>-";
  128.             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"falsefalsefalse39), "EUR")), "html"nulltrue);
  129.             echo "</span></p>
  130.                 <p class=\"notice\">";
  131.             // line 40
  132.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.charges", [], "front"), "html"nulltrue);
  133.             echo " <span>+";
  134.             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"falsefalsefalse40), "EUR")), "html"nulltrue);
  135.             echo "</span></p>
  136.                 <a href=\"#room-";
  137.             // line 41
  138.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse41), "html"nulltrue);
  139.             echo "\" class=\"btn btn-primary btn-sm\">Voir la chambre</a>
  140.             </div> <!-- infos-->
  141.         </div> <!-- room -->
  142.     ";
  143.         }
  144.         $_parent $context['_parent'];
  145.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['room'], $context['_parent'], $context['loop']);
  146.         $context array_intersect_key($context$_parent) + $_parent;
  147.         // line 46
  148.         echo "
  149.     <div class=\"btn-contact-room-container\">
  150.         <a href=\"";
  151.         // line 48
  152.         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.'48$this->source); })()), "id", [], "any"falsefalsefalse48)]), "html"nulltrue);
  153.         echo "\" class=\"btn btn-outline-dark btn-contact-room\">SE METTRE SUR LISTE D'ATTENTE</a>
  154.     </div>
  155. </div> <!-- rooms mini -->";
  156.         
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  158.         
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160.     }
  161.     public function getTemplateName()
  162.     {
  163.         return "front/accommodation/blocks/sidebar-1.html.twig";
  164.     }
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     public function getDebugInfo()
  170.     {
  171.         return array (  164 => 48,  160 => 46,  149 => 41,  143 => 40,  137 => 39,  131 => 38,  127 => 37,  122 => 34,  115 => 31,  109 => 29,  103 => 27,  101 => 26,  98 => 25,  92 => 22,  88 => 21,  85 => 20,  83 => 19,  80 => 18,  71 => 15,  68 => 14,  64 => 13,  59 => 10,  56 => 9,  52 => 8,  45 => 3,  43 => 2,);
  172.     }
  173.     public function getSourceContext()
  174.     {
  175.         return new Source("{% trans_default_domain 'front' %}
  176. {% import \"front/_shared/macros.html.twig\" as macro %}
  177. <div class=\"accommodation-sidebar rooms-mini\">
  178.     <h2>Toutes <span>les chambres</span></h2>
  179.     {% for room in accommodation.activeRooms %}
  180.     {% set availabilityDate = room.availablilityDate %}
  181.         <div class=\"room row\">
  182.             <div class=\"col-12 col-lg-4 images\">
  183.                 <div class=\"owl-carousel carousel-homes\" data-controller=\"carousel\" data-type=\"homes\">
  184.                     {% for image in room.images %}
  185.                         <div class=\"illu\">
  186.                             <img src=\"{{ image | imagine_filter('room_slider') }}\" alt=\"\">
  187.                         </div>
  188.                     {% endfor %}
  189.                 </div>
  190.                 {% if room.available %}
  191.                     <div class=\"available\">
  192.                         <div class=\"text-ctn\">{{ 'label.room_available'|trans }}</div>
  193.                         <img src=\"{{ asset('build/images/icons/triangle-darkgreen.png') }}\">
  194.                     </div>
  195.                 {% else %}
  196.                     <div class=\"occupied\">
  197.                         {% if availabilityDate is not null %}
  198.                             <div class=\"text-ctn\">{{ 'label.available_from'|trans({date: availabilityDate|format_datetime('short', 'none')})|raw }}</div>
  199.                         {% else %}
  200.                             <div class=\"text-ctn\">{{ 'label.room_not_available'|trans }}</div>
  201.                         {% endif %}
  202.                         <img src=\"{{ asset('build/images/icons/triangle-darkgreen.png') }}\">
  203.                     </div>
  204.                 {% endif %}
  205.             </div> <!-- images-->
  206.             <div class=\"col-12 col-lg-8 infos\">
  207.                 <h3>{{ room.name }}</h3>
  208.                 <p class=\"price\">{{ room.rent|format_currency('EUR')|currency }} <small>/ {{ 'label.month'|trans }}*</p>
  209.                 <p class=\"notice\">{{ 'label.maxHousingAssistance'|trans }} <span>-{{ room.maxHousingAssistance|format_currency('EUR')|currency }}</span></p>
  210.                 <p class=\"notice\">{{ 'label.charges'|trans }} <span>+{{ room.chargesFees|format_currency('EUR')|currency }}</span></p>
  211.                 <a href=\"#room-{{ room.id }}\" class=\"btn btn-primary btn-sm\">Voir la chambre</a>
  212.             </div> <!-- infos-->
  213.         </div> <!-- room -->
  214.     {% endfor %}
  215.     <div class=\"btn-contact-room-container\">
  216.         <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>
  217.     </div>
  218. </div> <!-- rooms mini -->""front/accommodation/blocks/sidebar-1.html.twig""/var/www/vps.citizens.fr/templates/front/accommodation/blocks/sidebar-1.html.twig");
  219.     }
  220. }