<?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;
/* public/lot.html.twig */
class __TwigTemplate_2d9beb66227227153926c4f5b6b12828c6d61698af00b5398cb8e6448ed997b5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'detail_lot' => [$this, 'block_detail_lot'],
'dropdownLotsNav' => [$this, 'block_dropdownLotsNav'],
'main' => [$this, 'block_main'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "./public/layout.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", "public/lot.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "public/lot.html.twig"));
$this->parent = $this->loadTemplate("./public/layout.html.twig", "public/lot.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 twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 3, $this->source); })()), "emprunteurPrenom", [], "any", false, false, false, 3))), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 3, $this->source); })()), "emprunteurNom", [], "any", false, false, false, 3), "html", null, true);
echo " ";
((twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 3, $this->source); })()), "programme", [], "any", false, false, false, 3)) ? (print (twig_escape_filter($this->env, ("| " . twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 3, $this->source); })()), "programme", [], "any", false, false, false, 3)), "html", null, true))) : (print ("")));
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_detail_lot($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", "detail_lot"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "detail_lot"));
// line 6
echo " <div class=\"title-description\">
<h2 class=\"lot-name text-bold\">";
// line 7
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 7, $this->source); })()), "programme", [], "any", false, false, false, 7)), "html", null, true);
echo "</h2>
<h3 class=\"lot-size mb-0\">";
// line 8
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 8, $this->source); })()), "type", [], "any", false, false, false, 8)), "html", null, true);
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 8, $this->source); })()), "reference", [], "any", false, false, false, 8))) {
echo "- ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 8, $this->source); })()), "reference", [], "any", false, false, false, 8), "html", null, true);
}
echo "</h3>
</div>
<ul class=\"criteres-description\">
";
// line 12
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 12, $this->source); })()), "etage", [], "any", false, false, false, 12))) {
echo " <li>Etage :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 12, $this->source); })()), "etage", [], "any", false, false, false, 12)), "html", null, true);
echo " </span></li> ";
}
// line 13
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 13, $this->source); })()), "superficie", [], "any", false, false, false, 13))) {
echo " <li>Superficie :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 13, $this->source); })()), "superficie", [], "any", false, false, false, 13), "html", null, true);
echo "m²</span></li> ";
}
// line 14
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 14, $this->source); })()), "jardin", [], "any", false, false, false, 14))) {
echo " <li>Jardin :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 14, $this->source); })()), "jardin", [], "any", false, false, false, 14), "html", null, true);
echo "m²</span></li> ";
}
// line 15
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 15, $this->source); })()), "terrasse", [], "any", false, false, false, 15))) {
echo " <li>Terrasse :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 15, $this->source); })()), "terrasse", [], "any", false, false, false, 15), "html", null, true);
echo "m²</span></li> ";
}
// line 16
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 16, $this->source); })()), "terrasse2", [], "any", false, false, false, 16))) {
echo " <li>2<sup>ème</sup> terrasse :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 16, $this->source); })()), "terrasse2", [], "any", false, false, false, 16), "html", null, true);
echo "m²</span></li> ";
}
// line 17
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 17, $this->source); })()), "orientation", [], "any", false, false, false, 17))) {
echo " <li>Orientation :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 17, $this->source); })()), "orientation", [], "any", false, false, false, 17)), "html", null, true);
echo "</span></li> ";
}
// line 18
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 18, $this->source); })()), "prix", [], "any", false, false, false, 18))) {
echo " <li>Prix :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 18, $this->source); })()), "prix", [], "any", false, false, false, 18), 0, "", "."), "html", null, true);
echo " €</span></li> ";
}
// line 19
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 19, $this->source); })()), "annexes", [], "any", false, false, false, 19))) {
echo " <li>Annexe(s) incluse(s) :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 19, $this->source); })()), "annexes", [], "any", false, false, false, 19)), "html", null, true);
echo "</span></li> ";
}
// line 20
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 20, $this->source); })()), "fraisNotaireInclus", [], "any", false, false, false, 20))) {
echo " <li>Frais de notaire ";
if (((null === twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 20, $this->source); })()), "fraisNotaireType", [], "any", false, false, false, 20)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 20, $this->source); })()), "fraisNotaireType", [], "any", false, false, false, 20), "reduits")))) {
echo " réduits";
}
echo " :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 20, $this->source); })()), "fraisNotaireInclus", [], "any", false, false, false, 20), 0, "", "."), "html", null, true);
echo " €</span></li>";
}
// line 21
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 21, $this->source); })()), "programmeParent", [], "any", false, false, false, 21), "visuLivraison", [], "any", false, false, false, 21)) {
// line 22
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 22, $this->source); })()), "livraison", [], "any", false, false, false, 22))) {
echo " <li>Livraison :<span class=\"critere-description\"> ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 22, $this->source); })()), "livraison", [], "any", false, false, false, 22)), "html", null, true);
echo "</span></li> ";
}
// line 23
echo " ";
}
// line 24
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 24, $this->source); })()), "description", [], "any", false, false, false, 24))) {
echo " <li><span class=\"critere-description\"><p class=\"notes-lot\"> ";
echo twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 24, $this->source); })()), "description", [], "any", false, false, false, 24));
echo "</p></span></li> ";
}
// line 25
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 25, $this->source); })()), "programmeParent", [], "any", false, false, false, 25), "noteGlobale", [], "any", false, false, false, 25))) {
echo " <li><hr class=\"my-2\"><span class=\"critere-description\"><p class=\"notes-lot\">";
echo twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 25, $this->source); })()), "programmeParent", [], "any", false, false, false, 25), "noteGlobale", [], "any", false, false, false, 25));
echo "</p></span></li> ";
}
// line 26
echo " </ul>
";
// line 28
if (twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 28, $this->source); })()), "brochure", [], "any", false, false, false, 28)) {
// line 29
echo " <div class=\"download-brochure shadow mt-2\">
<a class=\"download-brochure-a\" download target=\"_blank\" href=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/brochures/" . twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 30, $this->source); })()), "brochure", [], "any", false, false, false, 30))), "html", null, true);
echo "\">
<span class=\"download-brochure-content download-brochure-content-invisible\">
";
// line 33
echo " <span>";
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 33, $this->source); })()), "programmeParent", [], "any", false, false, false, 33), "libelleBrochure", [], "any", false, false, false, 33))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 33, $this->source); })()), "programmeParent", [], "any", false, false, false, 33), "libelleBrochure", [], "any", false, false, false, 33), "html", null, true))) : (print ("Télécharger la brochure")));
echo "</span>
</span>
<span class=\"download-brochure-content download-brochure-content-absolute\">
<span>";
// line 36
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 36, $this->source); })()), "programmeParent", [], "any", false, false, false, 36), "libelleBrochure", [], "any", false, false, false, 36))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 36, $this->source); })()), "programmeParent", [], "any", false, false, false, 36), "libelleBrochure", [], "any", false, false, false, 36), "html", null, true))) : (print ("Télécharger la brochure")));
echo "</span>
</span>
</a>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 43
public function block_dropdownLotsNav($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", "dropdownLotsNav"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dropdownLotsNav"));
// line 44
echo " ";
$context["nblot"] = 0;
// line 45
echo " ";
$context["actualProp"] = "";
// line 46
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["propositions"]) || array_key_exists("propositions", $context) ? $context["propositions"] : (function () { throw new RuntimeError('Variable "propositions" does not exist.', 46, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["proposition"]) {
// line 47
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["proposition"], "lot", [], "any", false, false, false, 47), "id", [], "any", false, false, false, 47), twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 47, $this->source); })()), "id", [], "any", false, false, false, 47)))) {
// line 48
echo " ";
$context["nblot"] = $context["key"];
// line 49
echo " ";
$context["actualProp"] = $context["proposition"];
// line 50
echo " ";
}
// line 51
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['proposition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo "
\t";
// line 54
$context["nbItemMenu"] = 1;
// line 55
echo " ";
if ((0 !== twig_compare((isset($context["actualProp"]) || array_key_exists("actualProp", $context) ? $context["actualProp"] : (function () { throw new RuntimeError('Variable "actualProp" does not exist.', 55, $this->source); })()), ""))) {
// line 56
echo " <div class=\"dropdown opacity-0 lot-";
echo twig_escape_filter($this->env, (((isset($context["nblot"]) || array_key_exists("nblot", $context) ? $context["nblot"] : (function () { throw new RuntimeError('Variable "nblot" does not exist.', 56, $this->source); })()) % 6) + 1), "html", null, true);
echo "\">
<span class=\"before\"></span>
<a class=\"btn dropdown-toggle navbar-lot-menu d-flex align-items-center \" href=\"#\" role=\"button\" id=\"dropdownMenuLink\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<span class=\"text-center\">
";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["actualProp"]) || array_key_exists("actualProp", $context) ? $context["actualProp"] : (function () { throw new RuntimeError('Variable "actualProp" does not exist.', 60, $this->source); })()), "lot", [], "any", false, false, false, 60), "reference", [], "any", false, false, false, 60), "html", null, true);
echo "
</span>
<div class=\"down\">
<span class=\"down-icon\">
<i class=\"fas fa-caret-down\"></i>
</span>
</div>
</a>
<span class=\"after\"></span>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 85
public function block_main($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", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 86
echo "
";
// line 87
$context["lastProp"] = false;
// line 88
echo " ";
$context["nextProp"] = ["num" => 0, "prop" => null];
// line 92
echo "
<div class=\"lot-page\">
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuLink\">
";
// line 95
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["propositions"]) || array_key_exists("propositions", $context) ? $context["propositions"] : (function () { throw new RuntimeError('Variable "propositions" does not exist.', 95, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["proposition"]) {
// line 96
echo " <li class=\"lot-";
echo twig_escape_filter($this->env, (($context["key"] % 6) + 1), "html", null, true);
echo "\">
<a class=\"dropdown-item\" href=\"";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_lot", ["token" => twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 97, $this->source); })()), "token", [], "any", false, false, false, 97), "id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["proposition"], "lot", [], "any", false, false, false, 97), "id", [], "any", false, false, false, 97)]), "html", null, true);
echo "\">
<span class=\"text-center\">";
// line 98
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["proposition"], "lot", [], "any", false, false, false, 98), "type", [], "any", false, false, false, 98), 0, 6), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["proposition"], "lot", [], "any", false, false, false, 98), "reference", [], "any", false, false, false, 98), "html", null, true);
echo "</span>
</a>
</li>
";
// line 102
if (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["proposition"], "lot", [], "any", false, false, false, 102), "id", [], "any", false, false, false, 102), twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 102, $this->source); })()), "id", [], "any", false, false, false, 102))) && (-1 === twig_compare(($context["key"] + 1), twig_length_filter($this->env, (isset($context["propositions"]) || array_key_exists("propositions", $context) ? $context["propositions"] : (function () { throw new RuntimeError('Variable "propositions" does not exist.', 102, $this->source); })())))))) {
// line 103
echo "
";
// line 104
$context["nextProp"] = ["num" => ( // line 105
$context["key"] + 2), "prop" => twig_get_attribute($this->env, $this->source, // line 106
(isset($context["propositions"]) || array_key_exists("propositions", $context) ? $context["propositions"] : (function () { throw new RuntimeError('Variable "propositions" does not exist.', 106, $this->source); })()), ($context["key"] + 1), [], "array", false, false, false, 106)];
// line 109
echo "
";
}
// line 111
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['proposition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 112
echo " ";
// line 113
echo " </ul>
<div class=\"container-fluid p-0 content-lot slider \" >
<div class=\"progress-container\">
\t\t\t<div class=\"progress\">
\t\t\t\t<div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"0\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>
\t\t\t</div>
</div>
";
// line 121
$context["combinedPjs"] = twig_array_filter($this->env, twig_array_merge((isset($context["programmePjs"]) || array_key_exists("programmePjs", $context) ? $context["programmePjs"] : (function () { throw new RuntimeError('Variable "programmePjs" does not exist.', 121, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 121, $this->source); })()), "pjs", [], "any", false, false, false, 121)), function ($__pj__) use ($context, $macros) { $context["pj"] = $__pj__; return twig_get_attribute($this->env, $this->source, (isset($context["pj"]) || array_key_exists("pj", $context) ? $context["pj"] : (function () { throw new RuntimeError('Variable "pj" does not exist.', 121, $this->source); })()), "showPublic", [], "any", false, false, false, 121); });
// line 122
echo " ";
$context["NB_SLIDES"] = (2 + twig_length_filter($this->env, (isset($context["combinedPjs"]) || array_key_exists("combinedPjs", $context) ? $context["combinedPjs"] : (function () { throw new RuntimeError('Variable "combinedPjs" does not exist.', 122, $this->source); })())));
// line 123
echo "
<script type=\"text/javascript\">
var NB_SLIDES = ";
// line 125
echo twig_escape_filter($this->env, (isset($context["NB_SLIDES"]) || array_key_exists("NB_SLIDES", $context) ? $context["NB_SLIDES"] : (function () { throw new RuntimeError('Variable "NB_SLIDES" does not exist.', 125, $this->source); })()), "html", null, true);
echo ";
</script>
<div class=\"owl-carousel owl-carousel-lot\">
<div class=\"slide slide-localisation\" data-slide-title=\"Localisation\">
<div class=\"container-fluid-content\">
<div class=\"col-3 map-buttons d-flex flex-column align-items-end justify-content-end\">
<a class=\"btn-rounded-white download-pdf map my-2\" id=\"map_switch\" href=\"#\"><i id=\"satellite_logo\" class=\"fa fa-globe\" style=\"display:none;\"></i><i id=\"roadmap_logo\" class=\"fa fa-map\"></i></a>
<a class=\"btn-rounded-white download-pdf resize my-2\" id=\"map_minus\" href=\"#\"><i id=\"btn-moins\" class=\"fa fa-minus\"></i></a>
<a class=\"btn-rounded-white pdf-btn-resize resize my-2\" id=\"map_plus\" href=\"#\"><i id=\"btn-plus\" class=\"fa fa-plus\"></i></a>
</div>
<div class=\"content-map\" id=\"map\"></div>
<div class=\"lot-content d-flex close\">
<div role=\"button\" class=\"drag-btn d-flex align-items-center justify-content-center shadow\">
<img class=\"drag-icon-arrow ml-4\" src=\"";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/drag-icon-right-arrow.png"), "html", null, true);
echo "\"/>
</div>
<div class=\"detail-content d-flex flex-column\">
";
// line 144
$this->displayBlock("detail_lot", $context, $blocks);
echo "
</div>
</div>
</div>
";
// line 148
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 148, $this->source); })()), "prop", [], "array", false, false, false, 148), null))) {
// line 149
echo " <a class=\"owl-next-proposition\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_lot", ["token" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 149, $this->source); })()), "prop", [], "any", false, false, false, 149), "prospect", [], "any", false, false, false, 149), "token", [], "any", false, false, false, 149), "id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 149, $this->source); })()), "prop", [], "any", false, false, false, 149), "lot", [], "any", false, false, false, 149), "id", [], "any", false, false, false, 149)]), "html", null, true);
echo "\"></a>
";
} else {
// line 151
echo " ";
if ((null === twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 151, $this->source); })()), "id", [], "any", false, false, false, 151))) {
// line 152
echo " <a class=\"owl-next-proposition\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_prospect_short", ["token" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 152, $this->source); })()), "session", [], "any", false, false, false, 152), "get", [0 => "propositions"], "method", false, false, false, 152), 0, [], "array", false, false, false, 152), "prospect", [], "any", false, false, false, 152), "token", [], "any", false, false, false, 152), "recap" => true]), "html", null, true);
echo "\"></a>
";
} else {
// line 154
echo " <a class=\"owl-next-proposition\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_prospect_short", ["token" => twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 154, $this->source); })()), "token", [], "any", false, false, false, 154), "recap" => true]), "html", null, true);
echo "\"></a>
";
}
// line 156
echo " ";
}
// line 157
echo " </div>
";
// line 158
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["combinedPjs"]) || array_key_exists("combinedPjs", $context) ? $context["combinedPjs"] : (function () { throw new RuntimeError('Variable "combinedPjs" does not exist.', 158, $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["n"] => $context["pj"]) {
// line 159
echo " <div class=\"slide slide-pdf slide-plan-lot\" data-slide-title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["pj"], "descriptionCourte", [], "any", false, false, false, 159), "html", null, true);
echo "\">
<div class=\"container-fluid-content\">
<div class=\"col-3 pdf-buttons d-flex flex-column align-items-end justify-content-end justify-content-end\">
";
// line 162
if (( !(null === twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 162)) && !(null === $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 162))))) {
// line 163
echo " ";
if ($this->extensions['App\Twig\AppExtension']->fileExists(twig_replace_filter(twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 163)), 0, [], "array", false, false, false, 163), ["-0.png" => ".pdf"]))) {
// line 164
echo " <a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_replace_filter(twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 164)), 0, [], "array", false, false, false, 164), ["-0.png" => ".pdf"])), "html", null, true);
echo "\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<style type=\"text/css\">
.st0{fill:#2D3642;}
.st1{fill:#2E3743;}
</style>
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
";
} else {
// line 186
echo " <a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 186)), 0, [], "array", false, false, false, 186)), "html", null, true);
echo "\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
";
}
// line 204
echo " ";
} else {
// line 205
echo " <a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pieces_jointes/" . twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 205))), "html", null, true);
echo "\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
";
}
// line 223
echo "
<a class=\"btn-rounded-white my-2 download-pdf resize resize-moins\" id=\"img_minus\" href=\"#\"><i id=\"btn-moins\" class=\"fa fa-minus\"></i></a>
<a class=\"btn-rounded-white my-2 resize resize-plus\" id=\"img_plus\" href=\"#\"><i id=\"btn-plus\" class=\"fa fa-plus\"></i></a>
</div>
<div class=\"viewer-pdf\">
<div id=\"viewer_n";
// line 228
echo twig_escape_filter($this->env, $context["n"], "html", null, true);
echo "\" class=\"pdf-viewer-iframe\">
";
// line 229
if ( !(null === $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 229)))) {
// line 230
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 230)));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
// line 231
echo " <img class=\"img-download\" loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"]), "html", null, true);
echo "\" /><br/>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 233
echo " <img class=\"img-download\" loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pieces_jointes/" . twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 233))), "html", null, true);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 235
echo " ";
} else {
// line 236
echo " <img class=\"img-download\" loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pieces_jointes/" . twig_get_attribute($this->env, $this->source, $context["pj"], "filename", [], "any", false, false, false, 236))), "html", null, true);
echo "\" />
";
}
// line 238
echo " </div>
</div>
<div class=\"lot-content d-flex\">
<div role=\"button\" class=\"drag-btn d-flex align-items-center justify-content-center shadow\">
<img class=\"drag-icon-arrow ml-4\" src=\"";
// line 242
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/drag-icon-right-arrow.png"), "html", null, true);
echo "\"/>
</div>
<div class=\"detail-content d-flex flex-column\">
";
// line 246
$this->displayBlock("detail_lot", $context, $blocks);
echo "
</div>
</div>
</div>
";
// line 250
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 250, $this->source); })()), "prop", [], "array", false, false, false, 250), null))) {
// line 251
echo " <a class=\"owl-next-proposition\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_lot", ["token" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 251, $this->source); })()), "prop", [], "any", false, false, false, 251), "prospect", [], "any", false, false, false, 251), "token", [], "any", false, false, false, 251), "id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 251, $this->source); })()), "prop", [], "any", false, false, false, 251), "lot", [], "any", false, false, false, 251), "id", [], "any", false, false, false, 251)]), "html", null, true);
echo "\"></a>
";
} else {
// line 253
echo " ";
if ((null === twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 253, $this->source); })()), "id", [], "any", false, false, false, 253))) {
// line 254
echo " <a class=\"owl-next-proposition\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_prospect_short", ["token" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 254, $this->source); })()), "session", [], "any", false, false, false, 254), "get", [0 => "propositions"], "method", false, false, false, 254), 0, [], "array", false, false, false, 254), "prospect", [], "any", false, false, false, 254), "token", [], "any", false, false, false, 254), "recap" => true]), "html", null, true);
echo "\"></a>
";
} else {
// line 256
echo " <a class=\"owl-next-proposition\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_prospect_short", ["token" => twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 256, $this->source); })()), "token", [], "any", false, false, false, 256), "recap" => true]), "html", null, true);
echo "\"></a>
";
}
// line 258
echo " ";
}
// line 259
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['n'], $context['pj'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 261
echo "
";
// line 262
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 262, $this->source); })()), "planMasse", [], "any", false, false, false, 262), null))) {
// line 263
echo " <div class=\"slide";
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 263, $this->source); })()), "prop", [], "array", false, false, false, 263), null))) {
echo " slide-next-proposition ";
}
echo " slide-pdf slide-plan-lot\" data-hash=\"planMasse\" data-slide-title=\"Plan masse\">
<div class=\"container-fluid-content\">
<div class=\"col-3 pdf-buttons d-flex flex-column align-items-end justify-content-end\">
";
// line 266
$context["pathDownload"] = "";
// line 267
echo " ";
if ( !(null === $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 267, $this->source); })()), "planMasse", [], "any", false, false, false, 267)))) {
// line 268
echo " ";
$context["planMasseArray"] = $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 268, $this->source); })()), "planMasse", [], "any", false, false, false, 268));
// line 269
echo " ";
if (((1 === twig_compare(twig_length_filter($this->env, (isset($context["planMasseArray"]) || array_key_exists("planMasseArray", $context) ? $context["planMasseArray"] : (function () { throw new RuntimeError('Variable "planMasseArray" does not exist.', 269, $this->source); })())), 0)) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["planMasseArray"]) || array_key_exists("planMasseArray", $context) ? $context["planMasseArray"] : (function () { throw new RuntimeError('Variable "planMasseArray" does not exist.', 269, $this->source); })()), 0, [], "array", false, false, false, 269), null)))) {
// line 270
echo " ";
$context["pathDownload"] = twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["planMasseArray"]) || array_key_exists("planMasseArray", $context) ? $context["planMasseArray"] : (function () { throw new RuntimeError('Variable "planMasseArray" does not exist.', 270, $this->source); })()), 0, [], "array", false, false, false, 270), ["-0.png" => ".pdf"]);
// line 271
echo " ";
}
// line 272
echo " ";
} else {
// line 273
echo " <a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pieces_jointes/" . twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 273, $this->source); })()), "planMasse", [], "any", false, false, false, 273))), "html", null, true);
echo "\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
";
}
// line 291
echo " <a class=\"btn-rounded-white my-2 download-pdf resize resize-moins\" id=\"img_minus\" href=\"#\"><i id=\"btn-moins\" class=\"fa fa-minus\"></i></a>
<a class=\"btn-rounded-white my-2 resize resize-plus\" id=\"img_plus\" href=\"#\"><i id=\"btn-plus\" class=\"fa fa-plus\"></i></a>
</div>
<div class=\"viewer-pdf\">
<div id=\"viewer_n";
// line 295
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 295, $this->source); })()), "pjs", [], "any", false, false, false, 295)), "html", null, true);
echo "\" class=\"pdf-viewer-iframe\">
";
// line 296
if ( !(null === $this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 296, $this->source); })()), "planMasse", [], "any", false, false, false, 296)))) {
// line 297
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\AppExtension']->unserialize(twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 297, $this->source); })()), "planMasse", [], "any", false, false, false, 297)));
foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
// line 298
echo " <img class=\"img-download\" loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"]), "html", null, true);
echo "\"/><br/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 300
echo " ";
} else {
// line 301
echo " <img class=\"img-download\" loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/plans_masse/" . twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 301, $this->source); })()), "planMasse", [], "any", false, false, false, 301))), "html", null, true);
echo "\"/>
";
}
// line 303
echo " </div>
</div>
<div class=\"lot-content d-flex\">
<div role=\"button\" class=\"drag-btn d-flex align-items-center justify-content-center shadow\">
<img class=\"drag-icon-arrow ml-4\" src=\"";
// line 307
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/drag-icon-right-arrow.png"), "html", null, true);
echo "\"/>
</div>
<div class=\"detail-content d-flex flex-column\">
";
// line 311
$this->displayBlock("detail_lot", $context, $blocks);
echo "
</div>
</div>
</div>
</div>
";
}
// line 318
echo " ";
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 318, $this->source); })()), "prop", [], "array", false, false, false, 318), null))) {
// line 319
echo " <div class=\"slide slide-next-proposition\" id=\"slideNextProp\" data-slide-title=\"Proposition n°";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 319, $this->source); })()), "num", [], "any", false, false, false, 319), "html", null, true);
echo "\">
<div class=\"container-fluid-content container-fluid p-0\" style=\"background-image:url(";
// line 320
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/lots_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 320, $this->source); })()), "prop", [], "any", false, false, false, 320), "lot", [], "any", false, false, false, 320), "image", [], "any", false, false, false, 320))), "html", null, true);
echo ");\">
<div class=\"d-flex flex-column\" style=\"justify-content:space-evenly;height:calc(100vh - calc(4.8vh + 2px + 2px + 17vh));\">
<div class=\"container-next-prop mx-auto\">
<div class=\"lot-item active-loading\">
<a href=\"";
// line 324
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_lot", ["token" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 324, $this->source); })()), "prop", [], "any", false, false, false, 324), "prospect", [], "any", false, false, false, 324), "token", [], "any", false, false, false, 324), "id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 324, $this->source); })()), "prop", [], "any", false, false, false, 324), "lot", [], "any", false, false, false, 324), "id", [], "any", false, false, false, 324)]), "html", null, true);
echo "\" class=\"noAnim link-card-item active-loading\">
<div class=\"hide-zoom-in d-flex flex-column justify-content-end card-lot-item\">
<div class=\"noAnim bg-img-lot\" style=\"background-image: url(";
// line 326
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/lots_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 326, $this->source); })()), "prop", [], "any", false, false, false, 326), "lot", [], "any", false, false, false, 326), "image", [], "any", false, false, false, 326))), "html", null, true);
echo ");\"></div>
<div class=\"d-flex justify-content-between align-items-end mb-1\">
<div class=\"text-white text-right col-10\">
<h3 class=\"lot-name mb-0\">";
// line 329
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 329, $this->source); })()), "prop", [], "any", false, false, false, 329), "lot", [], "any", false, false, false, 329), "reference", [], "any", false, false, false, 329), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 329, $this->source); })()), "prop", [], "any", false, false, false, 329), "lot", [], "any", false, false, false, 329), "ville", [], "any", false, false, false, 329)), "html", null, true);
echo "</h3>
<h2 class=\"lot-size text-bold\">";
// line 330
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 330, $this->source); })()), "prop", [], "any", false, false, false, 330), "lot", [], "any", false, false, false, 330), "type", [], "any", false, false, false, 330)), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 330, $this->source); })()), "prop", [], "any", false, false, false, 330), "lot", [], "any", false, false, false, 330), "Superficie", [], "any", false, false, false, 330), "html", null, true);
echo "m²</h2>
</div>
<div class=\"num num-";
// line 332
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 332, $this->source); })()), "num", [], "any", false, false, false, 332) - 1) % 6), "html", null, true);
echo " col-2\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 332, $this->source); })()), "num", [], "any", false, false, false, 332), "html", null, true);
echo "</div>
</div>
</div>
</a>
<div><h5 class=\"lot-realisation\"><span class=\"lot-prix\">";
// line 336
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 336, $this->source); })()), "prop", [], "any", false, false, false, 336), "lot", [], "any", false, false, false, 336), "prix", [], "any", false, false, false, 336))) {
echo 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, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 336, $this->source); })()), "prop", [], "any", false, false, false, 336), "lot", [], "any", false, false, false, 336), "prix", [], "any", false, false, false, 336), 0, ",", " "), "html", null, true);
echo "€ </span><span class=\"text-white\">-</span>";
}
echo "<span class=\"lot-livraison\"> ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 336, $this->source); })()), "prop", [], "any", false, false, false, 336), "lot", [], "any", false, false, false, 336), "livraison", [], "any", false, false, false, 336))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 336, $this->source); })()), "prop", [], "any", false, false, false, 336), "lot", [], "any", false, false, false, 336), "Livraison", [], "any", false, false, false, 336), "html", null, true);
}
echo "</span></h5></div>
</div>
</div>
</div>
</div>
<a class=\"owl-next-proposition\" href=\"";
// line 341
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_lot", ["token" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 341, $this->source); })()), "prop", [], "any", false, false, false, 341), "prospect", [], "any", false, false, false, 341), "token", [], "any", false, false, false, 341), "id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["nextProp"]) || array_key_exists("nextProp", $context) ? $context["nextProp"] : (function () { throw new RuntimeError('Variable "nextProp" does not exist.', 341, $this->source); })()), "prop", [], "any", false, false, false, 341), "lot", [], "any", false, false, false, 341), "id", [], "any", false, false, false, 341)]), "html", null, true);
echo "\"></a>
</div>
";
}
// line 344
echo " </div>
<div class=\"tooltip-next\" style=\"display:none !important;\">
Étape suivante
<span class=\"triangle\"></span>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 354
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 355
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\">
// patch owl loading
if(window.innerHeight > window.innerWidth){
window.location.href = '";
// line 361
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("public_prospect_short", ["token" => twig_get_attribute($this->env, $this->source, (isset($context["prospect"]) || array_key_exists("prospect", $context) ? $context["prospect"] : (function () { throw new RuntimeError('Variable "prospect" does not exist.', 361, $this->source); })()), "token", [], "any", false, false, false, 361)]), "html", null, true);
echo "';
document.querySelector('#main_loader').style.display = 'flex';
}
</script>
<script type=\"text/javascript\">
function initMap() {
map = new google.maps.Map(document.getElementById(\"map\"), {
center: new google.maps.LatLng(";
// line 370
(( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 370, $this->source); })()), "latitude", [], "any", false, false, false, 370))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 370, $this->source); })()), "latitude", [], "any", false, false, false, 370), "html", null, true))) : (print (45.899247)));
echo ", ";
(( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 370, $this->source); })()), "longitude", [], "any", false, false, false, 370))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 370, $this->source); })()), "longitude", [], "any", false, false, false, 370), "html", null, true))) : (print (6.129384)));
echo "),
zoom: ";
// line 371
(( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 371, $this->source); })()), "programmeParent", [], "any", false, false, false, 371), "zoomMap", [], "any", false, false, false, 371))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 371, $this->source); })()), "programmeParent", [], "any", false, false, false, 371), "zoomMap", [], "any", false, false, false, 371), "html", null, true))) : (print (14)));
echo ",
fullscreenControl: true,
streetViewControl: false,
rotateControl: false,
scrollwheel: false,
mapTypeControl: false,
clickableIcons: false,
mapTypeId: '";
// line 378
echo twig_escape_filter($this->env, (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 378, $this->source); })()), "programmeParent", [], "any", false, false, false, 378), "typePlan", [], "any", false, false, false, 378))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 378, $this->source); })()), "programmeParent", [], "any", false, false, false, 378), "typePlan", [], "any", false, false, false, 378)) : ((isset($context["satellite"]) || array_key_exists("satellite", $context) ? $context["satellite"] : (function () { throw new RuntimeError('Variable "satellite" does not exist.', 378, $this->source); })()))), "html", null, true);
echo "'
});
document.getElementById('map_switch').onclick = function() {
if(map.mapTypeId == 'roadmap') {
document.getElementById('roadmap_logo').style.display = 'block';
document.getElementById('satellite_logo').style.display = 'none';
map.setMapTypeId(\"satellite\");
} else {
document.getElementById('satellite_logo').style.display = 'block';
document.getElementById('roadmap_logo').style.display = 'none';
map.setMapTypeId(\"roadmap\");
}
};
document.getElementById('map_minus').onclick = function() {
map.setZoom(map.getZoom() - 1);
};
document.getElementById('map_plus').onclick = function() {
map.setZoom(map.getZoom() + 1);
};
const infowindow = new google.maps.InfoWindow({
content: '<div id=\"infobox_content\">";
// line 405
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 405, $this->source); })()), "programme", [], "any", false, false, false, 405), "html", null, true);
echo "</br>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 405, $this->source); })()), "adresse", [], "any", false, false, false, 405), "html", null, true);
echo "</br>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 405, $this->source); })()), "codePostal", [], "any", false, false, false, 405), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 405, $this->source); })()), "ville", [], "any", false, false, false, 405), "html", null, true);
echo "</div>',
});
";
// line 408
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 408, $this->source); })()), "latitude", [], "any", false, false, false, 408)) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 408, $this->source); })()), "longitude", [], "any", false, false, false, 408)))) {
// line 409
echo " var marker = new google.maps.Marker({
position: new google.maps.LatLng(";
// line 410
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 410, $this->source); })()), "latitude", [], "any", false, false, false, 410), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lot"]) || array_key_exists("lot", $context) ? $context["lot"] : (function () { throw new RuntimeError('Variable "lot" does not exist.', 410, $this->source); })()), "longitude", [], "any", false, false, false, 410), "html", null, true);
echo "),
map: map,
icon: {
url: \"";
// line 413
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/marker.png")), "html", null, true);
echo "\",
scaledSize: new google.maps.Size(100, 100),
},
title: 'Votre programme'
});
infowindow.open({
anchor: marker,
map,
});
";
}
// line 424
echo " }
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 428
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 429
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
<script src='https://unpkg.com/panzoom@9.4.0/dist/panzoom.min.js'></script>
<script
src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA4IPmGtP7zqgHZbVaDITHgau9rSQmvSt0&callback=initMap&v=weekly\"
async></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 438
public function block_footer($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", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "public/lot.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1038 => 438, 1019 => 429, 1009 => 428, 997 => 424, 983 => 413, 975 => 410, 972 => 409, 970 => 408, 958 => 405, 928 => 378, 918 => 371, 912 => 370, 900 => 361, 890 => 355, 880 => 354, 862 => 344, 856 => 341, 841 => 336, 832 => 332, 825 => 330, 819 => 329, 813 => 326, 808 => 324, 801 => 320, 796 => 319, 793 => 318, 783 => 311, 776 => 307, 770 => 303, 764 => 301, 761 => 300, 752 => 298, 747 => 297, 745 => 296, 741 => 295, 735 => 291, 713 => 273, 710 => 272, 707 => 271, 704 => 270, 701 => 269, 698 => 268, 695 => 267, 693 => 266, 684 => 263, 682 => 262, 679 => 261, 664 => 259, 661 => 258, 655 => 256, 649 => 254, 646 => 253, 640 => 251, 638 => 250, 631 => 246, 624 => 242, 618 => 238, 612 => 236, 609 => 235, 600 => 233, 592 => 231, 586 => 230, 584 => 229, 580 => 228, 573 => 223, 551 => 205, 548 => 204, 526 => 186, 500 => 164, 497 => 163, 495 => 162, 488 => 159, 471 => 158, 468 => 157, 465 => 156, 459 => 154, 453 => 152, 450 => 151, 444 => 149, 442 => 148, 435 => 144, 429 => 141, 410 => 125, 406 => 123, 403 => 122, 401 => 121, 391 => 113, 389 => 112, 383 => 111, 379 => 109, 377 => 106, 376 => 105, 375 => 104, 372 => 103, 370 => 102, 361 => 98, 357 => 97, 352 => 96, 348 => 95, 343 => 92, 340 => 88, 338 => 87, 335 => 86, 325 => 85, 303 => 60, 295 => 56, 292 => 55, 290 => 54, 286 => 52, 280 => 51, 277 => 50, 274 => 49, 271 => 48, 268 => 47, 263 => 46, 260 => 45, 257 => 44, 247 => 43, 231 => 36, 224 => 33, 219 => 30, 216 => 29, 214 => 28, 210 => 26, 203 => 25, 196 => 24, 193 => 23, 186 => 22, 183 => 21, 172 => 20, 165 => 19, 158 => 18, 151 => 17, 144 => 16, 137 => 15, 130 => 14, 123 => 13, 117 => 12, 105 => 8, 101 => 7, 98 => 6, 88 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends './public/layout.html.twig' %}
{% block title %}{{ prospect.emprunteurPrenom|lower|capitalize }} {{ prospect.emprunteurNom }} {{ lot.programme ? '| ' ~ lot.programme }} {% endblock %}
{% block detail_lot %}
<div class=\"title-description\">
<h2 class=\"lot-name text-bold\">{{lot.programme|upper}}</h2>
<h3 class=\"lot-size mb-0\">{{ lot.type|upper }} {% if lot.reference is not empty %}- {{ lot.reference }}{% endif %}</h3>
</div>
<ul class=\"criteres-description\">
{% if lot.etage is not empty %} <li>Etage :<span class=\"critere-description\"> {{ lot.etage|upper }} </span></li> {% endif %}
{% if lot.superficie is not empty %} <li>Superficie :<span class=\"critere-description\"> {{ lot.superficie }}m²</span></li> {% endif %}
{% if lot.jardin is not empty %} <li>Jardin :<span class=\"critere-description\"> {{ lot.jardin }}m²</span></li> {% endif %}
{% if lot.terrasse is not empty %} <li>Terrasse :<span class=\"critere-description\"> {{ lot.terrasse }}m²</span></li> {% endif %}
{% if lot.terrasse2 is not empty %} <li>2<sup>ème</sup> terrasse :<span class=\"critere-description\"> {{ lot.terrasse2 }}m²</span></li> {% endif %}
{% if lot.orientation is not empty %} <li>Orientation :<span class=\"critere-description\"> {{ lot.orientation|upper }}</span></li> {% endif %}
{% if lot.prix is not empty %} <li>Prix :<span class=\"critere-description\"> {{lot.prix|number_format(0, '', '.')}} €</span></li> {% endif %}
{% if lot.annexes is not empty %} <li>Annexe(s) incluse(s) :<span class=\"critere-description\"> {{ lot.annexes|upper }}</span></li> {% endif %}
{% if lot.fraisNotaireInclus is not empty %} <li>Frais de notaire {% if lot.fraisNotaireType is null or lot.fraisNotaireType == 'reduits' %} réduits{% endif %} :<span class=\"critere-description\"> {{ lot.fraisNotaireInclus|number_format(0, '', '.')}} €</span></li>{% endif %}
{% if lot.programmeParent.visuLivraison %}
{% if lot.livraison is not empty %} <li>Livraison :<span class=\"critere-description\"> {{ lot.livraison|upper }}</span></li> {% endif %}
{% endif %}
{% if lot.description is not empty %} <li><span class=\"critere-description\"><p class=\"notes-lot\"> {{ (lot.description|striptags)|raw }}</p></span></li> {% endif %}
{% if lot.programmeParent.noteGlobale is not empty %} <li><hr class=\"my-2\"><span class=\"critere-description\"><p class=\"notes-lot\">{{ (lot.programmeParent.noteGlobale|striptags)|raw }}</p></span></li> {% endif %}
</ul>
{% if lot.brochure %}
<div class=\"download-brochure shadow mt-2\">
<a class=\"download-brochure-a\" download target=\"_blank\" href=\"{{ asset('uploads/brochures/' ~ lot.brochure) }}\">
<span class=\"download-brochure-content download-brochure-content-invisible\">
{# <img class=\"download-arrow\" src=\"{{ asset('build/images/download-icon.svg') }}\"/> #}
<span>{{ lot.programmeParent.libelleBrochure is not empty ? lot.programmeParent.libelleBrochure : 'Télécharger la brochure' }}</span>
</span>
<span class=\"download-brochure-content download-brochure-content-absolute\">
<span>{{ lot.programmeParent.libelleBrochure is not empty ? lot.programmeParent.libelleBrochure : 'Télécharger la brochure' }}</span>
</span>
</a>
</div>
{% endif %}
{% endblock %}
{% block dropdownLotsNav %}
{% set nblot = 0 %}
{% set actualProp = \"\" %}
{% for key, proposition in propositions %}
{% if proposition.lot.id == lot.id %}
{% set nblot = key %}
{% set actualProp = proposition %}
{% endif %}
{% endfor %}
\t{% set nbItemMenu = 1 %}
{% if actualProp != \"\" %}
<div class=\"dropdown opacity-0 lot-{{ (nblot%6)+1 }}\">
<span class=\"before\"></span>
<a class=\"btn dropdown-toggle navbar-lot-menu d-flex align-items-center \" href=\"#\" role=\"button\" id=\"dropdownMenuLink\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<span class=\"text-center\">
{{actualProp.lot.reference}}
</span>
<div class=\"down\">
<span class=\"down-icon\">
<i class=\"fas fa-caret-down\"></i>
</span>
</div>
</a>
<span class=\"after\"></span>
</div>
{% endif %}
{% endblock %}
{# {% block recapNav %}
<div class=\"dropdown recap opacity-0 lot-1\">
<span class=\"before\"></span>
<a class=\"btn navbar-lot-menu d-flex align-items-center \" href=\"{{ path('public_prospect_short', {token: prospect.token, recap: true}) }}\">
<span class=\"text-center\">
RECAP'
</span>
</a>
<span class=\"after\"></span>
</div>
{% endblock %} #}
{% block main %}
{% set lastProp = false %}
{% set nextProp = {
'num' : 0,
'prop' : null
} %}
<div class=\"lot-page\">
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuLink\">
{% for key, proposition in propositions %}
<li class=\"lot-{{ (key%6)+1 }}\">
<a class=\"dropdown-item\" href=\"{{ path('public_lot', {token: prospect.token, id: proposition.lot.id}) }}\">
<span class=\"text-center\">{{proposition.lot.type|slice(0,6)}} {{proposition.lot.reference }}</span>
</a>
</li>
{% if proposition.lot.id == lot.id and (key + 1) < propositions|length %}
{% set nextProp = {
'num' : key + 2,
'prop' : propositions[key + 1]
}
%}
{% endif %}
{% endfor %}
{# <li class=\"lot-6\"><a class=\"dropdown-item\" href=\"{{ path('public_prospect_short', {token: prospect.token, recap: true}) }}\"><span class=\"text-center\">RECAP'</span></a></li> #}
</ul>
<div class=\"container-fluid p-0 content-lot slider \" >
<div class=\"progress-container\">
\t\t\t<div class=\"progress\">
\t\t\t\t<div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"0\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>
\t\t\t</div>
</div>
{% set combinedPjs = (programmePjs|merge(lot.pjs))|filter(pj => pj.showPublic) %}
{% set NB_SLIDES = 2 + combinedPjs|length %}
<script type=\"text/javascript\">
var NB_SLIDES = {{ NB_SLIDES }};
</script>
<div class=\"owl-carousel owl-carousel-lot\">
<div class=\"slide slide-localisation\" data-slide-title=\"Localisation\">
<div class=\"container-fluid-content\">
<div class=\"col-3 map-buttons d-flex flex-column align-items-end justify-content-end\">
<a class=\"btn-rounded-white download-pdf map my-2\" id=\"map_switch\" href=\"#\"><i id=\"satellite_logo\" class=\"fa fa-globe\" style=\"display:none;\"></i><i id=\"roadmap_logo\" class=\"fa fa-map\"></i></a>
<a class=\"btn-rounded-white download-pdf resize my-2\" id=\"map_minus\" href=\"#\"><i id=\"btn-moins\" class=\"fa fa-minus\"></i></a>
<a class=\"btn-rounded-white pdf-btn-resize resize my-2\" id=\"map_plus\" href=\"#\"><i id=\"btn-plus\" class=\"fa fa-plus\"></i></a>
</div>
<div class=\"content-map\" id=\"map\"></div>
<div class=\"lot-content d-flex close\">
<div role=\"button\" class=\"drag-btn d-flex align-items-center justify-content-center shadow\">
<img class=\"drag-icon-arrow ml-4\" src=\"{{ asset('build/images/drag-icon-right-arrow.png') }}\"/>
</div>
<div class=\"detail-content d-flex flex-column\">
{{ block('detail_lot') }}
</div>
</div>
</div>
{% if nextProp['prop'] != null %}
<a class=\"owl-next-proposition\" href=\"{{ path('public_lot', {token: nextProp.prop.prospect.token, id: nextProp.prop.lot.id}) }}\"></a>
{% else %}
{% if prospect.id is null %}
<a class=\"owl-next-proposition\" href=\"{{ path('public_prospect_short', {token: app.session.get('propositions')[0].prospect.token, recap: true}) }}\"></a>
{% else %}
<a class=\"owl-next-proposition\" href=\"{{ path('public_prospect_short', {token: prospect.token, recap: true}) }}\"></a>
{% endif %}
{% endif %}
</div>
{% for n,pj in combinedPjs %}
<div class=\"slide slide-pdf slide-plan-lot\" data-slide-title=\"{{pj.descriptionCourte}}\">
<div class=\"container-fluid-content\">
<div class=\"col-3 pdf-buttons d-flex flex-column align-items-end justify-content-end justify-content-end\">
{% if pj.filename is not null and pj.filename|unserialize is not null %}
{% if (pj.filename|unserialize)[0]|replace({'-0.png': '.pdf'})|file_exists %}
<a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"{{ asset((pj.filename|unserialize)[0]|replace({'-0.png': '.pdf'})) }}\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<style type=\"text/css\">
.st0{fill:#2D3642;}
.st1{fill:#2E3743;}
</style>
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
{% else %}
<a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"{{ asset((pj.filename|unserialize)[0]) }}\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
{% endif %}
{% else %}
<a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"{{ asset('uploads/pieces_jointes/' ~ pj.filename) }}\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
{% endif %}
<a class=\"btn-rounded-white my-2 download-pdf resize resize-moins\" id=\"img_minus\" href=\"#\"><i id=\"btn-moins\" class=\"fa fa-minus\"></i></a>
<a class=\"btn-rounded-white my-2 resize resize-plus\" id=\"img_plus\" href=\"#\"><i id=\"btn-plus\" class=\"fa fa-plus\"></i></a>
</div>
<div class=\"viewer-pdf\">
<div id=\"viewer_n{{ n }}\" class=\"pdf-viewer-iframe\">
{% if pj.filename|unserialize is not null %}
{% for img in pj.filename|unserialize %}
<img class=\"img-download\" loading=\"lazy\" src=\"{{ asset(img) }}\" /><br/>
{% else %}
<img class=\"img-download\" loading=\"lazy\" src=\"{{ asset('uploads/pieces_jointes/' ~ pj.filename) }}\" />
{% endfor %}
{% else %}
<img class=\"img-download\" loading=\"lazy\" src=\"{{ asset('uploads/pieces_jointes/' ~ pj.filename) }}\" />
{% endif %}
</div>
</div>
<div class=\"lot-content d-flex\">
<div role=\"button\" class=\"drag-btn d-flex align-items-center justify-content-center shadow\">
<img class=\"drag-icon-arrow ml-4\" src=\"{{ asset('build/images/drag-icon-right-arrow.png') }}\"/>
</div>
<div class=\"detail-content d-flex flex-column\">
{{ block('detail_lot') }}
</div>
</div>
</div>
{% if nextProp['prop'] != null %}
<a class=\"owl-next-proposition\" href=\"{{ path('public_lot', {token: nextProp.prop.prospect.token, id: nextProp.prop.lot.id}) }}\"></a>
{% else %}
{% if prospect.id is null %}
<a class=\"owl-next-proposition\" href=\"{{ path('public_prospect_short', {token: app.session.get('propositions')[0].prospect.token, recap: true}) }}\"></a>
{% else %}
<a class=\"owl-next-proposition\" href=\"{{ path('public_prospect_short', {token: prospect.token, recap: true}) }}\"></a>
{% endif %}
{% endif %}
</div>
{% endfor %}
{% if lot.planMasse != null %}
<div class=\"slide{% if nextProp['prop'] != null%} slide-next-proposition {% endif %} slide-pdf slide-plan-lot\" data-hash=\"planMasse\" data-slide-title=\"Plan masse\">
<div class=\"container-fluid-content\">
<div class=\"col-3 pdf-buttons d-flex flex-column align-items-end justify-content-end\">
{% set pathDownload = ''%}
{% if lot.planMasse|unserialize is not null %}
{% set planMasseArray = lot.planMasse|unserialize %}
{% if planMasseArray|length > 0 and planMasseArray[0] != null %}
{% set pathDownload = planMasseArray[0]|replace({'-0.png': '.pdf'}) %}
{% endif %}
{% else %}
<a class=\"btn-rounded-white my-2 download-pdf-image download-pdf\" download href=\"{{ asset('uploads/pieces_jointes/' ~ lot.planMasse) }}\">
<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 227.14 334.2\" style=\"enable-background:new 0 0 227.14 334.2;\" xml:space=\"preserve\">
<g>
<path class=\"st0\" d=\"M165.54,67.27c0,19.09,0.09,38.18-0.08,57.27c-0.03,3.59,0.68,4.79,4.55,4.72
c15.09-0.26,30.18-0.05,45.28-0.14c3.59-0.02,6.43,0.81,8.2,4.26c1.89,3.69,0.01,6.52-2.18,8.94
c-12.21,13.48-24.62,26.78-36.87,40.23c-14.89,16.36-29.68,32.81-44.53,49.2c-6.99,7.71-13.98,15.43-21.11,23.03
c-3.49,3.72-8.06,3.54-11.62-0.38c-18.76-20.65-37.43-41.39-56.2-62.03c-12.46-13.7-25.05-27.28-37.57-40.93
c-3.12-3.41-6.21-6.85-9.3-10.28c-2.08-2.31-2.84-5.05-1.36-7.78c1.45-2.66,3.58-4.35,7.16-4.3c14.76,0.2,29.52-0.09,44.28,0.19
c4.31,0.08,5.56-0.92,5.53-5.41c-0.2-37.02-0.12-74.04-0.1-111.05c0-1.82-0.04-3.68,0.35-5.44c0.78-3.6,2.88-5.74,6.88-5.74
c30.68,0.04,61.37,0,92.05,0.04c4.46,0.01,6.64,2.66,6.64,7.83C165.55,28.76,165.54,48.01,165.54,67.27z\"/>
<path class=\"st1\" d=\"M113.33,331.39c-34.51,0-69.02,0-103.53,0c-5.98,0-7.18-1.22-7.19-7.29c-0.02-11.13-0.04-22.25,0.01-33.38
c0.02-5.46,1.69-7.15,7.14-7.15c69.02-0.02,138.04-0.03,207.07,0c5.2,0,6.62,1.54,6.64,6.94c0.03,11.46,0.03,22.92,0,34.38
c-0.01,5.97-0.55,6.5-6.6,6.5C182.35,331.4,147.84,331.39,113.33,331.39z\"/>
</g>
</svg>
</a>
{% endif %}
<a class=\"btn-rounded-white my-2 download-pdf resize resize-moins\" id=\"img_minus\" href=\"#\"><i id=\"btn-moins\" class=\"fa fa-minus\"></i></a>
<a class=\"btn-rounded-white my-2 resize resize-plus\" id=\"img_plus\" href=\"#\"><i id=\"btn-plus\" class=\"fa fa-plus\"></i></a>
</div>
<div class=\"viewer-pdf\">
<div id=\"viewer_n{{ lot.pjs|length }}\" class=\"pdf-viewer-iframe\">
{% if lot.planMasse|unserialize is not null %}
{% for img in lot.planMasse|unserialize %}
<img class=\"img-download\" loading=\"lazy\" src=\"{{ asset(img) }}\"/><br/>
{% endfor %}
{% else %}
<img class=\"img-download\" loading=\"lazy\" src=\"{{ asset('uploads/plans_masse/' ~ lot.planMasse) }}\"/>
{% endif %}
</div>
</div>
<div class=\"lot-content d-flex\">
<div role=\"button\" class=\"drag-btn d-flex align-items-center justify-content-center shadow\">
<img class=\"drag-icon-arrow ml-4\" src=\"{{ asset('build/images/drag-icon-right-arrow.png') }}\"/>
</div>
<div class=\"detail-content d-flex flex-column\">
{{ block('detail_lot') }}
</div>
</div>
</div>
</div>
{% endif %}
{% if nextProp['prop'] != null %}
<div class=\"slide slide-next-proposition\" id=\"slideNextProp\" data-slide-title=\"Proposition n°{{ nextProp.num }}\">
<div class=\"container-fluid-content container-fluid p-0\" style=\"background-image:url({{ asset('uploads/lots_images/' ~ nextProp.prop.lot.image) }});\">
<div class=\"d-flex flex-column\" style=\"justify-content:space-evenly;height:calc(100vh - calc(4.8vh + 2px + 2px + 17vh));\">
<div class=\"container-next-prop mx-auto\">
<div class=\"lot-item active-loading\">
<a href=\"{{ path('public_lot', {token: nextProp.prop.prospect.token, id: nextProp.prop.lot.id}) }}\" class=\"noAnim link-card-item active-loading\">
<div class=\"hide-zoom-in d-flex flex-column justify-content-end card-lot-item\">
<div class=\"noAnim bg-img-lot\" style=\"background-image: url({{ asset('uploads/lots_images/' ~ nextProp.prop.lot.image) }});\"></div>
<div class=\"d-flex justify-content-between align-items-end mb-1\">
<div class=\"text-white text-right col-10\">
<h3 class=\"lot-name mb-0\">{{nextProp.prop.lot.reference}} - {{nextProp.prop.lot.ville|upper}}</h3>
<h2 class=\"lot-size text-bold\">{{nextProp.prop.lot.type|upper}} - {{ nextProp.prop.lot.Superficie }}m²</h2>
</div>
<div class=\"num num-{{ (nextProp.num-1) % 6 }} col-2\">{{ nextProp.num }}</div>
</div>
</div>
</a>
<div><h5 class=\"lot-realisation\"><span class=\"lot-prix\">{% if nextProp.prop.lot.prix is not empty %}{{ nextProp.prop.lot.prix|number_format(0, ',', ' ') }}€ </span><span class=\"text-white\">-</span>{% endif %}<span class=\"lot-livraison\"> {% if nextProp.prop.lot.livraison is not empty %}{{ nextProp.prop.lot.Livraison }}{% endif %}</span></h5></div>
</div>
</div>
</div>
</div>
<a class=\"owl-next-proposition\" href=\"{{ path('public_lot', {token: nextProp.prop.prospect.token, id: nextProp.prop.lot.id}) }}\"></a>
</div>
{% endif %}
</div>
<div class=\"tooltip-next\" style=\"display:none !important;\">
Étape suivante
<span class=\"triangle\"></span>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type=\"text/javascript\">
// patch owl loading
if(window.innerHeight > window.innerWidth){
window.location.href = '{{ path('public_prospect_short', {token: prospect.token}) }}';
document.querySelector('#main_loader').style.display = 'flex';
}
</script>
<script type=\"text/javascript\">
function initMap() {
map = new google.maps.Map(document.getElementById(\"map\"), {
center: new google.maps.LatLng({{ lot.latitude is not null ? lot.latitude : 45.899247 }}, {{ lot.longitude is not null ? lot.longitude : 6.129384 }}),
zoom: {{lot.programmeParent.zoomMap is not null ? lot.programmeParent.zoomMap : 14}},
fullscreenControl: true,
streetViewControl: false,
rotateControl: false,
scrollwheel: false,
mapTypeControl: false,
clickableIcons: false,
mapTypeId: '{{lot.programmeParent.typePlan is not null ? lot.programmeParent.typePlan : satellite }}'
});
document.getElementById('map_switch').onclick = function() {
if(map.mapTypeId == 'roadmap') {
document.getElementById('roadmap_logo').style.display = 'block';
document.getElementById('satellite_logo').style.display = 'none';
map.setMapTypeId(\"satellite\");
} else {
document.getElementById('satellite_logo').style.display = 'block';
document.getElementById('roadmap_logo').style.display = 'none';
map.setMapTypeId(\"roadmap\");
}
};
document.getElementById('map_minus').onclick = function() {
map.setZoom(map.getZoom() - 1);
};
document.getElementById('map_plus').onclick = function() {
map.setZoom(map.getZoom() + 1);
};
const infowindow = new google.maps.InfoWindow({
content: '<div id=\"infobox_content\">{{ lot.programme }}</br>{{ lot.adresse }}</br>{{ lot.codePostal }} {{ lot.ville }}</div>',
});
{% if lot.latitude is not null and lot.longitude is not null %}
var marker = new google.maps.Marker({
position: new google.maps.LatLng({{ lot.latitude }}, {{ lot.longitude }}),
map: map,
icon: {
url: \"{{ absolute_url(asset('build/images/marker.png')) }}\",
scaledSize: new google.maps.Size(100, 100),
},
title: 'Votre programme'
});
infowindow.open({
anchor: marker,
map,
});
{% endif %}
}
</script>
{% endblock %}
{% block body %}
{{ parent() }}
<script src='https://unpkg.com/panzoom@9.4.0/dist/panzoom.min.js'></script>
<script
src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA4IPmGtP7zqgHZbVaDITHgau9rSQmvSt0&callback=initMap&v=weekly\"
async></script>
{% endblock %}
{% block footer %}
{% endblock %}
", "public/lot.html.twig", "/home/clients/d5fc483de73e2cf6f126c55abcd1b2e6/sites/lk1.test.genesii.fr/templates/public/lot.html.twig");
}
}