<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* base2.html.twig */
class __TwigTemplate_b38e5a0cf68791e9ff607eba122be443ad71efa505ac2e00ea380757512a3866 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base2.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base2.html.twig"));
// line 1
echo "
<html lang=\"en\">
<head>
<!-- Required meta tags -->
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<!-- CSS -->
<link rel=\"stylesheet\" href=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/responsive.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/user-panel.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/user-panel-responsive.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.min.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\">
<link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" href=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/owl.carousel.min.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/fontawesome/css/all.min.css"), "html", null, true);
echo "\">
<link rel=\"shortcut icon\" href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/favicon.ico"), "html", null, true);
echo "\">
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css\">
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<!-- CSS -->
<title>Modixom</title>
</head>
<style>
#headerpart .btn-alert {
background-color: #B0DB82!important;
}
#headerpart .btn-alert i {
color: #00B065!important;
}
.select2-container--open {
z-index: 9999; /* Ajoutez un z-index élevé pour le dropdown */
}
</style>
<body>
<!-- header -->
";
// line 41
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "user", [], "any", false, false, false, 41)) {
// line 42
echo "<header class=\"user-panel-header-area\" id=\"header";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 42, $this->source); })()), "user", [], "any", false, false, false, 42), "type", [], "any", false, false, false, 42), "html", null, true);
echo "\">
";
} else {
// line 44
echo " <header class=\"user-panel-header-area\" id=\"header";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 44, $this->source); })()), "session", [], "any", false, false, false, 44), "get", [0 => "type"], "method", false, false, false, 44), "html", null, true);
echo "\">
";
}
// line 46
echo " <div class=\"user-panel-header-bottom\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xl-2 col-lg-2 col-md-0 col-sm-0 col-0 d-lg-block d-none\">
";
// line 50
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "user", [], "any", false, false, false, 50)) {
// line 51
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, false, 51), "type", [], "any", false, false, false, 51), "pro"))) {
// line 52
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("professionnels");
echo "\" data-abc=\"true\" class=\"nav-item nav-logo\">
<img id=\"change-logo\" src=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.png"), "html", null, true);
echo "\" style=\"width: 60px; margin: 0 1.3em;\" alt=\"\">
</a>
";
} else {
// line 56
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_default");
echo "\" data-abc=\"true\" class=\"nav-item nav-logo\">
<img id=\"change-logo\" src=\"";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.png"), "html", null, true);
echo "\" style=\"width: 60px; margin: 0 1.3em;\" alt=\"\">
</a>
";
}
// line 60
echo " ";
} else {
// line 61
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_default");
echo "\" data-abc=\"true\" class=\"nav-item nav-logo\">
<img id=\"change-logo\" src=\"";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.png"), "html", null, true);
echo "\" style=\"width: 60px; margin: 0 1.3em;\" alt=\"\">
</a>
";
}
// line 65
echo " <span style=\"font-size: 23px\">MODIXOM</span>
</div>
<div class=\"col-xl-8 col-lg-8 col-md-10 col-sm-10 col-10\">
<div class=\"user-header-bottom-main clearfix\">
<div class=\"user-header-bottom-left\">
<nav class=\"navbar navbar-expand-lg navbar-light d-flex\">
";
// line 72
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 72, $this->source); })()), "user", [], "any", false, false, false, 72)) {
// line 73
echo " <!-- <section class=\"test d-flex\"> -->
<a href=\"\" data-bs-toggle=\"modal\" data-bs-target=\"#alerte\" class=\"d-flex\">
<div class=\"btn-alert\" style=\"background-color:#ADB9CA;\">
<i class=\"fas fa-bell\" style=\"color:#d82e9f\"></i>
</div>
<!-- <span class=\"modal-title d-flex align-items-center justify-content-center\" style:\"padding-top:35px;\">Alertes</span> -->
</a>
<a href=\"";
// line 80
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("favoris");
echo "\" class=\"d-flex\">
<div class=\"btn-alert\" style=\"background-color:#ADB9CA;\">
<i class=\"fas fa-heart\" style=\"color:#d82e9f\"></i>
</div>
<!-- <span class=\"modal-title d-flex align-items-center justify-content-center\" style:\"padding-top:35px;\">Alertes</span> -->
</a>
<a href=\"";
// line 86
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("annonces");
echo "\" class=\"d-flex\">
<div class=\"btn-alert\" style=\"background-color:#ADB9CA;\">
<i class=\"fas fa-th-large\" style=\"color: #d82e9f\"></i>
</div>
<!-- <span class=\"modal-title d-flex align-items-center justify-content-center\" style:\"padding-top:35px;\">Alertes</span> -->
</a>
";
}
// line 93
echo " <!-- </section> -->
";
// line 94
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 94, $this->source); })()), "session", [], "any", false, false, false, 94), "get", [0 => "type"], "method", false, false, false, 94), "pro"))) {
// line 95
echo " <li class=\"nav-item\">
";
// line 96
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 96, $this->source); })()), "user", [], "any", false, false, false, 96)) {
// line 97
echo " <a style=\"text-decoration: none; color:black; margin-left:2em;\" class=\"nav-link modal-title\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_annonces_new");
echo "\"><i class=\"fas fa-regular fa-plus\"></i> Créer une annonce</a>
";
} else {
// line 99
echo " <a style=\"text-decoration: none; color:black; margin-left:2em;\" class=\"nav-link modal-title\" data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\" ><i class=\"fas fa-regular fa-plus\"></i> Créer une annonce</a>
";
}
// line 101
echo " </li>
";
}
// line 103
echo " </nav>
</div>
</div>
</div>
";
// line 108
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 108, $this->source); })()), "user", [], "any", false, false, false, 108)) {
// line 109
echo " <div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-2 col-2 d-flex justify-content-end align-items-center \">
<div class=\"user-panel-header-top-right clearfix\">
<div class=\"user-panel-profile\">
<ul class=\"navbar-nav\">
<li class=\"nav-item dropdown\">
<a href=\"#\" class=\"nav-link dropdown-toggle\" id=\"navbarDropdown\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" style=\"color:transparent;\"><span class=\"profils-icon\" id=\"dropdownIcon\" style=\"background-color: transparent;\"><i class=\"fas fa-bars\"></i></span></a>
<ul class=\"dropdown-menu\" style=\" margin-top: 25px ;\" aria-labelledby=\"navbarDropdown\">
";
// line 117
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 117, $this->source); })()), "user", [], "any", false, false, false, 117), "type", [], "any", false, false, false, 117), "pro"))) {
// line 118
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 119
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notesEnseignes");
echo "\"><!--<i class=\"fas fa-thumbs-up\"></i>--> Notes obtenues</a>
</li>
<hr>
<li><a class=\"dropdown-item\" href=\"";
// line 122
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mesAnnonces", ["type" => "encours"]);
echo "\">Mes annonces</a></li>
<li><a class=\"dropdown-item\" href=\"";
// line 123
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mesAnnonces", ["type" => "terminee"]);
echo "\">Annonces terminées</a></li>
<li><a class=\"dropdown-item\" href=\"";
// line 124
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("achatCredit");
echo "\" style=\"color:red\">Acheter du crédit</a></li>
";
// line 126
echo " <li><a class=\"dropdown-item\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("achatFacture");
echo "\" style=\"color:red\"></i> Factures</a></li>
<hr>
";
}
// line 129
echo "
<li><a href=\"";
// line 130
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profil");
echo "\" class=\"dropdown-item\">Profil</a></li>
<li><a href=\"";
// line 131
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\" class=\"dropdown-item user-logout\">Déconnexion</a></li>
<li><a href=\"\" data-toggle=\"modal\" data-target=\"#modaldelete\" class=\"dropdown-item user-logout\">Supprimer mon compte</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
";
} else {
// line 140
echo " <div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-2 col-2 d-flex justify-content-end align-items-center\">
<a class=\"nav-link my-auto\" href=\"login.php\" data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\" style=\"font-weight:bold !important; color: black; font-size: 23px; white-space: nowrap;\">Se connecter</a>
</div>
<!-- <a data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\">Se connecter</a> -->
";
}
// line 148
echo " </div>
</div>
</div>
<!-- Modal delete account -->
<div class=\"modal fade\" id=\"modaldelete\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modaldeleteLabel\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h4 class=\"modal-title\">Supprimer mon compte !</h4>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
</div>
<div class=\"modal-body\">
<p>VOUS ALLEZ COMMENCER LE PROCESSUS DE SUPPRESSION DE VOTRE COMPTE</p>
<p>Vous êtes sur le point de nous demander de fermer de manière définitive votre compte et de supprimer vos données. Une fois votre compte fermé, tous les services auxquels vous accédez par le biais de votre compte ne seront plus disponibles.</p>
<div class=\"confirm-row d-flex\">
<input type=\"checkbox\" name=\"confirmation\" id=\"confirmation\">
<label for=\"confirmation\">OUI, JE SOUHAITE FERMER DEFINITIVEMENT MON COMPTE ET SUPPRIMER MES DONNÉES</label>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\" style=\"color:red\">Supprimer</button>
<button type=\"button\" class=\"btn btn-primary text-light\">Annuler</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class=\"modal fade\" id=\"alerte\" tabindex=\"-1\" aria-labelledby=\"alerteModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\" style=\"height: 41em;\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"alerteModalLabel\">Mes alertes</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\" style=\"margin:0;padding:10px;\">
<div class=\"row\">
<form action=\"";
// line 186
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("addAlertes");
echo "\" method=\"post\" class=\"d-flex flex-column\">
<label for=\"\" class=\"form-label\" style=\"margin:0;padding:10px;\">Créer une alerte par mots-clés :</label>
<div class=\"d-flex\">
<input type=\"text\" class=\"form-control\" name=\"texte\" style=\"height:2.5em;\" placeholder=\"Nouvelle Alerte\">
</div>
</div>
<div id=\"alerte-categorie\" style=\"margin-top:30px;\">
<div>
<div class=\"mb-3\">
<label for=\"categorie\" class=\"form-label\">Créer une alerte par catégorie :</label>
<div class=\"d-flex\">
<select class=\"form-select\" id=\"categorie\" name=\"categorie\" style=\"height:2.5em;\">
<option value=\"0\">-- Choisir catégorie --</option>
";
// line 200
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 200, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["categorie"]) {
// line 201
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["categorie"], "id", [], "any", false, false, false, 201), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["categorie"], "libelle", [], "any", false, false, false, 201), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categorie'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 203
echo " </select>
</div>
</div>
</div>
</div>
<div id=\"alerte-perimetre\" style=\"margin-top:40px;\">
<div>
<div class=\"mb-3\">
<label for=\"perimetre\" class=\"form-label\">Créer une alerte par localisation :</label>
</div>
<div class=\"mb-3\">
<label for=\"ville\" class=\"form-label\">Ville :</label>
";
// line 216
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 216, $this->source); })()), "user", [], "any", false, false, false, 216)) {
// line 217
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 217, $this->source); })()), "user", [], "any", false, false, false, 217), "villes", [], "any", false, false, false, 217)) {
// line 218
echo " <input type=\"hidden\" id=\"villeSelectModal\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 218, $this->source); })()), "user", [], "any", false, false, false, 218), "villes", [], "any", false, false, false, 218), "id", [], "any", false, false, false, 218), "html", null, true);
echo "\" data-city-name=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 218, $this->source); })()), "user", [], "any", false, false, false, 218), "villes", [], "any", false, false, false, 218), "VilleNom", [], "any", false, false, false, 218), "html", null, true);
echo "\" data-city-postal-code=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 218, $this->source); })()), "user", [], "any", false, false, false, 218), "villes", [], "any", false, false, false, 218), "VilleCodePostal", [], "any", false, false, false, 218), "html", null, true);
echo "\">
";
} else {
// line 220
echo " <input type=\"hidden\" id=\"villeSelectModal\" value=\"\">
";
}
// line 222
echo " ";
} else {
// line 223
echo " <input type=\"hidden\" id=\"villeSelectModal\" value=\"\">
";
}
// line 225
echo " <select class=\"js-data-example-ajax form-control\" id=\"villeSelectDropdown\" name=\"ville\" style=\"width:100%\"></select>
</div>
<div class=\"mb-3\">
<label for=\"rayon\" class=\"form-label\">Rayon de recherche :</label>
<input type=\"number\" name=\"rayon\" class=\"form-control\" id=\"rayon\" min=\"0\">
</div>
<div class=\"mb-3 d-flex justify-content-end\">
<button class=\"btn btn-primary\" style=\"background-color: #ADB9CA!important; border: solid 1px #d82e9f!important; margin-top:5px;\">Ajouter</button>
</div>
</form>
</div>
</div>
<h3>Votre liste d'alertes</h3>
<div class=\"alerte-table\">
<div class=\"container\">
";
// line 241
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["alertes"]) || array_key_exists("alertes", $context) ? $context["alertes"] : (function () { throw new RuntimeError('Variable "alertes" does not exist.', 241, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["alerte"]) {
// line 242
echo " <div class=\"row pb-3\">
<button type=\"button\" class=\"btn btn-primary d-flex\" style=\"background-color: #ADB9CA!important; border: solid 1px #d82e9f!important;\">
<span class=\"mr-auto\">";
// line 244
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["alerte"], "texte", [], "any", false, false, false, 244), "html", null, true);
echo "</span>
<span class=\"ml-auto delete-alert\" data-id=\"";
// line 245
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["alerte"], "id", [], "any", false, false, false, 245), "html", null, true);
echo "\" aria-hidden=\"true\">×</span>
</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['alerte'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 249
echo " </div>
</div>
</div>
</div>
</div>
<!-- Modal d'achat -->
<!-- Modal -->
";
// line 298
echo "
</header>
";
// line 300
$this->displayBlock('body', $context, $blocks);
// line 301
echo "
<!-- Modal connexion-->
<div class=\"modal fade\" id=\"connexion-modal\" tabindex=\"-1\" aria-labelledby=\"connexion-modal-Label\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\" style=\"z-index: 100;\">
<div class=\"modal-header\">
<h5 class=\"modal-title mx-auto w-100 fs-3 text-center\" id=\"connexion-modal-Label\">Connexion</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<form class=\"row g-3 needs-validation\" method=\"POST\" action=\"";
// line 311
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("custom_login");
echo "\">
<div class=\"mb-3\">
<label for=\"Email-connexion\" class=\"form-label\">Email</label>
<input type=\"email\" class=\"form-control\" id=\"Email-connexion\" name=\"email\" aria-describedby=\"emailHelp\">
</div>
<div class=\"mb-3\">
<label for=\"Password-connexion\" class=\"form-label\">Mot de passe</label>
<div class=\"input-group\">
<input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" name=\"password\" aria-describedby=\"forgot-password\">
<button class=\"btn btn-outline-secondary\" type=\"button\" id=\"togglePassword1\">
<i class=\"fas fa-eye\"></i>
</button>
</div>
<div id=\"forgot-password\" class=\"form-text\">
<a href=\"forgot-Password.php\" style=\"color: #F6249D;\">Mot de passe oublié ?</a>
</div>
</div>
<div class=\"mb-3 \">
<p>Pas encore membre ? <a class=\"login-text\" href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#exampleModal\" style=\"color : black; text-decoration: underline !important;\">S'inscrire</a></p>
</div>
<button type=\"submit\" class=\"btn btn-primary\">Connexion</button>
</form>
</div>
</div>
</div>
</div>
<!-- fin modal particulier -->
<!-- Modal -->
<div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\" style=\"z-index: 100;\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Sélectionnez votre statut</h5>
<button type=\"button\" class=\"btn-close\" data-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body d-flex justify-content-center align-items-center flex-column text-center\">
<a href=\"";
// line 349
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("inscription", ["type" => "part"]);
echo "\" class=\"btnModem\" style=\"width:60%\">INSCRIPTION PARTICULIER</a>
<a href=\"";
// line 350
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("inscription", ["type" => "pro"]);
echo "\" class=\"btnMod\" style=\"width:60%; margin-top:20px; white-space: nowrap;\">INSCRIPTION PROFESSIONNEL</a>
</div>
</div>
</div>
</div>
<!-- footer -->
<!-- footer -->
<footer class=\"footer-main\">
<div class=\"footer-top\">
<div class=\"container\">
<div class=\"row\">
<!-- <div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12\">
<div class=\"footer-widget\">
<a href=\"index.html\"><img src=\"assets/images/logo.png\" style=\"width: 100px;\" alt=\"\"></a>
<p class=\"theme-description\">Modixom vous permettra de trouver en un seul click les meilleurs promotions. </p>
<div class=\"footer-links clearfix\">
<div class=\"footer-icon-box\">
<a href=\"\" title=\"Facebook\" style=\"color: #3b5998;\">
<i class=\"fab fa-facebook-f\"></i>
</a>
</div>
<div class=\"footer-icon-box\">
<a href=\"\" title=\"Twitter\" style=\"color: #00acee;\">
<i class=\"fab fa-twitter\"></i>
</a>
</div>
<div class=\"footer-icon-box\">
<a href=\"\" title=\"Linkedin\" style=\"color: #0e76a8;\">
<i class=\"fab fa-linkedin-in\"></i>
</a>
</div>
</div>
</div>
</div> -->
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12 text-center\">
<div class=\"footer-widget\">
<h3 class=\"theme-title ";
// line 388
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 388, $this->source); })()), "session", [], "any", false, false, false, 388), "get", [0 => "type"], "method", false, false, false, 388), "part"))) {
echo "green";
} else {
echo "blue";
}
echo "\">DÉCOUVRIR MODIXOM</h3>
<div class=\"footer-menu-services\">
<ul class=\"menu-service-menu\" style=\"margin-left: -30px\">
";
// line 391
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 391, $this->source); })()), "session", [], "any", false, false, false, 391), "get", [0 => "type"], "method", false, false, false, 391), "pro"))) {
// line 392
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("professionnels", [], "#propos");
echo "\">A Propos</a></li>
";
} else {
// line 394
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_default", [], "#propos");
echo "\">A Propos</a></li>
";
}
// line 396
echo " <li><a href=\"recommander_commercant.php\">Recommander un commerçant</a></li>
<li><a href=\"browse-particulier-no-logged.php\">Annonces</a></li>
</ul>
</div>
</div>
</div>
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12\">
<div class=\"footer-widget\">
<h3 class=\"theme-title ";
// line 404
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 404, $this->source); })()), "session", [], "any", false, false, false, 404), "get", [0 => "type"], "method", false, false, false, 404), "part"))) {
echo "green";
} else {
echo "blue";
}
echo "\">MENTIONS LÉGALES</h3>
<div class=\"footer-menu-services\">
<ul class=\"menu-service-menu\" style=\"margin-left: -30px\">
<li><a href=\"";
// line 407
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_mention");
echo "\">Mentions légales</a></li>
<li><a href=\"";
// line 408
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_cookie");
echo "\">Gestion des cookies</a></li>
<li><a href=\"";
// line 409
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_protection");
echo "\">Politique de protection des données</a></li>
<!-- <li><a href=\"contact.php\">Conditions de vente</a></li>
<li><a href=\"contact.php\">RGPD</a></li> -->
</ul>
</div>
</div>
</div>
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12\">
<div class=\"footer-widget\">
<h3 class=\"theme-title ";
// line 418
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 418, $this->source); })()), "session", [], "any", false, false, false, 418), "get", [0 => "type"], "method", false, false, false, 418), "part"))) {
echo "green";
} else {
echo "blue";
}
echo "\">AIDE</h3>
<div class=\"footer-menu-services\">
<ul class=\"menu-service-menu\" style=\"margin-left: -30px\">
";
// line 422
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 422, $this->source); })()), "user", [], "any", false, false, false, 422)) {
// line 423
echo "<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact1");
echo "\" >Nous contacter</a></li>
";
} else {
// line 426
echo "<li><a data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\">Nous contacter</a></li>
";
}
// line 429
echo "
<li><a href=\"faq-particulier.php\">FAQ</a></li>
</ul>
</div>
</div>
</div>
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12 \">
<div class=\"footer-widget\">
<h3 class=\"theme-title ";
// line 439
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 439, $this->source); })()), "session", [], "any", false, false, false, 439), "get", [0 => "type"], "method", false, false, false, 439), "part"))) {
echo "green";
} else {
echo "blue";
}
echo "\">APPLICATION</h3>
<div class=\"footer-menu-services\">
<div class=\"row\"><br>
<!-- App Store button -->
<div class=\"col-md-12 col-12 pb-3\">
<a href=\"https://www.apple.com/fr/app-store/\" target=\"_blank\" class=\"market-btn apple-btn\" role=\"button\">
<span class=\"market-button-subtitle\">Télécharger sur</span>
<span class=\"market-button-title\">App Store</span>
</a>
</div>
<!-- Google Play button -->
<div class=\"col-md-12 col-12 \">
<a href=\"https://play.google.com/store/games?gl=FR&utm_source=emea_Med&utm_medium=hasem&utm_content=Oct2020&utm_campaign=Evergreen&pcampaignid=MKT-EDR-emea-fr-1001280-Med-hasem-py-Evergreen-Oct2020-Text_Search_BKWS%7CONSEM_kwid_43700008792247580&gclid=CjwKCAiAl9efBhAkEiwA4Toril0SpGeAFHdzwhXUd_zX25ptzJLjDqUqg26pTEyl6Apf3UA1SsLrhhoCuAcQAvD_BwE&gclsrc=aw.ds&pli=1\" target=\"_blank\" class=\"market-btn google-btn\" role=\"button\">
<span class=\"market-button-subtitle\">Télécharger sur</span>
<span class=\"market-button-title\">Google Play</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"footer-copyright\">
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
<div class=\"copyright-text text-right\" style=\"margin-right: 100px\">
<p><a href=\"index.php\">© 2023 Modixom</p>
</div>
</div>
</div>
</footer>
<!-- footer -->
<!-- back top top -->
<div class=\"back-top-top\" id=\"page-up\">
<a href=\"\"><i class=\"fas fa-arrow-up\"></i>Haut</a>
</div>
<!-- back top top -->
<!-- preloader -->
<!-- preloader -->
<div class=\"theme-preloader\">
<span><img src=\"";
// line 483
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.png"), "html", null, true);
echo "\" alt=\"\"></span>
</div>
<!-- preloader -->
<!-- preloader -->
<!-- javascript -->
<script src=\"";
// line 489
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 490
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/popper.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 491
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 492
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/owl.carousel.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 493
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.cookie.min.js"), "html", null, true);
echo "\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM\" crossorigin=\"anonymous\"></script>
<script src=\"";
// line 495
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/custom.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 496
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/ck-editor.js"), "html", null, true);
echo "\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js\" defer></script>
<script src=\"https://cdn.jsdelivr.net/npm/sweetalert2@11\"></script>
<script>
\$(\"#pro-button\").click(function() {
\$(\"#pro-options\").removeClass(\"d-none\");
});
</script>
<script>
\$(document).ready(function() {
\$('.js-data-example-ajax').select2({
placeholder: 'Choisir une ville ou un code postal',
language: {
inputTooShort: function() {
return \"Saisir minimum 3 caractères\";
},
searching: function() {
return \"Recherche en cours...\";
},
noResults: function() {
return \"Aucun résultat trouvé\";
}
},
minimumInputLength: 3,
ajax: {
url: '/api/villes', // Utilisez l'URL de votre nouvelle API
dataType: 'json',
delay: 250,
data: function(params) {
return {
q: params.term // search term
};
},
processResults: function(data) {
return {
results: data.results
};
},
cache: true
},
templateResult: function(city) {
if (city.loading) return city.text;
return \$('<span>' + city.text + '</span>');
},
templateSelection: function(city) {
return city.text || city.id;
}
});
// Sélectionner par défaut une ville spécifique si une valeur est définie
var defaultCityId = \$('#villesSelect').val();
var defaultCityName = \$('#villesSelect').data('city-name');
var defaultCityPostalCode = \$('#villesSelect').data('city-postal-code');
if (defaultCityId && defaultCityName) {
var defaultOption = new Option(defaultCityName + ' (' + defaultCityPostalCode + ')', defaultCityId, true, true);
\$('.js-data-example-ajax').append(defaultOption).trigger('change');
}
});
</script>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('.delete-alert').forEach(button => {
button.addEventListener('click', function () {
const alertId = this.getAttribute('data-id');
fetch(`/delete-alert/\${alertId}`, {
method: 'DELETE',
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json'
}
})
.then(response => {
if (response.ok) {
location.reload();
} else {
alert('Une erreur s\\'est produite lors de la suppression de l\\'alerte.');
}
});
});
});
});
document.getElementById('périmètre').addEventListener('input', function () {
if (this.value < 0) {
this.value = 0;
}
});
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('togglePassword1').addEventListener('click', function() {
var passwordField = document.getElementById('exampleInputPassword1');
var type = passwordField.getAttribute('type') === 'password' ? 'text' : 'password';
passwordField.setAttribute('type', type);
this.querySelector('i').classList.toggle('fa-eye-slash');
});
});
</script>
<script>
\$(document).ready(function() {
// Initialize Select2 on the dropdown
\$('#villeSelectDropdown').select2({
placeholder: 'Choisir une ville ou un code postal',
language: {
inputTooShort: function() {
return \"Saisir minimum 3 caractères\";
},
searching: function() {
return \"Recherche en cours...\";
},
noResults: function() {
return \"Aucun résultat trouvé\";
}
},
minimumInputLength: 3,
ajax: {
url: '/api/villes',
dataType: 'json',
delay: 250,
data: function(params) {
return {
q: params.term // Search term
};
},
processResults: function(data) {
return {
results: data.results
};
},
cache: true
},
templateResult: function(city) {
if (city.loading) return city.text;
return \$('<span>' + city.text + '</span>');
},
templateSelection: function(city) {
return city.text || city.id;
}
}).on('select2:open', function() {
// Focus on the search input when the dropdown opens
const searchField = document.querySelector('.select2-search__field');
searchField.focus();
// Attach a keyup event to the document to capture key presses
\$(document).on('keyup.select2', function(e) {
const key = e.key;
if (key === \"Backspace\") {
searchField.value = searchField.value.slice(0, -1);
} else if (key.length === 1 || !isNaN(key)) {
searchField.value += key;
}
searchField.dispatchEvent(new Event('input', {
bubbles: true
}));
});
// Remove the event listener when the dropdown is closed
\$('#villeSelectDropdown').on('select2:close', function() {
\$(document).off('keyup.select2');
});
});
// Select a specific city by default if a value is set
var defaultCityId = \$('#villeSelectModal').val();
var defaultCityName = \$('#villeSelectModal').data('city-name');
var defaultCityPostalCode = \$('#villeSelectModal').data('city-postal-code');
if (defaultCityId && defaultCityName) {
var defaultOption = new Option(defaultCityName + ' (' + defaultCityPostalCode + ')', defaultCityId, true, true);
\$('#villeSelectDropdown').append(defaultOption).trigger('change');
}
});
</script>
<!-- javascript -->
</body>
</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 300
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "base2.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 969 => 300, 771 => 496, 767 => 495, 762 => 493, 758 => 492, 754 => 491, 750 => 490, 746 => 489, 737 => 483, 686 => 439, 674 => 429, 669 => 426, 662 => 423, 660 => 422, 649 => 418, 637 => 409, 633 => 408, 629 => 407, 619 => 404, 609 => 396, 603 => 394, 597 => 392, 595 => 391, 585 => 388, 544 => 350, 540 => 349, 499 => 311, 487 => 301, 485 => 300, 481 => 298, 465 => 249, 455 => 245, 451 => 244, 447 => 242, 443 => 241, 425 => 225, 421 => 223, 418 => 222, 414 => 220, 404 => 218, 401 => 217, 399 => 216, 384 => 203, 373 => 201, 369 => 200, 352 => 186, 312 => 148, 302 => 140, 290 => 131, 286 => 130, 283 => 129, 276 => 126, 272 => 124, 268 => 123, 264 => 122, 258 => 119, 255 => 118, 253 => 117, 243 => 109, 241 => 108, 234 => 103, 230 => 101, 226 => 99, 220 => 97, 218 => 96, 215 => 95, 213 => 94, 210 => 93, 200 => 86, 191 => 80, 182 => 73, 180 => 72, 171 => 65, 165 => 62, 160 => 61, 157 => 60, 151 => 57, 146 => 56, 140 => 53, 135 => 52, 132 => 51, 130 => 50, 124 => 46, 118 => 44, 112 => 42, 110 => 41, 84 => 18, 80 => 17, 76 => 16, 70 => 13, 66 => 12, 62 => 11, 58 => 10, 54 => 9, 44 => 1,);
}
public function getSourceContext()
{
return new Source("
<html lang=\"en\">
<head>
<!-- Required meta tags -->
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<!-- CSS -->
<link rel=\"stylesheet\" href=\"{{asset('assets/css/style.css')}}\">
<link rel=\"stylesheet\" href=\"{{asset('assets/css/responsive.css')}}\">
<link rel=\"stylesheet\" href=\"{{asset('assets/css/user-panel.css')}}\">
<link rel=\"stylesheet\" href=\"{{asset('assets/css/user-panel-responsive.css')}}\">
<link rel=\"stylesheet\" href=\"{{asset('assets/css/bootstrap.min.css')}}\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\">
<link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" href=\"{{asset('assets/css/owl.carousel.min.css')}}\">
<link rel=\"stylesheet\" href=\"{{asset('assets/fontawesome/css/all.min.css')}}\">
<link rel=\"shortcut icon\" href=\"{{asset('assets/images/favicon.ico')}}\">
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css\">
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<!-- CSS -->
<title>Modixom</title>
</head>
<style>
#headerpart .btn-alert {
background-color: #B0DB82!important;
}
#headerpart .btn-alert i {
color: #00B065!important;
}
.select2-container--open {
z-index: 9999; /* Ajoutez un z-index élevé pour le dropdown */
}
</style>
<body>
<!-- header -->
{% if app.user %}
<header class=\"user-panel-header-area\" id=\"header{{ app.user.type }}\">
{% else %}
<header class=\"user-panel-header-area\" id=\"header{{ app.session.get('type') }}\">
{% endif %}
<div class=\"user-panel-header-bottom\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xl-2 col-lg-2 col-md-0 col-sm-0 col-0 d-lg-block d-none\">
{% if app.user %}
{% if app.user.type == 'pro' %}
<a href=\"{{ path('professionnels') }}\" data-abc=\"true\" class=\"nav-item nav-logo\">
<img id=\"change-logo\" src=\"{{ asset('assets/images/logo.png') }}\" style=\"width: 60px; margin: 0 1.3em;\" alt=\"\">
</a>
{% else %}
<a href=\"{{ path('app_default') }}\" data-abc=\"true\" class=\"nav-item nav-logo\">
<img id=\"change-logo\" src=\"{{ asset('assets/images/logo.png') }}\" style=\"width: 60px; margin: 0 1.3em;\" alt=\"\">
</a>
{% endif %}
{% else %}
<a href=\"{{ path('app_default') }}\" data-abc=\"true\" class=\"nav-item nav-logo\">
<img id=\"change-logo\" src=\"{{ asset('assets/images/logo.png') }}\" style=\"width: 60px; margin: 0 1.3em;\" alt=\"\">
</a>
{% endif %}
<span style=\"font-size: 23px\">MODIXOM</span>
</div>
<div class=\"col-xl-8 col-lg-8 col-md-10 col-sm-10 col-10\">
<div class=\"user-header-bottom-main clearfix\">
<div class=\"user-header-bottom-left\">
<nav class=\"navbar navbar-expand-lg navbar-light d-flex\">
{% if app.user %}
<!-- <section class=\"test d-flex\"> -->
<a href=\"\" data-bs-toggle=\"modal\" data-bs-target=\"#alerte\" class=\"d-flex\">
<div class=\"btn-alert\" style=\"background-color:#ADB9CA;\">
<i class=\"fas fa-bell\" style=\"color:#d82e9f\"></i>
</div>
<!-- <span class=\"modal-title d-flex align-items-center justify-content-center\" style:\"padding-top:35px;\">Alertes</span> -->
</a>
<a href=\"{{path('favoris')}}\" class=\"d-flex\">
<div class=\"btn-alert\" style=\"background-color:#ADB9CA;\">
<i class=\"fas fa-heart\" style=\"color:#d82e9f\"></i>
</div>
<!-- <span class=\"modal-title d-flex align-items-center justify-content-center\" style:\"padding-top:35px;\">Alertes</span> -->
</a>
<a href=\"{{path('annonces')}}\" class=\"d-flex\">
<div class=\"btn-alert\" style=\"background-color:#ADB9CA;\">
<i class=\"fas fa-th-large\" style=\"color: #d82e9f\"></i>
</div>
<!-- <span class=\"modal-title d-flex align-items-center justify-content-center\" style:\"padding-top:35px;\">Alertes</span> -->
</a>
{% endif %}
<!-- </section> -->
{% if app.session.get('type') == 'pro' %}
<li class=\"nav-item\">
{% if app.user %}
<a style=\"text-decoration: none; color:black; margin-left:2em;\" class=\"nav-link modal-title\" href=\"{{path('app_annonces_new')}}\"><i class=\"fas fa-regular fa-plus\"></i> Créer une annonce</a>
{% else %}
<a style=\"text-decoration: none; color:black; margin-left:2em;\" class=\"nav-link modal-title\" data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\" ><i class=\"fas fa-regular fa-plus\"></i> Créer une annonce</a>
{% endif %}
</li>
{% endif %}
</nav>
</div>
</div>
</div>
{% if app.user %}
<div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-2 col-2 d-flex justify-content-end align-items-center \">
<div class=\"user-panel-header-top-right clearfix\">
<div class=\"user-panel-profile\">
<ul class=\"navbar-nav\">
<li class=\"nav-item dropdown\">
<a href=\"#\" class=\"nav-link dropdown-toggle\" id=\"navbarDropdown\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" style=\"color:transparent;\"><span class=\"profils-icon\" id=\"dropdownIcon\" style=\"background-color: transparent;\"><i class=\"fas fa-bars\"></i></span></a>
<ul class=\"dropdown-menu\" style=\" margin-top: 25px ;\" aria-labelledby=\"navbarDropdown\">
{% if app.user.type == 'pro' %}
<li>
<a class=\"dropdown-item\" href=\"{{path('notesEnseignes')}}\"><!--<i class=\"fas fa-thumbs-up\"></i>--> Notes obtenues</a>
</li>
<hr>
<li><a class=\"dropdown-item\" href=\"{{path('mesAnnonces',{'type':'encours'})}}\">Mes annonces</a></li>
<li><a class=\"dropdown-item\" href=\"{{path('mesAnnonces',{'type':'terminee'})}}\">Annonces terminées</a></li>
<li><a class=\"dropdown-item\" href=\"{{path('achatCredit')}}\" style=\"color:red\">Acheter du crédit</a></li>
{# data-bs-toggle=\"modal\" data-bs-target=\"#achatModal\" #}
<li><a class=\"dropdown-item\" href=\"{{path('achatFacture')}}\" style=\"color:red\"></i> Factures</a></li>
<hr>
{% endif %}
<li><a href=\"{{path('profil')}}\" class=\"dropdown-item\">Profil</a></li>
<li><a href=\"{{path('app_logout')}}\" class=\"dropdown-item user-logout\">Déconnexion</a></li>
<li><a href=\"\" data-toggle=\"modal\" data-target=\"#modaldelete\" class=\"dropdown-item user-logout\">Supprimer mon compte</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
{% else %}
<div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-2 col-2 d-flex justify-content-end align-items-center\">
<a class=\"nav-link my-auto\" href=\"login.php\" data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\" style=\"font-weight:bold !important; color: black; font-size: 23px; white-space: nowrap;\">Se connecter</a>
</div>
<!-- <a data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\">Se connecter</a> -->
{% endif %}
</div>
</div>
</div>
<!-- Modal delete account -->
<div class=\"modal fade\" id=\"modaldelete\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modaldeleteLabel\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h4 class=\"modal-title\">Supprimer mon compte !</h4>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>
</div>
<div class=\"modal-body\">
<p>VOUS ALLEZ COMMENCER LE PROCESSUS DE SUPPRESSION DE VOTRE COMPTE</p>
<p>Vous êtes sur le point de nous demander de fermer de manière définitive votre compte et de supprimer vos données. Une fois votre compte fermé, tous les services auxquels vous accédez par le biais de votre compte ne seront plus disponibles.</p>
<div class=\"confirm-row d-flex\">
<input type=\"checkbox\" name=\"confirmation\" id=\"confirmation\">
<label for=\"confirmation\">OUI, JE SOUHAITE FERMER DEFINITIVEMENT MON COMPTE ET SUPPRIMER MES DONNÉES</label>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\" style=\"color:red\">Supprimer</button>
<button type=\"button\" class=\"btn btn-primary text-light\">Annuler</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class=\"modal fade\" id=\"alerte\" tabindex=\"-1\" aria-labelledby=\"alerteModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\" style=\"height: 41em;\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"alerteModalLabel\">Mes alertes</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\" style=\"margin:0;padding:10px;\">
<div class=\"row\">
<form action=\"{{ path('addAlertes') }}\" method=\"post\" class=\"d-flex flex-column\">
<label for=\"\" class=\"form-label\" style=\"margin:0;padding:10px;\">Créer une alerte par mots-clés :</label>
<div class=\"d-flex\">
<input type=\"text\" class=\"form-control\" name=\"texte\" style=\"height:2.5em;\" placeholder=\"Nouvelle Alerte\">
</div>
</div>
<div id=\"alerte-categorie\" style=\"margin-top:30px;\">
<div>
<div class=\"mb-3\">
<label for=\"categorie\" class=\"form-label\">Créer une alerte par catégorie :</label>
<div class=\"d-flex\">
<select class=\"form-select\" id=\"categorie\" name=\"categorie\" style=\"height:2.5em;\">
<option value=\"0\">-- Choisir catégorie --</option>
{% for categorie in categories %}
<option value=\"{{ categorie.id }}\">{{ categorie.libelle }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
</div>
<div id=\"alerte-perimetre\" style=\"margin-top:40px;\">
<div>
<div class=\"mb-3\">
<label for=\"perimetre\" class=\"form-label\">Créer une alerte par localisation :</label>
</div>
<div class=\"mb-3\">
<label for=\"ville\" class=\"form-label\">Ville :</label>
{% if app.user %}
{% if app.user.villes %}
<input type=\"hidden\" id=\"villeSelectModal\" value=\"{{ app.user.villes.id }}\" data-city-name=\"{{ app.user.villes.VilleNom }}\" data-city-postal-code=\"{{ app.user.villes.VilleCodePostal }}\">
{% else %}
<input type=\"hidden\" id=\"villeSelectModal\" value=\"\">
{% endif %}
{% else %}
<input type=\"hidden\" id=\"villeSelectModal\" value=\"\">
{% endif %}
<select class=\"js-data-example-ajax form-control\" id=\"villeSelectDropdown\" name=\"ville\" style=\"width:100%\"></select>
</div>
<div class=\"mb-3\">
<label for=\"rayon\" class=\"form-label\">Rayon de recherche :</label>
<input type=\"number\" name=\"rayon\" class=\"form-control\" id=\"rayon\" min=\"0\">
</div>
<div class=\"mb-3 d-flex justify-content-end\">
<button class=\"btn btn-primary\" style=\"background-color: #ADB9CA!important; border: solid 1px #d82e9f!important; margin-top:5px;\">Ajouter</button>
</div>
</form>
</div>
</div>
<h3>Votre liste d'alertes</h3>
<div class=\"alerte-table\">
<div class=\"container\">
{% for alerte in alertes %}
<div class=\"row pb-3\">
<button type=\"button\" class=\"btn btn-primary d-flex\" style=\"background-color: #ADB9CA!important; border: solid 1px #d82e9f!important;\">
<span class=\"mr-auto\">{{ alerte.texte }}</span>
<span class=\"ml-auto delete-alert\" data-id=\"{{ alerte.id }}\" aria-hidden=\"true\">×</span>
</button>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
<!-- Modal d'achat -->
<!-- Modal -->
{# <div class=\"modal fade\" id=\"achatModal\" tabindex=\"-1\" aria-labelledby=\"achatModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"achatModalLabel\">Acheter du crédit</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<div role=\"tabpanel\" class=\"tab-pane fade in active\">
<div class=\"theme-box-center\">
<div class=\"row\">
<div class=\"col-xl-10 col-lg-10 col-md-10 col-sm-10 col-12\">
<div class=\"theme-input-box\">
<label>Combien de crédit souhaitez-vous ? </label>
<input class=\"theme-input\" type=\"number\" name=\"\" placeholder=\"10\">
</div>
</div>
<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12\">
<div class=\"fix-price-value\">
<h3 class=\"theme-title\" style=\"color: #F6249D;\">Nombre de crédit restant : 12</h3>
<p class=\"theme-description\">1 crédit = 1 euro </p>
<p class=\"theme-description\">Minimum 10 crédits.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Fermer</button>
<button type=\"button\" class=\"btn theme-btn-pro\">Acheter</button>
</div>
</div>
</div>
</div> #}
</header>
{% block body %}{% endblock %}
<!-- Modal connexion-->
<div class=\"modal fade\" id=\"connexion-modal\" tabindex=\"-1\" aria-labelledby=\"connexion-modal-Label\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\" style=\"z-index: 100;\">
<div class=\"modal-header\">
<h5 class=\"modal-title mx-auto w-100 fs-3 text-center\" id=\"connexion-modal-Label\">Connexion</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<form class=\"row g-3 needs-validation\" method=\"POST\" action=\"{{ path('custom_login') }}\">
<div class=\"mb-3\">
<label for=\"Email-connexion\" class=\"form-label\">Email</label>
<input type=\"email\" class=\"form-control\" id=\"Email-connexion\" name=\"email\" aria-describedby=\"emailHelp\">
</div>
<div class=\"mb-3\">
<label for=\"Password-connexion\" class=\"form-label\">Mot de passe</label>
<div class=\"input-group\">
<input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" name=\"password\" aria-describedby=\"forgot-password\">
<button class=\"btn btn-outline-secondary\" type=\"button\" id=\"togglePassword1\">
<i class=\"fas fa-eye\"></i>
</button>
</div>
<div id=\"forgot-password\" class=\"form-text\">
<a href=\"forgot-Password.php\" style=\"color: #F6249D;\">Mot de passe oublié ?</a>
</div>
</div>
<div class=\"mb-3 \">
<p>Pas encore membre ? <a class=\"login-text\" href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#exampleModal\" style=\"color : black; text-decoration: underline !important;\">S'inscrire</a></p>
</div>
<button type=\"submit\" class=\"btn btn-primary\">Connexion</button>
</form>
</div>
</div>
</div>
</div>
<!-- fin modal particulier -->
<!-- Modal -->
<div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\" style=\"z-index: 100;\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Sélectionnez votre statut</h5>
<button type=\"button\" class=\"btn-close\" data-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body d-flex justify-content-center align-items-center flex-column text-center\">
<a href=\"{{path('inscription',{'type':'part'})}}\" class=\"btnModem\" style=\"width:60%\">INSCRIPTION PARTICULIER</a>
<a href=\"{{path('inscription',{'type':'pro'})}}\" class=\"btnMod\" style=\"width:60%; margin-top:20px; white-space: nowrap;\">INSCRIPTION PROFESSIONNEL</a>
</div>
</div>
</div>
</div>
<!-- footer -->
<!-- footer -->
<footer class=\"footer-main\">
<div class=\"footer-top\">
<div class=\"container\">
<div class=\"row\">
<!-- <div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12\">
<div class=\"footer-widget\">
<a href=\"index.html\"><img src=\"assets/images/logo.png\" style=\"width: 100px;\" alt=\"\"></a>
<p class=\"theme-description\">Modixom vous permettra de trouver en un seul click les meilleurs promotions. </p>
<div class=\"footer-links clearfix\">
<div class=\"footer-icon-box\">
<a href=\"\" title=\"Facebook\" style=\"color: #3b5998;\">
<i class=\"fab fa-facebook-f\"></i>
</a>
</div>
<div class=\"footer-icon-box\">
<a href=\"\" title=\"Twitter\" style=\"color: #00acee;\">
<i class=\"fab fa-twitter\"></i>
</a>
</div>
<div class=\"footer-icon-box\">
<a href=\"\" title=\"Linkedin\" style=\"color: #0e76a8;\">
<i class=\"fab fa-linkedin-in\"></i>
</a>
</div>
</div>
</div>
</div> -->
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12 text-center\">
<div class=\"footer-widget\">
<h3 class=\"theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}\">DÉCOUVRIR MODIXOM</h3>
<div class=\"footer-menu-services\">
<ul class=\"menu-service-menu\" style=\"margin-left: -30px\">
{% if app.session.get('type') == 'pro' %}
<li><a href=\"{{ path('professionnels', {}, '#propos') }}\">A Propos</a></li>
{% else %}
<li><a href=\"{{ path('app_default', {}, '#propos') }}\">A Propos</a></li>
{% endif %}
<li><a href=\"recommander_commercant.php\">Recommander un commerçant</a></li>
<li><a href=\"browse-particulier-no-logged.php\">Annonces</a></li>
</ul>
</div>
</div>
</div>
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12\">
<div class=\"footer-widget\">
<h3 class=\"theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}\">MENTIONS LÉGALES</h3>
<div class=\"footer-menu-services\">
<ul class=\"menu-service-menu\" style=\"margin-left: -30px\">
<li><a href=\"{{path('app_mention')}}\">Mentions légales</a></li>
<li><a href=\"{{path('app_cookie')}}\">Gestion des cookies</a></li>
<li><a href=\"{{path('app_protection')}}\">Politique de protection des données</a></li>
<!-- <li><a href=\"contact.php\">Conditions de vente</a></li>
<li><a href=\"contact.php\">RGPD</a></li> -->
</ul>
</div>
</div>
</div>
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12\">
<div class=\"footer-widget\">
<h3 class=\"theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}\">AIDE</h3>
<div class=\"footer-menu-services\">
<ul class=\"menu-service-menu\" style=\"margin-left: -30px\">
{% if app.user %}
<li><a href=\"{{path('contact1')}}\" >Nous contacter</a></li>
{% else %}
<li><a data-bs-toggle=\"modal\" data-bs-target=\"#connexion-modal\">Nous contacter</a></li>
{% endif %}
<li><a href=\"faq-particulier.php\">FAQ</a></li>
</ul>
</div>
</div>
</div>
<div class=\"col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12 \">
<div class=\"footer-widget\">
<h3 class=\"theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}\">APPLICATION</h3>
<div class=\"footer-menu-services\">
<div class=\"row\"><br>
<!-- App Store button -->
<div class=\"col-md-12 col-12 pb-3\">
<a href=\"https://www.apple.com/fr/app-store/\" target=\"_blank\" class=\"market-btn apple-btn\" role=\"button\">
<span class=\"market-button-subtitle\">Télécharger sur</span>
<span class=\"market-button-title\">App Store</span>
</a>
</div>
<!-- Google Play button -->
<div class=\"col-md-12 col-12 \">
<a href=\"https://play.google.com/store/games?gl=FR&utm_source=emea_Med&utm_medium=hasem&utm_content=Oct2020&utm_campaign=Evergreen&pcampaignid=MKT-EDR-emea-fr-1001280-Med-hasem-py-Evergreen-Oct2020-Text_Search_BKWS%7CONSEM_kwid_43700008792247580&gclid=CjwKCAiAl9efBhAkEiwA4Toril0SpGeAFHdzwhXUd_zX25ptzJLjDqUqg26pTEyl6Apf3UA1SsLrhhoCuAcQAvD_BwE&gclsrc=aw.ds&pli=1\" target=\"_blank\" class=\"market-btn google-btn\" role=\"button\">
<span class=\"market-button-subtitle\">Télécharger sur</span>
<span class=\"market-button-title\">Google Play</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"footer-copyright\">
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
<div class=\"copyright-text text-right\" style=\"margin-right: 100px\">
<p><a href=\"index.php\">© 2023 Modixom</p>
</div>
</div>
</div>
</footer>
<!-- footer -->
<!-- back top top -->
<div class=\"back-top-top\" id=\"page-up\">
<a href=\"\"><i class=\"fas fa-arrow-up\"></i>Haut</a>
</div>
<!-- back top top -->
<!-- preloader -->
<!-- preloader -->
<div class=\"theme-preloader\">
<span><img src=\"{{asset('assets/images/logo.png')}}\" alt=\"\"></span>
</div>
<!-- preloader -->
<!-- preloader -->
<!-- javascript -->
<script src=\"{{asset('assets/js/jquery.min.js')}}\"></script>
<script src=\"{{asset('assets/js/popper.min.js')}}\"></script>
<script src=\"{{asset('assets/js/bootstrap.min.js')}}\"></script>
<script src=\"{{asset('assets/js/owl.carousel.min.js')}}\"></script>
<script type=\"text/javascript\" src=\"{{asset('assets/js/jquery.cookie.min.js')}}\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM\" crossorigin=\"anonymous\"></script>
<script src=\"{{asset('assets/js/custom.js')}}\"></script>
<script src=\"{{asset('assets/js/ck-editor.js')}}\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js\" defer></script>
<script src=\"https://cdn.jsdelivr.net/npm/sweetalert2@11\"></script>
<script>
\$(\"#pro-button\").click(function() {
\$(\"#pro-options\").removeClass(\"d-none\");
});
</script>
<script>
\$(document).ready(function() {
\$('.js-data-example-ajax').select2({
placeholder: 'Choisir une ville ou un code postal',
language: {
inputTooShort: function() {
return \"Saisir minimum 3 caractères\";
},
searching: function() {
return \"Recherche en cours...\";
},
noResults: function() {
return \"Aucun résultat trouvé\";
}
},
minimumInputLength: 3,
ajax: {
url: '/api/villes', // Utilisez l'URL de votre nouvelle API
dataType: 'json',
delay: 250,
data: function(params) {
return {
q: params.term // search term
};
},
processResults: function(data) {
return {
results: data.results
};
},
cache: true
},
templateResult: function(city) {
if (city.loading) return city.text;
return \$('<span>' + city.text + '</span>');
},
templateSelection: function(city) {
return city.text || city.id;
}
});
// Sélectionner par défaut une ville spécifique si une valeur est définie
var defaultCityId = \$('#villesSelect').val();
var defaultCityName = \$('#villesSelect').data('city-name');
var defaultCityPostalCode = \$('#villesSelect').data('city-postal-code');
if (defaultCityId && defaultCityName) {
var defaultOption = new Option(defaultCityName + ' (' + defaultCityPostalCode + ')', defaultCityId, true, true);
\$('.js-data-example-ajax').append(defaultOption).trigger('change');
}
});
</script>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('.delete-alert').forEach(button => {
button.addEventListener('click', function () {
const alertId = this.getAttribute('data-id');
fetch(`/delete-alert/\${alertId}`, {
method: 'DELETE',
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json'
}
})
.then(response => {
if (response.ok) {
location.reload();
} else {
alert('Une erreur s\\'est produite lors de la suppression de l\\'alerte.');
}
});
});
});
});
document.getElementById('périmètre').addEventListener('input', function () {
if (this.value < 0) {
this.value = 0;
}
});
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('togglePassword1').addEventListener('click', function() {
var passwordField = document.getElementById('exampleInputPassword1');
var type = passwordField.getAttribute('type') === 'password' ? 'text' : 'password';
passwordField.setAttribute('type', type);
this.querySelector('i').classList.toggle('fa-eye-slash');
});
});
</script>
<script>
\$(document).ready(function() {
// Initialize Select2 on the dropdown
\$('#villeSelectDropdown').select2({
placeholder: 'Choisir une ville ou un code postal',
language: {
inputTooShort: function() {
return \"Saisir minimum 3 caractères\";
},
searching: function() {
return \"Recherche en cours...\";
},
noResults: function() {
return \"Aucun résultat trouvé\";
}
},
minimumInputLength: 3,
ajax: {
url: '/api/villes',
dataType: 'json',
delay: 250,
data: function(params) {
return {
q: params.term // Search term
};
},
processResults: function(data) {
return {
results: data.results
};
},
cache: true
},
templateResult: function(city) {
if (city.loading) return city.text;
return \$('<span>' + city.text + '</span>');
},
templateSelection: function(city) {
return city.text || city.id;
}
}).on('select2:open', function() {
// Focus on the search input when the dropdown opens
const searchField = document.querySelector('.select2-search__field');
searchField.focus();
// Attach a keyup event to the document to capture key presses
\$(document).on('keyup.select2', function(e) {
const key = e.key;
if (key === \"Backspace\") {
searchField.value = searchField.value.slice(0, -1);
} else if (key.length === 1 || !isNaN(key)) {
searchField.value += key;
}
searchField.dispatchEvent(new Event('input', {
bubbles: true
}));
});
// Remove the event listener when the dropdown is closed
\$('#villeSelectDropdown').on('select2:close', function() {
\$(document).off('keyup.select2');
});
});
// Select a specific city by default if a value is set
var defaultCityId = \$('#villeSelectModal').val();
var defaultCityName = \$('#villeSelectModal').data('city-name');
var defaultCityPostalCode = \$('#villeSelectModal').data('city-postal-code');
if (defaultCityId && defaultCityName) {
var defaultOption = new Option(defaultCityName + ' (' + defaultCityPostalCode + ')', defaultCityId, true, true);
\$('#villeSelectDropdown').append(defaultOption).trigger('change');
}
});
</script>
<!-- javascript -->
</body>
</html>", "base2.html.twig", "/var/www/vhosts/modixom.fr/httpdocs/templates/base2.html.twig");
}
}