var/cache/dev/twig/06/06f7d2e8debe71ce957644230f15632d128efdb3d33e45fe5d8e9704689d4db5.php line 42

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/agents/show.html.twig */
  14. class __TwigTemplate_afae333318bc53c5d68fbb85d996505d1e43e98358aa95022fb7c0bb0da53307 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this, 'block_title'],
  24.             'meta_description' => [$this, 'block_meta_description'],
  25.             'content' => [$this, 'block_content'],
  26.             'stylesheets' => [$this, 'block_stylesheets'],
  27.             'javascripts' => [$this, 'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros = $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/agents/show.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/agents/show.html.twig"));
  42.         $this->parent = $this->loadTemplate("base.html.twig", "front/agents/show.html.twig", 1);
  43.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_title($context, array $blocks = [])
  51.     {
  52.         $macros = $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  57.         echo " - ";
  58.         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);
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.     }
  64.     // line 4
  65.     public function block_meta_description($context, array $blocks = [])
  66.     {
  67.         $macros = $this->macros;
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
  72.         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);
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.     }
  78.     // line 5
  79.     public function block_content($context, array $blocks = [])
  80.     {
  81.         $macros = $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  86.         // line 6
  87.         echo "
  88.     ";
  89.         // line 12
  90.         echo "
  91.     <section id=\"agent\"  style=\"padding-top:60px ;background-image: url(";
  92.         // line 13
  93.         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);
  94.         echo "); background-position: center center; background-size: cover;background-repeat: no-repeat;\" >
  95.         <div class=\"container bg-white\">
  96.             <div class=\"row  pt-3\">
  97.                 <div class=\"col-md-4 col-lg-6 pt-1 position-relative mb-3 mb-md-5 \">
  98.                     <div class=\"portrait border\">
  99.                         ";
  100.         // line 18
  101.         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), ""))) {
  102.             // line 19
  103.             echo "                            <video
  104.                                 id=\"video_agent\"
  105.                                 poster=\"";
  106.             // line 21
  107.             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);
  108.             echo "\"
  109.                                 class=\"video-js vjs-16-9 shadow\"
  110.                                 style=\"width:100%;\">
  111.                                 <source src=\"";
  112.             // line 24
  113.             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);
  114.             echo "\" type=\"video/mp4\"></source>
  115.                             </video>
  116.                             <div id=\"video_buttons\">
  117.                                 <button id=\"btn_sound\" class=\"vjs-icon-volume-mute\"></button>
  118.                                 <button id=\"btn_full_screen\" class=\"vjs-icon-fullscreen-enter\" data-fancybox href=\"";
  119.             // line 28
  120.             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);
  121.             echo "\"></button>
  122.                             </div>
  123.                         ";
  124.         } else {
  125.             // line 31
  126.             echo "                            <img class=\"img-fluid\" src=\"";
  127.             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);
  128.             echo "\" />
  129.                         ";
  130.         }
  131.         // line 33
  132.         echo "                    </div>
  133.                 </div>
  134.                 <div class=\"col-md-8 col-lg-6 pt-2\">
  135.                     <h1 class=\"h3 font-weight-bold\">";
  136.         // line 36
  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.', 36, $this->source); })()), "name", [], "any", false, false, false, 36), "html", null, true);
  138.         echo "</h1>
  139.                     <p><i class=\"icon-location\"></i>";
  140.         // line 37
  141.         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);
  142.         echo "</p>
  143.                     ";
  144.         // line 38
  145.         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), ""))) {
  146.             // line 39
  147.             echo "                        <div class=\"bio pb-3_\">";
  148.             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);
  149.             echo "</div>
  150.                     ";
  151.         } else {
  152.             // line 41
  153.             echo "                        <div class=\"bio pb-3_\">
  154.                             <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>
  155.                             <p>Ne laissez pas le hasard décider de votre avenir !</p>
  156.                         </div>   
  157.                     ";
  158.         }
  159.         // line 46
  160.         echo "                    <div class=\"d-flex justify-content-between mb-3\">
  161.                         <div>
  162.                             <a id=\"realtor_call\" class=\"btn btn-sm btn-primary mr-3\" href=\"tel:";
  163.         // line 48
  164.         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);
  165.         echo "\"> <i class=\"icon-phone-left\"></i> <span class=\"d-none d-xl-inline\"></span>";
  166.         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);
  167.         echo "</a>
  168.                              ";
  169.         // line 49
  170.         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), ""))) {
  171.             // line 50
  172.             echo "                                <a id=\"realtor_whatsapp\" class=\"btn btn-sm btn-success\" href=\"https://api.whatsapp.com/send?phone=";
  173.             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);
  174.             echo "\"> <i class=\"icon-webcam\"></i> WhatsApp</a>
  175.                             ";
  176.         }
  177.         // line 52
  178.         echo "                        </div>
  179.                         <div class=\"text-lg-right\">
  180.                             <button class=\"btn_social btn_contact_agent btn btn-outline-primary\" title=\"contact\" ><i class=\"icon-mail\"></i></button>
  181.                             ";
  182.         // line 57
  183.         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), ""))) {
  184.             // line 58
  185.             echo "                                <a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"";
  186.             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);
  187.             echo "\"><i class=\"icon-facebook\"></i></a>
  188.                             ";
  189.         } else {
  190.             // line 60
  191.             echo "                                <a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"";
  192.             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);
  193.             echo "\"><i class=\"icon-facebook\"></i></a>
  194.                             ";
  195.         }
  196.         // line 62
  197.         echo "                            
  198. ";
  199.         // line 69
  200.         echo "
  201.                             ";
  202.         // line 70
  203.         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), ""))) {
  204.             // line 71
  205.             echo "                                <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"";
  206.             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);
  207.             echo "\"><i class=\"icon-linkedin\"></i></a>
  208.                             ";
  209.         } else {
  210.             // line 73
  211.             echo "                                <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"";
  212.             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);
  213.             echo "\"><i class=\"icon-linkedin\"></i></a>
  214.                             ";
  215.         }
  216.         // line 74
  217.         echo " 
  218.                             ";
  219.         // line 77
  220.         echo "
  221.                             
  222.                             ";
  223.         // line 79
  224.         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), ""))) {
  225.             // line 80
  226.             echo "                                <a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"";
  227.             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);
  228.             echo "\"><i class=\"icon-instagram\"></i></a>
  229.                             ";
  230.         } else {
  231.             // line 82
  232.             echo "                                <a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"";
  233.             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);
  234.             echo "\"><i class=\"icon-instagram\"></i></a>
  235.                             ";
  236.         }
  237.         // line 84
  238.         echo "                        </div>
  239.                     </div>
  240.                 </div>
  241.             </div>
  242.         </div>
  243.     </section>
  244.     <section id=\"agent_estimer\" class=\"container pt-5\">
  245.         <div class=\"row\">
  246.             <div class=\"col-md-8\">
  247.                 <iframe id=\"estimation_iframe\" src=\"https://modelo-insight.lovable.app\" scrolling=\"yes\" frameborder=\"no\" style=\"overflow: hidden; height: 470px;\"></iframe>
  248.             </div>
  249.             <div class=\"col-md-4 text-secondary small d-flex flex-column\">
  250.                 <div class=\"card mt-4 mb-4\">
  251.                     <div class=\"card-body\">
  252.                         <h6>Pourquoi estimer ?</h6>
  253.                         <ul class=\"list-unstyled mb-0\">
  254.                             <li>Une fourchette de prix en 2 minutes</li>
  255.                             <li>Des données de marché localisées</li>
  256.                             <li>Un conseiller vous recontacte pour affiner</li>
  257.                             <li>Vos données restent confidentielles</li>
  258.                         </ul> 
  259.                     </div>
  260.                 </div>
  261.                 <div class=\"bg-dark rounded text-white text-center p-4\">
  262.                     <h6 class=\"text-white mb-3\">Vous préférez un Ã©change directe ?</h6>
  263.                     <a class=\"btn btn-sm btn-light\" href=\"tel:";
  264.         // line 109
  265.         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);
  266.         echo "\"> <i class=\"icon-phone-left\"></i> <span class=\"d-none d-xl-inline\"></span>";
  267.         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);
  268.         echo "</a>
  269.                 </div>
  270.             </div>
  271.         </div>
  272.     </section>
  273.      <section id=\"contact_agent\" class=\"container pt-5\">
  274.         <div class=\"card bg-lighter border-primary\">
  275.             <div class=\"card-body \">
  276.                 <div class=\"clearfix  mx-1\">
  277.                     <h4 id=\"show_contact\" class=\"lora-600 float-lg-left mb-3\">Contactez-moi !</h4>
  278.                     <div class=\"float-lg-right \">
  279.                         <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>
  280.                     </div>
  281.                 </div>
  282.                 ";
  283.         // line 123
  284.         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)]));
  285.         echo "
  286.             </div>
  287.         </div>
  288.     </section> 
  289.     ";
  290.         // line 128
  291.         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))) {
  292.             // line 129
  293.             echo "    <section class=\"container pt-5\">
  294.         <div class=\"row\">
  295.             <div class=\"col-md-4\">
  296.                 <div id=\"os_card\" class=\"card m-1\">
  297.                     <div class=\"card-body text-center d-flex align-items-center justify-content-center\" style=\"min-height:186px\">
  298.                         <div>
  299.                             <div class=\"rating_ratio\">";
  300.             // line 135
  301.             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);
  302.             echo "<span>/5</span></div>
  303.                             <img class=\"d-inline-block my-3\" src=\"";
  304.             // line 136
  305.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/OS-Blanc-1024x413.png"), "html", null, true);
  306.             echo "\" height=\"43\" width=\"107\" />
  307.                             <p class=\"mb-0\"><a href=\"https://www.opinionsystem.fr/fr-fr/certificate/c/";
  308.             // line 137
  309.             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);
  310.             echo "\" target=\"_blank\">basé sur ";
  311.             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);
  312.             echo " avis clients</a></p>
  313.                         </div>
  314.                     </div>
  315.                 </div>
  316.             </div>
  317.             <div class=\"col-md-8\">
  318.                 <div id=\"testimonies\" class=\"owl-carousel small comments\">
  319.                     ";
  320.             // line 144
  321.             $context['_parent'] = $context;
  322.             $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); })()));
  323.             foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
  324.                 // line 145
  325.                 echo "                            <div class=\"card m-1\">
  326.                                 <div class=\"card-header d-flex bg-white px-2\">
  327.                                     <img class=\"mr-2\" width=\"36px\" height=\"36px\" src=\"";
  328.                 // line 147
  329.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/media/accueil/OIP.png"), "html", null, true);
  330.                 echo "\">
  331.                                     <div><b>";
  332.                 // line 148
  333.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "author", [], "any", false, false, false, 148), "html", null, true);
  334.                 echo "</b><div class=\"text-secondary\">";
  335.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "shortSubject", [], "any", false, false, false, 148), "html", null, true);
  336.                 echo "</div></div>
  337.                                 </div>
  338.                                 <div class=\"card-body text-secondary p-2\" >
  339.                                     <cite class=\"card-text\">";
  340.                 // line 151
  341.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["review"], "shortComment", [], "any", false, false, false, 151), "html", null, true);
  342.                 echo "</cite>
  343.                                     <div class=\"d-flex justify-content-between align-items-center pt-2\">
  344.                                         ";
  345.                 // line 153
  346.                 echo $this->extensions['App\Twig\AppExtension']->stars(twig_get_attribute($this->env, $this->source, $context["review"], "rating", [], "any", false, false, false, 153));
  347.                 echo "
  348.                                         <div class=\"date\">";
  349.                 // line 154
  350.                 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);
  351.                 echo "</div>
  352.                                     </div>
  353.                                 </div>
  354.                             </div>
  355.                     ";
  356.             }
  357.             $_parent = $context['_parent'];
  358.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
  359.             $context = array_intersect_key($context, $_parent) + $_parent;
  360.             // line 159
  361.             echo "                </div>
  362.             </div>
  363.         </div>
  364.     </section>
  365.     ";
  366.         }
  367.         // line 164
  368.         echo "
  369.     <section class=\"container pt-5\">
  370.         <h4 class=\"lora-600\">Liste de bien(s)</h4>
  371.         <ul class=\"nav nav-pills mb-3\" id=\"estates_tab\" role=\"tablist\">
  372.           <li class=\"nav-item\" role=\"presentation\">
  373.             <a class=\"nav-link active\" id=\"on_sale
  374.             _estates-tab\" data-toggle=\"tab\" href=\"#on_sale_estates\" role=\"tab\" aria-controls=\"on_sale_estates\" aria-selected=\"false\">Ventes (";
  375.         // line 170
  376.         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);
  377.         echo ")</a>
  378.           </li>
  379.           <li class=\"nav-item\" role=\"presentation\">
  380.             <a class=\"nav-link";
  381.         // line 173
  382.         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))) {
  383.             echo " disabled";
  384.         }
  385.         echo "\" id=\"sold_estates-tab\" data-toggle=\"tab\" href=\"#sold_estates\" role=\"tab\" aria-controls=\"sold_estates\" aria-selected=\"false\">Vendus (";
  386.         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);
  387.         echo ")</a>
  388.           </li>
  389.         </ul>
  390.         <div class=\"tab-content\" id=\"estates_tabContent\">
  391.             <div class=\"tab-pane fade show active\" id=\"on_sale_estates\" role=\"tabpanel\" aria-labelledby=\"on_sale_estates-tab\">
  392.                 <div class=\"row pt-4 align-items-stretch estates_container\">
  393.                     ";
  394.         // line 180
  395.         $context['_parent'] = $context;
  396.         $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); })()));
  397.         $context['loop'] = [
  398.           'parent' => $context['_parent'],
  399.           'index0' => 0,
  400.           'index'  => 1,
  401.           'first'  => true,
  402.         ];
  403.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  404.             $length = count($context['_seq']);
  405.             $context['loop']['revindex0'] = $length - 1;
  406.             $context['loop']['revindex'] = $length;
  407.             $context['loop']['length'] = $length;
  408.             $context['loop']['last'] = 1 === $length;
  409.         }
  410.         foreach ($context['_seq'] as $context["_key"] => $context["estate"]) {
  411.             // line 181
  412.             echo "                        ";
  413.             if (!twig_in_filter(twig_get_attribute($this->env, $this->source, $context["estate"], "statut", [], "any", false, false, false, 181), [0 => "Sous compromis", 1 => "Vendu"])) {
  414.                 // line 182
  415.                 echo "                            ";
  416.                 $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]));
  417.                 // line 183
  418.                 echo "                        ";
  419.             }
  420.             // line 184
  421.             echo "                    ";
  422.             ++$context['loop']['index0'];
  423.             ++$context['loop']['index'];
  424.             $context['loop']['first'] = false;
  425.             if (isset($context['loop']['length'])) {
  426.                 --$context['loop']['revindex0'];
  427.                 --$context['loop']['revindex'];
  428.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  429.             }
  430.         }
  431.         $_parent = $context['_parent'];
  432.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['estate'], $context['_parent'], $context['loop']);
  433.         $context = array_intersect_key($context, $_parent) + $_parent;
  434.         // line 185
  435.         echo "                </div>
  436.             </div>
  437.             <div class=\"tab-pane fade\" id=\"sold_estates\" role=\"tabpanel\" aria-labelledby=\"sold_estates-tab\">
  438.                 <div class=\"row pt-4 align-items-stretch estates_container\">                   
  439.                     ";
  440.         // line 189
  441.         $context['_parent'] = $context;
  442.         $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); })()));
  443.         $context['loop'] = [
  444.           'parent' => $context['_parent'],
  445.           'index0' => 0,
  446.           'index'  => 1,
  447.           'first'  => true,
  448.         ];
  449.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  450.             $length = count($context['_seq']);
  451.             $context['loop']['revindex0'] = $length - 1;
  452.             $context['loop']['revindex'] = $length;
  453.             $context['loop']['length'] = $length;
  454.             $context['loop']['last'] = 1 === $length;
  455.         }
  456.         foreach ($context['_seq'] as $context["_key"] => $context["estate"]) {
  457.             // line 190
  458.             echo "                        ";
  459.             if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["estate"], "statut", [], "any", false, false, false, 190), [0 => "Sous compromis", 1 => "Vendu"])) {
  460.                 // line 191
  461.                 echo "                            ";
  462.                 $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]));
  463.                 // line 192
  464.                 echo "                        ";
  465.             }
  466.             // line 193
  467.             echo "                    ";
  468.             ++$context['loop']['index0'];
  469.             ++$context['loop']['index'];
  470.             $context['loop']['first'] = false;
  471.             if (isset($context['loop']['length'])) {
  472.                 --$context['loop']['revindex0'];
  473.                 --$context['loop']['revindex'];
  474.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  475.             }
  476.         }
  477.         $_parent = $context['_parent'];
  478.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['estate'], $context['_parent'], $context['loop']);
  479.         $context = array_intersect_key($context, $_parent) + $_parent;
  480.         // line 194
  481.         echo "                </div>
  482.           </div>
  483.         </div>
  484.     </section>
  485. <div id=\"contact_modal_agent\" class=\"modal contact_modal\" tabindex=\"-1\" role=\"dialog\">
  486.     <div class=\"modal-dialog modal-dialog-centered modal-xl\" role=\"document\">
  487.         <div class=\"modal-content\">
  488.             <div class=\"modal-body p-0\">
  489.             <div class=\"container-fluid\">
  490.                 <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  491.                 <div class=\"row d-flex\">
  492.                     <div class=\"col-lg-5 col-xl-6 bg-dark px-0\">
  493.                         <div class=\"text-white h-100\">
  494.                             
  495.                             <div class=\"d-flex  flex-column h-100\">
  496.                                 <img class=\"img-fluid \" src=\"";
  497.         // line 213
  498.         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);
  499.         echo "\" />   
  500.                                 <div class=\"py-4 px-4\">
  501.                                     <h4 class=\"lora m-0 text-white\">";
  502.         // line 216
  503.         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);
  504.         echo "</h4>  
  505.                                     <ul id=\"contact_modal_agent_\" class=\"list-unstyled\">
  506.                                         <li><i class=\"icon-location\"></i>";
  507.         // line 218
  508.         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);
  509.         echo "</li>
  510.                                         <li><i class=\"icon-phone-left\"></i>";
  511.         // line 219
  512.         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);
  513.         echo "</li>
  514.                                     </ul>  
  515.                                 </div>
  516. ";
  517.         // line 225
  518.         echo "                            </div>
  519.                         </div>
  520.                     </div>
  521.                     <div id=\"contact_form_container\" class=\"col-lg-7 col-xl-6 px-4 pt-5 pb-3\">
  522.                         <div class=\"d-flex justify-content-end\">
  523.                             <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>
  524.                         </div>
  525.                         ";
  526.         // line 234
  527.         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)]));
  528.         echo "
  529.                     </div>
  530.                 </div>
  531.             </div>
  532.         </div>
  533.     </div>
  534. </div>
  535. <div id=\"contactForm_source\" style=\"display: none;\">";
  536.         // line 243
  537.         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"]));
  538.         echo "</div>
  539. ";
  540.         // line 244
  541.         echo twig_source($this->env, "front/acheter/modal-template.html");
  542.         echo "
  543. ";
  544.         // line 248
  545.         echo "
  546. ";
  547.         
  548.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  549.         
  550.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  551.     }
  552.     // line 251
  553.     public function block_stylesheets($context, array $blocks = [])
  554.     {
  555.         $macros = $this->macros;
  556.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  557.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  558.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  559.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  560.         // line 252
  561.         echo "    ";
  562.         $this->displayParentBlock("stylesheets", $context, $blocks);
  563.         echo "
  564.     <link href=\"";
  565.         // line 253
  566.         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);
  567.         echo "\" rel=\"stylesheet\"/>
  568.     <link href=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.css\" rel=\"stylesheet\" />
  569.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css\" />
  570.     <link href=\"";
  571.         // line 256
  572.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/dpe_ges.css"), "html", null, true);
  573.         echo "\" rel=\"stylesheet\"/>
  574.     <link href=\"";
  575.         // line 257
  576.         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);
  577.         echo "\" rel=\"stylesheet\" />
  578.     <link href=\"";
  579.         // line 258
  580.         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);
  581.         echo "\" rel=\"stylesheet\" />
  582.     <link href=\"//vjs.zencdn.net/7.8.2/video-js.min.css\" rel=\"stylesheet\">
  583.     <style>
  584.     #agent .portrait #video_buttons{
  585.       position: absolute;
  586.       right: 5px;
  587.       bottom: 0px;
  588.     }
  589.     #agent .portrait #video_buttons button{
  590.       position: relative;
  591.       background: none;
  592.       border: none;
  593.       color: #fff;
  594.       font-size: 20px;
  595.       right: initial;
  596.       bottom: initial;
  597.     }
  598.     </style>
  599. ";
  600.         
  601.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  602.         
  603.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  604.     }
  605.     // line 279
  606.     public function block_javascripts($context, array $blocks = [])
  607.     {
  608.         $macros = $this->macros;
  609.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  610.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  611.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  612.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  613.         // line 280
  614.         echo "    ";
  615.         $this->displayParentBlock("javascripts", $context, $blocks);
  616.         echo "
  617.     <script src=\"";
  618.         // line 281
  619.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
  620.         echo "\"></script>
  621.     <script src=\"";
  622.         // line 282
  623.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
  624.         echo "\"></script>
  625.     <script src=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js\"></script>
  626.     <script src=\"https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js\"></script>
  627.     <script src=\"";
  628.         // line 285
  629.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/vendor/swag.min.js"), "html", null, true);
  630.         echo "\"></script>
  631.     <script src=\"https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js\"></script>
  632.     <script src=\"";
  633.         // line 287
  634.         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);
  635.         echo "\"></script>
  636.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js\" integrity=\"sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==\" crossorigin=\"anonymous\"></script>
  637.     <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>
  638.     <script src=\"";
  639.         // line 291
  640.         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);
  641.         echo "\"></script>
  642.     <script src=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.js\"></script>
  643.     <script src=\"https://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js\"></script>
  644.     <script src=\"";
  645.         // line 295
  646.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/base_map.js?v1.0"), "html", null, true);
  647.         echo "\"></script>
  648.     <script src=\"";
  649.         // line 296
  650.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/estates_map.js?v1.1"), "html", null, true);
  651.         echo "\"></script>
  652.     ";
  653.         // line 298
  654.         echo "    <script src=\"//vjs.zencdn.net/7.8.2/video.min.js\"></script>
  655.     
  656.     <script>
  657.     var current_page = '";
  658.         // line 303
  659.         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);
  660.         echo "'; 
  661.     var current_route = Routing.generate('show_agent', { slug: '";
  662.         // line 305
  663.         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);
  664.         echo "' } );
  665.     var datas  = ";
  666.         // line 306
  667.         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); })()));
  668.         echo ";
  669.     // var source_infobox;
  670.     // var template_infobox;
  671.     var source_modal;
  672.     var template_modal;
  673.     jQuery(document).ready(function(){ 
  674.         if(\$('#video_agent').length > 0){
  675.             var video_agent_player = videojs('video_agent', {
  676.                 \"autoplay\": true,
  677.                 \"controls\":false,
  678.                 \"muted\": true,
  679.                 \"loop\":true,
  680.                 \"fluid\": true
  681.             },
  682.             function onPlayerReady() {
  683.                 setTimeout(function(){
  684.                     video_agent_player.play();
  685.                     \$('#btn_sound').click(function(){
  686.                         // video_agent_player.MuteToggle();
  687.                         toggleVideoMute(video_agent_player);
  688.                     });
  689.                   }, 500);
  690.             });
  691.         }
  692.     //ouverture du formulaire de contact
  693.     \$('.btn_contact_agent').click(function(){
  694.         \$('#contact_modal_agent').modal('show');
  695.     });
  696.         initHandlebars();
  697.         // source_infobox   = \$(\"#infobox-template\").html();
  698.         // template_infobox  = Handlebars.compile(source_infobox);
  699.         \$('#btn_bio').popover({ 
  700.             customClass: 'popover_bio',
  701.             html: true, 
  702.             sanitize: false,
  703.             template: '<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"popover-body\"></div></div>'
  704.         });
  705.         source_modal   = \$(\"#modal-template\").html();
  706.         template_modal  = Handlebars.compile(source_modal);
  707.         //Ouverture par url
  708.         var parts = window.location.pathname.split('/');
  709.         if( parts.length == 4 ) {
  710.             var refannonce = parts[3];
  711.             var estate = datas.estates.find(estate => String(estate.refannonce) === String(refannonce));
  712.             if( estate === undefined){ //ajax
  713.                 getEstate(refannonce);
  714.             }
  715.             else{
  716.                 displayEstate(estate); 
  717.             }
  718.         }
  719.         // setMap('agent_estates_map', 8, 8, 16 );
  720.         // map.touchZoom.disable();
  721.         // map.doubleClickZoom.disable();
  722.         // map.boxZoom.disable();
  723.         // map.keyboard.disable();
  724.         // map.scrollWheelZoom.disable();
  725.         // map.zoomControl.remove();
  726.         // map.dragging.disable();
  727.         // addMarkers(datas.estates, true, true);
  728.         var itemCount = \$(\"#testimonies\").children().length;
  729.         \$(\"#testimonies\").owlCarousel({
  730.             loop:itemCount > 2,
  731.             autoplay:true,
  732.             autoplayTimeout:owl_speed,
  733.             autoplayHoverPause:true,
  734.             smartSpeed:500,
  735.             margin:0,
  736.             nav:false,
  737.             // items:1,
  738.             responsive:{
  739.                 0:{items:1},
  740.                 // 767:{items:2},
  741.                 992:{items:2}
  742.             }
  743.         });
  744.         initContactForm(\$('#contact_agent #contact_form'));
  745.         \$('.estates_container .estate_carousel').each(function(){
  746.             initEstateCarousel(\$(this));
  747.         });
  748.         \$('#estates_tab a').on('click', function (event) {
  749.           event.preventDefault();
  750.           \$(this).tab('show');
  751.         });
  752.         \$('.open_modal').on('click', function(e) {
  753.             e.preventDefault();
  754.             e.returnValue = false;
  755.             openEstateModal(\$(this).data('id'));
  756.             return false; 
  757.         });
  758.     });
  759.     function centerMe(e) {
  760.         return;
  761.         
  762.         var pixelPosition = map.latLngToLayerPoint(e.target.getLatLng());
  763.         var new_y = \$('#agent_estates_map').height() /2;
  764.         pixelPosition.y =  pixelPosition.y -  new_y  + 50 ;
  765.         var new_latlng  = map.layerPointToLatLng(pixelPosition);
  766.         map.setView(new_latlng);
  767.     }
  768.     function toggleVideoMute(video_player){
  769.         var is_muted = video_player.muted();
  770.         if (is_muted == true) {
  771.             video_player.muted(false);
  772.             \$('#btn_sound').removeClass('vjs-icon-volume-mute').addClass('vjs-icon-volume-high');
  773.         }
  774.         else {
  775.             video_player.muted(true);
  776.             \$('#btn_sound').removeClass('vjs-icon-volume-high').addClass('vjs-icon-volume-mute');
  777.         }
  778.     }
  779.     </script>
  780. ";
  781.         
  782.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  783.         
  784.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  785.     }
  786.     public function getTemplateName()
  787.     {
  788.         return "front/agents/show.html.twig";
  789.     }
  790.     public function isTraitable()
  791.     {
  792.         return false;
  793.     }
  794.     public function getDebugInfo()
  795.     {
  796.         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,);
  797.     }
  798.     public function getSourceContext()
  799.     {
  800.         return new Source("{% extends 'base.html.twig' %}
  801. {% block title %} - {{ agent.name }}{% endblock %}
  802. {% block meta_description %}{{ agent.bioCleaned|raw }}{% endblock %}
  803. {% block content %}
  804.     {#     
  805.     <section class=\"container-fluid p-0\">
  806.         <div id=\"agent_estates_map\" class=\"map_container\"></div>
  807.     </section> 
  808.     #}
  809.     <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;\" >
  810.         <div class=\"container bg-white\">
  811.             <div class=\"row  pt-3\">
  812.                 <div class=\"col-md-4 col-lg-6 pt-1 position-relative mb-3 mb-md-5 \">
  813.                     <div class=\"portrait border\">
  814.                         {% if agent.video != \"\" %}
  815.                             <video
  816.                                 id=\"video_agent\"
  817.                                 poster=\"{{ vich_uploader_asset(agent, 'imageFile')|imagine_filter('agent_thumb') }}\"
  818.                                 class=\"video-js vjs-16-9 shadow\"
  819.                                 style=\"width:100%;\">
  820.                                 <source src=\"{{ agent.video }}\" type=\"video/mp4\"></source>
  821.                             </video>
  822.                             <div id=\"video_buttons\">
  823.                                 <button id=\"btn_sound\" class=\"vjs-icon-volume-mute\"></button>
  824.                                 <button id=\"btn_full_screen\" class=\"vjs-icon-fullscreen-enter\" data-fancybox href=\"{{ agent.video }}\"></button>
  825.                             </div>
  826.                         {% else %}
  827.                             <img class=\"img-fluid\" src=\"{{ vich_uploader_asset(agent, 'imageFile')|imagine_filter('agent_thumb') }}\" />
  828.                         {% endif %}
  829.                     </div>
  830.                 </div>
  831.                 <div class=\"col-md-8 col-lg-6 pt-2\">
  832.                     <h1 class=\"h3 font-weight-bold\">{{ agent.name }}</h1>
  833.                     <p><i class=\"icon-location\"></i>{{ agent.secteur }}</p>
  834.                     {% if agent.bio != \"\" %}
  835.                         <div class=\"bio pb-3_\">{{ agent.bio|raw }}</div>
  836.                     {% else %}
  837.                         <div class=\"bio pb-3_\">
  838.                             <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>
  839.                             <p>Ne laissez pas le hasard décider de votre avenir !</p>
  840.                         </div>   
  841.                     {% endif %}
  842.                     <div class=\"d-flex justify-content-between mb-3\">
  843.                         <div>
  844.                             <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>
  845.                              {% if agent.whatsapp != \"\" %}
  846.                                 <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>
  847.                             {% endif %}
  848.                         </div>
  849.                         <div class=\"text-lg-right\">
  850.                             <button class=\"btn_social btn_contact_agent btn btn-outline-primary\" title=\"contact\" ><i class=\"icon-mail\"></i></button>
  851.                             {% if agent.facebook != \"\" %}
  852.                                 <a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"{{ agent.facebook }}\"><i class=\"icon-facebook\"></i></a>
  853.                             {% else %}
  854.                                 <a class=\"btn_social btn_facebook\" title=\"facebook\" target=\"_blank\" href=\"{{ socials.facebook }}\"><i class=\"icon-facebook\"></i></a>
  855.                             {% endif %}
  856.                             
  857. {#                             {% if agent.twitter != \"\" %}
  858.                                 <a class=\"btn_social btn_twitter\" title=\"twitter\" target=\"_blank\" href=\"{{ agent.twitter }}\"><i class=\"icon-twitter\"></i></a>
  859.                             {% else %}
  860.                                 <a class=\"btn_social btn_twitter\" title=\"twitter\" target=\"_blank\" href=\"{{ socials.twitter }}\"><i class=\"icon-twitter\"></i></a>
  861.                             {% endif %} 
  862.                             #}
  863.                             {% if agent.linkedin != \"\" %}
  864.                                 <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"{{ agent.linkedin }}\"><i class=\"icon-linkedin\"></i></a>
  865.                             {% else %}
  866.                                 <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"{{ socials.linkedin }}\"><i class=\"icon-linkedin\"></i></a>
  867.                             {% endif %} 
  868.                             {# <a class=\"btn_social btn_linkedin\" title=\"linkedin\" target=\"_blank\" href=\"{{ socials.linkedin }}\"><i class=\"icon-linkedin\"></i></a> #}
  869.                             
  870.                             {% if agent.instagram != \"\" %}
  871.                                 <a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"{{ agent.instagram }}\"><i class=\"icon-instagram\"></i></a>
  872.                             {% else %}
  873.                                 <a class=\"btn_social btn_instagram\" title=\"instagram\" target=\"_blank\" href=\"{{ socials.instagram }}\"><i class=\"icon-instagram\"></i></a>
  874.                             {% endif %}
  875.                         </div>
  876.                     </div>
  877.                 </div>
  878.             </div>
  879.         </div>
  880.     </section>
  881.     <section id=\"agent_estimer\" class=\"container pt-5\">
  882.         <div class=\"row\">
  883.             <div class=\"col-md-8\">
  884.                 <iframe id=\"estimation_iframe\" src=\"https://modelo-insight.lovable.app\" scrolling=\"yes\" frameborder=\"no\" style=\"overflow: hidden; height: 470px;\"></iframe>
  885.             </div>
  886.             <div class=\"col-md-4 text-secondary small d-flex flex-column\">
  887.                 <div class=\"card mt-4 mb-4\">
  888.                     <div class=\"card-body\">
  889.                         <h6>Pourquoi estimer ?</h6>
  890.                         <ul class=\"list-unstyled mb-0\">
  891.                             <li>Une fourchette de prix en 2 minutes</li>
  892.                             <li>Des données de marché localisées</li>
  893.                             <li>Un conseiller vous recontacte pour affiner</li>
  894.                             <li>Vos données restent confidentielles</li>
  895.                         </ul> 
  896.                     </div>
  897.                 </div>
  898.                 <div class=\"bg-dark rounded text-white text-center p-4\">
  899.                     <h6 class=\"text-white mb-3\">Vous préférez un Ã©change directe ?</h6>
  900.                     <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>
  901.                 </div>
  902.             </div>
  903.         </div>
  904.     </section>
  905.      <section id=\"contact_agent\" class=\"container pt-5\">
  906.         <div class=\"card bg-lighter border-primary\">
  907.             <div class=\"card-body \">
  908.                 <div class=\"clearfix  mx-1\">
  909.                     <h4 id=\"show_contact\" class=\"lora-600 float-lg-left mb-3\">Contactez-moi !</h4>
  910.                     <div class=\"float-lg-right \">
  911.                         <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>
  912.                     </div>
  913.                 </div>
  914.                 {{ render(controller('App\\\\Controller\\\\Front\\\\MessageController::contactForm', { 'context': 'agent', 'display' : 'agent_page', 'agent_id': agent.id  }))  }}
  915.             </div>
  916.         </div>
  917.     </section> 
  918.     {% if reviews|length > 0 %}
  919.     <section class=\"container pt-5\">
  920.         <div class=\"row\">
  921.             <div class=\"col-md-4\">
  922.                 <div id=\"os_card\" class=\"card m-1\">
  923.                     <div class=\"card-body text-center d-flex align-items-center justify-content-center\" style=\"min-height:186px\">
  924.                         <div>
  925.                             <div class=\"rating_ratio\">{{ agent.rating |number_format(1, ',', ' ') }}<span>/5</span></div>
  926.                             <img class=\"d-inline-block my-3\" src=\"{{ asset('assets/img/OS-Blanc-1024x413.png')  }}\" height=\"43\" width=\"107\" />
  927.                             <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>
  928.                         </div>
  929.                     </div>
  930.                 </div>
  931.             </div>
  932.             <div class=\"col-md-8\">
  933.                 <div id=\"testimonies\" class=\"owl-carousel small comments\">
  934.                     {% for review in reviews %}
  935.                             <div class=\"card m-1\">
  936.                                 <div class=\"card-header d-flex bg-white px-2\">
  937.                                     <img class=\"mr-2\" width=\"36px\" height=\"36px\" src=\"{{ asset('assets/media/accueil/OIP.png') }}\">
  938.                                     <div><b>{{ review.author }}</b><div class=\"text-secondary\">{{ review.shortSubject }}</div></div>
  939.                                 </div>
  940.                                 <div class=\"card-body text-secondary p-2\" >
  941.                                     <cite class=\"card-text\">{{ review.shortComment }}</cite>
  942.                                     <div class=\"d-flex justify-content-between align-items-center pt-2\">
  943.                                         {{ review.rating|stars }}
  944.                                         <div class=\"date\">{{ review.date|format_date(locale='fr') }}</div>
  945.                                     </div>
  946.                                 </div>
  947.                             </div>
  948.                     {% endfor %}
  949.                 </div>
  950.             </div>
  951.         </div>
  952.     </section>
  953.     {% endif %}
  954.     <section class=\"container pt-5\">
  955.         <h4 class=\"lora-600\">Liste de bien(s)</h4>
  956.         <ul class=\"nav nav-pills mb-3\" id=\"estates_tab\" role=\"tablist\">
  957.           <li class=\"nav-item\" role=\"presentation\">
  958.             <a class=\"nav-link active\" id=\"on_sale
  959.             _estates-tab\" data-toggle=\"tab\" href=\"#on_sale_estates\" role=\"tab\" aria-controls=\"on_sale_estates\" aria-selected=\"false\">Ventes ({{ totaux.Ventes }})</a>
  960.           </li>
  961.           <li class=\"nav-item\" role=\"presentation\">
  962.             <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>
  963.           </li>
  964.         </ul>
  965.         <div class=\"tab-content\" id=\"estates_tabContent\">
  966.             <div class=\"tab-pane fade show active\" id=\"on_sale_estates\" role=\"tabpanel\" aria-labelledby=\"on_sale_estates-tab\">
  967.                 <div class=\"row pt-4 align-items-stretch estates_container\">
  968.                     {% for estate in estates %}
  969.                         {% if estate.statut not in [\"Sous compromis\", \"Vendu\"] %}
  970.                             {% include 'front/_common/_estate.html.twig'  with {'col': 'col-md-6 col-lg-4', 'with_agent' : false, 'with_modal' : true} %}
  971.                         {% endif %}
  972.                     {% endfor %}
  973.                 </div>
  974.             </div>
  975.             <div class=\"tab-pane fade\" id=\"sold_estates\" role=\"tabpanel\" aria-labelledby=\"sold_estates-tab\">
  976.                 <div class=\"row pt-4 align-items-stretch estates_container\">                   
  977.                     {% for estate in estates %}
  978.                         {% if estate.statut in [\"Sous compromis\", \"Vendu\"] %}
  979.                             {% 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} %}
  980.                         {% endif %}
  981.                     {% endfor %}
  982.                 </div>
  983.           </div>
  984.         </div>
  985.     </section>
  986. <div id=\"contact_modal_agent\" class=\"modal contact_modal\" tabindex=\"-1\" role=\"dialog\">
  987.     <div class=\"modal-dialog modal-dialog-centered modal-xl\" role=\"document\">
  988.         <div class=\"modal-content\">
  989.             <div class=\"modal-body p-0\">
  990.             <div class=\"container-fluid\">
  991.                 <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  992.                 <div class=\"row d-flex\">
  993.                     <div class=\"col-lg-5 col-xl-6 bg-dark px-0\">
  994.                         <div class=\"text-white h-100\">
  995.                             
  996.                             <div class=\"d-flex  flex-column h-100\">
  997.                                 <img class=\"img-fluid \" src=\"{{ vich_uploader_asset(agent, 'imageFile')|imagine_filter('agent_thumb') }}\" />   
  998.                                 <div class=\"py-4 px-4\">
  999.                                     <h4 class=\"lora m-0 text-white\">{{ agent.name }}</h4>  
  1000.                                     <ul id=\"contact_modal_agent_\" class=\"list-unstyled\">
  1001.                                         <li><i class=\"icon-location\"></i>{{ agent.secteur }}</li>
  1002.                                         <li><i class=\"icon-phone-left\"></i>{{ agent.telephone|phone }}</li>
  1003.                                     </ul>  
  1004.                                 </div>
  1005. {#                                 <div class=\"text-center mt-auto\">   
  1006.                                     <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'  }}) }}\" />
  1007.                                 </div> #}
  1008.                             </div>
  1009.                         </div>
  1010.                     </div>
  1011.                     <div id=\"contact_form_container\" class=\"col-lg-7 col-xl-6 px-4 pt-5 pb-3\">
  1012.                         <div class=\"d-flex justify-content-end\">
  1013.                             <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>
  1014.                         </div>
  1015.                         {{ render(controller('App\\\\Controller\\\\Front\\\\MessageController::contactForm', { 'context': 'agent' , 'display' : 'contact_modal_agent', 'agent_id': agent.id  }))  }}
  1016.                     </div>
  1017.                 </div>
  1018.             </div>
  1019.         </div>
  1020.     </div>
  1021. </div>
  1022. <div id=\"contactForm_source\" style=\"display: none;\">{{ render(controller('App\\\\Controller\\\\Front\\\\MessageController::contactForm', { 'context': 'agent', 'display' : 'agent_modal' }))  }}</div>
  1023. {{ source('front/acheter/modal-template.html') }}
  1024. {# {{ source('front/acheter/estate-infobox-template.html') }} #}
  1025. {# {{ source('front/agents/estate-infobox-template.html') }} #}
  1026. {% endblock %}
  1027. {% block stylesheets %}
  1028.     {{ parent() }}
  1029.     <link href=\"{{ asset('assets/vendor/bootstrap-4-master/build/css/tempusdominus-bootstrap-4.min.css') }}\" rel=\"stylesheet\"/>
  1030.     <link href=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.css\" rel=\"stylesheet\" />
  1031.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css\" />
  1032.     <link href=\"{{ asset('assets/css/dpe_ges.css') }}\" rel=\"stylesheet\"/>
  1033.     <link href=\"{{ asset('assets/vendor/OwlCarousel2-2.3.4/dist/assets/owl.carousel.min.css') }}\" rel=\"stylesheet\" />
  1034.     <link href=\"{{ asset('assets/vendor/OwlCarousel2-2.3.4/dist/assets/owl.theme.default.min.css') }}\" rel=\"stylesheet\" />
  1035.     <link href=\"//vjs.zencdn.net/7.8.2/video-js.min.css\" rel=\"stylesheet\">
  1036.     <style>
  1037.     #agent .portrait #video_buttons{
  1038.       position: absolute;
  1039.       right: 5px;
  1040.       bottom: 0px;
  1041.     }
  1042.     #agent .portrait #video_buttons button{
  1043.       position: relative;
  1044.       background: none;
  1045.       border: none;
  1046.       color: #fff;
  1047.       font-size: 20px;
  1048.       right: initial;
  1049.       bottom: initial;
  1050.     }
  1051.     </style>
  1052. {% endblock %}
  1053. {% block javascripts %}
  1054.     {{ parent() }}
  1055.     <script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\"></script>
  1056.     <script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
  1057.     <script src=\"https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js\"></script>
  1058.     <script src=\"https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js\"></script>
  1059.     <script src=\"{{ asset('assets/vendor/swag.min.js') }}\"></script>
  1060.     <script src=\"https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js\"></script>
  1061.     <script src=\"{{ asset('assets/vendor/OwlCarousel2-2.3.4/dist/owl.carousel.min.js') }}\"></script>
  1062.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js\" integrity=\"sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==\" crossorigin=\"anonymous\"></script>
  1063.     <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>
  1064.     <script src=\"{{ asset('assets/vendor/bootstrap-4-master/build/js/tempusdominus-bootstrap-4.js') }}\"></script>
  1065.     <script src=\"https://unpkg.com/leaflet@1.7.1/dist/leaflet.js\"></script>
  1066.     <script src=\"https://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js\"></script>
  1067.     <script src=\"{{ asset('assets/js/base_map.js?v1.0') }}\"></script>
  1068.     <script src=\"{{ asset('assets/js/estates_map.js?v1.1') }}\"></script>
  1069.     {# <script src=\"{{ asset('assets/js/rrose.js') }}\"></script> #}
  1070.     <script src=\"//vjs.zencdn.net/7.8.2/video.min.js\"></script>
  1071.     
  1072.     <script>
  1073.     var current_page = '{{ current_page }}'; 
  1074.     var current_route = Routing.generate('show_agent', { slug: '{{agent.slug}}' } );
  1075.     var datas  = {{ datas|json_encode()|raw }};
  1076.     // var source_infobox;
  1077.     // var template_infobox;
  1078.     var source_modal;
  1079.     var template_modal;
  1080.     jQuery(document).ready(function(){ 
  1081.         if(\$('#video_agent').length > 0){
  1082.             var video_agent_player = videojs('video_agent', {
  1083.                 \"autoplay\": true,
  1084.                 \"controls\":false,
  1085.                 \"muted\": true,
  1086.                 \"loop\":true,
  1087.                 \"fluid\": true
  1088.             },
  1089.             function onPlayerReady() {
  1090.                 setTimeout(function(){
  1091.                     video_agent_player.play();
  1092.                     \$('#btn_sound').click(function(){
  1093.                         // video_agent_player.MuteToggle();
  1094.                         toggleVideoMute(video_agent_player);
  1095.                     });
  1096.                   }, 500);
  1097.             });
  1098.         }
  1099.     //ouverture du formulaire de contact
  1100.     \$('.btn_contact_agent').click(function(){
  1101.         \$('#contact_modal_agent').modal('show');
  1102.     });
  1103.         initHandlebars();
  1104.         // source_infobox   = \$(\"#infobox-template\").html();
  1105.         // template_infobox  = Handlebars.compile(source_infobox);
  1106.         \$('#btn_bio').popover({ 
  1107.             customClass: 'popover_bio',
  1108.             html: true, 
  1109.             sanitize: false,
  1110.             template: '<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"popover-body\"></div></div>'
  1111.         });
  1112.         source_modal   = \$(\"#modal-template\").html();
  1113.         template_modal  = Handlebars.compile(source_modal);
  1114.         //Ouverture par url
  1115.         var parts = window.location.pathname.split('/');
  1116.         if( parts.length == 4 ) {
  1117.             var refannonce = parts[3];
  1118.             var estate = datas.estates.find(estate => String(estate.refannonce) === String(refannonce));
  1119.             if( estate === undefined){ //ajax
  1120.                 getEstate(refannonce);
  1121.             }
  1122.             else{
  1123.                 displayEstate(estate); 
  1124.             }
  1125.         }
  1126.         // setMap('agent_estates_map', 8, 8, 16 );
  1127.         // map.touchZoom.disable();
  1128.         // map.doubleClickZoom.disable();
  1129.         // map.boxZoom.disable();
  1130.         // map.keyboard.disable();
  1131.         // map.scrollWheelZoom.disable();
  1132.         // map.zoomControl.remove();
  1133.         // map.dragging.disable();
  1134.         // addMarkers(datas.estates, true, true);
  1135.         var itemCount = \$(\"#testimonies\").children().length;
  1136.         \$(\"#testimonies\").owlCarousel({
  1137.             loop:itemCount > 2,
  1138.             autoplay:true,
  1139.             autoplayTimeout:owl_speed,
  1140.             autoplayHoverPause:true,
  1141.             smartSpeed:500,
  1142.             margin:0,
  1143.             nav:false,
  1144.             // items:1,
  1145.             responsive:{
  1146.                 0:{items:1},
  1147.                 // 767:{items:2},
  1148.                 992:{items:2}
  1149.             }
  1150.         });
  1151.         initContactForm(\$('#contact_agent #contact_form'));
  1152.         \$('.estates_container .estate_carousel').each(function(){
  1153.             initEstateCarousel(\$(this));
  1154.         });
  1155.         \$('#estates_tab a').on('click', function (event) {
  1156.           event.preventDefault();
  1157.           \$(this).tab('show');
  1158.         });
  1159.         \$('.open_modal').on('click', function(e) {
  1160.             e.preventDefault();
  1161.             e.returnValue = false;
  1162.             openEstateModal(\$(this).data('id'));
  1163.             return false; 
  1164.         });
  1165.     });
  1166.     function centerMe(e) {
  1167.         return;
  1168.         
  1169.         var pixelPosition = map.latLngToLayerPoint(e.target.getLatLng());
  1170.         var new_y = \$('#agent_estates_map').height() /2;
  1171.         pixelPosition.y =  pixelPosition.y -  new_y  + 50 ;
  1172.         var new_latlng  = map.layerPointToLatLng(pixelPosition);
  1173.         map.setView(new_latlng);
  1174.     }
  1175.     function toggleVideoMute(video_player){
  1176.         var is_muted = video_player.muted();
  1177.         if (is_muted == true) {
  1178.             video_player.muted(false);
  1179.             \$('#btn_sound').removeClass('vjs-icon-volume-mute').addClass('vjs-icon-volume-high');
  1180.         }
  1181.         else {
  1182.             video_player.muted(true);
  1183.             \$('#btn_sound').removeClass('vjs-icon-volume-high').addClass('vjs-icon-volume-mute');
  1184.         }
  1185.     }
  1186.     </script>
  1187. {% endblock %}", "front/agents/show.html.twig", "/home/pofr4524/sites/dev.sublimons.com/templates/front/agents/show.html.twig");
  1188.     }
  1189. }