var/cache/dev/twig/66/66f56a9e077d476cce17024fb357fedb57e8fcd8f497c6e779bbd4484804bba3.php line 79

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. /* property-detail.html.twig */
  14. class __TwigTemplate_253be1f0b3732bcd01f2736c308ad51bb3e34385b52ed44c7de93b12889bc616 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""property-detail.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""property-detail.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""property-detail.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Détails - ";
  55.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'3$this->source); })()), "reference", [], "any"falsefalsefalse3), "html"nulltrue);
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 5
  62.     public function block_body($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  69.         // line 6
  70.         echo "
  71.     <header class=\"header-habiter slider-home slider-not-home who-is bottom-right-border position-relative overflow-hidden to-right lightbox-on\" 
  72.     id=\"sliderHeader\"  
  73.     style=\"background: url(";
  74.         // line 9
  75.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'9$this->source); })()), "pictures", [], "any"falsefalsefalse9), 0, [], "array"falsefalsefalse9), "url", [], "any"falsefalsefalse9), "html"nulltrue);
  76.         echo ") center center no-repeat;background-size:cover; position: relative; height: 91vh; cursor: zoom-in;\"
  77.     data-id=\"modul-ref\">
  78.         <div class=\"container-fluid\" style=\"padding: 0\">
  79.             <div class=\"col-lg-4 mx-auto\" style=\"display: none;\">
  80.                 <div class=\"arrows-slides\" style=\"display: flex; justify-content: space-between; margin-top: 20px; align-items: center; position: absolute\">
  81.                     <div class=\"arrow-right\" id=\"slideNextHeader\"><a><i class=\"fas fa-arrow-left\"></i></a></div>
  82.                     <div><span class=\"current-figure\">01</span><span class=\"bar-figure\">/</span><span class=\"last-figure\">";
  83.         // line 15
  84.         echo twig_escape_filter($this->env, (((>= twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'15$this->source); })()), "pictures", [], "any"falsefalsefalse15)), 9))) ? (("0" twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'15$this->source); })()), "pictures", [], "any"falsefalsefalse15)))) : (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'15$this->source); })()), "pictures", [], "any"falsefalsefalse15)))), "html"nulltrue);
  85.         echo "</span></div>
  86.                     <div class=\"arrow-left\" id=\"slidePreviousHeader\"><a><i class=\"fas fa-arrow-right\"></i></a></div>
  87.                 </div>
  88.             </div>
  89.             ";
  90.         // line 42
  91.         echo "
  92.         </div>
  93.         <div class=\"sticky-text\">Cliquer ici<br/>pour voir toutes les photos</div>
  94.         ";
  95.         // line 47
  96.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'47$this->source); })()), "pictures", [], "any"falsefalsefalse47))) {
  97.             // line 48
  98.             echo "            <div class=\"lightbox\" id=\"modul-ref\">
  99.                 <div class=\"closer\"></div>
  100.                 <div class=\"arrows left\">&#8592;</div>
  101.                 <div class=\"arrows right\">&#8594;</div>
  102.                 <div class=\"counter\">1/1</div>
  103.                 <ul class=\"items\">
  104.                     ";
  105.             // line 54
  106.             $context['_parent'] = $context;
  107.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'54$this->source); })()), "pictures", [], "any"falsefalsefalse54));
  108.             foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  109.                 // line 55
  110.                 echo "                        <li class=\"item\">
  111.                             <img class=\"img\" src=\"";
  112.                 // line 56
  113.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse56), "html"nulltrue);
  114.                 echo "\">
  115.                         </li>
  116.                     ";
  117.             }
  118.             $_parent $context['_parent'];
  119.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  120.             $context array_intersect_key($context$_parent) + $_parent;
  121.             // line 59
  122.             echo "                </ul>
  123.             </div>
  124.         ";
  125.         }
  126.         // line 62
  127.         echo "        ";
  128.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'62$this->source); })()), "pictures", [], "any"falsefalsefalse62))) {
  129.             // line 63
  130.             echo "            ";
  131.             $context['_parent'] = $context;
  132.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'63$this->source); })()), "pictures", [], "any"falsefalsefalse63));
  133.             $context['loop'] = [
  134.               'parent' => $context['_parent'],
  135.               'index0' => 0,
  136.               'index'  => 1,
  137.               'first'  => true,
  138.             ];
  139.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  140.                 $length count($context['_seq']);
  141.                 $context['loop']['revindex0'] = $length 1;
  142.                 $context['loop']['revindex'] = $length;
  143.                 $context['loop']['length'] = $length;
  144.                 $context['loop']['last'] = === $length;
  145.             }
  146.             foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  147.                 // line 64
  148.                 echo "                <div class=\"lightbox\" id=\"modul-ref-";
  149.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse64), "html"nulltrue);
  150.                 echo "\">
  151.                     <div class=\"closer\"></div>
  152.                     <ul class=\"items\">
  153.                         <li class=\"item\">
  154.                             <img class=\"img\" src=\"";
  155.                 // line 68
  156.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse68), "html"nulltrue);
  157.                 echo "\">
  158.                         </li>
  159.                     </ul>
  160.                 </div>
  161.             ";
  162.                 ++$context['loop']['index0'];
  163.                 ++$context['loop']['index'];
  164.                 $context['loop']['first'] = false;
  165.                 if (isset($context['loop']['length'])) {
  166.                     --$context['loop']['revindex0'];
  167.                     --$context['loop']['revindex'];
  168.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  169.                 }
  170.             }
  171.             $_parent $context['_parent'];
  172.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  173.             $context array_intersect_key($context$_parent) + $_parent;
  174.             // line 73
  175.             echo "        ";
  176.         }
  177.         // line 74
  178.         echo "    </header>
  179.     ";
  180.         // line 87
  181.         echo "
  182.     ";
  183.         // line 111
  184.         echo "
  185.     <section class=\"items-property-single mt-5 mb-5 pb-5\">
  186.         <div class=\"row col-lg-8 mx-auto\">
  187.             ";
  188.         // line 115
  189.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'115$this->source); })()), "area", [], "any"falsefalsefalse115), "value", [], "any"falsefalsefalse115)) {
  190.             // line 116
  191.             echo "                <div class=\"item-single\">
  192.                     <img src=\"";
  193.             // line 117
  194.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/surface.svg"), "html"nulltrue);
  195.             echo "\" alt=\"Icone surface\">
  196.                     <span>";
  197.             // line 118
  198.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'118$this->source); })()), "area", [], "any"falsefalsefalse118), "value", [], "any"falsefalsefalse118), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'118$this->source); })()), "area", [], "any"falsefalsefalse118), "value", [], "any"falsefalsefalse118) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'118$this->source); })()), "area", [], "any"falsefalsefalse118), "unit", [], "any"falsefalsefalse118))), "html"nulltrue))));
  199.             echo "</span>
  200.                 </div>
  201.             ";
  202.         }
  203.         // line 121
  204.         echo "            ";
  205.         if (twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'121$this->source); })()), "bedrooms", [], "any"falsefalsefalse121)) {
  206.             // line 122
  207.             echo "                <div class=\"item-single\">
  208.                     <img src=\"";
  209.             // line 123
  210.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/chambre.svg"), "html"nulltrue);
  211.             echo "\" alt=\"Icone chambre\">
  212.                     <span>";
  213.             // line 124
  214.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'124$this->source); })()), "bedrooms", [], "any"falsefalsefalse124), "html"nulltrue);
  215.             echo " chambre";
  216.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'124$this->source); })()), "bedrooms", [], "any"falsefalsefalse124), 1))) {
  217.                 echo "s";
  218.             }
  219.             echo "</span>
  220.                 </div>
  221.             ";
  222.         }
  223.         // line 127
  224.         echo "            ";
  225.         $context['_parent'] = $context;
  226.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'127$this->source); })()), "areas", [], "any"falsefalsefalse127));
  227.         foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
  228.             // line 128
  229.             echo "                ";
  230.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse128), 13))) {
  231.                 // line 129
  232.                 echo "                    <div class=\"item-single\">
  233.                         <img src=\"";
  234.                 // line 130
  235.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/salle_bain.svg"), "html"nulltrue);
  236.                 echo "\" alt=\"Icone salle de bain\">
  237.                         <span>";
  238.                 // line 131
  239.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "number", [], "any"falsefalsefalse131), "html"nulltrue);
  240.                 echo " ";
  241.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse131)), "html"nulltrue);
  242.                 echo "</span>
  243.                     </div>
  244.                 ";
  245.             }
  246.             // line 134
  247.             echo "            ";
  248.         }
  249.         $_parent $context['_parent'];
  250.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
  251.         $context array_intersect_key($context$_parent) + $_parent;
  252.         // line 135
  253.         echo "            ";
  254.         $context['_parent'] = $context;
  255.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'135$this->source); })()), "areas", [], "any"falsefalsefalse135));
  256.         foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
  257.             // line 136
  258.             echo "                ";
  259.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse136), 4))) {
  260.                 // line 137
  261.                 echo "                    <div class=\"item-single\">
  262.                         <img src=\"";
  263.                 // line 138
  264.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/garage.svg"), "html"nulltrue);
  265.                 echo "\" alt=\"Icone garage\">
  266.                         <span>";
  267.                 // line 139
  268.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "number", [], "any"falsefalsefalse139), "html"nulltrue);
  269.                 echo " ";
  270.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse139)), "html"nulltrue);
  271.                 echo "</span>
  272.                     </div>
  273.                 ";
  274.             }
  275.             // line 142
  276.             echo "            ";
  277.         }
  278.         $_parent $context['_parent'];
  279.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
  280.         $context array_intersect_key($context$_parent) + $_parent;
  281.         // line 143
  282.         echo "            ";
  283.         $context['_parent'] = $context;
  284.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'143$this->source); })()), "areas", [], "any"falsefalsefalse143));
  285.         foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
  286.             // line 144
  287.             echo "                ";
  288.             if (((=== twig_compare(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse144), 74)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse144), 75)))) {
  289.                 // line 145
  290.                 echo "                    <div class=\"item-single\">
  291.                         <img src=\"";
  292.                 // line 146
  293.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/parking.svg"), "html"nulltrue);
  294.                 echo "\" alt=\"Icone parking\">
  295.                         <span>";
  296.                 // line 147
  297.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "number", [], "any"falsefalsefalse147), "html"nulltrue);
  298.                 echo " ";
  299.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse147)), "html"nulltrue);
  300.                 echo "</span>
  301.                     </div>
  302.                 ";
  303.             }
  304.             // line 150
  305.             echo "            ";
  306.         }
  307.         $_parent $context['_parent'];
  308.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
  309.         $context array_intersect_key($context$_parent) + $_parent;
  310.         // line 151
  311.         echo "            ";
  312.         $context['_parent'] = $context;
  313.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'151$this->source); })()), "areas", [], "any"falsefalsefalse151));
  314.         foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
  315.             // line 152
  316.             echo "                ";
  317.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse152), 18))) {
  318.                 // line 153
  319.                 echo "                    <div class=\"item-single\">
  320.                         <img src=\"";
  321.                 // line 154
  322.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/terasse.svg"), "html"nulltrue);
  323.                 echo "\" alt=\"Icone terasse\">
  324.                         <span>";
  325.                 // line 155
  326.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "number", [], "any"falsefalsefalse155), "html"nulltrue);
  327.                 echo " ";
  328.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env$this->source$context["area"], "type", [], "any"falsefalsefalse155)), "html"nulltrue);
  329.                 echo "</span>
  330.                     </div>
  331.                 ";
  332.             }
  333.             // line 158
  334.             echo "            ";
  335.         }
  336.         $_parent $context['_parent'];
  337.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
  338.         $context array_intersect_key($context$_parent) + $_parent;
  339.         // line 159
  340.         echo "            ";
  341.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'159$this->source); })()), "construction", [], "any"falsefalsefalse159), "construction_year", [], "any"falsefalsefalse159)) {
  342.             // line 160
  343.             echo "                <div class=\"item-single\">
  344.                     <img src=\"";
  345.             // line 161
  346.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/construction.svg"), "html"nulltrue);
  347.             echo "\" alt=\"Icone date construction\">
  348.                     <span>Année de construction : ";
  349.             // line 162
  350.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'162$this->source); })()), "construction", [], "any"falsefalsefalse162), "construction_year", [], "any"falsefalsefalse162), "html"nulltrue);
  351.             echo "</span>
  352.                 </div>
  353.             ";
  354.         }
  355.         // line 165
  356.         echo "            ";
  357.         if (twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'165$this->source); })()), "available_at", [], "any"falsefalsefalse165)) {
  358.             // line 166
  359.             echo "                <div class=\"item-single availability\">
  360.                     <img src=\"";
  361.             // line 167
  362.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/dispo.svg"), "html"nulltrue);
  363.             echo "\" alt=\"Icone disponibilité\">
  364.                     <span>Disponibilité<br>";
  365.             // line 168
  366.             (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'168$this->source); })()), "available_at", [], "any"falsefalsefalse168), null))) ? (print ("-")) : (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'168$this->source); })()), "available_at", [], "any"falsefalsefalse168), "html"nulltrue))));
  367.             echo "</span>
  368.                 </div>
  369.             ";
  370.         }
  371.         // line 171
  372.         echo "        </div>
  373.     </section>
  374.     <section class=\"desc-property mt-5\">
  375.         <div class=\"col-lg-8 mx-auto\">
  376.             <div class=\"row\">
  377.                 <div class=\"col-md-4\">
  378.                     <div class=\"col-lg-12\" style=\"display: flex;flex-direction: column;margin-left: 10px;\">
  379.                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  380.                             <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
  381.                         </svg>
  382.                         <h1 class=\"project-title\" style=\"font-size: 2.3em;font-weight: bold\">Descriptif</h1>
  383.                         <p class=\"city\">Belval</p>
  384.                         <p class=\"project-name\">2.0.CO2</p>
  385.                         <p class=\"price\" style=\"color:#F6A400\">
  386.                             ";
  387.         // line 186
  388.         (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'186$this->source); })()), "price", [], "any"falsefalsefalse186), "value", [], "any"falsefalsefalse186), null))) ? (print ("<span style=\"font-size: 14px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'186$this->source); })()), "price", [], "any"falsefalsefalse186), "value", [], "any"falsefalsefalse186), 2","" ") . twig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'186$this->source); })()), "price", [], "any"falsefalsefalse186), "currency", [], "any"falsefalsefalse186), ["EUR" => " €"])), "html"nulltrue))));
  389.         echo "
  390.                         </p>
  391.                         <div class=\"col-md-10 row list-pictures\">
  392.                             ";
  393.         // line 190
  394.         $context['_parent'] = $context;
  395.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'190$this->source); })()), "pictures", [], "any"falsefalsefalse190));
  396.         $context['loop'] = [
  397.           'parent' => $context['_parent'],
  398.           'index0' => 0,
  399.           'index'  => 1,
  400.           'first'  => true,
  401.         ];
  402.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  403.             $length count($context['_seq']);
  404.             $context['loop']['revindex0'] = $length 1;
  405.             $context['loop']['revindex'] = $length;
  406.             $context['loop']['length'] = $length;
  407.             $context['loop']['last'] = === $length;
  408.         }
  409.         foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  410.             // line 191
  411.             echo "                                <div class=\"col-md-4\" style=\"margin-bottom:10px;\">
  412.                                     <div class=\"img lightbox-on-second\"
  413.                                          style=\"background:url('";
  414.             // line 193
  415.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse193), "html"nulltrue);
  416.             echo "')no-repeat center;background-size:cover;max-height:90px;width:100%;margin:0!important;\"
  417.                                          data-id=\"modul-ref-";
  418.             // line 194
  419.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse194), "html"nulltrue);
  420.             echo "\">
  421.                                     </div>
  422.                                 </div>
  423.                             ";
  424.             ++$context['loop']['index0'];
  425.             ++$context['loop']['index'];
  426.             $context['loop']['first'] = false;
  427.             if (isset($context['loop']['length'])) {
  428.                 --$context['loop']['revindex0'];
  429.                 --$context['loop']['revindex'];
  430.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  431.             }
  432.         }
  433.         $_parent $context['_parent'];
  434.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  435.         $context array_intersect_key($context$_parent) + $_parent;
  436.         // line 198
  437.         echo "                        </div>
  438.                         <div class=\"contact-property col-md-10 mt-4 p-3\">
  439.                             <p>Pour plus d’informations concernant ce bien contactez</p>
  440.                             <h3>";
  441.         // line 202
  442.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'202$this->source); })()), "user", [], "any"falsefalsefalse202), "firstname", [], "any"falsefalsefalse202), "html"nulltrue);
  443.         echo " ";
  444.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'202$this->source); })()), "user", [], "any"falsefalsefalse202), "lastname", [], "any"falsefalsefalse202), "html"nulltrue);
  445.         echo "</h3>
  446.                         </div>
  447.                         <div class=\"contacinfos col-md-10 p-3 d-flex justify-content-between\">
  448.                             <a href=\"mailto:";
  449.         // line 205
  450.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'205$this->source); })()), "user", [], "any"falsefalsefalse205), "email", [], "any"falsefalsefalse205), "html"nulltrue);
  451.         echo "\">
  452.                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"21.418\" height=\"14.503\" viewBox=\"0 0 21.418 14.503\">
  453.                                     <path id=\"np_mail_91_000000\" d=\"M0,17V30.5H20.418V17Zm18.932.818L10.209,25.26,1.487,17.818Zm-18.115.5,6.134,5.232L.817,29.34Zm.825,11.363,5.935-5.6,2.632,2.245,2.632-2.245,5.935,5.6ZM19.6,29.34l-6.134-5.785L19.6,18.322Z\" transform=\"translate(0.5 -16.5)\" fill=\"#fff\" stroke=\"#fff\" stroke-width=\"1\"/>
  454.                                 </svg>
  455.                             </a>
  456.                             <a href=\"tel:";
  457.         // line 210
  458.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'210$this->source); })()), "user", [], "any"falsefalsefalse210), "mobile", [], "any"falsefalsefalse210), "html"nulltrue);
  459.         echo "\" style=\"text-decoration:none;color:#fff;\">
  460.                                 <svg id=\"np_phone-call_3960627_000000\" xmlns=\"http://www.w3.org/2000/svg\" width=\"22.518\" height=\"20.105\" viewBox=\"0 0 22.518 20.105\">
  461.                                     <path id=\"Tracé_116\" data-name=\"Tracé 116\" d=\"M25.549,35.73h.8V34.122h2.413V32.513H26.354V29.522L20.6,27.608l-2.155,1.44a14.328,14.328,0,0,1-5.428-5.38L14.4,22.292l-1.914-6.667H6.249v.8a19.22,19.22,0,0,0,19.3,19.3Zm-14.274-18.5,1.311,4.592L11.074,23.37l.273.523a15.953,15.953,0,0,0,6.82,6.8l.426.217,2.292-1.536,3.86,1.3v3.442A17.734,17.734,0,0,1,7.857,17.234Z\" transform=\"translate(-6.248 -15.626)\" fill=\"#fff\"/>
  462.                                 </svg>
  463.                                 ";
  464.         // line 214
  465.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'214$this->source); })()), "user", [], "any"falsefalsefalse214), "mobile", [], "any"falsefalsefalse214), "html"nulltrue);
  466.         echo "
  467.                             </a>
  468.                         </div>
  469.                     </div>
  470.                 </div>
  471.                 <div class=\"col-md-8 description-prop-container\">
  472.                     <div class=\"description-prop pt-3\">
  473.                         <p>";
  474.         // line 221
  475.         echo twig_nl2br(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'221$this->source); })()), "comments", [], "any"falsefalsefalse221), 0, [], "array"falsefalsefalse221), "comment", [], "any"falsefalsefalse221));
  476.         echo "</p>
  477.                     </div>
  478.                 </div>
  479.             </div>
  480.         </div>
  481.     </section>
  482.     ";
  483.         // line 340
  484.         echo "
  485.     <section class=\"similar-properties\">
  486.         ";
  487.         // line 343
  488.         $context["sectionContent1"] = $this->extensions['App\Twig\ContentExtension']->Content("Bien-detail""Section-1");
  489.         // line 344
  490.         echo "        <div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
  491.             <div class=\"col-lg-5\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
  492.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  493.                     <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
  494.                 </svg>
  495.                 <h1 class=\"project-title\" style=\"font-weight: bold\">";
  496.         // line 349
  497.         if (twig_get_attribute($this->env$this->source, ($context["sectionContent1"] ?? null), "name", [], "any"truetruefalse349)) {
  498.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sectionContent1"]) || array_key_exists("sectionContent1"$context) ? $context["sectionContent1"] : (function () { throw new RuntimeError('Variable "sectionContent1" does not exist.'349$this->source); })()), "name", [], "any"falsefalsefalse349), "html"nulltrue);
  499.         } else {
  500.             echo "NOS BIENS SIMILAIRES";
  501.         }
  502.         echo "</h1>
  503.             </div>
  504.             <div class=\"separator\"></div>
  505.             <div class=\"col-lg-6 pre-section-content\">
  506.                 ";
  507.         // line 353
  508.         if (twig_get_attribute($this->env$this->source, ($context["sectionContent1"] ?? null), "content", [], "any"truetruefalse353)) {
  509.             echo twig_get_attribute($this->env$this->source, (isset($context["sectionContent1"]) || array_key_exists("sectionContent1"$context) ? $context["sectionContent1"] : (function () { throw new RuntimeError('Variable "sectionContent1" does not exist.'353$this->source); })()), "content", [], "any"falsefalsefalse353);
  510.         }
  511.         // line 354
  512.         echo "            </div>
  513.         </div>
  514.         <div  class=\"col-lg-8 mx-auto\">
  515.             <div id=\"propertiesOther\" class=\"col-lg-12 mt-5\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
  516.                 ";
  517.         // line 360
  518.         $context['_parent'] = $context;
  519.         $context['_seq'] = twig_ensure_traversable((isset($context["otherProperties"]) || array_key_exists("otherProperties"$context) ? $context["otherProperties"] : (function () { throw new RuntimeError('Variable "otherProperties" does not exist.'360$this->source); })()));
  520.         $context['loop'] = [
  521.           'parent' => $context['_parent'],
  522.           'index0' => 0,
  523.           'index'  => 1,
  524.           'first'  => true,
  525.         ];
  526.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  527.             $length count($context['_seq']);
  528.             $context['loop']['revindex0'] = $length 1;
  529.             $context['loop']['revindex'] = $length;
  530.             $context['loop']['length'] = $length;
  531.             $context['loop']['last'] = === $length;
  532.         }
  533.         foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
  534.             // line 361
  535.             echo "                    <div  class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
  536.                         ";
  537.             // line 384
  538.             echo "
  539.                         ";
  540.             // line 387
  541.             echo "                        ";
  542.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["property"], "pictures", [], "any"falsefalsefalse387))) {
  543.                 // line 388
  544.                 echo "                            <div class=\"position-relative properties-slide slick-slide-single-";
  545.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse388), "html"nulltrue);
  546.                 echo "\">
  547.                                 ";
  548.                 // line 389
  549.                 $context['_parent'] = $context;
  550.                 $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_get_attribute($this->env$this->source$context["property"], "pictures", [], "any"falsefalsefalse389), 03));
  551.                 foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  552.                     // line 390
  553.                     echo "                                    ";
  554.                     // line 391
  555.                     echo "                                    <div class=\"img\" style=\"background: url('";
  556.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse391), "html"nulltrue);
  557.                     echo "')no-repeat center;background-size:cover;\"  onclick=\"location.href='";
  558.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("property-detail", ["id" => twig_get_attribute($this->env$this->source$context["property"], "id", [], "any"falsefalsefalse391)]), "html"nulltrue);
  559.                     echo "'\">
  560.                                     </div>
  561.                                 ";
  562.                 }
  563.                 $_parent $context['_parent'];
  564.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  565.                 $context array_intersect_key($context$_parent) + $_parent;
  566.                 // line 394
  567.                 echo "                            </div>
  568.                         ";
  569.             } else {
  570.                 // line 397
  571.                 echo "                            <div class=\"img\" style=\"background-image: url('";
  572.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/Hudson_Ontario2.png"), "html"nulltrue);
  573.                 echo "')\"></div>
  574.                         ";
  575.             }
  576.             // line 399
  577.             echo "                        <div class=\"row col-md-12 justify-content-between infos-list\">
  578.                             <ul class=\"col-md-4 items\">
  579.                                 <li class=\"item surface\">
  580.                                     <img src=\"";
  581.             // line 402
  582.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/surface.svg"), "html"nulltrue);
  583.             echo "\" class=\"surface-logo\"> ";
  584.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse402), "value", [], "any"falsefalsefalse402), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse402), "value", [], "any"falsefalsefalse402) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse402), "unit", [], "any"falsefalsefalse402))), "html"nulltrue))));
  585.             echo "
  586.                                 </li>
  587.                             </ul>
  588.                             <div class=\"col-md-8 properties-price d-flex justify-content-end\">
  589.                                 ";
  590.             // line 406
  591.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse406), "value", [], "any"falsefalsefalse406), null))) ? (print ("<span style=\"font-size: 14px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse406), "value", [], "any"falsefalsefalse406), 2","" ") . twig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse406), "currency", [], "any"falsefalsefalse406), ["EUR" => " €"])), "html"nulltrue))));
  592.             echo "
  593.                             </div>
  594.                         </div>
  595.                         <p class=\"city\">";
  596.             // line 409
  597.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "city", [], "any"falsefalsefalse409), "name", [], "any"falsefalsefalse409), "html"nulltrue);
  598.             echo "</p>
  599.                         <p class=\"project-name\">";
  600.             // line 410
  601.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["property"], "reference", [], "any"falsefalsefalse410), "html"nulltrue);
  602.             echo "</p>
  603.                     </div>
  604.                 ";
  605.             ++$context['loop']['index0'];
  606.             ++$context['loop']['index'];
  607.             $context['loop']['first'] = false;
  608.             if (isset($context['loop']['length'])) {
  609.                 --$context['loop']['revindex0'];
  610.                 --$context['loop']['revindex'];
  611.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  612.             }
  613.         }
  614.         $_parent $context['_parent'];
  615.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
  616.         $context array_intersect_key($context$_parent) + $_parent;
  617.         // line 413
  618.         echo "            </div>
  619.             ";
  620.         // line 414
  621.         $context["paramUrl"] = twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'414$this->source); })()), "category", [], "any"falsefalsefalse414);
  622.         // line 415
  623.         echo "            ";
  624.         if ((=== twig_compare((isset($context["paramUrl"]) || array_key_exists("paramUrl"$context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.'415$this->source); })()), 1))) {
  625.             // line 416
  626.             echo "                ";
  627.             $context["paramUrl"] = "vente";
  628.             // line 417
  629.             echo "            ";
  630.         } elseif ((=== twig_compare((isset($context["paramUrl"]) || array_key_exists("paramUrl"$context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.'417$this->source); })()), 2))) {
  631.             // line 418
  632.             echo "                ";
  633.             $context["paramUrl"] = "location";
  634.             // line 419
  635.             echo "            ";
  636.         }
  637.         // line 420
  638.         echo "            <div id=\"link-none\" class=\"col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end\" style=\"margin-top:0;\">
  639.                 <div style=\"padding-bottom:40px;\">
  640.                     <a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"";
  641.         // line 422
  642.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("properties", ["keyword" => (isset($context["paramUrl"]) || array_key_exists("paramUrl"$context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.'422$this->source); })())]), "html"nulltrue);
  643.         echo "\">Découvrir plus
  644.                         <svg class=\"svg-inline--fa fa-arrow-right fa-w-14 property-arrow\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"arrow-right\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"></path></svg><!-- <i class=\"fas fa-arrow-right property-arrow\"></i> Font Awesome fontawesome.com -->
  645.                     </a>
  646.                 </div>
  647.             </div>
  648.         </div>
  649.     </section>
  650.     <script>
  651.         const slideNextHeader = document.getElementById('slideNextHeader');
  652.         const slidePreviousHeader = document.getElementById('slidePreviousHeader');
  653.         const currentFigure = document.getElementsByClassName('current-figure')
  654.         const lastFigure = document.getElementsByClassName('last-figure')
  655.         let slideHeader = document.getElementById('sliderHeader');
  656.         let positionHeader = 0;
  657.         let positionThumbHeader = 1;
  658.         arraySlidesHeader = [
  659.             ";
  660.         // line 441
  661.         $context['_parent'] = $context;
  662.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'441$this->source); })()), "pictures", [], "any"falsefalsefalse441));
  663.         foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
  664.             // line 442
  665.             echo "            {
  666.                 'position': ";
  667.             // line 443
  668.             echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  669.             echo ",
  670.                 'img': '";
  671.             // line 444
  672.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse444), "html"nulltrue);
  673.             echo "',
  674.                 'dot': 'dot";
  675.             // line 445
  676.             echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  677.             echo "'
  678.             },
  679.             ";
  680.         }
  681.         $_parent $context['_parent'];
  682.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
  683.         $context array_intersect_key($context$_parent) + $_parent;
  684.         // line 448
  685.         echo "        ];
  686.         slidePreviousHeader.addEventListener('click', () => {
  687.             if (arraySlidesHeader.length < (positionThumbHeader  + 1)) {
  688.                 positionHeader = 0;
  689.                 positionThumbHeader = 1;
  690.             } else {
  691.                 positionHeader++;
  692.                 positionThumbHeader++;
  693.             }
  694.             slideHeader.style.background =  `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;
  695.             currentFigure[0].innerHTML = '0'+positionThumbHeader
  696.             slideHeader.style.backgroundSize = `cover`;
  697.         });
  698.         slideNextHeader.addEventListener('click', () => {
  699.             if (positionThumbHeader === 1) {
  700.                 positionHeader = (arraySlidesHeader.length - 1);
  701.                 positionThumbHeader = arraySlidesHeader.length;
  702.             } else {
  703.                 positionHeader = positionHeader - 1;
  704.                 positionThumbHeader = positionThumbHeader - 1;
  705.             }
  706.             slideHeader.style.background =  `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;
  707.             currentFigure[0].innerHTML = '0'+positionThumbHeader
  708.             slideHeader.style.backgroundSize = `cover`;
  709.         });
  710.         const descriptif = document.getElementById('descriptif-div')
  711.         const praticalInfos = document.getElementById('practical-infos-div')
  712.         const interior = document.getElementById('interior-div')
  713.         const exterior = document.getElementById('exterior-div')
  714.         const energy = document.getElementById('energy-div')
  715.         let buttons = document.getElementsByClassName('projectButton')
  716.         for (const eElement of buttons) {
  717.             eElement.addEventListener('click', function (e) {
  718.                 e.preventDefault()
  719.                 for (let button of buttons) {
  720.                     if (button.classList.contains('all')){
  721.                         button.classList.remove('all')
  722.                         button.classList.add('come')
  723.                         button.querySelector('span').classList.replace('span-all', 'span-projects')
  724.                     }
  725.                     if (document.getElementById(button.dataset.id)) {
  726.                         document.getElementById(button.dataset.id).classList.remove('display-flex')
  727.                         document.getElementById(button.dataset.id).classList.add('display-none')
  728.                     }
  729.                 }
  730.                 eElement.classList.remove('come')
  731.                 eElement.classList.add('all')
  732.                 eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  733.                 document.getElementById(eElement.dataset.id).classList.add('display-flex');
  734.             })
  735.         }
  736.     </script>
  737.     <script>
  738.         const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  739.                                 <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  740.                             </svg>`;
  741.         const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  742.                             <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  743.                         </svg>`;
  744.         var countProperties = '";
  745.         // line 520
  746.         echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["otherProperties"]) || array_key_exists("otherProperties"$context) ? $context["otherProperties"] : (function () { throw new RuntimeError('Variable "otherProperties" does not exist.'520$this->source); })())), "html"nulltrue);
  747.         echo "';
  748.         var loopProp = 1;
  749.         while (loopProp <= countProperties) {
  750.             \$('.slick-slide-single-'+loopProp).slick({
  751.                 'slidesToShow': 1,
  752.                 'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
  753.                 'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
  754.             });
  755.             loopProp++;
  756.         }
  757.     </script>
  758. ";
  759.         
  760.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  761.         
  762.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  763.     }
  764.     public function getTemplateName()
  765.     {
  766.         return "property-detail.html.twig";
  767.     }
  768.     public function isTraitable()
  769.     {
  770.         return false;
  771.     }
  772.     public function getDebugInfo()
  773.     {
  774.         return array (  798 => 520,  724 => 448,  715 => 445,  711 => 444,  707 => 443,  704 => 442,  700 => 441,  678 => 422,  674 => 420,  671 => 419,  668 => 418,  665 => 417,  662 => 416,  659 => 415,  657 => 414,  654 => 413,  637 => 410,  633 => 409,  627 => 406,  618 => 402,  613 => 399,  607 => 397,  602 => 394,  590 => 391,  588 => 390,  584 => 389,  579 => 388,  576 => 387,  572 => 384,  569 => 361,  552 => 360,  544 => 354,  540 => 353,  529 => 349,  522 => 344,  520 => 343,  515 => 340,  503 => 221,  493 => 214,  486 => 210,  478 => 205,  470 => 202,  464 => 198,  446 => 194,  442 => 193,  438 => 191,  421 => 190,  414 => 186,  397 => 171,  391 => 168,  387 => 167,  384 => 166,  381 => 165,  375 => 162,  371 => 161,  368 => 160,  365 => 159,  359 => 158,  351 => 155,  347 => 154,  344 => 153,  341 => 152,  336 => 151,  330 => 150,  322 => 147,  318 => 146,  315 => 145,  312 => 144,  307 => 143,  301 => 142,  293 => 139,  289 => 138,  286 => 137,  283 => 136,  278 => 135,  272 => 134,  264 => 131,  260 => 130,  257 => 129,  254 => 128,  249 => 127,  239 => 124,  235 => 123,  232 => 122,  229 => 121,  223 => 118,  219 => 117,  216 => 116,  214 => 115,  208 => 111,  205 => 87,  201 => 74,  198 => 73,  179 => 68,  171 => 64,  153 => 63,  150 => 62,  145 => 59,  136 => 56,  133 => 55,  129 => 54,  121 => 48,  119 => 47,  112 => 42,  103 => 15,  94 => 9,  89 => 6,  79 => 5,  59 => 3,  36 => 1,);
  775.     }
  776.     public function getSourceContext()
  777.     {
  778.         return new Source("{% extends 'base.html.twig' %}
  779. {% block title %}Détails - {{ property.reference }}{% endblock %}
  780. {% block body %}
  781.     <header class=\"header-habiter slider-home slider-not-home who-is bottom-right-border position-relative overflow-hidden to-right lightbox-on\" 
  782.     id=\"sliderHeader\"  
  783.     style=\"background: url({{property.pictures[0].url}}) center center no-repeat;background-size:cover; position: relative; height: 91vh; cursor: zoom-in;\"
  784.     data-id=\"modul-ref\">
  785.         <div class=\"container-fluid\" style=\"padding: 0\">
  786.             <div class=\"col-lg-4 mx-auto\" style=\"display: none;\">
  787.                 <div class=\"arrows-slides\" style=\"display: flex; justify-content: space-between; margin-top: 20px; align-items: center; position: absolute\">
  788.                     <div class=\"arrow-right\" id=\"slideNextHeader\"><a><i class=\"fas fa-arrow-left\"></i></a></div>
  789.                     <div><span class=\"current-figure\">01</span><span class=\"bar-figure\">/</span><span class=\"last-figure\">{{ property.pictures|length <= 9 ? '0' ~ property.pictures|length : property.pictures|length }}</span></div>
  790.                     <div class=\"arrow-left\" id=\"slidePreviousHeader\"><a><i class=\"fas fa-arrow-right\"></i></a></div>
  791.                 </div>
  792.             </div>
  793.             {#
  794.             <div class=\"col-lg-12 property-detail-header\" style=\"display: flex; position: absolute; bottom: 0px;\">
  795.                <div class=\"col-lg-2 container-properties-header first\"></div>
  796.                <div class=\"col-lg-5 container-properties-header\" style=\"display: flex; align-items: center\">
  797.                    <div class=\"col-lg-3\">
  798.                        <p class=\"properties-city\" >{{ property.city.name }}</p>
  799.                    </div>
  800.                    <div class=\"col-lg-3\">
  801.                        <p class=\"properties-area\" style=\"text-align: center\">{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }} </p>
  802.                    </div>
  803.                    <div class=\"col-lg-3\">
  804.                        <p class=\"properties-reference-detail\">{{ property.reference }}</p>
  805.                    </div>
  806.                </div>
  807.                <div class=\"col-lg-1 price-detail-bien\" style=\"background-color: #c48300; display: flex; align-items: center; justify-content: center\">
  808.                    <p class=\"properties-price\">
  809.                        {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~  property.price.currency|number_format(2, '.', ',')|replace({\"EUR\": \" €\"})  }}
  810.                    </p>
  811.                </div>
  812.            </div>
  813.             #}
  814.         </div>
  815.         <div class=\"sticky-text\">Cliquer ici<br/>pour voir toutes les photos</div>
  816.         {% if property.pictures is not empty %}
  817.             <div class=\"lightbox\" id=\"modul-ref\">
  818.                 <div class=\"closer\"></div>
  819.                 <div class=\"arrows left\">&#8592;</div>
  820.                 <div class=\"arrows right\">&#8594;</div>
  821.                 <div class=\"counter\">1/1</div>
  822.                 <ul class=\"items\">
  823.                     {% for picture in property.pictures %}
  824.                         <li class=\"item\">
  825.                             <img class=\"img\" src=\"{{ picture.url }}\">
  826.                         </li>
  827.                     {% endfor %}
  828.                 </ul>
  829.             </div>
  830.         {% endif %}
  831.         {% if property.pictures is not empty %}
  832.             {% for picture in property.pictures %}
  833.                 <div class=\"lightbox\" id=\"modul-ref-{{ loop.index }}\">
  834.                     <div class=\"closer\"></div>
  835.                     <ul class=\"items\">
  836.                         <li class=\"item\">
  837.                             <img class=\"img\" src=\"{{ picture.url }}\">
  838.                         </li>
  839.                     </ul>
  840.                 </div>
  841.             {% endfor %}
  842.         {% endif %}
  843.     </header>
  844.     {#
  845.     <div class=\"col-lg-1 infos-person\" style=\"display: flex; position: fixed; right: 274px;\">
  846.         <div class=\"col-lg-12\">
  847.             {% if property.user.picture is null %}
  848.                 <img id=\"img-card\" src=\"{{ asset('build/367e841db1c2c356ba01f78a108a59cb0c18ade2.png') }}\">
  849.             {% else %}
  850.                 <img id=\"img-card\" width=\"161px\" height=\"161px\" src=\"{{ property.user.picture }}\">
  851.             {% endif %}
  852.         </div>
  853.     </div>
  854.     #}
  855.     {#
  856.     <div class=\"col-lg-1 infos-person\" style=\"position: fixed; width: 265px; display: flex; flex-direction: column\">
  857.        <div class=\"col-lg-12 more-informations\">
  858.            <p class=\"p-info-property\">Pour plus d’informations concernant ce bien</p>
  859.            <p class=\"p-first-property\">{{ property.user.firstname }}
  860.                {{ property.user.lastname }}
  861.        </div>
  862.        <div style=\"display: flex\">
  863.            <div class=\"col-lg-2 p-mail-property\">
  864.                <a href=\"mailto:{{ property.user.email }}\">
  865.                    <svg id=\"SVGMail\" width=\"41\" height=\"34\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:avocode=\"https://avocode.com/\" viewBox=\"0 0 41 34\"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>np_mail_91_000000</title><path d=\"M30.21872,22.58808l-6.13407,-5.78542l6.13407,-5.23238zM12.25999,22.93334l5.93459,-5.59678l2.63204,2.24505l2.63204,-2.24505l5.93459,5.59678zM11.4345,11.57018l6.13407,5.23239l-6.13407,5.78541zM29.54963,11.06668l-8.72302,7.44143l-8.72221,-7.44143zM10.6178,10.24829v13.50346h20.41763v-13.50346z\" fill=\"#ffffff\" fill-opacity=\"1\"></path><path d=\"M30.21872,22.58808l-6.13407,-5.78542l6.13407,-5.23238zM12.25999,22.93334l5.93459,-5.59678l2.63204,2.24505l2.63204,-2.24505l5.93459,5.59678zM11.4345,11.57018l6.13407,5.23239l-6.13407,5.78541zM29.54963,11.06668l-8.72302,7.44143l-8.72221,-7.44143zM10.6178,10.24829v13.50346h20.41763v-13.50346z\" fill-opacity=\"0\" fill=\"#ffffff\" stroke-dashoffset=\"0\" stroke-linejoin=\"miter\" stroke-linecap=\"butt\" stroke-opacity=\"1\" stroke=\"#ffffff\" stroke-miterlimit=\"20\" stroke-width=\"1\"></path></g></g></svg>
  866.                </a>
  867.            </div>
  868.            <div class=\"col-lg-10 p-phone-property\">
  869.                <a href=\"tel:{{ property.user.phone }}\">
  870.                    <?xml version=\"1.0\" encoding=\"UTF-8\"?>
  871.                    <svg id=\"SVGPhone\" width=\"28\" height=\"24\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:avocode=\"https://avocode.com/\" viewBox=\"0 0 28 24\"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>Tracé 116</title><path d=\"M6.29423,1.97623l1.55604,5.45095l-1.79468,1.83287l0.32457,0.62049c1.80183,3.46169 4.62861,6.28247 8.09518,8.07624l0.50593,0.25775l2.72065,-1.82334l4.58217,1.54648v4.08578c-5.2362,-0.22434 -10.19412,-2.41279 -13.8898,-6.12851c-3.73264,-3.69781 -5.93178,-8.66917 -6.15722,-13.9182zM23.23881,23.93248h0.95462v-1.90924h2.86386v-1.90924h-2.86386v-3.55119l-6.82561,-2.27199l-2.55838,1.70879c-2.68607,-1.50592 -4.91392,-3.7134 -6.44376,-6.38633l1.63241,-1.63242l-2.272,-7.91372h-7.39838v0.95462c-0.03222,6.08574 2.37461,11.93046 6.68234,16.22854c4.29808,4.30786 10.1428,6.71442 16.22854,6.68234z\" fill=\"#ffffff\" fill-opacity=\"1\"></path></g></g></svg>
  872.                    {{ property.user.phone }}
  873.                </a>
  874.            </div>
  875.        </div>
  876.    </div>
  877.     #}
  878.     <section class=\"items-property-single mt-5 mb-5 pb-5\">
  879.         <div class=\"row col-lg-8 mx-auto\">
  880.             {% if property.area.value %}
  881.                 <div class=\"item-single\">
  882.                     <img src=\"{{ asset('img/icons/surface.svg') }}\" alt=\"Icone surface\">
  883.                     <span>{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}</span>
  884.                 </div>
  885.             {% endif %}
  886.             {% if property.bedrooms %}
  887.                 <div class=\"item-single\">
  888.                     <img src=\"{{ asset('img/icons/chambre.svg') }}\" alt=\"Icone chambre\">
  889.                     <span>{{ property.bedrooms }} chambre{% if property.bedrooms > 1 %}s{% endif %}</span>
  890.                 </div>
  891.             {% endif %}
  892.             {% for area in property.areas %}
  893.                 {% if area.type == 13 %}
  894.                     <div class=\"item-single\">
  895.                         <img src=\"{{ asset('img/icons/salle_bain.svg') }}\" alt=\"Icone salle de bain\">
  896.                         <span>{{ area.number }} {{ propertyArea(area.type) }}</span>
  897.                     </div>
  898.                 {% endif %}
  899.             {% endfor %}
  900.             {% for area in property.areas %}
  901.                 {% if area.type == 4 %}
  902.                     <div class=\"item-single\">
  903.                         <img src=\"{{ asset('img/icons/garage.svg') }}\" alt=\"Icone garage\">
  904.                         <span>{{ area.number }} {{ propertyArea(area.type) }}</span>
  905.                     </div>
  906.                 {% endif %}
  907.             {% endfor %}
  908.             {% for area in property.areas %}
  909.                 {% if area.type == 74 or area.type == 75 %}
  910.                     <div class=\"item-single\">
  911.                         <img src=\"{{ asset('img/icons/parking.svg') }}\" alt=\"Icone parking\">
  912.                         <span>{{ area.number }} {{ propertyArea(area.type) }}</span>
  913.                     </div>
  914.                 {% endif %}
  915.             {% endfor %}
  916.             {% for area in property.areas %}
  917.                 {% if area.type == 18 %}
  918.                     <div class=\"item-single\">
  919.                         <img src=\"{{ asset('img/icons/terasse.svg') }}\" alt=\"Icone terasse\">
  920.                         <span>{{ area.number }} {{ propertyArea(area.type) }}</span>
  921.                     </div>
  922.                 {% endif %}
  923.             {% endfor %}
  924.             {% if property.construction.construction_year %}
  925.                 <div class=\"item-single\">
  926.                     <img src=\"{{ asset('img/icons/construction.svg') }}\" alt=\"Icone date construction\">
  927.                     <span>Année de construction : {{ property.construction.construction_year }}</span>
  928.                 </div>
  929.             {% endif %}
  930.             {% if property.available_at %}
  931.                 <div class=\"item-single availability\">
  932.                     <img src=\"{{ asset('img/icons/dispo.svg') }}\" alt=\"Icone disponibilité\">
  933.                     <span>Disponibilité<br>{{ property.available_at == null ? '-' : property.available_at}}</span>
  934.                 </div>
  935.             {% endif %}
  936.         </div>
  937.     </section>
  938.     <section class=\"desc-property mt-5\">
  939.         <div class=\"col-lg-8 mx-auto\">
  940.             <div class=\"row\">
  941.                 <div class=\"col-md-4\">
  942.                     <div class=\"col-lg-12\" style=\"display: flex;flex-direction: column;margin-left: 10px;\">
  943.                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  944.                             <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
  945.                         </svg>
  946.                         <h1 class=\"project-title\" style=\"font-size: 2.3em;font-weight: bold\">Descriptif</h1>
  947.                         <p class=\"city\">Belval</p>
  948.                         <p class=\"project-name\">2.0.CO2</p>
  949.                         <p class=\"price\" style=\"color:#F6A400\">
  950.                             {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~  property.price.currency|replace({\"EUR\": \" €\"})  }}
  951.                         </p>
  952.                         <div class=\"col-md-10 row list-pictures\">
  953.                             {% for picture in property.pictures %}
  954.                                 <div class=\"col-md-4\" style=\"margin-bottom:10px;\">
  955.                                     <div class=\"img lightbox-on-second\"
  956.                                          style=\"background:url('{{ picture.url }}')no-repeat center;background-size:cover;max-height:90px;width:100%;margin:0!important;\"
  957.                                          data-id=\"modul-ref-{{ loop.index }}\">
  958.                                     </div>
  959.                                 </div>
  960.                             {% endfor %}
  961.                         </div>
  962.                         <div class=\"contact-property col-md-10 mt-4 p-3\">
  963.                             <p>Pour plus d’informations concernant ce bien contactez</p>
  964.                             <h3>{{ property.user.firstname }} {{ property.user.lastname }}</h3>
  965.                         </div>
  966.                         <div class=\"contacinfos col-md-10 p-3 d-flex justify-content-between\">
  967.                             <a href=\"mailto:{{ property.user.email }}\">
  968.                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"21.418\" height=\"14.503\" viewBox=\"0 0 21.418 14.503\">
  969.                                     <path id=\"np_mail_91_000000\" d=\"M0,17V30.5H20.418V17Zm18.932.818L10.209,25.26,1.487,17.818Zm-18.115.5,6.134,5.232L.817,29.34Zm.825,11.363,5.935-5.6,2.632,2.245,2.632-2.245,5.935,5.6ZM19.6,29.34l-6.134-5.785L19.6,18.322Z\" transform=\"translate(0.5 -16.5)\" fill=\"#fff\" stroke=\"#fff\" stroke-width=\"1\"/>
  970.                                 </svg>
  971.                             </a>
  972.                             <a href=\"tel:{{ property.user.mobile }}\" style=\"text-decoration:none;color:#fff;\">
  973.                                 <svg id=\"np_phone-call_3960627_000000\" xmlns=\"http://www.w3.org/2000/svg\" width=\"22.518\" height=\"20.105\" viewBox=\"0 0 22.518 20.105\">
  974.                                     <path id=\"Tracé_116\" data-name=\"Tracé 116\" d=\"M25.549,35.73h.8V34.122h2.413V32.513H26.354V29.522L20.6,27.608l-2.155,1.44a14.328,14.328,0,0,1-5.428-5.38L14.4,22.292l-1.914-6.667H6.249v.8a19.22,19.22,0,0,0,19.3,19.3Zm-14.274-18.5,1.311,4.592L11.074,23.37l.273.523a15.953,15.953,0,0,0,6.82,6.8l.426.217,2.292-1.536,3.86,1.3v3.442A17.734,17.734,0,0,1,7.857,17.234Z\" transform=\"translate(-6.248 -15.626)\" fill=\"#fff\"/>
  975.                                 </svg>
  976.                                 {{ property.user.mobile }}
  977.                             </a>
  978.                         </div>
  979.                     </div>
  980.                 </div>
  981.                 <div class=\"col-md-8 description-prop-container\">
  982.                     <div class=\"description-prop pt-3\">
  983.                         <p>{{ property.comments[0].comment|raw|nl2br }}</p>
  984.                     </div>
  985.                 </div>
  986.             </div>
  987.         </div>
  988.     </section>
  989.     {#
  990.     <section class=\"project\" style=\"margin-bottom: 120px\">
  991.         <div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; margin-top: 20px\">
  992.         </div>
  993.         <div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; padding-left: 7px\">
  994.             <button data-id=\"descriptif-div\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">DESCRIPTIF</span></button>
  995.             <button data-id=\"practical-infos-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">INFOS PRATIQUES</span></button>
  996.             <button data-id=\"interior-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">INTERIEUR</span></button>
  997.             <button data-id=\"exterior-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">EXTERIEUR</span></button>
  998.             <button data-id=\"energy-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ENERGIE</span></button>
  999.         </div>
  1000.         <div id=\"descriptif-div\" class=\"offset-lg-2 col-lg-4 property-comment display-flex\">
  1001.             <p>{{ property.comments[0].comment|raw|nl2br }}</p>
  1002.         </div>
  1003.         <div id=\"practical-infos-div\" class=\"offset-lg-2 col-lg-8 display-none\" style=\"flex-wrap: wrap;\">
  1004.             <table class=\"table\">
  1005.                 <tbody>
  1006.                 <tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
  1007.                     {% if property.services is not null %}
  1008.                     {% for service in property.services %}
  1009.                     <td class=\"text-property-infos\">{{ propertyServices(service) }}</td>
  1010.                     {% endfor %}
  1011.                     {% endif %}
  1012.                 </tr>
  1013.                 </tbody>
  1014.             </table>
  1015.         </div>
  1016.         <div id=\"interior-div\" class=\"offset-lg-2 col-lg-8 display-none\">
  1017.             <table class=\"table\">
  1018.                 <tbody>
  1019.                 <tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
  1020.                     <td class=\"text-property\">Surface</td>
  1021.                     <td class=\"text-property-infos\">{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}</td>
  1022.                     <td class=\"text-property\">Eau</td>
  1023.                     <td class=\"text-property-infos\">{{ propertyHotWater(property.water.hot_device) == null ? '-' : propertyHotWater(property.water.hot_device) ~ \" \" ~ propertyHotWaterAccess(property.water.hot_access)  }}</td>
  1024.                     <td class=\"text-property\">An Construction</td>
  1025.                     <td class=\"text-property-infos\">{{ property.construction.construction_year == null ? '-' :  property.construction.construction_year }}</td>
  1026.                 </tr>
  1027.                {% if property.areas is empty %}
  1028.                    <tr>
  1029.                        <td class=\"text-property\">Condition</td>
  1030.                        <td class=\"text-property-infos\">{{ property.condition == null ? '-' : propertyCondition(property.condition) }}</td>
  1031.                    </tr>
  1032.                    <tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
  1033.                        <td class=\"text-property\">Etage</td>
  1034.                        <td class=\"text-property-infos\">{{ property.floor.type == null ? '-' : propertyFloor(property.floor.type) }}</td>
  1035.                        <td class=\"text-property\">Chauffage</td>
  1036.                        <td class=\"text-property-infos\">{{ propertyHeatingDevice(property.heating.device) == null ? '-' : propertyHeatingDevice(property.heating.device) ~ \" \" ~ propertyHeatingType(property.heating.type)  }}</td>
  1037.                        <td class=\"text-property\">Disponibilite</td>
  1038.                        <td class=\"text-property-infos\">{{ property.available_at == null ? '-' : property.available_at}}</td>
  1039.                    </tr>
  1040.                    {% else %}
  1041.                        <tr>
  1042.                            {% for area in property.areas %}
  1043.                                {% if propertyArea(area.type) is not null %}
  1044.                                    <td class=\"text-property-first\">{{ propertyArea(area.type) }}</td>
  1045.                                    <td class=\"text-property-infos\">{{ area.number }}</td>
  1046.                                {% endif %}
  1047.                            {% endfor %}
  1048.                        </tr>
  1049.                        <tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
  1050.                            <td class=\"text-property\">Etage</td>
  1051.                            <td class=\"text-property-infos\">{{ property.floor.type == null ? '-' : propertyFloor(property.floor.type) }}</td>
  1052.                            <td class=\"text-property\">Chauffage</td>
  1053.                            <td class=\"text-property-infos\">{{ propertyHeatingDevice(property.heating.device) == null ? '-' : propertyHeatingDevice(property.heating.device) ~ \" \" ~ propertyHeatingType(property.heating.type)  }}</td>
  1054.                            <td class=\"text-property\">Disponibilite</td>
  1055.                            <td class=\"text-property-infos\">{{ property.available_at == null ? '-' : property.available_at}}</td>
  1056.                        </tr>
  1057.                        <tr>
  1058.                            <td class=\"text-property\">Condition</td>
  1059.                            <td class=\"text-property-infos\">{{ property.condition == null ? '-' : propertyCondition(property.condition) }}</td>
  1060.                        </tr>
  1061.                 {% endif %}
  1062.                 </tbody>
  1063.             </table>
  1064.         </div>
  1065.         <div id=\"exterior-div\" class=\"offset-lg-2 col-lg-8 display-none\">
  1066.             <table class=\"table\">
  1067.                 <tbody>
  1068.                 {% if property.areas is not empty %}
  1069.                     <tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
  1070.                         {% for area in property.areas %}
  1071.                             {% if propertyExterior(area.type) is not null %}
  1072.                             <td class=\"text-property-first\">{{ propertyExterior(area.type) }}</td>
  1073.                             <td class=\"text-property-infos\">{{ area.number }}</td>
  1074.                             {% endif %}
  1075.                         {% endfor %}
  1076.                     </tr>
  1077.                 {% endif %}
  1078.                 </tbody>
  1079.             </table>
  1080.         </div>
  1081.         <div id=\"energy-div\" class=\"offset-lg-2 col-lg-8 display-none\">
  1082.             <table class=\"table\">
  1083.                 <tbody>
  1084.             {% if property.regulations is not empty %}
  1085.                 <tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
  1086.                     {% for energy in property.regulations %}
  1087.                         <td class=\"text-property-first\">{{ propertyEnergy(energy.type) }}</td>
  1088.                         <td class=\"text-property-infos\">{{ energy.value }}</td>
  1089.                     {% endfor %}
  1090.                 </tr>
  1091.             {% endif %}
  1092.                 </tbody>
  1093.             </table>
  1094.         </div>
  1095.     </section>
  1096.     #}
  1097.     <section class=\"similar-properties\">
  1098.         {% set sectionContent1 = content('Bien-detail', 'Section-1') %}
  1099.         <div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
  1100.             <div class=\"col-lg-5\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
  1101.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  1102.                     <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
  1103.                 </svg>
  1104.                 <h1 class=\"project-title\" style=\"font-weight: bold\">{% if sectionContent1.name is defined %}{{ sectionContent1.name }}{% else %}NOS BIENS SIMILAIRES{% endif %}</h1>
  1105.             </div>
  1106.             <div class=\"separator\"></div>
  1107.             <div class=\"col-lg-6 pre-section-content\">
  1108.                 {% if sectionContent1.content is defined %}{{ sectionContent1.content|raw }}{% endif %}
  1109.             </div>
  1110.         </div>
  1111.         <div  class=\"col-lg-8 mx-auto\">
  1112.             <div id=\"propertiesOther\" class=\"col-lg-12 mt-5\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
  1113.                 {% for property in otherProperties %}
  1114.                     <div  class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
  1115.                         {#
  1116.                         <div class=\"div-hover-2\" id=\"div-hover-2\" aria-haspopup=\"true\" style=\"position: absolute; bottom: 8px; left: 9px; background-color: #242424; color: white; width: 291px; height: 70px\">
  1117.                                                         {% if property.comments[0].comment is not empty %}
  1118.                                                             <p class=\"project-content\">
  1119.                                                                 {{ property.comments[0].comment|slice(0, 350) }}</p>
  1120.                                                             <a href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
  1121.                                                                 <span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
  1122.                                                             </a>
  1123.                                                         {% else %}
  1124.                                                             <a style=\"margin-top: 180px\" href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
  1125.                                                                 <span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
  1126.                                                             </a>
  1127.                                                         {% endif %}
  1128.                                                     </div>
  1129.                                                     <div class=\"col-lg-3 properties-price-absolute\" style=\"background-color: #c48300; height: 56px;\">
  1130.                                                         <p style=\"font-size: 20px;\" class=\"properties-price\">
  1131.                                                             {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~  property.price.currency|replace({\"EUR\": \" €\"})  }}
  1132.                                                         </p>
  1133.                                                     </div>
  1134.                         #}
  1135.                         {# <div class=\"tag-ref-projet-2\"><span class=\"text-tag-ref\">{{ specialPropertyCategory(property.category) }}</span></div> #}
  1136.                         {% if property.pictures is not empty %}
  1137.                             <div class=\"position-relative properties-slide slick-slide-single-{{ loop.index }}\">
  1138.                                 {% for picture in property.pictures|slice(0,3) %}
  1139.                                     {#                                    <img class=\"img-100\" src=\"{{ picture.url }}\">#}
  1140.                                     <div class=\"img\" style=\"background: url('{{ picture.url }}')no-repeat center;background-size:cover;\"  onclick=\"location.href='{{ path('property-detail', {'id': property.id}) }}'\">
  1141.                                     </div>
  1142.                                 {% endfor %}
  1143.                             </div>
  1144.                         {% else %}
  1145.                             <div class=\"img\" style=\"background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')\"></div>
  1146.                         {% endif %}
  1147.                         <div class=\"row col-md-12 justify-content-between infos-list\">
  1148.                             <ul class=\"col-md-4 items\">
  1149.                                 <li class=\"item surface\">
  1150.                                     <img src=\"{{ asset('img/surface.svg') }}\" class=\"surface-logo\"> {{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
  1151.                                 </li>
  1152.                             </ul>
  1153.                             <div class=\"col-md-8 properties-price d-flex justify-content-end\">
  1154.                                 {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~  property.price.currency|replace({\"EUR\": \" €\"})  }}
  1155.                             </div>
  1156.                         </div>
  1157.                         <p class=\"city\">{{ property.city.name }}</p>
  1158.                         <p class=\"project-name\">{{ property.reference }}</p>
  1159.                     </div>
  1160.                 {% endfor %}
  1161.             </div>
  1162.             {% set paramUrl = property.category %}
  1163.             {% if paramUrl == 1 %}
  1164.                 {% set paramUrl = 'vente' %}
  1165.             {% elseif paramUrl == 2 %}
  1166.                 {% set paramUrl = 'location' %}
  1167.             {% endif %}
  1168.             <div id=\"link-none\" class=\"col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end\" style=\"margin-top:0;\">
  1169.                 <div style=\"padding-bottom:40px;\">
  1170.                     <a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"{{ path('properties', {'keyword': paramUrl}) }}\">Découvrir plus
  1171.                         <svg class=\"svg-inline--fa fa-arrow-right fa-w-14 property-arrow\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"arrow-right\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"></path></svg><!-- <i class=\"fas fa-arrow-right property-arrow\"></i> Font Awesome fontawesome.com -->
  1172.                     </a>
  1173.                 </div>
  1174.             </div>
  1175.         </div>
  1176.     </section>
  1177.     <script>
  1178.         const slideNextHeader = document.getElementById('slideNextHeader');
  1179.         const slidePreviousHeader = document.getElementById('slidePreviousHeader');
  1180.         const currentFigure = document.getElementsByClassName('current-figure')
  1181.         const lastFigure = document.getElementsByClassName('last-figure')
  1182.         let slideHeader = document.getElementById('sliderHeader');
  1183.         let positionHeader = 0;
  1184.         let positionThumbHeader = 1;
  1185.         arraySlidesHeader = [
  1186.             {% for key, picture in property.pictures %}
  1187.             {
  1188.                 'position': {{ key }},
  1189.                 'img': '{{ picture.url }}',
  1190.                 'dot': 'dot{{ key }}'
  1191.             },
  1192.             {% endfor %}
  1193.         ];
  1194.         slidePreviousHeader.addEventListener('click', () => {
  1195.             if (arraySlidesHeader.length < (positionThumbHeader  + 1)) {
  1196.                 positionHeader = 0;
  1197.                 positionThumbHeader = 1;
  1198.             } else {
  1199.                 positionHeader++;
  1200.                 positionThumbHeader++;
  1201.             }
  1202.             slideHeader.style.background =  `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;
  1203.             currentFigure[0].innerHTML = '0'+positionThumbHeader
  1204.             slideHeader.style.backgroundSize = `cover`;
  1205.         });
  1206.         slideNextHeader.addEventListener('click', () => {
  1207.             if (positionThumbHeader === 1) {
  1208.                 positionHeader = (arraySlidesHeader.length - 1);
  1209.                 positionThumbHeader = arraySlidesHeader.length;
  1210.             } else {
  1211.                 positionHeader = positionHeader - 1;
  1212.                 positionThumbHeader = positionThumbHeader - 1;
  1213.             }
  1214.             slideHeader.style.background =  `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;
  1215.             currentFigure[0].innerHTML = '0'+positionThumbHeader
  1216.             slideHeader.style.backgroundSize = `cover`;
  1217.         });
  1218.         const descriptif = document.getElementById('descriptif-div')
  1219.         const praticalInfos = document.getElementById('practical-infos-div')
  1220.         const interior = document.getElementById('interior-div')
  1221.         const exterior = document.getElementById('exterior-div')
  1222.         const energy = document.getElementById('energy-div')
  1223.         let buttons = document.getElementsByClassName('projectButton')
  1224.         for (const eElement of buttons) {
  1225.             eElement.addEventListener('click', function (e) {
  1226.                 e.preventDefault()
  1227.                 for (let button of buttons) {
  1228.                     if (button.classList.contains('all')){
  1229.                         button.classList.remove('all')
  1230.                         button.classList.add('come')
  1231.                         button.querySelector('span').classList.replace('span-all', 'span-projects')
  1232.                     }
  1233.                     if (document.getElementById(button.dataset.id)) {
  1234.                         document.getElementById(button.dataset.id).classList.remove('display-flex')
  1235.                         document.getElementById(button.dataset.id).classList.add('display-none')
  1236.                     }
  1237.                 }
  1238.                 eElement.classList.remove('come')
  1239.                 eElement.classList.add('all')
  1240.                 eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  1241.                 document.getElementById(eElement.dataset.id).classList.add('display-flex');
  1242.             })
  1243.         }
  1244.     </script>
  1245.     <script>
  1246.         const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  1247.                                 <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  1248.                             </svg>`;
  1249.         const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  1250.                             <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  1251.                         </svg>`;
  1252.         var countProperties = '{{ otherProperties|length }}';
  1253.         var loopProp = 1;
  1254.         while (loopProp <= countProperties) {
  1255.             \$('.slick-slide-single-'+loopProp).slick({
  1256.                 'slidesToShow': 1,
  1257.                 'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
  1258.                 'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
  1259.             });
  1260.             loopProp++;
  1261.         }
  1262.     </script>
  1263. {% endblock %}
  1264. ""property-detail.html.twig""/home/juca-stage/sites/sym/tracol/templates/property-detail.html.twig");
  1265.     }
  1266. }