<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* property-detail.html.twig */
class __TwigTemplate_253be1f0b3732bcd01f2736c308ad51bb3e34385b52ed44c7de93b12889bc616 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "property-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "property-detail.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "property-detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Détails - ";
echo twig_escape_filter($this->env, 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.', 3, $this->source); })()), "reference", [], "any", false, false, false, 3), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 5
echo "
<meta name=\"description\" content=\"
";
// line 7
if (twig_get_attribute($this->env, $this->source, ($context["property"] ?? null), "reference", [], "any", true, true, false, 7)) {
// line 8
echo " ";
echo twig_escape_filter($this->env, 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.', 8, $this->source); })()), "reference", [], "any", false, false, false, 8), "html", null, true);
echo "
";
} else {
// line 10
echo " Tracol Immobilier propose une large offre en immobilier neuf (logements, bureaux, commerces), qui se caractérise par une architecture résolument contemporaine, des matériaux de qualité, et le soin apporté à chaque détail.
";
}
// line 12
echo " \">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 16
echo " <style>
.d-block {
background-size:cover;
}
</style>
<header class=\"header-habiter slider-home slider-not-home who-is bottom-right-border position-relative to-right overflow-hidden\">
<div id=\"carouselExampleControls\" class=\"carousel slide\" data-ride=\"carousel\">
<div class=\"carousel-inner\">
";
// line 25
$context['_parent'] = $context;
$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.', 25, $this->source); })()), "pictures", [], "any", false, false, false, 25));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
// line 26
echo " <div class=\"carousel-item ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 26)) {
echo "active";
}
echo "\">
<div class=\"d-block w-100\" style=\"background: url(";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 27), "html", null, true);
echo ")no-repeat center;\"></div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo " </div>
<a class=\"carousel-control-prev\" href=\"#carouselExampleControls\" role=\"button\" data-slide=\"prev\">
<span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Previous</span>
</a>
<a class=\"carousel-control-next\" href=\"#carouselExampleControls\" role=\"button\" data-slide=\"next\">
<span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Next</span>
</a>
</div>
</header>
";
// line 112
echo "
";
// line 125
echo "
";
// line 149
echo "
<section class=\"items-property-single mt-5 mb-5 pb-5\">
<div class=\"row col-lg-10 mx-auto justify-content-center\">
";
// line 152
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.', 152, $this->source); })()), "type", [], "any", false, false, false, 152) && $this->extensions['App\Twig\ContentExtension']->getTypeProperty(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.', 152, $this->source); })()), "type", [], "any", false, false, false, 152)))) {
// line 153
echo " <div class=\"item-single\">
";
// line 155
echo " <span style=\"font-weight: bold;color:#F6A400;\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->getTypeProperty(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.', 155, $this->source); })()), "type", [], "any", false, false, false, 155)), "html", null, true);
echo "</span>
</div>
";
// line 157
if ((((twig_get_attribute($this->env, $this->source, 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.', 157, $this->source); })()), "construction", [], "any", false, false, false, 157), "construction_year", [], "any", false, false, false, 157) || 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.', 157, $this->source); })()), "available_at", [], "any", false, false, false, 157)) || 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.', 157, $this->source); })()), "bedrooms", [], "any", false, false, false, 157)) || twig_get_attribute($this->env, $this->source, 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.', 157, $this->source); })()), "area", [], "any", false, false, false, 157), "value", [], "any", false, false, false, 157))) {
// line 158
echo " <div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 162
echo " ";
}
// line 163
echo " ";
if (twig_get_attribute($this->env, $this->source, 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.', 163, $this->source); })()), "area", [], "any", false, false, false, 163), "value", [], "any", false, false, false, 163)) {
// line 164
echo " <div class=\"item-single\">
";
// line 166
echo " <span>";
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 166, $this->source); })()), "area", [], "any", false, false, false, 166), "value", [], "any", false, false, false, 166), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, 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.', 166, $this->source); })()), "area", [], "any", false, false, false, 166), "value", [], "any", false, false, false, 166) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env, $this->source, 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.', 166, $this->source); })()), "area", [], "any", false, false, false, 166), "unit", [], "any", false, false, false, 166))), "html", null, true))));
echo "</span>
</div>
";
// line 168
if (((twig_get_attribute($this->env, $this->source, 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); })()), "construction", [], "any", false, false, false, 168), "construction_year", [], "any", false, false, false, 168) || 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", false, false, false, 168)) || 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); })()), "bedrooms", [], "any", false, false, false, 168))) {
// line 169
echo " <div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 173
echo " ";
}
// line 174
echo " ";
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.', 174, $this->source); })()), "bedrooms", [], "any", false, false, false, 174)) {
// line 175
echo " <div class=\"item-single\">
";
// line 177
echo " <span>";
echo twig_escape_filter($this->env, 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.', 177, $this->source); })()), "bedrooms", [], "any", false, false, false, 177), "html", null, true);
echo " chambre";
if ((1 === 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.', 177, $this->source); })()), "bedrooms", [], "any", false, false, false, 177), 1))) {
echo "s";
}
echo "</span>
</div>
";
// line 179
if ((twig_get_attribute($this->env, $this->source, 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.', 179, $this->source); })()), "construction", [], "any", false, false, false, 179), "construction_year", [], "any", false, false, false, 179) || 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.', 179, $this->source); })()), "available_at", [], "any", false, false, false, 179))) {
// line 180
echo " <div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 184
echo " ";
}
// line 185
echo " ";
$context['_parent'] = $context;
$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.', 185, $this->source); })()), "areas", [], "any", false, false, false, 185));
foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
// line 186
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 186), 13))) {
// line 187
echo " <div class=\"item-single\">
";
// line 189
echo " <span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "number", [], "any", false, false, false, 189), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 189)), "html", null, true);
echo "</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 195
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 196
echo " ";
$context['_parent'] = $context;
$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.', 196, $this->source); })()), "areas", [], "any", false, false, false, 196));
foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
// line 197
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 197), 4))) {
// line 198
echo " <div class=\"item-single\">
";
// line 200
echo " <span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "number", [], "any", false, false, false, 200), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 200)), "html", null, true);
echo "</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 206
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 207
echo " ";
$context['_parent'] = $context;
$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.', 207, $this->source); })()), "areas", [], "any", false, false, false, 207));
foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
// line 208
echo " ";
if (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 208), 74)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 208), 75)))) {
// line 209
echo " <div class=\"item-single\">
";
// line 211
echo " <span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "number", [], "any", false, false, false, 211), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 211)), "html", null, true);
echo "</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 217
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 218
echo " ";
$context['_parent'] = $context;
$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.', 218, $this->source); })()), "areas", [], "any", false, false, false, 218));
foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
// line 219
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 219), 18))) {
// line 220
echo " <div class=\"item-single\">
";
// line 222
echo " <span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "number", [], "any", false, false, false, 222), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->propertyArea(twig_get_attribute($this->env, $this->source, $context["area"], "type", [], "any", false, false, false, 222)), "html", null, true);
echo "</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 228
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 229
echo " ";
if (twig_get_attribute($this->env, $this->source, 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.', 229, $this->source); })()), "construction", [], "any", false, false, false, 229), "construction_year", [], "any", false, false, false, 229)) {
// line 230
echo " <div class=\"item-single\">
";
// line 232
echo " <span>Construction : ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 232, $this->source); })()), "construction", [], "any", false, false, false, 232), "construction_year", [], "any", false, false, false, 232), "html", null, true);
echo "</span>
</div>
";
// line 234
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.', 234, $this->source); })()), "available_at", [], "any", false, false, false, 234)) {
// line 235
echo " <div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
";
}
// line 239
echo " ";
}
// line 240
echo " ";
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.', 240, $this->source); })()), "available_at", [], "any", false, false, false, 240)) {
// line 241
echo " <div class=\"item-single availability\">
";
// line 243
echo " <span>Disponibilité ";
(((0 === 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.', 243, $this->source); })()), "available_at", [], "any", false, false, false, 243), null))) ? (print ("-")) : (print (twig_escape_filter($this->env, 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.', 243, $this->source); })()), "available_at", [], "any", false, false, false, 243), "html", null, true))));
echo "</span>
</div>
";
}
// line 246
echo " </div>
</section>
<section class=\"desc-property mt-5\">
<div class=\"col-lg-8 mx-auto\" style=\"overflow: hidden\">
<div class=\"row reverse-mobil\">
<div class=\"col-md-4\">
<div class=\"col-lg-12 mt-4\" style=\"display: flex;flex-direction: column;margin:0 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<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\"/>
</svg>
<h1 class=\"project-title\" style=\"font-size: 2.3em;font-weight: bold\">Descriptif</h1>
<p class=\"city\">";
// line 258
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 258, $this->source); })()), "city", [], "any", false, false, false, 258), "name", [], "any", false, false, false, 258), "html", null, true);
echo "</p>
<p class=\"project-name\">";
// line 259
echo twig_escape_filter($this->env, 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.', 259, $this->source); })()), "reference", [], "any", false, false, false, 259), "html", null, true);
echo "</p>
";
// line 261
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.', 261, $this->source); })()), "regulations", [], "any", false, false, false, 261) && !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.', 261, $this->source); })()), "regulations", [], "any", false, false, false, 261)))) {
// line 262
echo " <p class=\"project-name\">DPE : <strong>";
$context['_parent'] = $context;
$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.', 262, $this->source); })()), "regulations", [], "any", false, false, false, 262));
foreach ($context['_seq'] as $context["_key"] => $context["regulation"]) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["regulation"], "value", [], "any", false, false, false, 262), "html", null, true);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['regulation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "</strong>
";
}
// line 264
echo "
</p>
<p class=\"price\" style=\"color:#F6A400\">
";
// line 267
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 267, $this->source); })()), "price", [], "any", false, false, false, 267), "value", [], "any", false, false, false, 267), null))) ? (print ("<span style=\"font-size: 14px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 267, $this->source); })()), "price", [], "any", false, false, false, 267), "value", [], "any", false, false, false, 267), 2, ",", " ") . twig_replace_filter(twig_get_attribute($this->env, $this->source, 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.', 267, $this->source); })()), "price", [], "any", false, false, false, 267), "currency", [], "any", false, false, false, 267), ["EUR" => " €"])), "html", null, true))));
echo "
</p>
<div class=\"col-md-10 row list-pictures\">
";
// line 271
$context['_parent'] = $context;
$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.', 271, $this->source); })()), "pictures", [], "any", false, false, false, 271));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
// line 272
echo " <div class=\"modal fade bd-example-modal-lg-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 272), "html", null, true);
echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg\">
<div class=\"modal-content\">
<img src=\"";
// line 275
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 275), "html", null, true);
echo "\">
</div>
</div>
</div>
<div class=\"col-6 col-md-4 lightbox-on-second\" data-toggle=\"modal\" data-target=\".bd-example-modal-lg-";
// line 279
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 279), "html", null, true);
echo "\" style=\"margin-bottom:10px;\">
<img class=\"img\"
src=\"";
// line 281
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 281), "html", null, true);
echo "\"
data-id=\"modul-ref-";
// line 282
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 282), "html", null, true);
echo "\">
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 285
echo " </div>
";
// line 287
if ((twig_get_attribute($this->env, $this->source, ($context["property"] ?? null), "user", [], "any", true, true, false, 287) && !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.', 287, $this->source); })()), "user", [], "any", false, false, false, 287)))) {
// line 288
echo " <div class=\"contact-property col-md-10 mt-4 p-3\">
<p>Pour plus d’informations sur ce bien, vous pouvez prendre contact avec</p>
";
// line 290
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["property"] ?? null), "user", [], "any", false, true, false, 290), "firstname", [], "any", true, true, false, 290) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["property"] ?? null), "user", [], "any", false, true, false, 290), "lastname", [], "any", true, true, false, 290))) {
// line 291
echo " <h3>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 291, $this->source); })()), "user", [], "any", false, false, false, 291), "firstname", [], "any", false, false, false, 291), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["property"]) || array_key_exists("property", $context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.', 291, $this->source); })()), "user", [], "any", false, false, false, 291), "lastname", [], "any", false, false, false, 291), "html", null, true);
echo "</h3>
";
}
// line 293
echo " </div>
<div class=\"contacinfos col-md-10 p-3 d-flex justify-content-between\">
";
// line 295
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["property"] ?? null), "user", [], "any", false, true, false, 295), "email", [], "any", true, true, false, 295)) {
// line 296
echo " <a href=\"mailto:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 296, $this->source); })()), "user", [], "any", false, false, false, 296), "email", [], "any", false, false, false, 296), "html", null, true);
echo "\" target=\"_blank\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"21.418\" height=\"14.503\" viewBox=\"0 0 21.418 14.503\">
<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\"/>
</svg>
</a>
";
}
// line 302
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["property"] ?? null), "user", [], "any", false, true, false, 302), "mobile", [], "any", true, true, false, 302)) {
// line 303
echo " <a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 303, $this->source); })()), "user", [], "any", false, false, false, 303), "mobile", [], "any", false, false, false, 303), "html", null, true);
echo "\" style=\"text-decoration:none;color:#fff;\">
<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\">
<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\"/>
</svg>
";
// line 307
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 307, $this->source); })()), "user", [], "any", false, false, false, 307), "mobile", [], "any", false, false, false, 307), "html", null, true);
echo "
</a>
";
}
// line 310
echo " </div>
";
}
// line 312
echo " </div>
</div>
<div class=\"col-md-8 description-prop-container\">
<div class=\"description-prop pt-3\">
<p>";
// line 316
echo twig_nl2br(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 316, $this->source); })()), "comments", [], "any", false, false, false, 316), 0, [], "array", false, false, false, 316), "comment", [], "any", false, false, false, 316));
echo "</p>
</div>
</div>
</div>
</div>
</section>
";
// line 435
echo "
<section class=\"similar-properties\">
";
// line 438
$context["sectionContent1"] = $this->extensions['App\Twig\ContentExtension']->Content("Bien-detail", "Section-1");
// line 439
echo " <div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
<div class=\"col-lg-5\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<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\"/>
</svg>
<h1 class=\"project-title\" style=\"font-weight: bold\">";
// line 444
if (twig_get_attribute($this->env, $this->source, ($context["sectionContent1"] ?? null), "name", [], "any", true, true, false, 444)) {
echo twig_escape_filter($this->env, 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.', 444, $this->source); })()), "name", [], "any", false, false, false, 444), "html", null, true);
} else {
echo "NOS BIENS SIMILAIRES";
}
echo "</h1>
</div>
<div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
";
// line 448
if (twig_get_attribute($this->env, $this->source, ($context["sectionContent1"] ?? null), "content", [], "any", true, true, false, 448)) {
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.', 448, $this->source); })()), "content", [], "any", false, false, false, 448);
}
// line 449
echo " </div>
</div>
<div class=\"col-lg-8 mx-auto\">
<div id=\"propertiesOther\" class=\"col-lg-12 mt-5\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
";
// line 455
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["otherProperties"]) || array_key_exists("otherProperties", $context) ? $context["otherProperties"] : (function () { throw new RuntimeError('Variable "otherProperties" does not exist.', 455, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
// line 456
echo " <div class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
";
// line 479
echo "
";
// line 482
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["property"], "pictures", [], "any", false, false, false, 482))) {
// line 483
echo " <div class=\"position-relative properties-slide slick-slide-single-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 483), "html", null, true);
echo "\">
";
// line 484
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["property"], "pictures", [], "any", false, false, false, 484), 0, 3));
foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
// line 485
echo " ";
// line 486
echo " <div class=\"img\" style=\"background: url('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 486), "html", null, true);
echo "')no-repeat center;background-size:cover;\" onclick=\"location.href='";
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", false, false, false, 486)]), "html", null, true);
echo "'\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 489
echo " </div>
";
} else {
// line 492
echo " <div class=\"img\" style=\"background-image: url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/Hudson_Ontario2.png"), "html", null, true);
echo "')\"></div>
";
}
// line 494
echo " <div class=\"row col-md-12 justify-content-between infos-list\">
<ul class=\"col-md-4 items\">
";
// line 496
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 496), "value", [], "any", false, false, false, 496)) {
// line 497
echo " <li class=\"item surface\">
";
// line 499
echo " ";
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 499), "value", [], "any", false, false, false, 499), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 499), "value", [], "any", false, false, false, 499) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 499), "unit", [], "any", false, false, false, 499))), "html", null, true))));
echo "
</li>
";
}
// line 502
echo " </ul>
<div class=\"col-md-8 properties-price d-flex justify-content-end\">
";
// line 504
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 504), "value", [], "any", false, false, false, 504), null))) ? (print ("<span style=\"font-size: 21px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 504), "value", [], "any", false, false, false, 504), 2, ",", " ") . twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 504), "currency", [], "any", false, false, false, 504), ["EUR" => " €"])), "html", null, true))));
echo "
</div>
</div>
<p class=\"city\" ";
// line 507
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 507), "value", [], "any", false, false, false, 507)) {
echo "style=\"margin-top:-30px;\"";
}
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "city", [], "any", false, false, false, 507), "name", [], "any", false, false, false, 507), "html", null, true);
echo "</p>
<p class=\"project-name\">";
// line 508
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["property"], "reference", [], "any", false, false, false, 508), "html", null, true);
echo "</p>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 512
echo " </div>
";
// line 513
$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.', 513, $this->source); })()), "category", [], "any", false, false, false, 513);
// line 514
echo " ";
if ((0 === twig_compare((isset($context["paramUrl"]) || array_key_exists("paramUrl", $context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.', 514, $this->source); })()), 1))) {
// line 515
echo " ";
$context["paramUrl"] = "vente";
// line 516
echo " ";
} elseif ((0 === twig_compare((isset($context["paramUrl"]) || array_key_exists("paramUrl", $context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.', 516, $this->source); })()), 2))) {
// line 517
echo " ";
$context["paramUrl"] = "location";
// line 518
echo " ";
}
// line 519
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;\">
<div style=\"padding-bottom:40px;\">
<a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"";
// line 521
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.', 521, $this->source); })())]), "html", null, true);
echo "\">Découvrir plus
<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 -->
</a>
</div>
</div>
</div>
</section>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js\" integrity=\"sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+\" crossorigin=\"anonymous\"></script>
<script>
const slideNextHeader = document.getElementById('slideNextHeader');
const slidePreviousHeader = document.getElementById('slidePreviousHeader');
const currentFigure = document.getElementsByClassName('current-figure')
const lastFigure = document.getElementsByClassName('last-figure')
let slideHeader = document.getElementById('sliderHeader');
let positionHeader = 0;
let positionThumbHeader = 1;
arraySlidesHeader = [
";
// line 541
$context['_parent'] = $context;
$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.', 541, $this->source); })()), "pictures", [], "any", false, false, false, 541));
foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
// line 542
echo " {
'position': ";
// line 543
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo ",
'img': '";
// line 544
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 544), "html", null, true);
echo "',
'dot': 'dot";
// line 545
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "'
},
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 548
echo " ];
";
// line 581
echo "
const descriptif = document.getElementById('descriptif-div')
const praticalInfos = document.getElementById('practical-infos-div')
const interior = document.getElementById('interior-div')
const exterior = document.getElementById('exterior-div')
const energy = document.getElementById('energy-div')
let buttons = document.getElementsByClassName('projectButton')
for (const eElement of buttons) {
eElement.addEventListener('click', function (e) {
e.preventDefault()
for (let button of buttons) {
if (button.classList.contains('all')){
button.classList.remove('all')
button.classList.add('come')
button.querySelector('span').classList.replace('span-all', 'span-projects')
}
if (document.getElementById(button.dataset.id)) {
document.getElementById(button.dataset.id).classList.remove('display-flex')
document.getElementById(button.dataset.id).classList.add('display-none')
}
}
eElement.classList.remove('come')
eElement.classList.add('all')
eElement.querySelector('span').classList.replace('span-projects', 'span-all')
document.getElementById(eElement.dataset.id).classList.add('display-flex');
})
}
</script>
<script>
const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<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\"/>
</svg>`;
const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<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\"/>
</svg>`;
var countProperties = '";
// line 623
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["otherProperties"]) || array_key_exists("otherProperties", $context) ? $context["otherProperties"] : (function () { throw new RuntimeError('Variable "otherProperties" does not exist.', 623, $this->source); })())), "html", null, true);
echo "';
var loopProp = 1;
while (loopProp <= countProperties) {
\$('.slick-slide-single-'+loopProp).slick({
'slidesToShow': 1,
'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
});
loopProp++;
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "property-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 880 => 623, 836 => 581, 832 => 548, 823 => 545, 819 => 544, 815 => 543, 812 => 542, 808 => 541, 785 => 521, 781 => 519, 778 => 518, 775 => 517, 772 => 516, 769 => 515, 766 => 514, 764 => 513, 761 => 512, 743 => 508, 735 => 507, 729 => 504, 725 => 502, 718 => 499, 715 => 497, 713 => 496, 709 => 494, 703 => 492, 698 => 489, 686 => 486, 684 => 485, 680 => 484, 675 => 483, 672 => 482, 668 => 479, 665 => 456, 648 => 455, 640 => 449, 636 => 448, 625 => 444, 618 => 439, 616 => 438, 611 => 435, 599 => 316, 593 => 312, 589 => 310, 583 => 307, 575 => 303, 572 => 302, 562 => 296, 560 => 295, 556 => 293, 548 => 291, 546 => 290, 542 => 288, 540 => 287, 536 => 285, 519 => 282, 515 => 281, 510 => 279, 503 => 275, 496 => 272, 479 => 271, 472 => 267, 467 => 264, 454 => 262, 452 => 261, 447 => 259, 443 => 258, 429 => 246, 422 => 243, 419 => 241, 416 => 240, 413 => 239, 407 => 235, 405 => 234, 399 => 232, 396 => 230, 393 => 229, 387 => 228, 375 => 222, 372 => 220, 369 => 219, 364 => 218, 358 => 217, 346 => 211, 343 => 209, 340 => 208, 335 => 207, 329 => 206, 317 => 200, 314 => 198, 311 => 197, 306 => 196, 300 => 195, 288 => 189, 285 => 187, 282 => 186, 277 => 185, 274 => 184, 268 => 180, 266 => 179, 256 => 177, 253 => 175, 250 => 174, 247 => 173, 241 => 169, 239 => 168, 233 => 166, 230 => 164, 227 => 163, 224 => 162, 218 => 158, 216 => 157, 210 => 155, 207 => 153, 205 => 152, 200 => 149, 197 => 125, 193 => 112, 179 => 30, 162 => 27, 155 => 26, 138 => 25, 127 => 16, 117 => 15, 106 => 12, 102 => 10, 96 => 8, 94 => 7, 90 => 5, 80 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Détails - {{ property.reference }}{% endblock %}
{% block metaDescription %}
<meta name=\"description\" content=\"
{% if property.reference is defined %}
{{ property.reference }}
{% else %}
Tracol Immobilier propose une large offre en immobilier neuf (logements, bureaux, commerces), qui se caractérise par une architecture résolument contemporaine, des matériaux de qualité, et le soin apporté à chaque détail.
{% endif %}
\">
{% endblock %}
{% block body %}
<style>
.d-block {
background-size:cover;
}
</style>
<header class=\"header-habiter slider-home slider-not-home who-is bottom-right-border position-relative to-right overflow-hidden\">
<div id=\"carouselExampleControls\" class=\"carousel slide\" data-ride=\"carousel\">
<div class=\"carousel-inner\">
{% for picture in property.pictures %}
<div class=\"carousel-item {% if loop.first %}active{% endif %}\">
<div class=\"d-block w-100\" style=\"background: url({{ picture.url }})no-repeat center;\"></div>
</div>
{% endfor %}
</div>
<a class=\"carousel-control-prev\" href=\"#carouselExampleControls\" role=\"button\" data-slide=\"prev\">
<span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Previous</span>
</a>
<a class=\"carousel-control-next\" href=\"#carouselExampleControls\" role=\"button\" data-slide=\"next\">
<span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
<span class=\"sr-only\">Next</span>
</a>
</div>
</header>
{#
<header class=\"header-habiter slider-home slider-not-home who-is bottom-right-border position-relative overflow-hidden to-right lightbox-on\"
id=\"sliderHeader\"
style=\"background: url({{property.pictures[0].url}}) center center no-repeat;background-size:cover; position: relative; height: 91vh; cursor: zoom-in;\"
data-id=\"modul-ref\">
<div class=\"container-fluid\" style=\"padding: 0\">
<div class=\"col-lg-4 mx-auto\" style=\"display: none;\">
<div class=\"arrows-slides\" style=\"display: flex; justify-content: space-between; margin-top: 20px; align-items: center; position: absolute\">
<div class=\"arrow-right\" id=\"slideNextHeader\"><a><i class=\"fas fa-arrow-left\"></i></a></div>
<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>
<div class=\"arrow-left\" id=\"slidePreviousHeader\"><a><i class=\"fas fa-arrow-right\"></i></a></div>
</div>
</div>
{#
<div class=\"col-lg-12 property-detail-header\" style=\"display: flex; position: absolute; bottom: 0px;\">
<div class=\"col-lg-2 container-properties-header first\"></div>
<div class=\"col-lg-5 container-properties-header\" style=\"display: flex; align-items: center\">
<div class=\"col-lg-3\">
<p class=\"properties-city\" >{{ property.city.name }}</p>
</div>
<div class=\"col-lg-3\">
<p class=\"properties-area\" style=\"text-align: center\">{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }} </p>
</div>
<div class=\"col-lg-3\">
<p class=\"properties-reference-detail\">{{ property.reference }}</p>
</div>
</div>
<div class=\"col-lg-1 price-detail-bien\" style=\"background-color: #c48300; display: flex; align-items: center; justify-content: center\">
<p class=\"properties-price\">
{{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~ property.price.currency|number_format(2, '.', ',')|replace({\"EUR\": \" €\"}) }}
</p>
</div>
</div>
</div>
<div class=\"sticky-text\">Cliquer ici<br/>pour voir toutes les photos</div>
{% if property.pictures is not empty %}
<div class=\"lightbox\" id=\"modul-ref\">
<div class=\"closer\"></div>
<div class=\"arrows left\">←</div>
<div class=\"arrows right\">→</div>
<div class=\"counter\">1/1</div>
<ul class=\"items\">
{% for picture in property.pictures %}
<li class=\"item\">
<img class=\"img\" src=\"{{ picture.url }}\">
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if property.pictures is not empty %}
{% for picture in property.pictures %}
<div class=\"lightbox\" id=\"modul-ref-{{ loop.index }}\">
<div class=\"closer\"></div>
<ul class=\"items\">
<li class=\"item\">
<img class=\"img\" src=\"{{ picture.url }}\">
</li>
</ul>
</div>
{% endfor %}
{% endif %}
</header>
#}
{#
<div class=\"col-lg-1 infos-person\" style=\"display: flex; position: fixed; right: 274px;\">
<div class=\"col-lg-12\">
{% if property.user.picture is null %}
<img id=\"img-card\" src=\"{{ asset('build/367e841db1c2c356ba01f78a108a59cb0c18ade2.png') }}\">
{% else %}
<img id=\"img-card\" width=\"161px\" height=\"161px\" src=\"{{ property.user.picture }}\">
{% endif %}
</div>
</div>
#}
{#
<div class=\"col-lg-1 infos-person\" style=\"position: fixed; width: 265px; display: flex; flex-direction: column\">
<div class=\"col-lg-12 more-informations\">
<p class=\"p-info-property\">Pour plus d’informations concernant ce bien</p>
<p class=\"p-first-property\">{{ property.user.firstname }}
{{ property.user.lastname }}
</div>
<div style=\"display: flex\">
<div class=\"col-lg-2 p-mail-property\">
<a href=\"mailto:{{ property.user.email }}\">
<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>
</a>
</div>
<div class=\"col-lg-10 p-phone-property\">
<a href=\"tel:{{ property.user.phone }}\">
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<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>
{{ property.user.phone }}
</a>
</div>
</div>
</div>
#}
<section class=\"items-property-single mt-5 mb-5 pb-5\">
<div class=\"row col-lg-10 mx-auto justify-content-center\">
{% if property.type and getTypeProperty(property.type) %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/surface.svg') }}\" alt=\"Icone surface\"> #}
<span style=\"font-weight: bold;color:#F6A400;\">{{ getTypeProperty(property.type) }}</span>
</div>
{% if property.construction.construction_year or property.available_at or property.bedrooms or property.area.value %}
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endif %}
{% if property.area.value %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/surface.svg') }}\" alt=\"Icone surface\"> #}
<span>{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}</span>
</div>
{% if property.construction.construction_year or property.available_at or property.bedrooms %}
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endif %}
{% if property.bedrooms %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/chambre.svg') }}\" alt=\"Icone chambre\"> #}
<span>{{ property.bedrooms }} chambre{% if property.bedrooms > 1 %}s{% endif %}</span>
</div>
{% if property.construction.construction_year or property.available_at %}
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endif %}
{% for area in property.areas %}
{% if area.type == 13 %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/salle_bain.svg') }}\" alt=\"Icone salle de bain\"> #}
<span>{{ area.number }} {{ propertyArea(area.type) }}</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endfor %}
{% for area in property.areas %}
{% if area.type == 4 %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/garage.svg') }}\" alt=\"Icone garage\"> #}
<span>{{ area.number }} {{ propertyArea(area.type) }}</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endfor %}
{% for area in property.areas %}
{% if area.type == 74 or area.type == 75 %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/parking.svg') }}\" alt=\"Icone parking\"> #}
<span>{{ area.number }} {{ propertyArea(area.type) }}</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endfor %}
{% for area in property.areas %}
{% if area.type == 18 %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/terasse.svg') }}\" alt=\"Icone terasse\"> #}
<span>{{ area.number }} {{ propertyArea(area.type) }}</span>
</div>
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endfor %}
{% if property.construction.construction_year %}
<div class=\"item-single\">
{# <img src=\"{{ asset('img/icons/construction.svg') }}\" alt=\"Icone date construction\"> #}
<span>Construction : {{ property.construction.construction_year }}</span>
</div>
{% if property.available_at %}
<div style=\"width:40px;\">
<div style=\"width:4px;height:25px;background:#5f5f5f\"></div>
</div>
{% endif %}
{% endif %}
{% if property.available_at %}
<div class=\"item-single availability\">
{# <img src=\"{{ asset('img/icons/dispo.svg') }}\" alt=\"Icone disponibilité\"> #}
<span>Disponibilité {{ property.available_at == null ? '-' : property.available_at}}</span>
</div>
{% endif %}
</div>
</section>
<section class=\"desc-property mt-5\">
<div class=\"col-lg-8 mx-auto\" style=\"overflow: hidden\">
<div class=\"row reverse-mobil\">
<div class=\"col-md-4\">
<div class=\"col-lg-12 mt-4\" style=\"display: flex;flex-direction: column;margin:0 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<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\"/>
</svg>
<h1 class=\"project-title\" style=\"font-size: 2.3em;font-weight: bold\">Descriptif</h1>
<p class=\"city\">{{ property.city.name }}</p>
<p class=\"project-name\">{{ property.reference }}</p>
{% if property.regulations and property.regulations is not empty %}
<p class=\"project-name\">DPE : <strong>{% for regulation in property.regulations %}{{ regulation.value }}{% endfor %}</strong>
{% endif %}
</p>
<p class=\"price\" style=\"color:#F6A400\">
{{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</p>
<div class=\"col-md-10 row list-pictures\">
{% for picture in property.pictures %}
<div class=\"modal fade bd-example-modal-lg-{{ picture.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg\">
<div class=\"modal-content\">
<img src=\"{{ picture.url }}\">
</div>
</div>
</div>
<div class=\"col-6 col-md-4 lightbox-on-second\" data-toggle=\"modal\" data-target=\".bd-example-modal-lg-{{ picture.id }}\" style=\"margin-bottom:10px;\">
<img class=\"img\"
src=\"{{ picture.url }}\"
data-id=\"modul-ref-{{ loop.index }}\">
</div>
{% endfor %}
</div>
{% if property.user is defined and property.user is not empty %}
<div class=\"contact-property col-md-10 mt-4 p-3\">
<p>Pour plus d’informations sur ce bien, vous pouvez prendre contact avec</p>
{% if property.user.firstname is defined and property.user.lastname is defined %}
<h3>{{ property.user.firstname }} {{ property.user.lastname }}</h3>
{% endif %}
</div>
<div class=\"contacinfos col-md-10 p-3 d-flex justify-content-between\">
{% if property.user.email is defined %}
<a href=\"mailto:{{ property.user.email }}\" target=\"_blank\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"21.418\" height=\"14.503\" viewBox=\"0 0 21.418 14.503\">
<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\"/>
</svg>
</a>
{% endif %}
{% if property.user.mobile is defined %}
<a href=\"tel:{{ property.user.mobile }}\" style=\"text-decoration:none;color:#fff;\">
<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\">
<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\"/>
</svg>
{{ property.user.mobile }}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
<div class=\"col-md-8 description-prop-container\">
<div class=\"description-prop pt-3\">
<p>{{ property.comments[0].comment|raw|nl2br }}</p>
</div>
</div>
</div>
</div>
</section>
{#
<section class=\"project\" style=\"margin-bottom: 120px\">
<div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; margin-top: 20px\">
</div>
<div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; padding-left: 7px\">
<button data-id=\"descriptif-div\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">DESCRIPTIF</span></button>
<button data-id=\"practical-infos-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">INFOS PRATIQUES</span></button>
<button data-id=\"interior-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">INTERIEUR</span></button>
<button data-id=\"exterior-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">EXTERIEUR</span></button>
<button data-id=\"energy-div\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ENERGIE</span></button>
</div>
<div id=\"descriptif-div\" class=\"offset-lg-2 col-lg-4 property-comment display-flex\">
<p>{{ property.comments[0].comment|raw|nl2br }}</p>
</div>
<div id=\"practical-infos-div\" class=\"offset-lg-2 col-lg-8 display-none\" style=\"flex-wrap: wrap;\">
<table class=\"table\">
<tbody>
<tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
{% if property.services is not null %}
{% for service in property.services %}
<td class=\"text-property-infos\">{{ propertyServices(service) }}</td>
{% endfor %}
{% endif %}
</tr>
</tbody>
</table>
</div>
<div id=\"interior-div\" class=\"offset-lg-2 col-lg-8 display-none\">
<table class=\"table\">
<tbody>
<tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
<td class=\"text-property\">Surface</td>
<td class=\"text-property-infos\">{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}</td>
<td class=\"text-property\">Eau</td>
<td class=\"text-property-infos\">{{ propertyHotWater(property.water.hot_device) == null ? '-' : propertyHotWater(property.water.hot_device) ~ \" \" ~ propertyHotWaterAccess(property.water.hot_access) }}</td>
<td class=\"text-property\">An Construction</td>
<td class=\"text-property-infos\">{{ property.construction.construction_year == null ? '-' : property.construction.construction_year }}</td>
</tr>
{% if property.areas is empty %}
<tr>
<td class=\"text-property\">Condition</td>
<td class=\"text-property-infos\">{{ property.condition == null ? '-' : propertyCondition(property.condition) }}</td>
</tr>
<tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
<td class=\"text-property\">Etage</td>
<td class=\"text-property-infos\">{{ property.floor.type == null ? '-' : propertyFloor(property.floor.type) }}</td>
<td class=\"text-property\">Chauffage</td>
<td class=\"text-property-infos\">{{ propertyHeatingDevice(property.heating.device) == null ? '-' : propertyHeatingDevice(property.heating.device) ~ \" \" ~ propertyHeatingType(property.heating.type) }}</td>
<td class=\"text-property\">Disponibilite</td>
<td class=\"text-property-infos\">{{ property.available_at == null ? '-' : property.available_at}}</td>
</tr>
{% else %}
<tr>
{% for area in property.areas %}
{% if propertyArea(area.type) is not null %}
<td class=\"text-property-first\">{{ propertyArea(area.type) }}</td>
<td class=\"text-property-infos\">{{ area.number }}</td>
{% endif %}
{% endfor %}
</tr>
<tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
<td class=\"text-property\">Etage</td>
<td class=\"text-property-infos\">{{ property.floor.type == null ? '-' : propertyFloor(property.floor.type) }}</td>
<td class=\"text-property\">Chauffage</td>
<td class=\"text-property-infos\">{{ propertyHeatingDevice(property.heating.device) == null ? '-' : propertyHeatingDevice(property.heating.device) ~ \" \" ~ propertyHeatingType(property.heating.type) }}</td>
<td class=\"text-property\">Disponibilite</td>
<td class=\"text-property-infos\">{{ property.available_at == null ? '-' : property.available_at}}</td>
</tr>
<tr>
<td class=\"text-property\">Condition</td>
<td class=\"text-property-infos\">{{ property.condition == null ? '-' : propertyCondition(property.condition) }}</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
<div id=\"exterior-div\" class=\"offset-lg-2 col-lg-8 display-none\">
<table class=\"table\">
<tbody>
{% if property.areas is not empty %}
<tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
{% for area in property.areas %}
{% if propertyExterior(area.type) is not null %}
<td class=\"text-property-first\">{{ propertyExterior(area.type) }}</td>
<td class=\"text-property-infos\">{{ area.number }}</td>
{% endif %}
{% endfor %}
</tr>
{% endif %}
</tbody>
</table>
</div>
<div id=\"energy-div\" class=\"offset-lg-2 col-lg-8 display-none\">
<table class=\"table\">
<tbody>
{% if property.regulations is not empty %}
<tr class=\"table-property-first\" style=\"background-color: #f7e7cb;\">
{% for energy in property.regulations %}
<td class=\"text-property-first\">{{ propertyEnergy(energy.type) }}</td>
<td class=\"text-property-infos\">{{ energy.value }}</td>
{% endfor %}
</tr>
{% endif %}
</tbody>
</table>
</div>
</section>
#}
<section class=\"similar-properties\">
{% set sectionContent1 = content('Bien-detail', 'Section-1') %}
<div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
<div class=\"col-lg-5\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<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\"/>
</svg>
<h1 class=\"project-title\" style=\"font-weight: bold\">{% if sectionContent1.name is defined %}{{ sectionContent1.name }}{% else %}NOS BIENS SIMILAIRES{% endif %}</h1>
</div>
<div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
{% if sectionContent1.content is defined %}{{ sectionContent1.content|raw }}{% endif %}
</div>
</div>
<div class=\"col-lg-8 mx-auto\">
<div id=\"propertiesOther\" class=\"col-lg-12 mt-5\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
{% for property in otherProperties %}
<div class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
{#
<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\">
{% if property.comments[0].comment is not empty %}
<p class=\"project-content\">
{{ property.comments[0].comment|slice(0, 350) }}</p>
<a href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
<span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
</a>
{% else %}
<a style=\"margin-top: 180px\" href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
<span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
</a>
{% endif %}
</div>
<div class=\"col-lg-3 properties-price-absolute\" style=\"background-color: #c48300; height: 56px;\">
<p style=\"font-size: 20px;\" class=\"properties-price\">
{{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</p>
</div>
#}
{# <div class=\"tag-ref-projet-2\"><span class=\"text-tag-ref\">{{ specialPropertyCategory(property.category) }}</span></div> #}
{% if property.pictures is not empty %}
<div class=\"position-relative properties-slide slick-slide-single-{{ loop.index }}\">
{% for picture in property.pictures|slice(0,3) %}
{# <img class=\"img-100\" src=\"{{ picture.url }}\">#}
<div class=\"img\" style=\"background: url('{{ picture.url }}')no-repeat center;background-size:cover;\" onclick=\"location.href='{{ path('property-detail', {'id': property.id}) }}'\">
</div>
{% endfor %}
</div>
{% else %}
<div class=\"img\" style=\"background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')\"></div>
{% endif %}
<div class=\"row col-md-12 justify-content-between infos-list\">
<ul class=\"col-md-4 items\">
{% if property.area.value %}
<li class=\"item surface\">
{# <img src=\"{{ asset('img/surface.svg') }}\" class=\"surface-logo\"> #}
{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
</li>
{% endif %}
</ul>
<div class=\"col-md-8 properties-price d-flex justify-content-end\">
{{ property.price.value == null ? '<span style=\"font-size: 21px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</div>
</div>
<p class=\"city\" {% if not property.area.value %}style=\"margin-top:-30px;\"{% endif %}>{{ property.city.name }}</p>
<p class=\"project-name\">{{ property.reference }}</p>
</div>
{% endfor %}
</div>
{% set paramUrl = property.category %}
{% if paramUrl == 1 %}
{% set paramUrl = 'vente' %}
{% elseif paramUrl == 2 %}
{% set paramUrl = 'location' %}
{% endif %}
<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;\">
<div style=\"padding-bottom:40px;\">
<a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"{{ path('properties', {'keyword': paramUrl}) }}\">Découvrir plus
<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 -->
</a>
</div>
</div>
</div>
</section>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js\" integrity=\"sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+\" crossorigin=\"anonymous\"></script>
<script>
const slideNextHeader = document.getElementById('slideNextHeader');
const slidePreviousHeader = document.getElementById('slidePreviousHeader');
const currentFigure = document.getElementsByClassName('current-figure')
const lastFigure = document.getElementsByClassName('last-figure')
let slideHeader = document.getElementById('sliderHeader');
let positionHeader = 0;
let positionThumbHeader = 1;
arraySlidesHeader = [
{% for key, picture in property.pictures %}
{
'position': {{ key }},
'img': '{{ picture.url }}',
'dot': 'dot{{ key }}'
},
{% endfor %}
];
{#
slidePreviousHeader.addEventListener('click', () => {
if (arraySlidesHeader.length < (positionThumbHeader + 1)) {
positionHeader = 0;
positionThumbHeader = 1;
} else {
positionHeader++;
positionThumbHeader++;
}
slideHeader.style.background = `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;
currentFigure[0].innerHTML = '0'+positionThumbHeader
slideHeader.style.backgroundSize = `cover`;
});
slideNextHeader.addEventListener('click', () => {
if (positionThumbHeader === 1) {
positionHeader = (arraySlidesHeader.length - 1);
positionThumbHeader = arraySlidesHeader.length;
} else {
positionHeader = positionHeader - 1;
positionThumbHeader = positionThumbHeader - 1;
}
slideHeader.style.background = `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;
currentFigure[0].innerHTML = '0'+positionThumbHeader
slideHeader.style.backgroundSize = `cover`;
});
#}
const descriptif = document.getElementById('descriptif-div')
const praticalInfos = document.getElementById('practical-infos-div')
const interior = document.getElementById('interior-div')
const exterior = document.getElementById('exterior-div')
const energy = document.getElementById('energy-div')
let buttons = document.getElementsByClassName('projectButton')
for (const eElement of buttons) {
eElement.addEventListener('click', function (e) {
e.preventDefault()
for (let button of buttons) {
if (button.classList.contains('all')){
button.classList.remove('all')
button.classList.add('come')
button.querySelector('span').classList.replace('span-all', 'span-projects')
}
if (document.getElementById(button.dataset.id)) {
document.getElementById(button.dataset.id).classList.remove('display-flex')
document.getElementById(button.dataset.id).classList.add('display-none')
}
}
eElement.classList.remove('come')
eElement.classList.add('all')
eElement.querySelector('span').classList.replace('span-projects', 'span-all')
document.getElementById(eElement.dataset.id).classList.add('display-flex');
})
}
</script>
<script>
const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<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\"/>
</svg>`;
const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<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\"/>
</svg>`;
var countProperties = '{{ otherProperties|length }}';
var loopProp = 1;
while (loopProp <= countProperties) {
\$('.slick-slide-single-'+loopProp).slick({
'slidesToShow': 1,
'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
});
loopProp++;
}
</script>
{% endblock %}
", "property-detail.html.twig", "/home/jumo/sites/sym/tracol/templates/property-detail.html.twig");
}
}