<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/agents/show.html.twig */
class __TwigTemplate_afae333318bc53c5d68fbb85d996505d1e43e98358aa95022fb7c0bb0da53307 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'meta_description' => [$this, 'block_meta_description'],
'content' => [$this, 'block_content'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/agents/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/agents/show.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "front/agents/show.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 " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_meta_description($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", "meta_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
echo twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 4, $this->source); })()), "bioCleaned", [], "any", false, false, false, 4);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo "
";
// line 12
echo "
<section id=\"agent\" style=\"padding-top:60px ;background-image: url(";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/media/agents/agent_bg.jpg"), "runtime", ["thumbnail" => ["size" => [0 => 2000], "mode" => "outbound"]]), "html", null, true);
echo "); background-position: center center; background-size: cover;background-repeat: no-repeat;\" >
<div class=\"container bg-white\">
<div class=\"row pt-3\">
<div class=\"col-md-4 col-lg-6 pt-1 position-relative mb-3 mb-md-5 \">
<div class=\"portrait border\">
";
// line 18
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 18, $this->source); })()), "video", [], "any", false, false, false, 18), ""))) {
// line 19
echo " <video
id=\"video_agent\"
poster=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 21, $this->source); })()), "imageFile"), "agent_thumb"), "html", null, true);
echo "\"
class=\"video-js vjs-16-9 shadow\"
style=\"width:100%;\">
<source src=\"";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 24, $this->source); })()), "video", [], "any", false, false, false, 24), "html", null, true);
echo "\" type=\"video/mp4\"></source>
</video>
<div id=\"video_buttons\">
<button id=\"btn_sound\" class=\"vjs-icon-volume-mute\"></button>
<button id=\"btn_full_screen\" class=\"vjs-icon-fullscreen-enter\" data-fancybox href=\"";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 28, $this->source); })()), "video", [], "any", false, false, false, 28), "html", null, true);
echo "\"></button>
</div>
";
} else {
// line 31
echo " <img class=\"img-fluid\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 31, $this->source); })()), "imageFile"), "agent_thumb"), "html", null, true);
echo "\" />
";
}
// line 33
echo " </div>
</div>
<div class=\"col-md-8 col-lg-6 pt-2\">
<h1 class=\"h3 font-weight-bold\">";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 36, $this->source); })()), "name", [], "any", false, false, false, 36), "html", null, true);
echo "</h1>
<p><i class=\"icon-location\"></i>";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 37, $this->source); })()), "secteur", [], "any", false, false, false, 37), "html", null, true);
echo "</p>
";
// line 38
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 38, $this->source); })()), "bio", [], "any", false, false, false, 38), ""))) {
// line 39
echo " <div class=\"bio pb-3_\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 39, $this->source); })()), "bio", [], "any", false, false, false, 39);
echo "</div>
";
} else {
// line 41
echo " <div class=\"bio pb-3_\">
<p class=\"pb-3_\">Nous vous proposons d'associer l'expérience et la technique pour réussir votre projet immobilier. Des outils performants (photos professionnelles, visite virtuelle, plans, aménagement virtuel, etc...) et une connaissance du marché immobilier local vous garantissent une transaction dans les meilleures conditions.</p>
<p>Ne laissez pas le hasard décider de votre avenir !</p>
</div>
";
}
// line 46
echo " <div class=\"d-flex justify-content-between mb-3\">
<div>
<a id=\"realtor_call\" class=\"btn btn-sm btn-primary mr-3\" href=\"tel:";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 48, $this->source); })()), "telephone", [], "any", false, false, false, 48), "html", null, true);
echo "\"> <i class=\"icon-phone-left\"></i> <span class=\"d-none d-xl-inline\"></span>";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->phoneFilter(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 48, $this->source); })()), "telephone", [], "any", false, false, false, 48)), "html", null, true);
echo "</a>
";
// line 49
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 49, $this->source); })()), "whatsapp", [], "any", false, false, false, 49), ""))) {
// line 50
echo " <a id=\"realtor_whatsapp\" class=\"btn btn-sm btn-success\" href=\"https://api.whatsapp.com/send?phone=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 50, $this->source); })()), "whatsapp", [], "any", false, false, false, 50), "html", null, true);
echo "\"> <i class=\"icon-webcam\"></i> WhatsApp</a>
";
}
// line 52
echo " </div>
<div class=\"text-lg-right\">
<button class=\"btn_social btn_contact_agent btn btn-outline-primary\" title=\"contact\" ><i class=\"icon-mail\"></i></button>
";
// line 57
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 57, $this->source); })()), "facebook", [], "any", false, false, false, 57), ""))) {
// line 58
echo " <a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 58, $this->source); })()), "facebook", [], "any", false, false, false, 58), "html", null, true);
echo "\"><i class=\"icon-facebook\"></i></a>
";
} else {
// line 60
echo " <a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["socials"]) || array_key_exists("socials", $context) ? $context["socials"] : (function () { throw new RuntimeError('Variable "socials" does not exist.', 60, $this->source); })()), "facebook", [], "any", false, false, false, 60), "html", null, true);
echo "\"><i class=\"icon-facebook\"></i></a>
";
}
// line 62
echo "
";
// line 69
echo "
";
// line 70
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 70, $this->source); })()), "linkedin", [], "any", false, false, false, 70), ""))) {
// line 71
echo " <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 71, $this->source); })()), "linkedin", [], "any", false, false, false, 71), "html", null, true);
echo "\"><i class=\"icon-linkedin\"></i></a>
";
} else {
// line 73
echo " <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["socials"]) || array_key_exists("socials", $context) ? $context["socials"] : (function () { throw new RuntimeError('Variable "socials" does not exist.', 73, $this->source); })()), "linkedin", [], "any", false, false, false, 73), "html", null, true);
echo "\"><i class=\"icon-linkedin\"></i></a>
";
}
// line 74
echo "
";
// line 77
echo "
";
// line 79
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 79, $this->source); })()), "instagram", [], "any", false, false, false, 79), ""))) {
// line 80
echo " <a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 80, $this->source); })()), "instagram", [], "any", false, false, false, 80), "html", null, true);
echo "\"><i class=\"icon-instagram\"></i></a>
";
} else {
// line 82
echo " <a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["socials"]) || array_key_exists("socials", $context) ? $context["socials"] : (function () { throw new RuntimeError('Variable "socials" does not exist.', 82, $this->source); })()), "instagram", [], "any", false, false, false, 82), "html", null, true);
echo "\"><i class=\"icon-instagram\"></i></a>
";
}
// line 84
echo " </div>
</div>
</div>
</div>
</div>
</section>
<section id=\"agent_estimer\" class=\"container pt-5\">
<div class=\"row\">
<div class=\"col-md-8\">
<iframe id=\"estimation_iframe\" src=\"https://modelo-insight.lovable.app\" scrolling=\"yes\" frameborder=\"no\" style=\"overflow: hidden; height: 470px;\"></iframe>
</div>
<div class=\"col-md-4 text-secondary small d-flex flex-column\">
<div class=\"card mt-4 mb-4\">
<div class=\"card-body\">
<h6>Pourquoi estimer ?</h6>
<ul class=\"list-unstyled mb-0\">
<li>Une fourchette de prix en 2 minutes</li>
<li>Des données de marché localisées</li>
<li>Un conseiller vous recontacte pour affiner</li>
<li>Vos données restent confidentielles</li>
</ul>
</div>
</div>
<div class=\"bg-dark rounded text-white text-center p-4\">
<h6 class=\"text-white mb-3\">Vous préférez un échange directe ?</h6>
<a class=\"btn btn-sm btn-light\" href=\"tel:";
// line 109
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 109, $this->source); })()), "telephone", [], "any", false, false, false, 109), "html", null, true);
echo "\"> <i class=\"icon-phone-left\"></i> <span class=\"d-none d-xl-inline\"></span>";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->phoneFilter(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 109, $this->source); })()), "telephone", [], "any", false, false, false, 109)), "html", null, true);
echo "</a>
</div>
</div>
</div>
</section>
<section id=\"contact_agent\" class=\"container pt-5\">
<div class=\"card bg-lighter border-primary\">
<div class=\"card-body \">
<div class=\"clearfix mx-1\">
<h4 id=\"show_contact\" class=\"lora-600 float-lg-left mb-3\">Contactez-moi !</h4>
<div class=\"float-lg-right \">
<button type=\"button\" class=\"btn btn-primary mb-3\" data-toggle=\"collapse\" data-target=\"#contact_form_rdv\" aria-expanded=\"false\" aria-controls=\"contact_form_rdv\"><i class=\"icon-calendar\"></i> Proposer un RDV ?</button>
</div>
</div>
";
// line 123
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MessageController::contactForm", ["context" => "agent", "display" => "agent_page", "agent_id" => twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123)]));
echo "
</div>
</div>
</section>
";
// line 128
if ((1 === twig_compare(twig_length_filter($this->env, (isset($context["reviews"]) || array_key_exists("reviews", $context) ? $context["reviews"] : (function () { throw new RuntimeError('Variable "reviews" does not exist.', 128, $this->source); })())), 0))) {
// line 129
echo " <section class=\"container pt-5\">
<div class=\"row\">
<div class=\"col-md-4\">
<div id=\"os_card\" class=\"card m-1\">
<div class=\"card-body text-center d-flex align-items-center justify-content-center\" style=\"min-height:186px\">
<div>
<div class=\"rating_ratio\">";
// line 135
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 135, $this->source); })()), "rating", [], "any", false, false, false, 135), 1, ",", " "), "html", null, true);
echo "<span>/5</span></div>
<img class=\"d-inline-block my-3\" src=\"";
// line 136
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/OS-Blanc-1024x413.png"), "html", null, true);
echo "\" height=\"43\" width=\"107\" />
<p class=\"mb-0\"><a href=\"https://www.opinionsystem.fr/fr-fr/certificate/c/";
// line 137
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 137, $this->source); })()), "cosId", [], "any", false, false, false, 137), "html", null, true);
echo "\" target=\"_blank\">basé sur ";
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["reviews"]) || array_key_exists("reviews", $context) ? $context["reviews"] : (function () { throw new RuntimeError('Variable "reviews" does not exist.', 137, $this->source); })())), "html", null, true);
echo " avis clients</a></p>
</div>
</div>
</div>
</div>
<div class=\"col-md-8\">
<div id=\"testimonies\" class=\"owl-carousel small comments\">
";
// line 144
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["reviews"]) || array_key_exists("reviews", $context) ? $context["reviews"] : (function () { throw new RuntimeError('Variable "reviews" does not exist.', 144, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
// line 145
echo " <div class=\"card m-1\">
<div class=\"card-header d-flex bg-white px-2\">
<img class=\"mr-2\" width=\"36px\" height=\"36px\" src=\"";
// line 147
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/media/accueil/OIP.png"), "html", null, true);
echo "\">
<div><b>";
// line 148
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "author", [], "any", false, false, false, 148), "html", null, true);
echo "</b><div class=\"text-secondary\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "shortSubject", [], "any", false, false, false, 148), "html", null, true);
echo "</div></div>
</div>
<div class=\"card-body text-secondary p-2\" >
<cite class=\"card-text\">";
// line 151
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "shortComment", [], "any", false, false, false, 151), "html", null, true);
echo "</cite>
<div class=\"d-flex justify-content-between align-items-center pt-2\">
";
// line 153
echo $this->extensions['App\Twig\AppExtension']->stars(twig_get_attribute($this->env, $this->source, $context["review"], "rating", [], "any", false, false, false, 153));
echo "
<div class=\"date\">";
// line 154
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "date", [], "any", false, false, false, 154), "medium", "", null, "gregorian", "fr"), "html", null, true);
echo "</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 159
echo " </div>
</div>
</div>
</section>
";
}
// line 164
echo "
<section class=\"container pt-5\">
<h4 class=\"lora-600\">Liste de bien(s)</h4>
<ul class=\"nav nav-pills mb-3\" id=\"estates_tab\" role=\"tablist\">
<li class=\"nav-item\" role=\"presentation\">
<a class=\"nav-link active\" id=\"on_sale
_estates-tab\" data-toggle=\"tab\" href=\"#on_sale_estates\" role=\"tab\" aria-controls=\"on_sale_estates\" aria-selected=\"false\">Ventes (";
// line 170
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["totaux"]) || array_key_exists("totaux", $context) ? $context["totaux"] : (function () { throw new RuntimeError('Variable "totaux" does not exist.', 170, $this->source); })()), "Ventes", [], "any", false, false, false, 170), "html", null, true);
echo ")</a>
</li>
<li class=\"nav-item\" role=\"presentation\">
<a class=\"nav-link";
// line 173
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["totaux"]) || array_key_exists("totaux", $context) ? $context["totaux"] : (function () { throw new RuntimeError('Variable "totaux" does not exist.', 173, $this->source); })()), "Vendus", [], "any", false, false, false, 173), 0))) {
echo " disabled";
}
echo "\" id=\"sold_estates-tab\" data-toggle=\"tab\" href=\"#sold_estates\" role=\"tab\" aria-controls=\"sold_estates\" aria-selected=\"false\">Vendus (";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["totaux"]) || array_key_exists("totaux", $context) ? $context["totaux"] : (function () { throw new RuntimeError('Variable "totaux" does not exist.', 173, $this->source); })()), "Vendus", [], "any", false, false, false, 173), "html", null, true);
echo ")</a>
</li>
</ul>
<div class=\"tab-content\" id=\"estates_tabContent\">
<div class=\"tab-pane fade show active\" id=\"on_sale_estates\" role=\"tabpanel\" aria-labelledby=\"on_sale_estates-tab\">
<div class=\"row pt-4 align-items-stretch estates_container\">
";
// line 180
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["estates"]) || array_key_exists("estates", $context) ? $context["estates"] : (function () { throw new RuntimeError('Variable "estates" does not exist.', 180, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["estate"]) {
// line 181
echo " ";
if (!twig_in_filter(twig_get_attribute($this->env, $this->source, $context["estate"], "statut", [], "any", false, false, false, 181), [0 => "Sous compromis", 1 => "Vendu"])) {
// line 182
echo " ";
$this->loadTemplate("front/_common/_estate.html.twig", "front/agents/show.html.twig", 182)->display(twig_array_merge($context, ["col" => "col-md-6 col-lg-4", "with_agent" => false, "with_modal" => true]));
// line 183
echo " ";
}
// line 184
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['estate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 185
echo " </div>
</div>
<div class=\"tab-pane fade\" id=\"sold_estates\" role=\"tabpanel\" aria-labelledby=\"sold_estates-tab\">
<div class=\"row pt-4 align-items-stretch estates_container\">
";
// line 189
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["estates"]) || array_key_exists("estates", $context) ? $context["estates"] : (function () { throw new RuntimeError('Variable "estates" does not exist.', 189, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["estate"]) {
// line 190
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["estate"], "statut", [], "any", false, false, false, 190), [0 => "Sous compromis", 1 => "Vendu"])) {
// line 191
echo " ";
$this->loadTemplate("front/_common/_estate.html.twig", "front/agents/show.html.twig", 191)->display(twig_array_merge($context, ["col" => "col-md-6 col-lg-4", "with_agent" => false, "with_modal" => false, "not_hover" => true, "with_carrousel" => false]));
// line 192
echo " ";
}
// line 193
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['estate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
echo " </div>
</div>
</div>
</section>
<div id=\"contact_modal_agent\" class=\"modal contact_modal\" tabindex=\"-1\" role=\"dialog\">
<div class=\"modal-dialog modal-dialog-centered modal-xl\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body p-0\">
<div class=\"container-fluid\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
<div class=\"row d-flex\">
<div class=\"col-lg-5 col-xl-6 bg-dark px-0\">
<div class=\"text-white h-100\">
<div class=\"d-flex flex-column h-100\">
<img class=\"img-fluid \" src=\"";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 213, $this->source); })()), "imageFile"), "agent_thumb"), "html", null, true);
echo "\" />
<div class=\"py-4 px-4\">
<h4 class=\"lora m-0 text-white\">";
// line 216
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 216, $this->source); })()), "name", [], "any", false, false, false, 216), "html", null, true);
echo "</h4>
<ul id=\"contact_modal_agent_\" class=\"list-unstyled\">
<li><i class=\"icon-location\"></i>";
// line 218
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 218, $this->source); })()), "secteur", [], "any", false, false, false, 218), "html", null, true);
echo "</li>
<li><i class=\"icon-phone-left\"></i>";
// line 219
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->phoneFilter(twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 219, $this->source); })()), "telephone", [], "any", false, false, false, 219)), "html", null, true);
echo "</li>
</ul>
</div>
";
// line 225
echo " </div>
</div>
</div>
<div id=\"contact_form_container\" class=\"col-lg-7 col-xl-6 px-4 pt-5 pb-3\">
<div class=\"d-flex justify-content-end\">
<button type=\"button\" class=\"btn btn-primary mb-3\" data-toggle=\"collapse\" data-target=\"#contact_form_rdv\" aria-expanded=\"false\" aria-controls=\"contact_form_rdv\"><i class=\"icon-calendar\"></i> Proposer un RDV ?</button>
</div>
";
// line 234
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MessageController::contactForm", ["context" => "agent", "display" => "contact_modal_agent", "agent_id" => twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 234, $this->source); })()), "id", [], "any", false, false, false, 234)]));
echo "
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"contactForm_source\" style=\"display: none;\">";
// line 243
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MessageController::contactForm", ["context" => "agent", "display" => "agent_modal"]));
echo "</div>
";
// line 244
echo twig_source($this->env, "front/acheter/modal-template.html");
echo "
";
// line 248
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 251
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 252
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href=\"";
// line 253
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/bootstrap-4-master/build/css/tempusdominus-bootstrap-4.min.css"), "html", null, true);
echo "\" rel=\"stylesheet\"/>
<link href=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css\" />
<link href=\"";
// line 256
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/dpe_ges.css"), "html", null, true);
echo "\" rel=\"stylesheet\"/>
<link href=\"";
// line 257
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/OwlCarousel2-2.3.4/dist/assets/owl.carousel.min.css"), "html", null, true);
echo "\" rel=\"stylesheet\" />
<link href=\"";
// line 258
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/OwlCarousel2-2.3.4/dist/assets/owl.theme.default.min.css"), "html", null, true);
echo "\" rel=\"stylesheet\" />
<link href=\"//vjs.zencdn.net/7.8.2/video-js.min.css\" rel=\"stylesheet\">
<style>
#agent .portrait #video_buttons{
position: absolute;
right: 5px;
bottom: 0px;
}
#agent .portrait #video_buttons button{
position: relative;
background: none;
border: none;
color: #fff;
font-size: 20px;
right: initial;
bottom: initial;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 279
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 280
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 281
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 282
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
<script src=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js\"></script>
<script src=\"";
// line 285
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/swag.min.js"), "html", null, true);
echo "\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js\"></script>
<script src=\"";
// line 287
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/OwlCarousel2-2.3.4/dist/owl.carousel.min.js"), "html", null, true);
echo "\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js\" integrity=\"sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/locale/fr.min.js\" integrity=\"sha512-RAt2+PIRwJiyjWpzvvhKAG2LEdPpQhTgWfbEkFDCo8wC4rFYh5GQzJBVIFDswwaEDEYX16GEE/4fpeDNr7OIZw==\" crossorigin=\"anonymous\"></script>
<script src=\"";
// line 291
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/bootstrap-4-master/build/js/tempusdominus-bootstrap-4.js"), "html", null, true);
echo "\"></script>
<script src=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.js\"></script>
<script src=\"https://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js\"></script>
<script src=\"";
// line 295
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/base_map.js?v1.0"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 296
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/estates_map.js?v1.1"), "html", null, true);
echo "\"></script>
";
// line 298
echo " <script src=\"//vjs.zencdn.net/7.8.2/video.min.js\"></script>
<script>
var current_page = '";
// line 303
echo twig_escape_filter($this->env, (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 303, $this->source); })()), "html", null, true);
echo "';
var current_route = Routing.generate('show_agent', { slug: '";
// line 305
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 305, $this->source); })()), "slug", [], "any", false, false, false, 305), "html", null, true);
echo "' } );
var datas = ";
// line 306
echo json_encode((isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 306, $this->source); })()));
echo ";
// var source_infobox;
// var template_infobox;
var source_modal;
var template_modal;
jQuery(document).ready(function(){
if(\$('#video_agent').length > 0){
var video_agent_player = videojs('video_agent', {
\"autoplay\": true,
\"controls\":false,
\"muted\": true,
\"loop\":true,
\"fluid\": true
},
function onPlayerReady() {
setTimeout(function(){
video_agent_player.play();
\$('#btn_sound').click(function(){
// video_agent_player.MuteToggle();
toggleVideoMute(video_agent_player);
});
}, 500);
});
}
//ouverture du formulaire de contact
\$('.btn_contact_agent').click(function(){
\$('#contact_modal_agent').modal('show');
});
initHandlebars();
// source_infobox = \$(\"#infobox-template\").html();
// template_infobox = Handlebars.compile(source_infobox);
\$('#btn_bio').popover({
customClass: 'popover_bio',
html: true,
sanitize: false,
template: '<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"popover-body\"></div></div>'
});
source_modal = \$(\"#modal-template\").html();
template_modal = Handlebars.compile(source_modal);
//Ouverture par url
var parts = window.location.pathname.split('/');
if( parts.length == 4 ) {
var refannonce = parts[3];
var estate = datas.estates.find(estate => String(estate.refannonce) === String(refannonce));
if( estate === undefined){ //ajax
getEstate(refannonce);
}
else{
displayEstate(estate);
}
}
// setMap('agent_estates_map', 8, 8, 16 );
// map.touchZoom.disable();
// map.doubleClickZoom.disable();
// map.boxZoom.disable();
// map.keyboard.disable();
// map.scrollWheelZoom.disable();
// map.zoomControl.remove();
// map.dragging.disable();
// addMarkers(datas.estates, true, true);
var itemCount = \$(\"#testimonies\").children().length;
\$(\"#testimonies\").owlCarousel({
loop:itemCount > 2,
autoplay:true,
autoplayTimeout:owl_speed,
autoplayHoverPause:true,
smartSpeed:500,
margin:0,
nav:false,
// items:1,
responsive:{
0:{items:1},
// 767:{items:2},
992:{items:2}
}
});
initContactForm(\$('#contact_agent #contact_form'));
\$('.estates_container .estate_carousel').each(function(){
initEstateCarousel(\$(this));
});
\$('#estates_tab a').on('click', function (event) {
event.preventDefault();
\$(this).tab('show');
});
\$('.open_modal').on('click', function(e) {
e.preventDefault();
e.returnValue = false;
openEstateModal(\$(this).data('id'));
return false;
});
});
function centerMe(e) {
return;
var pixelPosition = map.latLngToLayerPoint(e.target.getLatLng());
var new_y = \$('#agent_estates_map').height() /2;
pixelPosition.y = pixelPosition.y - new_y + 50 ;
var new_latlng = map.layerPointToLatLng(pixelPosition);
map.setView(new_latlng);
}
function toggleVideoMute(video_player){
var is_muted = video_player.muted();
if (is_muted == true) {
video_player.muted(false);
\$('#btn_sound').removeClass('vjs-icon-volume-mute').addClass('vjs-icon-volume-high');
}
else {
video_player.muted(true);
\$('#btn_sound').removeClass('vjs-icon-volume-high').addClass('vjs-icon-volume-mute');
}
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/agents/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 722 => 306, 718 => 305, 713 => 303, 706 => 298, 702 => 296, 698 => 295, 691 => 291, 684 => 287, 679 => 285, 673 => 282, 669 => 281, 664 => 280, 654 => 279, 624 => 258, 620 => 257, 616 => 256, 610 => 253, 605 => 252, 595 => 251, 584 => 248, 579 => 244, 575 => 243, 563 => 234, 552 => 225, 546 => 219, 542 => 218, 537 => 216, 531 => 213, 510 => 194, 496 => 193, 493 => 192, 490 => 191, 487 => 190, 470 => 189, 464 => 185, 450 => 184, 447 => 183, 444 => 182, 441 => 181, 424 => 180, 410 => 173, 404 => 170, 396 => 164, 389 => 159, 378 => 154, 374 => 153, 369 => 151, 361 => 148, 357 => 147, 353 => 145, 349 => 144, 337 => 137, 333 => 136, 329 => 135, 321 => 129, 319 => 128, 311 => 123, 292 => 109, 265 => 84, 259 => 82, 253 => 80, 251 => 79, 247 => 77, 243 => 74, 237 => 73, 231 => 71, 229 => 70, 226 => 69, 223 => 62, 217 => 60, 211 => 58, 209 => 57, 202 => 52, 196 => 50, 194 => 49, 188 => 48, 184 => 46, 177 => 41, 171 => 39, 169 => 38, 165 => 37, 161 => 36, 156 => 33, 150 => 31, 144 => 28, 137 => 24, 131 => 21, 127 => 19, 125 => 18, 117 => 13, 114 => 12, 111 => 6, 101 => 5, 82 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %} - {{ agent.name }}{% endblock %}
{% block meta_description %}{{ agent.bioCleaned|raw }}{% endblock %}
{% block content %}
{#
<section class=\"container-fluid p-0\">
<div id=\"agent_estates_map\" class=\"map_container\"></div>
</section>
#}
<section id=\"agent\" style=\"padding-top:60px ;background-image: url({{ asset('assets/media/agents/agent_bg.jpg') | imagine_filter('runtime', {\"thumbnail\": {\"size\": [2000 ], 'mode': 'outbound' }})}}); background-position: center center; background-size: cover;background-repeat: no-repeat;\" >
<div class=\"container bg-white\">
<div class=\"row pt-3\">
<div class=\"col-md-4 col-lg-6 pt-1 position-relative mb-3 mb-md-5 \">
<div class=\"portrait border\">
{% if agent.video != \"\" %}
<video
id=\"video_agent\"
poster=\"{{ vich_uploader_asset(agent, 'imageFile')|imagine_filter('agent_thumb') }}\"
class=\"video-js vjs-16-9 shadow\"
style=\"width:100%;\">
<source src=\"{{ agent.video }}\" type=\"video/mp4\"></source>
</video>
<div id=\"video_buttons\">
<button id=\"btn_sound\" class=\"vjs-icon-volume-mute\"></button>
<button id=\"btn_full_screen\" class=\"vjs-icon-fullscreen-enter\" data-fancybox href=\"{{ agent.video }}\"></button>
</div>
{% else %}
<img class=\"img-fluid\" src=\"{{ vich_uploader_asset(agent, 'imageFile')|imagine_filter('agent_thumb') }}\" />
{% endif %}
</div>
</div>
<div class=\"col-md-8 col-lg-6 pt-2\">
<h1 class=\"h3 font-weight-bold\">{{ agent.name }}</h1>
<p><i class=\"icon-location\"></i>{{ agent.secteur }}</p>
{% if agent.bio != \"\" %}
<div class=\"bio pb-3_\">{{ agent.bio|raw }}</div>
{% else %}
<div class=\"bio pb-3_\">
<p class=\"pb-3_\">Nous vous proposons d'associer l'expérience et la technique pour réussir votre projet immobilier. Des outils performants (photos professionnelles, visite virtuelle, plans, aménagement virtuel, etc...) et une connaissance du marché immobilier local vous garantissent une transaction dans les meilleures conditions.</p>
<p>Ne laissez pas le hasard décider de votre avenir !</p>
</div>
{% endif %}
<div class=\"d-flex justify-content-between mb-3\">
<div>
<a id=\"realtor_call\" class=\"btn btn-sm btn-primary mr-3\" href=\"tel:{{ agent.telephone }}\"> <i class=\"icon-phone-left\"></i> <span class=\"d-none d-xl-inline\"></span>{{ agent.telephone|phone }}</a>
{% if agent.whatsapp != \"\" %}
<a id=\"realtor_whatsapp\" class=\"btn btn-sm btn-success\" href=\"https://api.whatsapp.com/send?phone={{ agent.whatsapp }}\"> <i class=\"icon-webcam\"></i> WhatsApp</a>
{% endif %}
</div>
<div class=\"text-lg-right\">
<button class=\"btn_social btn_contact_agent btn btn-outline-primary\" title=\"contact\" ><i class=\"icon-mail\"></i></button>
{% if agent.facebook != \"\" %}
<a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"{{ agent.facebook }}\"><i class=\"icon-facebook\"></i></a>
{% else %}
<a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"{{ socials.facebook }}\"><i class=\"icon-facebook\"></i></a>
{% endif %}
{# {% if agent.twitter != \"\" %}
<a class=\"btn_social btn_twitter\" title=\"twitter\" target=\"_blank\" href=\"{{ agent.twitter }}\"><i class=\"icon-twitter\"></i></a>
{% else %}
<a class=\"btn_social btn_twitter\" title=\"twitter\" target=\"_blank\" href=\"{{ socials.twitter }}\"><i class=\"icon-twitter\"></i></a>
{% endif %}
#}
{% if agent.linkedin != \"\" %}
<a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"{{ agent.linkedin }}\"><i class=\"icon-linkedin\"></i></a>
{% else %}
<a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"{{ socials.linkedin }}\"><i class=\"icon-linkedin\"></i></a>
{% endif %}
{# <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"{{ socials.linkedin }}\"><i class=\"icon-linkedin\"></i></a> #}
{% if agent.instagram != \"\" %}
<a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"{{ agent.instagram }}\"><i class=\"icon-instagram\"></i></a>
{% else %}
<a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"{{ socials.instagram }}\"><i class=\"icon-instagram\"></i></a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</section>
<section id=\"agent_estimer\" class=\"container pt-5\">
<div class=\"row\">
<div class=\"col-md-8\">
<iframe id=\"estimation_iframe\" src=\"https://modelo-insight.lovable.app\" scrolling=\"yes\" frameborder=\"no\" style=\"overflow: hidden; height: 470px;\"></iframe>
</div>
<div class=\"col-md-4 text-secondary small d-flex flex-column\">
<div class=\"card mt-4 mb-4\">
<div class=\"card-body\">
<h6>Pourquoi estimer ?</h6>
<ul class=\"list-unstyled mb-0\">
<li>Une fourchette de prix en 2 minutes</li>
<li>Des données de marché localisées</li>
<li>Un conseiller vous recontacte pour affiner</li>
<li>Vos données restent confidentielles</li>
</ul>
</div>
</div>
<div class=\"bg-dark rounded text-white text-center p-4\">
<h6 class=\"text-white mb-3\">Vous préférez un échange directe ?</h6>
<a class=\"btn btn-sm btn-light\" href=\"tel:{{ agent.telephone }}\"> <i class=\"icon-phone-left\"></i> <span class=\"d-none d-xl-inline\"></span>{{ agent.telephone|phone }}</a>
</div>
</div>
</div>
</section>
<section id=\"contact_agent\" class=\"container pt-5\">
<div class=\"card bg-lighter border-primary\">
<div class=\"card-body \">
<div class=\"clearfix mx-1\">
<h4 id=\"show_contact\" class=\"lora-600 float-lg-left mb-3\">Contactez-moi !</h4>
<div class=\"float-lg-right \">
<button type=\"button\" class=\"btn btn-primary mb-3\" data-toggle=\"collapse\" data-target=\"#contact_form_rdv\" aria-expanded=\"false\" aria-controls=\"contact_form_rdv\"><i class=\"icon-calendar\"></i> Proposer un RDV ?</button>
</div>
</div>
{{ render(controller('App\\\\Controller\\\\Front\\\\MessageController::contactForm', { 'context': 'agent', 'display' : 'agent_page', 'agent_id': agent.id })) }}
</div>
</div>
</section>
{% if reviews|length > 0 %}
<section class=\"container pt-5\">
<div class=\"row\">
<div class=\"col-md-4\">
<div id=\"os_card\" class=\"card m-1\">
<div class=\"card-body text-center d-flex align-items-center justify-content-center\" style=\"min-height:186px\">
<div>
<div class=\"rating_ratio\">{{ agent.rating |number_format(1, ',', ' ') }}<span>/5</span></div>
<img class=\"d-inline-block my-3\" src=\"{{ asset('assets/img/OS-Blanc-1024x413.png') }}\" height=\"43\" width=\"107\" />
<p class=\"mb-0\"><a href=\"https://www.opinionsystem.fr/fr-fr/certificate/c/{{ agent.cosId }}\" target=\"_blank\">basé sur {{ reviews|length }} avis clients</a></p>
</div>
</div>
</div>
</div>
<div class=\"col-md-8\">
<div id=\"testimonies\" class=\"owl-carousel small comments\">
{% for review in reviews %}
<div class=\"card m-1\">
<div class=\"card-header d-flex bg-white px-2\">
<img class=\"mr-2\" width=\"36px\" height=\"36px\" src=\"{{ asset('assets/media/accueil/OIP.png') }}\">
<div><b>{{ review.author }}</b><div class=\"text-secondary\">{{ review.shortSubject }}</div></div>
</div>
<div class=\"card-body text-secondary p-2\" >
<cite class=\"card-text\">{{ review.shortComment }}</cite>
<div class=\"d-flex justify-content-between align-items-center pt-2\">
{{ review.rating|stars }}
<div class=\"date\">{{ review.date|format_date(locale='fr') }}</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}
<section class=\"container pt-5\">
<h4 class=\"lora-600\">Liste de bien(s)</h4>
<ul class=\"nav nav-pills mb-3\" id=\"estates_tab\" role=\"tablist\">
<li class=\"nav-item\" role=\"presentation\">
<a class=\"nav-link active\" id=\"on_sale
_estates-tab\" data-toggle=\"tab\" href=\"#on_sale_estates\" role=\"tab\" aria-controls=\"on_sale_estates\" aria-selected=\"false\">Ventes ({{ totaux.Ventes }})</a>
</li>
<li class=\"nav-item\" role=\"presentation\">
<a class=\"nav-link{% if totaux.Vendus == 0 %} disabled{% endif %}\" id=\"sold_estates-tab\" data-toggle=\"tab\" href=\"#sold_estates\" role=\"tab\" aria-controls=\"sold_estates\" aria-selected=\"false\">Vendus ({{ totaux.Vendus }})</a>
</li>
</ul>
<div class=\"tab-content\" id=\"estates_tabContent\">
<div class=\"tab-pane fade show active\" id=\"on_sale_estates\" role=\"tabpanel\" aria-labelledby=\"on_sale_estates-tab\">
<div class=\"row pt-4 align-items-stretch estates_container\">
{% for estate in estates %}
{% if estate.statut not in [\"Sous compromis\", \"Vendu\"] %}
{% include 'front/_common/_estate.html.twig' with {'col': 'col-md-6 col-lg-4', 'with_agent' : false, 'with_modal' : true} %}
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"tab-pane fade\" id=\"sold_estates\" role=\"tabpanel\" aria-labelledby=\"sold_estates-tab\">
<div class=\"row pt-4 align-items-stretch estates_container\">
{% for estate in estates %}
{% if estate.statut in [\"Sous compromis\", \"Vendu\"] %}
{% include 'front/_common/_estate.html.twig' with {'col': 'col-md-6 col-lg-4', 'with_agent' : false, 'with_modal' : false, 'not_hover' : true, 'with_carrousel':false} %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
</section>
<div id=\"contact_modal_agent\" class=\"modal contact_modal\" tabindex=\"-1\" role=\"dialog\">
<div class=\"modal-dialog modal-dialog-centered modal-xl\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body p-0\">
<div class=\"container-fluid\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
<div class=\"row d-flex\">
<div class=\"col-lg-5 col-xl-6 bg-dark px-0\">
<div class=\"text-white h-100\">
<div class=\"d-flex flex-column h-100\">
<img class=\"img-fluid \" src=\"{{ vich_uploader_asset(agent, 'imageFile')|imagine_filter('agent_thumb') }}\" />
<div class=\"py-4 px-4\">
<h4 class=\"lora m-0 text-white\">{{ agent.name }}</h4>
<ul id=\"contact_modal_agent_\" class=\"list-unstyled\">
<li><i class=\"icon-location\"></i>{{ agent.secteur }}</li>
<li><i class=\"icon-phone-left\"></i>{{ agent.telephone|phone }}</li>
</ul>
</div>
{# <div class=\"text-center mt-auto\">
<img class=\"mt-4 mb-4 img-fluid text-center\" src=\"{{ asset('assets/img/logo_blanc.png') | imagine_filter('runtime', {\"thumbnail\": {\"size\": [150,], 'mode': 'outbound' }}) }}\" />
</div> #}
</div>
</div>
</div>
<div id=\"contact_form_container\" class=\"col-lg-7 col-xl-6 px-4 pt-5 pb-3\">
<div class=\"d-flex justify-content-end\">
<button type=\"button\" class=\"btn btn-primary mb-3\" data-toggle=\"collapse\" data-target=\"#contact_form_rdv\" aria-expanded=\"false\" aria-controls=\"contact_form_rdv\"><i class=\"icon-calendar\"></i> Proposer un RDV ?</button>
</div>
{{ render(controller('App\\\\Controller\\\\Front\\\\MessageController::contactForm', { 'context': 'agent' , 'display' : 'contact_modal_agent', 'agent_id': agent.id })) }}
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"contactForm_source\" style=\"display: none;\">{{ render(controller('App\\\\Controller\\\\Front\\\\MessageController::contactForm', { 'context': 'agent', 'display' : 'agent_modal' })) }}</div>
{{ source('front/acheter/modal-template.html') }}
{# {{ source('front/acheter/estate-infobox-template.html') }} #}
{# {{ source('front/agents/estate-infobox-template.html') }} #}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link href=\"{{ asset('assets/vendor/bootstrap-4-master/build/css/tempusdominus-bootstrap-4.min.css') }}\" rel=\"stylesheet\"/>
<link href=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css\" />
<link href=\"{{ asset('assets/css/dpe_ges.css') }}\" rel=\"stylesheet\"/>
<link href=\"{{ asset('assets/vendor/OwlCarousel2-2.3.4/dist/assets/owl.carousel.min.css') }}\" rel=\"stylesheet\" />
<link href=\"{{ asset('assets/vendor/OwlCarousel2-2.3.4/dist/assets/owl.theme.default.min.css') }}\" rel=\"stylesheet\" />
<link href=\"//vjs.zencdn.net/7.8.2/video-js.min.css\" rel=\"stylesheet\">
<style>
#agent .portrait #video_buttons{
position: absolute;
right: 5px;
bottom: 0px;
}
#agent .portrait #video_buttons button{
position: relative;
background: none;
border: none;
color: #fff;
font-size: 20px;
right: initial;
bottom: initial;
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\"></script>
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
<script src=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js\"></script>
<script src=\"{{ asset('assets/vendor/swag.min.js') }}\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js\"></script>
<script src=\"{{ asset('assets/vendor/OwlCarousel2-2.3.4/dist/owl.carousel.min.js') }}\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js\" integrity=\"sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/locale/fr.min.js\" integrity=\"sha512-RAt2+PIRwJiyjWpzvvhKAG2LEdPpQhTgWfbEkFDCo8wC4rFYh5GQzJBVIFDswwaEDEYX16GEE/4fpeDNr7OIZw==\" crossorigin=\"anonymous\"></script>
<script src=\"{{ asset('assets/vendor/bootstrap-4-master/build/js/tempusdominus-bootstrap-4.js') }}\"></script>
<script src=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.js\"></script>
<script src=\"https://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js\"></script>
<script src=\"{{ asset('assets/js/base_map.js?v1.0') }}\"></script>
<script src=\"{{ asset('assets/js/estates_map.js?v1.1') }}\"></script>
{# <script src=\"{{ asset('assets/js/rrose.js') }}\"></script> #}
<script src=\"//vjs.zencdn.net/7.8.2/video.min.js\"></script>
<script>
var current_page = '{{ current_page }}';
var current_route = Routing.generate('show_agent', { slug: '{{agent.slug}}' } );
var datas = {{ datas|json_encode()|raw }};
// var source_infobox;
// var template_infobox;
var source_modal;
var template_modal;
jQuery(document).ready(function(){
if(\$('#video_agent').length > 0){
var video_agent_player = videojs('video_agent', {
\"autoplay\": true,
\"controls\":false,
\"muted\": true,
\"loop\":true,
\"fluid\": true
},
function onPlayerReady() {
setTimeout(function(){
video_agent_player.play();
\$('#btn_sound').click(function(){
// video_agent_player.MuteToggle();
toggleVideoMute(video_agent_player);
});
}, 500);
});
}
//ouverture du formulaire de contact
\$('.btn_contact_agent').click(function(){
\$('#contact_modal_agent').modal('show');
});
initHandlebars();
// source_infobox = \$(\"#infobox-template\").html();
// template_infobox = Handlebars.compile(source_infobox);
\$('#btn_bio').popover({
customClass: 'popover_bio',
html: true,
sanitize: false,
template: '<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"popover-body\"></div></div>'
});
source_modal = \$(\"#modal-template\").html();
template_modal = Handlebars.compile(source_modal);
//Ouverture par url
var parts = window.location.pathname.split('/');
if( parts.length == 4 ) {
var refannonce = parts[3];
var estate = datas.estates.find(estate => String(estate.refannonce) === String(refannonce));
if( estate === undefined){ //ajax
getEstate(refannonce);
}
else{
displayEstate(estate);
}
}
// setMap('agent_estates_map', 8, 8, 16 );
// map.touchZoom.disable();
// map.doubleClickZoom.disable();
// map.boxZoom.disable();
// map.keyboard.disable();
// map.scrollWheelZoom.disable();
// map.zoomControl.remove();
// map.dragging.disable();
// addMarkers(datas.estates, true, true);
var itemCount = \$(\"#testimonies\").children().length;
\$(\"#testimonies\").owlCarousel({
loop:itemCount > 2,
autoplay:true,
autoplayTimeout:owl_speed,
autoplayHoverPause:true,
smartSpeed:500,
margin:0,
nav:false,
// items:1,
responsive:{
0:{items:1},
// 767:{items:2},
992:{items:2}
}
});
initContactForm(\$('#contact_agent #contact_form'));
\$('.estates_container .estate_carousel').each(function(){
initEstateCarousel(\$(this));
});
\$('#estates_tab a').on('click', function (event) {
event.preventDefault();
\$(this).tab('show');
});
\$('.open_modal').on('click', function(e) {
e.preventDefault();
e.returnValue = false;
openEstateModal(\$(this).data('id'));
return false;
});
});
function centerMe(e) {
return;
var pixelPosition = map.latLngToLayerPoint(e.target.getLatLng());
var new_y = \$('#agent_estates_map').height() /2;
pixelPosition.y = pixelPosition.y - new_y + 50 ;
var new_latlng = map.layerPointToLatLng(pixelPosition);
map.setView(new_latlng);
}
function toggleVideoMute(video_player){
var is_muted = video_player.muted();
if (is_muted == true) {
video_player.muted(false);
\$('#btn_sound').removeClass('vjs-icon-volume-mute').addClass('vjs-icon-volume-high');
}
else {
video_player.muted(true);
\$('#btn_sound').removeClass('vjs-icon-volume-high').addClass('vjs-icon-volume-mute');
}
}
</script>
{% endblock %}", "front/agents/show.html.twig", "/home/pofr4524/sites/dev.sublimons.com/templates/front/agents/show.html.twig");
}
}