var/cache/dev/twig/ff/ff21447dc86f68b0a84da8ebcecccf64.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* front/subpage/contact.html.twig */
  18. class __TwigTemplate_e6d61e474f17bb9cff2f6d1f2d29a7b8 extends Template
  19. {
  20.     private Source $source;
  21.     /**
  22.      * @var array<string, MacroNamespace>
  23.      */
  24.     private array $macros = [];
  25.     private \Twig\Runtime\EscaperRuntime $escaper;
  26.     public function __construct(Environment $env)
  27.     {
  28.         parent::__construct($env);
  29.         $this->source = $this->getSourceContext();
  30.         $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31.         $this->blocks = [
  32.             'title' => [$this, 'block_title'],
  33.             'stylesheets' => [$this, 'block_stylesheets'],
  34.             'javascripts' => [$this, 'block_javascripts'],
  35.             'container' => [$this, 'block_container'],
  36.         ];
  37.     }
  38.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  39.     {
  40.         // line 1
  41.         return $this->parent ??= $this->load("front/base_front.html.twig", 1);
  42.     }
  43.     protected function doDisplay(array $context, array $blocks = []): iterable
  44.     {
  45.         $macros = $this->macros;
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/subpage/contact.html.twig"));
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/subpage/contact.html.twig"));
  50.         $this->parent = $this->load("front/base_front.html.twig", 1);
  51.         yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 3
  58.     /**
  59.      * @return iterable<null|scalar|\Stringable>
  60.      */
  61.     public function block_title(array $context, array $blocks = []): iterable
  62.     {
  63.         $macros = $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  68.         // line 4
  69.         yield "    ";
  70.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Label", [], "messages_front"), "html", null, true);
  71.         yield "
  72. ";
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.         return; yield;
  78.     }
  79.     // line 7
  80.     /**
  81.      * @return iterable<null|scalar|\Stringable>
  82.      */
  83.     public function block_stylesheets(array $context, array $blocks = []): iterable
  84.     {
  85.         $macros = $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  90.         // line 8
  91.         yield "    ";
  92.         yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  93.         yield "
  94.     <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  95.     <link href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap\" rel=\"stylesheet\">
  96.     <link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet/dist/leaflet.css\"/>
  97. ";
  98.         
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100.         
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  102.         return; yield;
  103.     }
  104.     // line 14
  105.     /**
  106.      * @return iterable<null|scalar|\Stringable>
  107.      */
  108.     public function block_javascripts(array $context, array $blocks = []): iterable
  109.     {
  110.         $macros = $this->macros;
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  115.         // line 15
  116.         yield "    ";
  117.         yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  118.         yield "
  119.     <script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\"></script>
  120. ";
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         return; yield;
  126.     }
  127.     // line 19
  128.     /**
  129.      * @return iterable<null|scalar|\Stringable>
  130.      */
  131.     public function block_container(array $context, array $blocks = []): iterable
  132.     {
  133.         $macros = $this->macros;
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
  138.         // line 20
  139.         yield "
  140.     <section id=\"contact_main_arae\">
  141.         <div class=\"container\">
  142.             <div class=\"page_heading\">
  143.                 <h2>";
  144.         // line 25
  145.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.ContactUs", [], "messages_front"), "html", null, true);
  146.         yield "</h2>
  147.                 <p>";
  148.         // line 26
  149.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.ContactSubtitle", [], "messages_front"), "html", null, true);
  150.         yield "</p>
  151.             </div>
  152.             <div class=\"contact_wrapper\">
  153.                 ";
  154.         // line 32
  155.         yield "                <div class=\"agencies_col\">
  156.                     ";
  157.         // line 33
  158.         $context['_parent'] = $context;
  159.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["agencies"]) || array_key_exists("agencies", $context) ? $context["agencies"] : (function () { throw new RuntimeError('Variable "agencies" does not exist.', 33, $this->source); })()));
  160.         foreach ($context['_seq'] as $context["_key"] => $context["agency"]) {
  161.             // line 34
  162.             yield "                        <div class=\"agency_item\">
  163.                             <div class=\"agency_map_box\">
  164.                                 <div id=\"leaflet_";
  165.             // line 36
  166.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "id", [], "any", false, false, false, 36), "html", null, true);
  167.             yield "\" class=\"agency_map\" data-name=\"";
  168.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "name", [], "any", false, false, false, 36), "html", null, true);
  169.             yield "\"></div>
  170.                             </div>
  171.                             <div class=\"agency_details\">
  172.                                 <h3>";
  173.             // line 40
  174.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "name", [], "any", false, false, false, 40), "html", null, true);
  175.             yield "</h3>
  176.                                 <ul>
  177.                                     <li>
  178.                                         <span class=\"icon_badge\"><i class=\"fas fa-map-marker-alt\"></i></span>
  179.                                         <span>
  180.                                             <strong>";
  181.             // line 45
  182.             yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Footer.Messages.Address", [], "messages_front"), "html", null, true);
  183.             yield " :</strong>
  184.                                             ";
  185.             // line 46
  186.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "address", [], "any", false, false, false, 46), "html", null, true);
  187.             yield ", ";
  188.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "city", [], "any", false, false, false, 46), "html", null, true);
  189.             yield "
  190.                                         </span>
  191.                                     </li>
  192.                                     ";
  193.             // line 49
  194.             if ((CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "email", [], "any", true, true, false, 49) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "email", [], "any", false, false, false, 49)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  195.                 // line 50
  196.                 yield "                                        <li>
  197.                                             <span class=\"icon_badge\"><i class=\"fas fa-envelope\"></i></span>
  198.                                             <span>
  199.                                                 <strong>";
  200.                 // line 53
  201.                 yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Common.Fields.Email", [], "messages_front"), "html", null, true);
  202.                 yield " :</strong> ";
  203.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "email", [], "any", false, false, false, 53), "html", null, true);
  204.                 yield "
  205.                                             </span>
  206.                                         </li>
  207.                                     ";
  208.             }
  209.             // line 57
  210.             yield "                                    <li>
  211.                                         <span class=\"icon_badge\"><i class=\"fas fa-phone\"></i></span>
  212.                                         <span>
  213.                                             <strong>";
  214.             // line 60
  215.             yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Common.Fields.Phone", [], "messages_front"), "html", null, true);
  216.             yield " :</strong>
  217.                                             ";
  218.             // line 61
  219.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "phone", [], "any", false, false, false, 61), "html", null, true);
  220.             yield "
  221.                                         </span>
  222.                                     </li>
  223.                                     ";
  224.             // line 64
  225.             if ((CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "whatsapp", [], "any", true, true, false, 64) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "whatsapp", [], "any", false, false, false, 64)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  226.                 // line 65
  227.                 yield "                                        <li>
  228.                                             <span class=\"icon_badge\"><i class=\"fab fa-whatsapp\"></i></span>
  229.                                             <span>
  230.                                                 <strong>whatsapp :</strong> ";
  231.                 // line 68
  232.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "whatsapp", [], "any", false, false, false, 68), "html", null, true);
  233.                 yield "
  234.                                             </span>
  235.                                         </li>
  236.                                     ";
  237.             }
  238.             // line 72
  239.             yield "                                </ul>
  240.                             </div>
  241.                         </div>
  242.                     ";
  243.         }
  244.         $_parent = $context['_parent'];
  245.         unset($context['_seq'], $context['_key'], $context['agency'], $context['_parent']);
  246.         $context = array_intersect_key($context, $_parent);
  247.         $context += $_parent;
  248.         // line 76
  249.         yield "                </div>
  250.                 ";
  251.         // line 79
  252.         yield "                <div class=\"form_col\">
  253.                     <h2>";
  254.         // line 80
  255.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.ContactUs", [], "messages_front"), "html", null, true);
  256.         yield "</h2>
  257.                     <p class=\"subtitle\">";
  258.         // line 81
  259.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.LeaveMessage", [], "messages_front"), "html", null, true);
  260.         yield "</p>
  261.                     ";
  262.         // line 83
  263.         $context['_parent'] = $context;
  264.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 83, $this->source); })()), "flashes", ["error"], "method", false, false, false, 83));
  265.         foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
  266.             // line 84
  267.             yield "                        <div class=\"alert alert-danger\" role=\"alert\">";
  268.             yield (string) $this->escaper->escape($context["flash_error"], "html", null, true);
  269.             yield "</div>
  270.                     ";
  271.         }
  272.         $_parent = $context['_parent'];
  273.         unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
  274.         $context = array_intersect_key($context, $_parent);
  275.         $context += $_parent;
  276.         // line 86
  277.         yield "
  278.                     ";
  279.         // line 87
  280.         yield (string)         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 87, $this->source); })()), 'form_start');
  281.         yield "
  282.                     ";
  283.         // line 90
  284.         yield "                    <div class=\"row_gap\">
  285.                         ";
  286.         // line 91
  287.         if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "civility", [], "any", true, true, false, 91)) {
  288.             // line 92
  289.             yield "                            <div style=\"flex: 0 0 90px;\">";
  290.             yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 92, $this->source); })()), "civility", [], "any", false, false, false, 92), 'row', ["label" => false]);
  291.             yield "</div>
  292.                         ";
  293.         }
  294.         // line 94
  295.         yield "                        <div>";
  296.         yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 94, $this->source); })()), "lastName", [], "any", false, false, false, 94), 'row', ["label" => false, "attr" => ["placeholder" => "Nom"]]);
  297.         yield "</div>
  298.                         <div>";
  299.         // line 95
  300.         yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 95, $this->source); })()), "firstName", [], "any", false, false, false, 95), 'row', ["label" => false, "attr" => ["placeholder" => "Prénom"]]);
  301.         yield "</div>
  302.                     </div>
  303.                     ";
  304.         // line 98
  305.         yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 98, $this->source); })()), "email", [], "any", false, false, false, 98), 'row', ["label" => false, "attr" => ["placeholder" => "Email"]]);
  306.         yield "
  307.                     ";
  308.         // line 101
  309.         yield "                    ";
  310.         yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 101, $this->source); })()), "phone", [], "any", false, false, false, 101), 'widget', ["attr" => ["placeholder" => "Téléphone"]]);
  311.         yield "
  312.                     ";
  313.         // line 103
  314.         if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "subject", [], "any", true, true, false, 103)) {
  315.             // line 104
  316.             yield "                        ";
  317.             yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 104, $this->source); })()), "subject", [], "any", false, false, false, 104), 'row', ["label" => false, "attr" => ["placeholder" => "Objet"]]);
  318.             yield "
  319.                     ";
  320.         }
  321.         // line 106
  322.         yield "
  323.                     ";
  324.         // line 107
  325.         if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "service", [], "any", true, true, false, 107)) {
  326.             // line 108
  327.             yield "                        ";
  328.             yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 108, $this->source); })()), "service", [], "any", false, false, false, 108), 'row', ["label" => false]);
  329.             yield "
  330.                     ";
  331.         }
  332.         // line 110
  333.         yield "
  334.                     ";
  335.         // line 111
  336.         yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 111, $this->source); })()), "message", [], "any", false, false, false, 111), 'row', ["label" => false, "attr" => ["placeholder" => "Votre message"]]);
  337.         yield "
  338.                     <button type=\"submit\" class=\"btn btn_theme btn_md\">
  339.                         ";
  340.         // line 114
  341.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.SendMessage", [], "messages_front"), "html", null, true);
  342.         yield "
  343.                     </button>
  344.                     ";
  345.         // line 117
  346.         yield (string)         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 117, $this->source); })()), 'form_end');
  347.         yield "
  348.                 </div>
  349.             </div>
  350.         </div>
  351.     </section>
  352.     <script>
  353.         \$(document).ready(() => {
  354.             ";
  355.         // line 126
  356.         $context['_parent'] = $context;
  357.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["agencies"]) || array_key_exists("agencies", $context) ? $context["agencies"] : (function () { throw new RuntimeError('Variable "agencies" does not exist.', 126, $this->source); })()));
  358.         foreach ($context['_seq'] as $context["_key"] => $context["agency"]) {
  359.             // line 127
  360.             yield "            ";
  361.             if (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "latitude", [], "any", false, false, false, 127)) && $tmp instanceof Markup ? (string) $tmp : $tmp) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "longitude", [], "any", false, false, false, 127)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  362.                 // line 128
  363.                 yield "            (function () {
  364.                 let mapEl = document.getElementById(\x27leaflet_";
  365.                 // line 129
  366.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "id", [], "any", false, false, false, 129), "html", null, true);
  367.                 yield "\x27);
  368.                 let map = L.map(mapEl, {
  369.                     zoomControl: true,
  370.                     scrollWheelZoom: false
  371.                 }).setView([";
  372.                 // line 133
  373.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "latitude", [], "any", false, false, false, 133), "html", null, true);
  374.                 yield ", ";
  375.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "longitude", [], "any", false, false, false, 133), "html", null, true);
  376.                 yield "], 14);
  377.                 L.tileLayer(\x27https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png\x27, {
  378.                     attribution: \x27&copy; OpenStreetMap contributors\x27
  379.                 }).addTo(map);
  380.                 // Real Leaflet popup, opened by default, sitting above the
  381.                 // marker with its little tail (native Leaflet behaviour).
  382.                 // maxWidth/minWidth stop it from ever stretching full-width.
  383.                 L.marker([";
  384.                 // line 142
  385.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "latitude", [], "any", false, false, false, 142), "html", null, true);
  386.                 yield ", ";
  387.                 yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "longitude", [], "any", false, false, false, 142), "html", null, true);
  388.                 yield "])
  389.                     .addTo(map)
  390.                     .bindPopup(mapEl.dataset.name, {
  391.                         closeButton: true,
  392.                         autoClose: false,
  393.                         maxWidth: 220,
  394.                         minWidth: 90
  395.                     })
  396.                     .openPopup();
  397.             })();
  398.             ";
  399.             }
  400.             // line 153
  401.             yield "            ";
  402.         }
  403.         $_parent = $context['_parent'];
  404.         unset($context['_seq'], $context['_key'], $context['agency'], $context['_parent']);
  405.         $context = array_intersect_key($context, $_parent);
  406.         $context += $_parent;
  407.         // line 154
  408.         yield "
  409.             // Keep phone values consistent without relying on a third-party CDN.
  410.             let phoneInput = document.querySelector(\x27input[name=\"phone\"]\x27);
  411.             if (phoneInput) {
  412.                 let phoneForm = phoneInput.closest(\x27form\x27);
  413.                 if (phoneForm) {
  414.                     phoneForm.addEventListener(\x27submit\x27, () => {
  415.                         phoneInput.value = phoneInput.value.trim().replace(/\\s+/g, \x27 \x27);
  416.                     });
  417.                 }
  418.             }
  419.         });
  420.     </script>
  421.     <script src=\"";
  422.         // line 168
  423.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/leaflet_map.js"), "html", null, true);
  424.         yield "\"></script>
  425. ";
  426.         
  427.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  428.         
  429.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  430.         return; yield;
  431.     }
  432.     /**
  433.      * @codeCoverageIgnore
  434.      */
  435.     public function getTemplateName(): string
  436.     {
  437.         return "front/subpage/contact.html.twig";
  438.     }
  439.     /**
  440.      * @codeCoverageIgnore
  441.      */
  442.     public function isTraitable(): bool
  443.     {
  444.         return false;
  445.     }
  446.     /**
  447.      * @codeCoverageIgnore
  448.      */
  449.     public function getDefaultEscapeStrategy(): string|false
  450.     {
  451.         return "html";
  452.     }
  453.     /**
  454.      * @codeCoverageIgnore
  455.      */
  456.     public function getDebugInfo(): array
  457.     {
  458.         return array (  470 => 168,  454 => 154,  447 => 153,  431 => 142,  417 => 133,  410 => 129,  407 => 128,  404 => 127,  400 => 126,  388 => 117,  382 => 114,  376 => 111,  373 => 110,  367 => 108,  365 => 107,  362 => 106,  356 => 104,  354 => 103,  348 => 101,  343 => 98,  337 => 95,  332 => 94,  326 => 92,  324 => 91,  321 => 90,  316 => 87,  313 => 86,  303 => 84,  299 => 83,  294 => 81,  290 => 80,  287 => 79,  283 => 76,  273 => 72,  266 => 68,  261 => 65,  259 => 64,  253 => 61,  249 => 60,  244 => 57,  235 => 53,  230 => 50,  228 => 49,  220 => 46,  216 => 45,  208 => 40,  199 => 36,  195 => 34,  191 => 33,  188 => 32,  180 => 26,  176 => 25,  169 => 20,  156 => 19,  141 => 15,  128 => 14,  111 => 8,  98 => 7,  84 => 4,  71 => 3,  48 => 1,);
  459.     }
  460.     public function getSourceContext(): Source
  461.     {
  462.         return new Source("{% extends \x27front/base_front.html.twig\x27 %}
  463. {% block title %}
  464.     {{ \x27Pages.Contact.Label\x27 | trans({} , \x27messages_front\x27) }}
  465. {% endblock %}
  466. {% block stylesheets %}
  467.     {{ parent() }}
  468.     <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  469.     <link href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap\" rel=\"stylesheet\">
  470.     <link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet/dist/leaflet.css\"/>
  471. {% endblock %}
  472. {% block javascripts %}
  473.     {{ parent() }}
  474.     <script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\"></script>
  475. {% endblock %}
  476. {% block container %}
  477.     <section id=\"contact_main_arae\">
  478.         <div class=\"container\">
  479.             <div class=\"page_heading\">
  480.                 <h2>{{ \x27Pages.Contact.Messages.ContactUs\x27 | trans({} , \x27messages_front\x27) }}</h2>
  481.                 <p>{{ \x27Pages.Contact.Messages.ContactSubtitle\x27 | trans({} , \x27messages_front\x27) }}</p>
  482.             </div>
  483.             <div class=\"contact_wrapper\">
  484.                 {# ---------------- Agencies + individual maps ---------------- #}
  485.                 <div class=\"agencies_col\">
  486.                     {% for agency in agencies %}
  487.                         <div class=\"agency_item\">
  488.                             <div class=\"agency_map_box\">
  489.                                 <div id=\"leaflet_{{ agency.id }}\" class=\"agency_map\" data-name=\"{{ agency.name }}\"></div>
  490.                             </div>
  491.                             <div class=\"agency_details\">
  492.                                 <h3>{{ agency.name }}</h3>
  493.                                 <ul>
  494.                                     <li>
  495.                                         <span class=\"icon_badge\"><i class=\"fas fa-map-marker-alt\"></i></span>
  496.                                         <span>
  497.                                             <strong>{{ \x27Pages.Footer.Messages.Address\x27 | trans({} , \x27messages_front\x27) }} :</strong>
  498.                                             {{ agency.address }}, {{ agency.city }}
  499.                                         </span>
  500.                                     </li>
  501.                                     {% if agency.email is defined and agency.email %}
  502.                                         <li>
  503.                                             <span class=\"icon_badge\"><i class=\"fas fa-envelope\"></i></span>
  504.                                             <span>
  505.                                                 <strong>{{ \x27Pages.Common.Fields.Email\x27 | trans({} , \x27messages_front\x27) }} :</strong> {{ agency.email }}
  506.                                             </span>
  507.                                         </li>
  508.                                     {% endif %}
  509.                                     <li>
  510.                                         <span class=\"icon_badge\"><i class=\"fas fa-phone\"></i></span>
  511.                                         <span>
  512.                                             <strong>{{ \x27Pages.Common.Fields.Phone\x27 | trans({} , \x27messages_front\x27) }} :</strong>
  513.                                             {{ agency.phone }}
  514.                                         </span>
  515.                                     </li>
  516.                                     {% if agency.whatsapp is defined and agency.whatsapp %}
  517.                                         <li>
  518.                                             <span class=\"icon_badge\"><i class=\"fab fa-whatsapp\"></i></span>
  519.                                             <span>
  520.                                                 <strong>whatsapp :</strong> {{ agency.whatsapp }}
  521.                                             </span>
  522.                                         </li>
  523.                                     {% endif %}
  524.                                 </ul>
  525.                             </div>
  526.                         </div>
  527.                     {% endfor %}
  528.                 </div>
  529.                 {# ---------------- Contact form ---------------- #}
  530.                 <div class=\"form_col\">
  531.                     <h2>{{ \x27Pages.Contact.Messages.ContactUs\x27 | trans({} , \x27messages_front\x27) }}</h2>
  532.                     <p class=\"subtitle\">{{ \x27Pages.Contact.Messages.LeaveMessage\x27 | trans({} , \x27messages_front\x27) }}</p>
  533.                     {% for flash_error in app.flashes(\x27error\x27) %}
  534.                         <div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
  535.                     {% endfor %}
  536.                     {{ form_start(form) }}
  537.                     {# Last name / First name #}
  538.                     <div class=\"row_gap\">
  539.                         {% if form.civility is defined %}
  540.                             <div style=\"flex: 0 0 90px;\">{{ form_row(form.civility, {label: false}) }}</div>
  541.                         {% endif %}
  542.                         <div>{{ form_row(form.lastName, {label: false, attr: {placeholder: \x27Nom\x27}}) }}</div>
  543.                         <div>{{ form_row(form.firstName, {label: false, attr: {placeholder: \x27Prénom\x27}}) }}</div>
  544.                     </div>
  545.                     {{ form_row(form.email, {label: false, attr: {placeholder: \x27Email\x27}}) }}
  546.                     {# Champ téléphone sans dépendance externe #}
  547.                     {{ form_widget(form.phone, {attr: {placeholder: \x27Téléphone\x27}}) }}
  548.                     {% if form.subject is defined %}
  549.                         {{ form_row(form.subject, {label: false, attr: {placeholder: \x27Objet\x27}}) }}
  550.                     {% endif %}
  551.                     {% if form.service is defined %}
  552.                         {{ form_row(form.service, {label: false}) }}
  553.                     {% endif %}
  554.                     {{ form_row(form.message, {label: false, attr: {placeholder: \x27Votre message\x27}}) }}
  555.                     <button type=\"submit\" class=\"btn btn_theme btn_md\">
  556.                         {{ \x27Pages.Contact.Messages.SendMessage\x27 | trans({} , \x27messages_front\x27) }}
  557.                     </button>
  558.                     {{ form_end(form) }}
  559.                 </div>
  560.             </div>
  561.         </div>
  562.     </section>
  563.     <script>
  564.         \$(document).ready(() => {
  565.             {% for agency in agencies %}
  566.             {% if agency.latitude and agency.longitude %}
  567.             (function () {
  568.                 let mapEl = document.getElementById(\x27leaflet_{{ agency.id }}\x27);
  569.                 let map = L.map(mapEl, {
  570.                     zoomControl: true,
  571.                     scrollWheelZoom: false
  572.                 }).setView([{{ agency.latitude }}, {{ agency.longitude }}], 14);
  573.                 L.tileLayer(\x27https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png\x27, {
  574.                     attribution: \x27&copy; OpenStreetMap contributors\x27
  575.                 }).addTo(map);
  576.                 // Real Leaflet popup, opened by default, sitting above the
  577.                 // marker with its little tail (native Leaflet behaviour).
  578.                 // maxWidth/minWidth stop it from ever stretching full-width.
  579.                 L.marker([{{ agency.latitude }}, {{ agency.longitude }}])
  580.                     .addTo(map)
  581.                     .bindPopup(mapEl.dataset.name, {
  582.                         closeButton: true,
  583.                         autoClose: false,
  584.                         maxWidth: 220,
  585.                         minWidth: 90
  586.                     })
  587.                     .openPopup();
  588.             })();
  589.             {% endif %}
  590.             {% endfor %}
  591.             // Keep phone values consistent without relying on a third-party CDN.
  592.             let phoneInput = document.querySelector(\x27input[name=\"phone\"]\x27);
  593.             if (phoneInput) {
  594.                 let phoneForm = phoneInput.closest(\x27form\x27);
  595.                 if (phoneForm) {
  596.                     phoneForm.addEventListener(\x27submit\x27, () => {
  597.                         phoneInput.value = phoneInput.value.trim().replace(/\\s+/g, \x27 \x27);
  598.                     });
  599.                 }
  600.             }
  601.         });
  602.     </script>
  603.     <script src=\"{{ asset(\x27assets/js/leaflet_map.js\x27) }}\"></script>
  604. {% endblock %}
  605. ", "front/subpage/contact.html.twig", "/home/sunazur/public_html/templates/front/subpage/contact.html.twig");
  606.     }
  607. }