templates/base2.html.twig line 300

Open in your IDE?
  1. <html lang="en">
  2. <head>
  3.    <!-- Required meta tags -->
  4.    <meta charset="utf-8">
  5.    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.    <!-- CSS -->
  7.    <link rel="stylesheet" href="{{asset('assets/css/style.css')}}">
  8.    <link rel="stylesheet" href="{{asset('assets/css/responsive.css')}}">
  9.    <link rel="stylesheet" href="{{asset('assets/css/user-panel.css')}}">
  10.    <link rel="stylesheet" href="{{asset('assets/css/user-panel-responsive.css')}}">
  11.    <link rel="stylesheet" href="{{asset('assets/css/bootstrap.min.css')}}">
  12.    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
  13.    <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
  14.    <link rel="stylesheet" href="{{asset('assets/css/owl.carousel.min.css')}}">
  15.    <link rel="stylesheet" href="{{asset('assets/fontawesome/css/all.min.css')}}">
  16.    <link rel="shortcut icon" href="{{asset('assets/images/favicon.ico')}}">
  17.    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
  18.    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
  19.    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  20.    <!-- CSS -->
  21.    <title>Modixom</title>
  22. </head>
  23. <style>
  24.    #headerpart .btn-alert {
  25.       background-color: #B0DB82!important;
  26.    }
  27.    #headerpart .btn-alert i {
  28.       color: #00B065!important;
  29.    }
  30.    .select2-container--open {
  31.         z-index: 9999; /* Ajoutez un z-index élevé pour le dropdown */
  32.     }
  33. </style>
  34. <body>
  35.    <!-- header -->
  36.     {% if app.user %}
  37. <header class="user-panel-header-area" id="header{{ app.user.type }}">
  38.     {% else %}
  39.    <header class="user-panel-header-area" id="header{{ app.session.get('type') }}">
  40.    {% endif %}
  41.       <div class="user-panel-header-bottom">
  42.          <div class="container">
  43.             <div class="row">
  44.                <div class="col-xl-2 col-lg-2 col-md-0 col-sm-0 col-0  d-lg-block d-none">
  45.                   {% if app.user %}
  46.                      {% if app.user.type == 'pro' %}
  47.                            <a href="{{ path('professionnels') }}" data-abc="true" class="nav-item nav-logo">
  48.                               <img id="change-logo" src="{{ asset('assets/images/logo.png') }}" style="width: 60px; margin: 0 1.3em;" alt="">
  49.                            </a>
  50.                      {% else %}
  51.                            <a href="{{ path('app_default') }}" data-abc="true" class="nav-item nav-logo">
  52.                               <img id="change-logo" src="{{ asset('assets/images/logo.png') }}" style="width: 60px; margin: 0 1.3em;" alt="">
  53.                            </a>
  54.                      {% endif %}
  55.                   {% else %}
  56.                      <a href="{{ path('app_default') }}" data-abc="true" class="nav-item nav-logo">
  57.                            <img id="change-logo" src="{{ asset('assets/images/logo.png') }}" style="width: 60px; margin: 0 1.3em;" alt="">
  58.                      </a>
  59.                   {% endif %}
  60.                   <span style="font-size: 23px">MODIXOM</span>
  61.                </div>
  62.                <div class="col-xl-8 col-lg-8 col-md-10 col-sm-10 col-10">
  63.                   <div class="user-header-bottom-main clearfix">
  64.                      <div class="user-header-bottom-left">
  65.                      
  66.                         <nav class="navbar navbar-expand-lg navbar-light d-flex">
  67.                         {% if app.user %}
  68.                            <!-- <section class="test d-flex"> -->
  69.                            <a href="" data-bs-toggle="modal" data-bs-target="#alerte" class="d-flex">
  70.                               <div class="btn-alert" style="background-color:#ADB9CA;">
  71.                                  <i class="fas fa-bell" style="color:#d82e9f"></i>
  72.                               </div>
  73.                               <!-- <span class="modal-title d-flex align-items-center justify-content-center" style:"padding-top:35px;">Alertes</span> -->
  74.                            </a>
  75.                            <a href="{{path('favoris')}}" class="d-flex">
  76.                               <div class="btn-alert" style="background-color:#ADB9CA;">
  77.                                  <i class="fas fa-heart" style="color:#d82e9f"></i>
  78.                               </div>
  79.                               <!-- <span class="modal-title d-flex align-items-center justify-content-center" style:"padding-top:35px;">Alertes</span> -->
  80.                            </a>
  81.                            <a href="{{path('annonces')}}" class="d-flex">
  82.                               <div class="btn-alert" style="background-color:#ADB9CA;">
  83.                                  <i class="fas fa-th-large" style="color: #d82e9f"></i>
  84.                               </div>
  85.                               <!-- <span class="modal-title d-flex align-items-center justify-content-center" style:"padding-top:35px;">Alertes</span> -->
  86.                            </a>
  87.                            {% endif %}
  88.                            <!-- </section> -->
  89.                            {% if app.session.get('type') == 'pro' %}
  90.                            <li class="nav-item">
  91.                            {% if app.user %}
  92.                               <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>
  93.                               {% else %}
  94.                               <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>
  95.                               {% endif %}
  96.                            </li>
  97.                            {% endif %}
  98.                         </nav>
  99.                      </div>
  100.                   </div>
  101.                </div>
  102.                {% if app.user %}
  103.                <div class="col-xl-2 col-lg-2 col-md-2 col-sm-2 col-2 d-flex justify-content-end align-items-center ">
  104.                   <div class="user-panel-header-top-right clearfix">
  105.                      <div class="user-panel-profile">
  106.                         <ul class="navbar-nav">
  107.                            <li class="nav-item dropdown">
  108.                               <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>
  109.                               <ul class="dropdown-menu" style=" margin-top: 25px ;" aria-labelledby="navbarDropdown">
  110.                                
  111.                                {% if app.user.type == 'pro' %}
  112.                                  <li>
  113.                                     <a class="dropdown-item" href="{{path('notesEnseignes')}}"><!--<i class="fas fa-thumbs-up"></i>--> Notes obtenues</a>
  114.                                  </li>
  115.                                  <hr>
  116.                                  <li><a class="dropdown-item" href="{{path('mesAnnonces',{'type':'encours'})}}">Mes annonces</a></li>
  117.                                  <li><a class="dropdown-item" href="{{path('mesAnnonces',{'type':'terminee'})}}">Annonces terminées</a></li>
  118.                                  <li><a class="dropdown-item" href="{{path('achatCredit')}}"  style="color:red">Acheter du crédit</a></li>
  119.                                  {# data-bs-toggle="modal" data-bs-target="#achatModal" #}
  120.                                  <li><a class="dropdown-item" href="{{path('achatFacture')}}"  style="color:red"></i> Factures</a></li>
  121.                                  <hr>
  122.                                  {% endif %}
  123.                                  <li><a href="{{path('profil')}}" class="dropdown-item">Profil</a></li> 
  124.                                  <li><a href="{{path('app_logout')}}" class="dropdown-item user-logout">Déconnexion</a></li>
  125.                                  <li><a href="" data-toggle="modal" data-target="#modaldelete" class="dropdown-item user-logout">Supprimer mon compte</a></li>
  126.                               </ul>
  127.                            </li>
  128.                         </ul>
  129.                      </div>
  130.                   </div>
  131.                </div>
  132.                {% else %}
  133.                <div class="col-xl-2 col-lg-2 col-md-2 col-sm-2 col-2 d-flex justify-content-end align-items-center">
  134.                   <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>
  135.                </div>
  136.                
  137.       <!-- <a data-bs-toggle="modal" data-bs-target="#connexion-modal">Se connecter</a> -->
  138.                {% endif %}
  139.             </div>
  140.          </div>
  141.       </div>
  142.    
  143.    <!-- Modal delete account -->
  144.    <div class="modal fade" id="modaldelete" tabindex="-1" role="dialog" aria-labelledby="modaldeleteLabel">
  145.       <div class="modal-dialog" role="document">
  146.          <div class="modal-content">
  147.             <div class="modal-header">
  148.                <h4 class="modal-title">Supprimer mon compte !</h4>
  149.                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  150.             </div>
  151.             <div class="modal-body">
  152.                <p>VOUS ALLEZ COMMENCER LE PROCESSUS DE SUPPRESSION DE VOTRE COMPTE</p>
  153.                <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>
  154.                <div class="confirm-row d-flex">
  155.                   <input type="checkbox" name="confirmation" id="confirmation">
  156.                   <label for="confirmation">OUI, JE SOUHAITE FERMER DEFINITIVEMENT MON COMPTE ET SUPPRIMER MES DONNÉES</label>
  157.                </div>
  158.             </div>
  159.             <div class="modal-footer">
  160.                <button type="button" class="btn btn-default" data-dismiss="modal" style="color:red">Supprimer</button>
  161.                <button type="button" class="btn btn-primary text-light">Annuler</button>
  162.             </div>
  163.          </div>
  164.       </div>
  165.    </div>
  166. <!-- Modal -->
  167. <div class="modal fade" id="alerte" tabindex="-1" aria-labelledby="alerteModalLabel" aria-hidden="true">
  168.     <div class="modal-dialog">
  169.         <div class="modal-content" style="height: 41em;">
  170.             <div class="modal-header">
  171.                 <h5 class="modal-title" id="alerteModalLabel">Mes alertes</h5>
  172.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  173.             </div>
  174.             <div class="modal-body" style="margin:0;padding:10px;">
  175.                 <div class="row">
  176.                     <form action="{{ path('addAlertes') }}" method="post" class="d-flex flex-column">
  177.                         <label for="" class="form-label" style="margin:0;padding:10px;">Créer une alerte par mots-clés :</label>
  178.                         <div class="d-flex">
  179.                             <input type="text" class="form-control" name="texte" style="height:2.5em;" placeholder="Nouvelle Alerte">
  180.                         </div>
  181.                 </div>
  182.                 <div id="alerte-categorie" style="margin-top:30px;">
  183.                     <div>
  184.                         <div class="mb-3">
  185.                             <label for="categorie" class="form-label">Créer une alerte par catégorie :</label>
  186.                             <div class="d-flex">
  187.                                 <select class="form-select" id="categorie" name="categorie" style="height:2.5em;">
  188.                                     <option value="0">-- Choisir catégorie --</option>
  189.                                     {% for categorie in categories %}
  190.                                         <option value="{{ categorie.id }}">{{ categorie.libelle }}</option>
  191.                                     {% endfor %}
  192.                                 </select>
  193.                             </div>
  194.                         </div>
  195.                     </div>
  196.                 </div>
  197.                 <div id="alerte-perimetre" style="margin-top:40px;">
  198.                     <div>
  199.                         <div class="mb-3">
  200.                             <label for="perimetre" class="form-label">Créer une alerte par localisation :</label>
  201.                         </div>
  202.                         <div class="mb-3">
  203.                             <label for="ville" class="form-label">Ville :</label>
  204.                             {% if app.user %}
  205.                                 {% if app.user.villes %}
  206.                                     <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 }}">
  207.                                 {% else %}
  208.                                     <input type="hidden" id="villeSelectModal" value="">
  209.                                 {% endif %}
  210.                             {% else %}
  211.                                 <input type="hidden" id="villeSelectModal" value="">
  212.                             {% endif %}
  213.                             <select class="js-data-example-ajax form-control" id="villeSelectDropdown" name="ville" style="width:100%"></select>
  214.                         </div>
  215.                         <div class="mb-3">
  216.                             <label for="rayon" class="form-label">Rayon de recherche :</label>
  217.                             <input type="number" name="rayon" class="form-control" id="rayon" min="0">
  218.                         </div>
  219.                         <div class="mb-3 d-flex justify-content-end">
  220.                             <button class="btn btn-primary" style="background-color: #ADB9CA!important; border: solid 1px #d82e9f!important; margin-top:5px;">Ajouter</button>
  221.                         </div>
  222.                     </form>
  223.                 </div>
  224.             </div>
  225.             <h3>Votre liste d'alertes</h3>
  226.             <div class="alerte-table">
  227.                 <div class="container">
  228.                     {% for alerte in alertes %}
  229.                         <div class="row pb-3">
  230.                             <button type="button" class="btn btn-primary d-flex" style="background-color: #ADB9CA!important; border: solid 1px #d82e9f!important;">
  231.                                 <span class="mr-auto">{{ alerte.texte }}</span>
  232.                                 <span class="ml-auto delete-alert" data-id="{{ alerte.id }}" aria-hidden="true">&times;</span>
  233.                             </button>
  234.                         </div>
  235.                     {% endfor %}
  236.                 </div>
  237.             </div>
  238.         </div>
  239.     </div>
  240. </div>
  241.    <!-- Modal d'achat  -->
  242.    <!-- Modal -->
  243.    {# <div class="modal fade" id="achatModal" tabindex="-1" aria-labelledby="achatModalLabel" aria-hidden="true">
  244.       <div class="modal-dialog">
  245.          <div class="modal-content">
  246.             <div class="modal-header">
  247.                <h5 class="modal-title" id="achatModalLabel">Acheter du crédit</h5>
  248.                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  249.             </div>
  250.             <div class="modal-body">
  251.                <div role="tabpanel" class="tab-pane fade in active">
  252.                   <div class="theme-box-center">
  253.                      <div class="row">
  254.                         <div class="col-xl-10 col-lg-10 col-md-10 col-sm-10 col-12">
  255.                            <div class="theme-input-box">
  256.                               <label>Combien de crédit souhaitez-vous ? </label>
  257.                               <input class="theme-input" type="number" name="" placeholder="10">
  258.                            </div>
  259.                         </div>
  260.                         <div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
  261.                            <div class="fix-price-value">
  262.                               <h3 class="theme-title" style="color: #F6249D;">Nombre de crédit restant : 12</h3>
  263.                               <p class="theme-description">1 crédit = 1 euro </p>
  264.                               <p class="theme-description">Minimum 10 crédits.</p>
  265.                            </div>
  266.                         </div>
  267.                      </div>
  268.                   </div>
  269.                </div>
  270.             </div>
  271.             <div class="modal-footer">
  272.                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
  273.                <button type="button" class="btn theme-btn-pro">Acheter</button>
  274.             </div>
  275.          </div>
  276.       </div>
  277.    </div> #}
  278.    </header>
  279. {% block body %}{% endblock %}
  280.  <!-- Modal connexion-->
  281.                         <div class="modal fade" id="connexion-modal" tabindex="-1" aria-labelledby="connexion-modal-Label" aria-hidden="true">
  282.                            <div class="modal-dialog">
  283.                               <div class="modal-content" style="z-index: 100;">
  284.                                  <div class="modal-header">
  285.                                     <h5 class="modal-title mx-auto w-100 fs-3 text-center" id="connexion-modal-Label">Connexion</h5>
  286.                                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  287.                                  </div>
  288.                                  <div class="modal-body">
  289.                                     <form class="row g-3 needs-validation" method="POST" action="{{ path('custom_login') }}">
  290.                                        <div class="mb-3">
  291.                                           <label for="Email-connexion" class="form-label">Email</label>
  292.                                           <input type="email" class="form-control" id="Email-connexion" name="email" aria-describedby="emailHelp">
  293.                                          
  294.                                        </div>
  295.                                        <div class="mb-3">
  296.                                              <label for="Password-connexion" class="form-label">Mot de passe</label>
  297.                                              <div class="input-group">
  298.                                                 <input type="password" class="form-control" id="exampleInputPassword1" name="password" aria-describedby="forgot-password">
  299.                                                 <button class="btn btn-outline-secondary" type="button" id="togglePassword1">
  300.                                                    <i class="fas fa-eye"></i>
  301.                                                 </button>
  302.                                              </div>
  303.                                              <div id="forgot-password" class="form-text">
  304.                                                 <a href="forgot-Password.php" style="color: #F6249D;">Mot de passe oublié ?</a>
  305.                                              </div>
  306.                                        </div>
  307.                                        <div class="mb-3 ">
  308.                                           <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>
  309.                                        </div>
  310.                                        
  311.                                        <button type="submit" class="btn btn-primary">Connexion</button>
  312.                                     </form>
  313.                                  </div>
  314.                               </div>
  315.                            </div>
  316.                         </div>
  317.                         <!-- fin modal particulier -->
  318.                           <!-- Modal -->
  319. <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  320.     <div class="modal-dialog">
  321.         <div class="modal-content" style="z-index: 100;">
  322.             <div class="modal-header">
  323.                 <h5 class="modal-title" id="exampleModalLabel">Sélectionnez votre statut</h5>
  324.                 <button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
  325.             </div>
  326.             <div class="modal-body d-flex justify-content-center align-items-center flex-column text-center">
  327.                 <a href="{{path('inscription',{'type':'part'})}}" class="btnModem" style="width:60%">INSCRIPTION PARTICULIER</a>
  328.                 <a href="{{path('inscription',{'type':'pro'})}}" class="btnMod" style="width:60%; margin-top:20px; white-space: nowrap;">INSCRIPTION PROFESSIONNEL</a>
  329.             </div>
  330.         </div>
  331.     </div>
  332. </div>
  333. <!-- footer -->
  334. <!-- footer -->
  335. <footer class="footer-main">
  336.     <div class="footer-top">
  337.         <div class="container">
  338.             <div class="row">
  339.                 <!-- <div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12">
  340.                <div class="footer-widget">
  341.                   <a href="index.html"><img src="assets/images/logo.png" style="width: 100px;" alt=""></a>
  342.                   <p class="theme-description">Modixom vous permettra de trouver en un seul click les meilleurs promotions. </p>
  343.                   <div class="footer-links clearfix">
  344.                      <div class="footer-icon-box">
  345.                         <a href="" title="Facebook" style="color: #3b5998;">
  346.                            <i class="fab fa-facebook-f"></i>
  347.                         </a>
  348.                      </div>
  349.                      <div class="footer-icon-box">
  350.                         <a href="" title="Twitter" style="color: #00acee;">
  351.                            <i class="fab fa-twitter"></i>
  352.                         </a>
  353.                      </div>
  354.                      <div class="footer-icon-box">
  355.                         <a href="" title="Linkedin" style="color: #0e76a8;">
  356.                            <i class="fab fa-linkedin-in"></i>
  357.                         </a>
  358.                      </div>
  359.                   </div>
  360.                </div>
  361.             </div> -->
  362.                 <div class="col-xl-3 col-lg-3  col-md-6 col-sm-6 col-12 text-center">
  363.                     <div class="footer-widget">
  364.                         <h3 class="theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}">DÉCOUVRIR MODIXOM</h3>
  365.                         <div class="footer-menu-services">
  366.                             <ul class="menu-service-menu" style="margin-left: -30px">
  367.                                 {% if app.session.get('type') == 'pro' %}
  368.                                     <li><a href="{{ path('professionnels', {}, '#propos') }}">A Propos</a></li>
  369.                                 {% else %}
  370.                                     <li><a href="{{ path('app_default', {}, '#propos') }}">A Propos</a></li>
  371.                                 {% endif %}
  372.                                 <li><a href="recommander_commercant.php">Recommander un commerçant</a></li>
  373.                                 <li><a href="browse-particulier-no-logged.php">Annonces</a></li>
  374.                             </ul>
  375.                         </div>
  376.                     </div>
  377.                 </div>
  378.                 <div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12">
  379.                     <div class="footer-widget">
  380.                         <h3 class="theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}">MENTIONS LÉGALES</h3>
  381.                         <div class="footer-menu-services">
  382.                             <ul class="menu-service-menu" style="margin-left: -30px">
  383.                                 <li><a href="{{path('app_mention')}}">Mentions légales</a></li>
  384.                                 <li><a href="{{path('app_cookie')}}">Gestion des cookies</a></li>
  385.                                 <li><a href="{{path('app_protection')}}">Politique de protection des données</a></li>
  386.                                 <!-- <li><a href="contact.php">Conditions de vente</a></li>
  387.                         <li><a href="contact.php">RGPD</a></li> -->
  388.                             </ul>
  389.                         </div>
  390.                     </div>
  391.                 </div>
  392.                 <div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12">
  393.                     <div class="footer-widget">
  394.                         <h3 class="theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}">AIDE</h3>
  395.                         <div class="footer-menu-services">
  396.                             <ul class="menu-service-menu" style="margin-left: -30px">
  397.                             {% if app.user %}
  398. <li><a href="{{path('contact1')}}" >Nous contacter</a></li>
  399.                             {% else %}
  400. <li><a  data-bs-toggle="modal" data-bs-target="#connexion-modal">Nous contacter</a></li>
  401.                             {% endif %}
  402.                                 
  403.                                 <li><a href="faq-particulier.php">FAQ</a></li>
  404.                             </ul>
  405.                         </div>
  406.                     </div>
  407.                 </div>
  408.                 <div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12 ">
  409.                     <div class="footer-widget">
  410.                         <h3 class="theme-title {% if app.session.get('type') == 'part' %}green{% else %}blue{% endif %}">APPLICATION</h3>
  411.                         <div class="footer-menu-services">
  412.                             <div class="row"><br>
  413.                                 <!-- App Store button -->
  414.                                 <div class="col-md-12 col-12  pb-3">
  415.                                     <a href="https://www.apple.com/fr/app-store/" target="_blank" class="market-btn apple-btn" role="button">
  416.                                         <span class="market-button-subtitle">Télécharger sur</span>
  417.                                         <span class="market-button-title">App Store</span>
  418.                                     </a>
  419.                                 </div>
  420.                                 <!-- Google Play button -->
  421.                                 <div class="col-md-12 col-12 ">
  422.                                     <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">
  423.                                         <span class="market-button-subtitle">Télécharger sur</span>
  424.                                         <span class="market-button-title">Google Play</span>
  425.                                     </a>
  426.                                 </div>
  427.                             </div>
  428.                         </div>
  429.                     </div>
  430.                 </div>
  431.             </div>
  432.         </div>
  433.     </div>
  434.     <div class="footer-copyright">
  435.         <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
  436.             <div class="copyright-text text-right" style="margin-right: 100px">
  437.                 <p><a href="index.php">© 2023 Modixom</p>
  438.             </div>
  439.         </div>
  440.     </div>
  441. </footer>
  442. <!-- footer -->
  443. <!-- back top top -->
  444. <div class="back-top-top" id="page-up">
  445.     <a href=""><i class="fas fa-arrow-up"></i>Haut</a>
  446. </div>
  447. <!-- back top top -->
  448. <!-- preloader -->
  449. <!-- preloader -->
  450. <div class="theme-preloader">
  451.          <span><img src="{{asset('assets/images/logo.png')}}" alt=""></span>
  452.       </div>
  453. <!-- preloader -->
  454. <!-- preloader -->
  455. <!-- javascript -->
  456. <script src="{{asset('assets/js/jquery.min.js')}}"></script>
  457. <script src="{{asset('assets/js/popper.min.js')}}"></script>
  458. <script src="{{asset('assets/js/bootstrap.min.js')}}"></script>
  459. <script src="{{asset('assets/js/owl.carousel.min.js')}}"></script>
  460. <script type="text/javascript" src="{{asset('assets/js/jquery.cookie.min.js')}}"></script>
  461. <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>
  462. <script src="{{asset('assets/js/custom.js')}}"></script>
  463. <script src="{{asset('assets/js/ck-editor.js')}}"></script>
  464. <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js" defer></script>
  465. <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  466. <script>
  467.     $("#pro-button").click(function() {
  468.         $("#pro-options").removeClass("d-none");
  469.     });
  470. </script>
  471. <script>
  472. $(document).ready(function() {
  473.     $('.js-data-example-ajax').select2({
  474.         placeholder: 'Choisir une ville ou un code postal',
  475.         language: {
  476.             inputTooShort: function() {
  477.                 return "Saisir minimum 3 caractères";
  478.             },
  479.             searching: function() {
  480.                 return "Recherche en cours...";
  481.             },
  482.             noResults: function() {
  483.                 return "Aucun résultat trouvé";
  484.             }
  485.         },
  486.         minimumInputLength: 3,
  487.         ajax: {
  488.             url: '/api/villes', // Utilisez l'URL de votre nouvelle API
  489.             dataType: 'json',
  490.             delay: 250,
  491.             data: function(params) {
  492.                 return {
  493.                     q: params.term // search term
  494.                 };
  495.             },
  496.             processResults: function(data) {
  497.                 return {
  498.                     results: data.results
  499.                 };
  500.             },
  501.             cache: true
  502.         },
  503.         templateResult: function(city) {
  504.             if (city.loading) return city.text;
  505.             return $('<span>' + city.text + '</span>');
  506.         },
  507.         templateSelection: function(city) {
  508.             return city.text || city.id;
  509.         }
  510.     });
  511.     // Sélectionner par défaut une ville spécifique si une valeur est définie
  512.     var defaultCityId = $('#villesSelect').val();
  513.     var defaultCityName = $('#villesSelect').data('city-name');
  514.     var defaultCityPostalCode = $('#villesSelect').data('city-postal-code');
  515.     if (defaultCityId && defaultCityName) {
  516.         var defaultOption = new Option(defaultCityName + ' (' + defaultCityPostalCode + ')', defaultCityId, true, true);
  517.         $('.js-data-example-ajax').append(defaultOption).trigger('change');
  518.     }
  519. });
  520. </script>
  521. <script>
  522.     document.addEventListener('DOMContentLoaded', (event) => {
  523.         document.querySelectorAll('.delete-alert').forEach(button => {
  524.             button.addEventListener('click', function () {
  525.                 const alertId = this.getAttribute('data-id');
  526.                 fetch(`/delete-alert/${alertId}`, {
  527.                     method: 'DELETE',
  528.                     headers: {
  529.                         'X-Requested-With': 'XMLHttpRequest',
  530.                         'Content-Type': 'application/json'
  531.                     }
  532.                 })
  533.                 .then(response => {
  534.                     if (response.ok) {
  535.                         location.reload();
  536.                     } else {
  537.                         alert('Une erreur s\'est produite lors de la suppression de l\'alerte.');
  538.                     }
  539.                 });
  540.             });
  541.         });
  542.     });
  543.     document.getElementById('périmètre').addEventListener('input', function () {
  544.       if (this.value < 0) {
  545.          this.value = 0;
  546.       }
  547.    });
  548.    document.addEventListener('DOMContentLoaded', function() {
  549.     document.getElementById('togglePassword1').addEventListener('click', function() {
  550.         var passwordField = document.getElementById('exampleInputPassword1');
  551.         var type = passwordField.getAttribute('type') === 'password' ? 'text' : 'password';
  552.         passwordField.setAttribute('type', type);
  553.         this.querySelector('i').classList.toggle('fa-eye-slash');
  554.     });
  555. });
  556. </script>
  557. <script>
  558. $(document).ready(function() {
  559.     // Initialize Select2 on the dropdown
  560.     $('#villeSelectDropdown').select2({
  561.         placeholder: 'Choisir une ville ou un code postal',
  562.         language: {
  563.             inputTooShort: function() {
  564.                 return "Saisir minimum 3 caractères";
  565.             },
  566.             searching: function() {
  567.                 return "Recherche en cours...";
  568.             },
  569.             noResults: function() {
  570.                 return "Aucun résultat trouvé";
  571.             }
  572.         },
  573.         minimumInputLength: 3,
  574.         ajax: {
  575.             url: '/api/villes',
  576.             dataType: 'json',
  577.             delay: 250,
  578.             data: function(params) {
  579.                 return {
  580.                     q: params.term // Search term
  581.                 };
  582.             },
  583.             processResults: function(data) {
  584.                 return {
  585.                     results: data.results
  586.                 };
  587.             },
  588.             cache: true
  589.         },
  590.         templateResult: function(city) {
  591.             if (city.loading) return city.text;
  592.             return $('<span>' + city.text + '</span>');
  593.         },
  594.         templateSelection: function(city) {
  595.             return city.text || city.id;
  596.         }
  597.     }).on('select2:open', function() {
  598.         // Focus on the search input when the dropdown opens
  599.         const searchField = document.querySelector('.select2-search__field');
  600.         searchField.focus();
  601.         // Attach a keyup event to the document to capture key presses
  602.         $(document).on('keyup.select2', function(e) {
  603.             const key = e.key;
  604.             if (key === "Backspace") {
  605.                 searchField.value = searchField.value.slice(0, -1);
  606.             } else if (key.length === 1 || !isNaN(key)) {
  607.                 searchField.value += key;
  608.             }
  609.             searchField.dispatchEvent(new Event('input', {
  610.                 bubbles: true
  611.             }));
  612.         });
  613.         // Remove the event listener when the dropdown is closed
  614.         $('#villeSelectDropdown').on('select2:close', function() {
  615.             $(document).off('keyup.select2');
  616.         });
  617.     });
  618.     // Select a specific city by default if a value is set
  619.     var defaultCityId = $('#villeSelectModal').val();
  620.     var defaultCityName = $('#villeSelectModal').data('city-name');
  621.     var defaultCityPostalCode = $('#villeSelectModal').data('city-postal-code');
  622.     if (defaultCityId && defaultCityName) {
  623.         var defaultOption = new Option(defaultCityName + ' (' + defaultCityPostalCode + ')', defaultCityId, true, true);
  624.         $('#villeSelectDropdown').append(defaultOption).trigger('change');
  625.     }
  626. });
  627. </script>
  628.                  
  629. <!-- javascript -->
  630. </body>
  631. </html>