src/Flexy/FrontBundle/Themes/Lasalle/templates/front/customer/visit.html.twig line 1
<!DOCTYPE html><html><head><title>visite Adhérent la salle </title><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"><style>body {margin: 0; /* Réinitialiser les marges par défaut */padding: 0; /* Réinitialiser les paddings par défaut */overflow: hidden; /* Empêche tout débordement de la vidéo */background-color: black;background-image: url('/uploads/lasalle/video/lasalle2.png');background-size:cover;width: 300px;background-repeat: no-repeat;background-position: center top;}video {position: fixed; /* Fixe la vidéo par rapport à la fenêtre du navigateur */top: 50%; /* Déplace la vidéo à 50% du haut de la fenêtre */left: 50%; /* Déplace la vidéo à 50% de la largeur de la fenêtre */min-width: 100%; /* Remplit la largeur minimale de l'écran */min-height: 100%; /* Remplit la hauteur minimale de l'écran *//* Ajuste la largeur de la vidéo automatiquement */height: 100%; /* Ajuste la hauteur de la vidéo automatiquement */transform: translate(-50%, -50%); /* Centre la vidéo dans la fenêtre */z-index: -1; /* Place la vidéo en arrière-plan (derrière le contenu) */}.user-card {opacity: 88%;}.wrapper{display: flex;justify-content: center;align-items: center;/*padding-top: 12%;*/padding: 10px;}.logo{width: 25%;position: absolute;right: 100px;bottom: 100px;}.user-card {display: flex;flex-direction: column;align-items: center;justify-content: center;background-color: #fff;border-radius: 10px;padding: 60px;position: fixed;top: 0;bottom: 0;left: 0;right: 0;overflow: hidden;box-shadow: 0 2px 20px -5px rgba(0, 0, 0, 0.5);}.user-card-info h3 {font-size: 70px;margin: 0;margin-bottom: 10px;margin-top: 40px;font-family: 'Bebas Neue', sans-serif;letter-spacing: 3px;}.user-card:before {content: '';position: absolute;/*height: 300%;*/height: 217%;width: 173px;background: linear-gradient(0deg, rgb(103, 70, 193) 0%, rgb(143, 105, 247) 100%);top: -60px;left: -125px;z-index: 0;transform: rotate(17deg);}.user-card-img {display: flex;justify-content: start;align-items: center;z-index: 3;}.user-card-img img {width: 380px;height: 380px;object-fit: cover;border-radius: 50%;}.user-card-info {text-align: center;}.user-card-info h2 {font-size: 60px;margin: 0;margin-bottom: 10px;font-family: 'Bebas Neue', sans-serif;letter-spacing: 3px;}p{font-family: 'Bebas Neue', sans-serif;}.d-none{display:none}.user-card-info p {/*font-size: 14px;margin-bottom: 2px;*/font-size: 45px;margin-bottom: 2px;text-align: center;}.user-card-info p span {font-weight: 700;margin-right: 10px;}@media only screen and (min-width: 768px) {.user-card {flex-direction: row;align-items: flex-start;}.user-card-img {/*margin-right: 20px;*/margin-right: 80px;margin-bottom: 0;}.user-card-info {text-align: left;}}@media (max-width: 767px){.wrapper{padding-top: 3%;}.user-card:before {width: 300%;height: 200px;transform: rotate(0);}.user-card-info h2 {margin-top: 25px;font-size: 40px;}.user-card-info p span {display: block;margin-bottom: 15px;font-size: 18px;}}</style></head><body><link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet"><!-- <video autoplay loop muted><source src="/uploads/lasalle/video/lasalle.mp4" type="video/mp4"><!-- Vous pouvez ajouter d'autres sources pour une compatibilité avec différents navigateurs --><!--</video>-->{#{{ dump(customer) }}#}{% if customer and salle2 == true %}<div class="wrapper" ><div class="user-card"><div class="user-card-img"><img src="http://lasalleerp-h.com/uploads/lasalle/adherent/{{ customer['image']}}" alt="" style="width:380px"></div><div class="user-card-info"><h3> <img src="/uploads/lasalle/check-mark.png" alt="" style="width: 150px"> Bienvenue {{customer['first_name']}} {{customer['last_name']}} </h3><h2>Salle : <b>Roche Noir </b> </h2><h2>Fin Abonnement : {{customer['end_at']|date('d/m/Y') }}</h2><h2><small>réference carte : {{customer['reference']}} </small></h2>{% if timeStatus %}<!-- Alerte Bootstrap avec couleur personnalisée --><div class="alert d-flex align-items-center mt-4" role="alert"style="background: linear-gradient(45deg, #ff8a00, #e52e71); color: #fff; font-size: 1.2rem; padding: 9px; border-radius: 8px;"><i class="bi bi-sun-fill me-2" style="font-size: 1.5rem;"></i><strong> <b> Offre Matinale </b> </strong></div>{% endif %}</div><div ><img class="logo" src="../themes/lasalle/admin/images/logo.png"></div></div></div>{% endif %}{% if customer and salle2 == false %}<div class="wrapper" ><div class="user-card"><div class="user-card-img"><img src="/uploads/lasalle/adherent/{{ customer.image}}" alt="" style="width:380px"></div><div class="user-card-info"><h3> <img src="/uploads/lasalle/check-mark.png" alt="" style="width: 150px"> Bienvenue {{ customer.firstName}} {{ customer.lastName}}</h3><!--<h2>Salle : {{ customer.store}}</h2>--><h2>Début Abonnement : {{customer.productSubscriptions|last.startAt|date("d/m/Y") }}</h2><h2>Fin Abonnement : {{customer.productSubscriptions|last.endAt|date("d/m/Y") }}</h2>{% if timeStatus %}<!-- Alerte Bootstrap avec couleur personnalisée --><div class="alert d-flex align-items-center mt-4" role="alert"style="background: linear-gradient(45deg, #ff8a00, #e52e71); color: #fff; font-size: 1.2rem; padding: 9px; border-radius: 8px;"><i class="bi bi-sun-fill me-2" style="font-size: 1.5rem;"></i><strong> <b> Offre Matinale </b> </strong></div>{% endif %}</div><div ><img class="logo" src="../themes/lasalle/admin/images/logo.png"></div></div></div>{% endif %}<div class="failed-access wrapper d-none" ><div class="user-card"><div class="user-card-info"><h3><img src="/uploads/lasalle/supprimer.png" alt="" style="width: 120px"> Acces réfusé</h3><h2>Merci de vérifer avec l'accueil</h2><!--<h2>Date de visite {{ "now"|date("d/m/Y H:i:s") }}</h2>--></div><div ><img class="logo" src="../themes/lasalle/admin/images/logo.png" style="margin-top: 400px !important;margin-left: 0px !important;"></div></div></div>{% set url = path("visit-customer") %}<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script><script>// var notificationSound = new Audio('flexy/sounds/notification_sound.mp3');setTimeout(function(){$(".wrapper").addClass("d-none");},12000);{% if settings.get.isMercureEnabled %}const eventSource = new EventSource("{{ mercure('https://hello.com/books/1')|escape('js') }}");eventSource.onmessage = event => {setTimeout(function(){$(".wrapper").addClass("d-none");},12000);// Will be called every time an update is published by the servervar data = JSON.parse(event.data);if(data.status == "failed"){$(".failed-access").removeClass("d-none");// Init Page// Init Page}if(data.status == "success"){var customerId = data.customerId;var other = data.otherSalle;if(data.entity == "VisitCustomer"){//notificationSound.loop = true;//notificationSound.play();const flashMessages = document.getElementById('flash-messages');/*$("#flash-messages").append('<div class="alert alert-success alert-dismissible fade show" role="alert"><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>Nouvelle commande a été crée</div>');*/window.location.href= "{{url}}?customerId="+customerId + "&other=" + other;}}}{% endif %}</script></body></html>