var/cache/dev/twig/ad/ad3fc6f15818c5457b425a80197f81e0.php line 50
<?phpuse 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;/* @Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig */class __TwigTemplate_0c5ab5d808daf9135db98680768bc94d extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['stylesheets' => [$this, 'block_stylesheets'],'body' => [$this, 'block_body'],'javascripts' => [$this, 'block_javascripts'],];}protected function doGetParent(array $context){// line 1return "@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig"));$this->parent = $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 4public function block_stylesheets($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));// line 5$this->displayParentBlock("stylesheets", $context, $blocks);echo "<link rel=\"stylesheet\" href=\"";// line 6echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/css/reservation.css"), "html", null, true);echo "\" /><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" /><style>.form-check {min-height: 1.9rem !important;}.modal-backdrop.fade.show {Théâtredisplay: none;}/* css checkbox*//* hide checkbox */input[type=\"checkbox\"] {display: none;}/* if checkbox is checked, then do these things *//*input[type=\"checkbox\"]:checked + label {color: white;background:#FFD86E;border-radius: 5px;padding: 0px 10px 0px 10px;}/* styles when hovering over options */label:hover {cursor: pointer;/* transitions and animations */-webkit-transition: color .5s ease;-moz-transition: color .5s ease;-ms-transition: color .5s ease;-o-transition: color .5s ease;transition: color .5s ease;}.boutton-step{padding:10px;text-decoration:none;width:230px;font-size: 12px;font-family: 'PT Sans', sans-serif;letter-spacing:2px;}input.button {\twidth:130px;\theight:50px;\tmargin: 20px 0 30px 0;\tpadding: 0px 20px 0px 20px;\tbackground: #e6e6e6;\tborder-radius:5px;\tborder: 1px solid #ccc;\tfont-family: OpenSans, sans-serif;\tfont-size:16pt;\tcolor:#444;}.Addons label{font-size:12px !important;font-family: 'roboto';font-weight: 500;border: 1px solid #80808024;margin: 2px;padding: 0px 5px 0px 5px;border-radius: 5px;}.multistep-container .active-button li:not(:first-child) .round-btn:before {position: absolute;content: '';width: 141px;height: 3px;background-color: #E9F2FA;left: -120px;}.multistep-container .active-button li {display: inline-block;width: 140px;}.form-check {line-height: 22px;}.col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{flex: 0 0 86%;}@media (max-width:767px) {html, body {overflow-x: hidden !important;}body {position: relative !important;}.col-sm-8.reservation-steeps {padding:0%;}.multistep-container .mutistep-form-area .form-box{position: relative;top: 33px;left: 0px;}.multistep-container .active-button li{display: inline-block;width: 100px;}.panel-sticky{font-size:12px;}h6.display-6.header-steeps {margin-left: 3%;}h6.datetime{margin-left: 3%;}a#seeDetails {margin-bottom: -11%;}a#seePrice {float: right;margin-right: 52%;}}li.etape1:before {background: #7ED670 !important; /* Change the background color */color: white !important;}.titre-page{margin-top:10px;font-size: 20px;line-height:45.29px;color: #000000;}.radio-buttons {display: flex;}.radio-buttons input[type=\"radio\"] {display: none;}.radio-buttons label {display: block;margin-right: 40px;cursor: pointer;}.radio-buttons label img {border-radius: 10px;width: 100px;height: 110px;box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;}.radio-buttons input[type=\"radio\"]:checked + label img {border: 2px solid #FFCB00 ; /* Style pour indiquer la sélection, vous pouvez personnaliser */}</style>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 188public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 189echo "<img src=\"";// line 195echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/sallereunion.jpg"), "html", null, true);echo "\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" /><div class=\"container\"><div class=\"row justify-content-between\"><div class=\"col-sm-8 reservation-steeps\"><div class=\"row\"><div class=\"col-sm-8\"><h6 class=\"titre-page\">Réservation ";// line 202echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 202, $this->source); })()), "html", null, true);echo "</h6></div><div class=\"col-sm-4\" style=\"margin-top:10px;\"><a href=\"/themes/coworking/front/images/prixSalles.pdf\" class=\"btn-res text-center text-light text-uppercase bg-dark\" style=\"float: right;padding: 8px;border-radius: 6px;font-size:13px;\" target=\"_blank\"> NOS TARIFS</a></div></div><div class=\"container\"><div class=\"container d-flex justify-content-center align-items-center\"><ul id=\"progressbar\">\t\t <li class=\"etape1\"> <span> Type</span> </li>\t\t<li class=\"active\" > Formule </li>\t\t<li> Dates</li>\t\t<li> Confirmation</li>\t\t\t\t</ul></div><div class=\"col-xl-12\" style=\"top: 20px;\"><div class=\"multistep-container\"><div class=\"mutistep-form-area\"><div class=\"form-box\"><div class=\"container\" ><div id=\"form-attribue\" style=\"line-height: 20px;\" class=\"mt-4\"><h5>Veuillez choisir une formule </h5>";// line 253$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 253, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 254echo " ";if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 254) == "check")) {echo "<div class=\"form-check\"><input class=\"form-check-input option\" data-time=\"";// line 257echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 257), "name", [], "any", false, false, false, 257), "html", null, true);echo "\" data-days=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 257), "description", [], "any", false, false, false, 257), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 257), "id", [], "any", false, false, false, 257), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 257), "name", [], "any", false, false, false, 257), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 257), "html", null, true);echo "\" class=\"option\" type=\"radio\" name=\"radioGroup\" id=\"radio";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 257), "id", [], "any", false, false, false, 257), "html", null, true);echo "\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 257), "name", [], "any", false, false, false, 257), "html", null, true);echo "\" /><label class=\"form-check-label\" data-time=\"";// line 258echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 258), "name", [], "any", false, false, false, 258), "html", null, true);echo "\" data-days=\" ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 258), "description", [], "any", false, false, false, 258), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 258), "id", [], "any", false, false, false, 258), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 258), "name", [], "any", false, false, false, 258), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 258), "html", null, true);echo "\" for=\"radio";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 258), "id", [], "any", false, false, false, 258), "html", null, true);echo "\"> ";if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 258), "name", [], "any", false, false, false, 258) == "1 Jour")) {echo " Journée entière ";} else {echo " ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 258), "name", [], "any", false, false, false, 258), "html", null, true);echo " ";}echo " </label><br>";// line 259if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 259), "name", [], "any", false, false, false, 259) == "Demi-Journée")) {echo "<small>Choisir une plage horaire :</small><select class=\"form-select\" id=\"plage-horaire\" style=\"width: 37%;\" name=\"plage-horaire\" disabled><option value=\"\"> Plage horaire</option><option value=\"matin\">Matin (8h00-13h00)</option><option value=\"apres-midi\">Après-midi (13h00-18H00)</option></select>";}// line 270echo "</div>";}// line 275echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 276echo "";// line 277$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 277, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 278echo "";// line 279if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 279) == "simple")) {// line 280echo "<div class=\"form-check\" ><input class=\"form-check-input option\" data-days=\"10\" data-id=\"";// line 283echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 283), "id", [], "any", false, false, false, 283), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 283), "name", [], "any", false, false, false, 283), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 283), "html", null, true);echo "\" type=\"radio\" name=\"radioGroup\" class=\"option\" id=\"radio1\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 283), "name", [], "any", false, false, false, 283), "html", null, true);echo "\" /><label class=\"form-check-label\" data-days=\"10\" data-id=\"";// line 284echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 284), "id", [], "any", false, false, false, 284), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 284), "name", [], "any", false, false, false, 284), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 284), "html", null, true);echo "\" for=\"radio1\"> ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 284), "name", [], "any", false, false, false, 284), "html", null, true);echo " </label><br><small>";// line 287echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 287), "description", [], "any", false, false, false, 287), "html", null, true);echo "</small></div>";}// line 293echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 294echo "";// line 311echo "";// line 313$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 313, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 314echo " ";if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 314) == "personalized")) {echo "<div class=\"form-check\"><input class=\"form-check-input\" data-days=\"30\" data-id=\"";// line 317echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 317), "id", [], "any", false, false, false, 317), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 317), "name", [], "any", false, false, false, 317), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 317), "html", null, true);echo "\" type=\"radio\" name=\"radioGroup\" id=\"radio";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 317), "id", [], "any", false, false, false, 317), "html", null, true);echo "\" /><label class=\"form-check-label\" data-days=\"30\" data-id=\"";// line 318echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 318), "id", [], "any", false, false, false, 318), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "product", [], "any", false, false, false, 318), "name", [], "any", false, false, false, 318), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 318), "html", null, true);echo "\" for=\"radio";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 318), "id", [], "any", false, false, false, 318), "html", null, true);echo "\"> ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 318), "name", [], "any", false, false, false, 318), "html", null, true);echo " </label><br><small> ";// line 320echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 320), "description", [], "any", false, false, false, 320), "html", null, true);echo "</small></div>";}// line 324echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 325echo "";// line 326$context["room"] = twig_replace_filter((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 326, $this->source); })()), ["Meeting room " => ""]);// line 327echo " ";$context["targetRooms"] = ["Omega", "Beta", "Epsilon", "Alpha", "Delta"];// line 328echo " ";$context["isDisabled"] = twig_in_filter((isset($context["room"]) || array_key_exists("room", $context) ? $context["room"] : (function () { throw new RuntimeError('Variable "room" does not exist.', 328, $this->source); })()), (isset($context["targetRooms"]) || array_key_exists("targetRooms", $context) ? $context["targetRooms"] : (function () { throw new RuntimeError('Variable "targetRooms" does not exist.', 328, $this->source); })()));// line 329echo "<h5 style=\"font-weight:bold; margin-top: 20px;";// line 330if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 330, $this->source); })())) {echo "opacity: 0.5; pointer-events: none;";}echo "\" >Veuillez choisir une disposition de la salle </h5><!-- <select class=\"form-select\" aria-label=\"Default select example\" name=\"disposition\" id=\"disposition\" style=\"width: 50%;\"><option value=\"\">Sélectionnez un choix</option><option value=\"u\">U</option><option value=\"Théâtre\">Théâtre</option><option value=\"Ecole\">Ecole</option></select>--><div class=\"radio-buttons\"><input type=\"radio\" id=\"u\" name=\"disposition\" value=\"u\" required ";// line 339if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 339, $this->source); })())) {echo " disabled";}echo " ><label for=\"u\"><img src=\"";// line 341echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/U.png"), "html", null, true);echo "\" style=\"width: 110px;height: 100px;";if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 341, $this->source); })())) {echo "opacity: 0.5; pointer-events: none;";}echo "\" class=\"img-fluid\" title=\"Disposition U\"/><br>";// line 343if (((isset($context["dispotionU"]) || array_key_exists("dispotionU", $context) ? $context["dispotionU"] : (function () { throw new RuntimeError('Variable "dispotionU" does not exist.', 343, $this->source); })()) != 0)) {// line 344echo " <div class=\"text-center mt-1\"><small>";echo twig_escape_filter($this->env, (isset($context["dispotionU"]) || array_key_exists("dispotionU", $context) ? $context["dispotionU"] : (function () { throw new RuntimeError('Variable "dispotionU" does not exist.', 344, $this->source); })()), "html", null, true);echo " Personnes max</small> </div>";}// line 346echo " </label><input type=\"radio\" id=\"theatre\" name=\"disposition\" value=\"Théâtre\" ";// line 348if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 348, $this->source); })())) {echo "disabled";}echo " ><label for=\"theatre\"><img src=\"";// line 350echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/theatre.png"), "html", null, true);echo "\" style=\"width: 110px;height: 100px;";if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 350, $this->source); })())) {echo "opacity: 0.5; pointer-events: none;";}echo "\" class=\"img-fluid\" title=\"Disposition Théâtre\" /><br>";// line 352if (((isset($context["dispotionTheatre"]) || array_key_exists("dispotionTheatre", $context) ? $context["dispotionTheatre"] : (function () { throw new RuntimeError('Variable "dispotionTheatre" does not exist.', 352, $this->source); })()) != 0)) {// line 353echo " <div class=\"text-center mt-1\"><small>";echo twig_escape_filter($this->env, (isset($context["dispotionTheatre"]) || array_key_exists("dispotionTheatre", $context) ? $context["dispotionTheatre"] : (function () { throw new RuntimeError('Variable "dispotionTheatre" does not exist.', 353, $this->source); })()), "html", null, true);echo " Personnes max</small></div>";}// line 355echo " </label><input type=\"radio\" id=\"ecole\" name=\"disposition\" value=\"Ecole\" ";// line 357if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 357, $this->source); })())) {echo "disabled";}echo " ><label for=\"ecole\"><img src=\"";// line 359echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/ecole.png"), "html", null, true);echo "\" style=\"width: 110px;height: 100px;";if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 359, $this->source); })())) {echo "opacity: 0.5; pointer-events: none;";}echo "\" class=\"img-fluid\" title=\"Disposition École\" /><br>";// line 361if (((isset($context["dispotionEcole"]) || array_key_exists("dispotionEcole", $context) ? $context["dispotionEcole"] : (function () { throw new RuntimeError('Variable "dispotionEcole" does not exist.', 361, $this->source); })()) != 0)) {// line 362echo " <div class=\"text-center mt-1\"><small>";echo twig_escape_filter($this->env, (isset($context["dispotionEcole"]) || array_key_exists("dispotionEcole", $context) ? $context["dispotionEcole"] : (function () { throw new RuntimeError('Variable "dispotionEcole" does not exist.', 362, $this->source); })()), "html", null, true);echo " Personnes max </small></div>";}// line 364echo " </label></div><div class=\"row\"><div class=\"col-md-4\"><label for=\"nbr\" style=\"font-size: 12px;";// line 368if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 368, $this->source); })())) {echo "opacity: 0.5; pointer-events: none;";}echo "\">Le nombre approximatif de personnes présentes :</label></div><div class=\"col-md-4\"><input type=\"number\" id=\"nbr_personne\" name=\"nbr_personne\" class=\"form-control\" style=\"width:40%;";// line 371if ((isset($context["isDisabled"]) || array_key_exists("isDisabled", $context) ? $context["isDisabled"] : (function () { throw new RuntimeError('Variable "isDisabled" does not exist.', 371, $this->source); })())) {echo "disabled";}echo "\" min=\"1\"/></div></div><h5 style=\"font-weight:bold; margin-top: 22px;\">Services supplémentaires</h5><h6 style=\"font-weight:bold; margin-top: 22px;\">Voulez-vous ajouter des services supplémentaires?</h6><!-- <small style=\"color:grey\">Disponible en location au mois ou à la journée</small>--><div class=\"row\"><div class=\"col-sm-12 Addons\">";// line 379$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 379, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["service"]) {// line 380echo "<input id=\"";// line 381echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 381), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 381), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 381), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "price", [], "any", false, false, false, 381), "html", null, true);echo "\" type=\"checkbox\" class=\"CK\" name=\"services\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 381), "html", null, true);echo " \"><label for=\"service\"> ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 381), "html", null, true);echo " </label>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 382echo "<br>";// line 384$context["isSimple"] = false;// line 385echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 385, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 386echo " ";if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 386) == "simple")) {// line 387echo " ";$context["isSimple"] = true;// line 388echo " ";}// line 389echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 390echo "";// line 391$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["servicesCommuns"]) || array_key_exists("servicesCommuns", $context) ? $context["servicesCommuns"] : (function () { throw new RuntimeError('Variable "servicesCommuns" does not exist.', 391, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["servicesCommun"]) {// line 392echo " ";if ( !(isset($context["isSimple"]) || array_key_exists("isSimple", $context) ? $context["isSimple"] : (function () { throw new RuntimeError('Variable "isSimple" does not exist.', 392, $this->source); })())) {// line 393echo " ";if (!twig_in_filter(twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 393), [94, 92, 69])) {// line 394echo " <input id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 394), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 394), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 394), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "price", [], "any", false, false, false, 394), "html", null, true);echo "\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 394), "html", null, true);echo " \"><label for=\"service\"> ";// line 395echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 395), "html", null, true);echo " </label>";}// line 397echo " ";} else {// line 398echo " <input id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 398), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 398), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 398), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "price", [], "any", false, false, false, 398), "html", null, true);echo "\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 398), "html", null, true);echo " \"><label for=\"service\"> ";// line 399echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 399), "html", null, true);echo " </label>";}// line 401echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicesCommun'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 402echo "";// line 406echo "</div></div><!--<h6 style=\"font-weight:bold; margin-top: 10px;\">Avez vous des demandes spécifiques ?</h6><textarea class=\"form-control\" name=\"demande\" id=\"textAreaExample1\" rows=\"1\" placeholder=\"Saisissez votre texte Ici\" style=\"font-size: 12px;\"></textarea>--></div></div><div class=\"button-row\"><a href=\"";// line 426echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationsallereuninon");echo "\" style=\"border:1px solid #FFCB00 !important; color:black !important;background: #ffff !important;\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__ boutton-step\" >Étape précédente</a> <a href=\"";// line 428echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationMeetingNext", ["id" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 428, $this->source); })()), "paramFormule" => "days"]), "html", null, true);echo "\" style=\"background: #FFCB00 !important;\" id=\"reservationLink\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__ boutton-step\">Étape suivante</a></div></div></div></div></div></div></div><div class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto;\">";// line 455echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart"));echo "</div></div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 468public function block_javascripts($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));// line 469echo " <!-- MAIN CONTENT --><script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script><script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script><script>//recuperer la valeur des jours dans le formulaire .document.getElementById('reservationLink').addEventListener('click', function() {var errors = \"\"; // Variable pour stocker les messages d'erreurvar days=0;var check=false;var time =\"\";var isChecked = false;var selectValue = \$('#plage-horaire').val();//var disposition = \$('#disposition').val();// Obtention de la valeur de l'option de disposition sélectionnéevar disposition = \$('input[name=\"disposition\"]:checked').val();var nbrApproximatif = \$('input[name=\"nbr_personne\"]').val();var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {days = parseInt(radioButtons[i].getAttribute('data-days'));time = radioButtons[i].getAttribute('data-time');break;}}if(time == \"Horaire\" ){check = true;}// Vérification pour la plage horaireif (time == \"DEMI JOURNÉE\" && selectValue == \"\") {errors += \"Veuillez sélectionner une plage horaire.\\n\";}if (days === 0 && !isChecked) {errors += \"Vous n'avez rien sélectionné, Veuillez sélectionner une option.\\n\";}// Récupération du texte du titre de la pagevar excludedNames = [\"Omega\", \"Beta\", \"Epsilon\", \"Alpha\", \"Delta\"];var pageTitle = document.querySelector('.titre-page').textContent.trim();var titleEndsWithExcludedName = excludedNames.some(name => pageTitle.endsWith(name));// Vérification pour la dispositionif (!disposition && !titleEndsWithExcludedName ) {errors += \"Veuillez sélectionner une disposition.\\n\";}// Affichage des erreurs (s'il y en a)if (errors !== \"\") {event.preventDefault(); // Empêche le lien de se déclencheralert(errors);}var link = document.getElementById('reservationLink');link.href = \"";// line 554echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationMeetingNext", ["id" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 554, $this->source); })()), "paramFormule" => "days", "Horai12" => "VALUE", "dIS34" => "VALUE2", "time" => "VALUE3", "proxim" => "VALUE4"]), "html", null, true);echo "\".replace('days', days).replace('VALUE', selectValue).replace('VALUE2', disposition).replace('VALUE3', check).replace('VALUE4',nbrApproximatif);});\$(document).ready(function(){var select= \$('#plage-horaire');\$('input[name=\"radioGroup\"]').change(function(){if (\$(this).attr('id') === 'radio24') {select.prop('disabled', false);} else {select.prop('selectedIndex', 0).prop('disabled', true);}});\$('input[type=radio][name=radioGroup]').click(function() {// \$('input[type=checkbox]').prop('checked', false);});\$('#serviceFormule').change(function(){var radio = document.getElementById('radio2');radio.checked = true;//\$('input[type=checkbox]').prop('checked', false);});var radioButtons = document.getElementsByName('radioGroup');var selectElement = document.getElementById('serviceFormule');radioButtons.forEach(function(radio) {radio.addEventListener('click', function() {if (radio.id === 'radio2') {selectElement.disabled = false;var idProduct = \$('option:nth-child(2)').attr(\"data-id\");var price = \$('option:nth-child(2)').attr(\"data-price\");var name = \$('option:nth-child(2)').attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"";// line 605echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});// alert(idProduct);selectElement.val(\$('option:nth-child(2)').prop('selected', true));} else {selectElement.selectedIndex = 0; // Sélection du premier élémentselectElement.disabled = true;}});});\$('body').on(\"click\",\".option\",function() {var selectedServiceIds = [];var formule =\"\";if (\$(this).is(':checked')) { // Vérifie si la case est cochéevar formule = \$(this).val(); // Récupère la valeur de la case cochée}\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la listeselectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");if(price != 0){var actionType = \"add\";currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});}else{var actionType = \"remove\";currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}\$.ajax({url:\"";// line 664echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}}); });var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"";// line 691echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"change\",\"select.option\",function() {var selectedServiceIds = [];formule =\$(\"#serviceFormule\").val();// Parcourir toutes les cases cochées avec la classe CK\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la listeselectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"";// line 737echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});var idProduct = \$(this).find(\"option:selected\").attr(\"data-id\");var price = \$(this).find(\"option:selected\").attr(\"data-price\");var name = \$(this).find(\"option:selected\").attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"";// line 779echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"click\",\".delete-cart-item\",function() {var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"";// line 803echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});// Ajouter la délégation d'événements pour le clic sur le label 'service'\$('label[for=\"service\"]').click(function(){var checkBox = \$(this).prev();var value = checkBox.val();if (checkBox.is(\":checked\")) {checkBox.prop('checked', false);console.log(\"Case à cocher décochée : \" + value);checkBox.next('label').css({ 'color': '#626262' ,'background': 'none'});var idProduct = checkBox.attr(\"data-id\");var price = checkBox.attr(\"data-price\");var name = checkBox.attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"";// line 832echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});} else {checkBox.prop('checked', true);// console.log(\"Case à cocher cochée : \" + value);var formule = \"\";if (\$('#radio1').is(':checked')) {formule = \$(\"#radio1\").val();}else if (\$('#radio21').is(':checked')) {formule = \$(\"#radio21\").val();}else if (\$('#radio24').is(':checked')) {formule = \$(\"#radio24\").val();}else if (\$('#radio25').is(':checked')) {formule = \$(\"#radio25\").val();}else{formule = \"\";}var serviceId = \$(this).prev().data('id');var dataElement = \$(this).prev();\$.ajax({url: \"";// line 868echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajaxServicePrice");echo "\",type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : value,formule : formule},success: function(response) {dataElement.attr(\"data-price\", response);var idProduct = dataElement.attr(\"data-id\");var price = dataElement.attr(\"data-price\");var name = dataElement.attr(\"data-name\");var actionType = \"add\";if(price != 0 ){\$.ajax({url:\"";// line 884echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});checkBox.next('label').css({ 'color': 'white' ,'background': '#FFD86E'});}else {// Si le prix est égal à zéro, changer le fond du checkbox en grischeckBox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});}});var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {var selectedValue = radioButtons[i].value;break;}}console.log(selectedValue); // Vous pouvez utiliser la valeur comme vous le souhaitez ici});</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 1308 => 884, 1289 => 868, 1250 => 832, 1218 => 803, 1191 => 779, 1146 => 737, 1097 => 691, 1067 => 664, 1005 => 605, 951 => 554, 864 => 469, 854 => 468, 837 => 455, 807 => 428, 802 => 426, 780 => 406, 777 => 402, 771 => 401, 766 => 399, 753 => 398, 750 => 397, 745 => 395, 732 => 394, 729 => 393, 726 => 392, 722 => 391, 719 => 390, 713 => 389, 710 => 388, 707 => 387, 704 => 386, 699 => 385, 697 => 384, 693 => 382, 675 => 381, 672 => 380, 668 => 379, 655 => 371, 647 => 368, 641 => 364, 635 => 362, 633 => 361, 624 => 359, 617 => 357, 613 => 355, 607 => 353, 605 => 352, 596 => 350, 589 => 348, 585 => 346, 579 => 344, 577 => 343, 568 => 341, 561 => 339, 547 => 330, 544 => 329, 541 => 328, 538 => 327, 536 => 326, 533 => 325, 527 => 324, 520 => 320, 507 => 318, 497 => 317, 490 => 314, 486 => 313, 482 => 311, 479 => 294, 473 => 293, 464 => 287, 452 => 284, 442 => 283, 437 => 280, 435 => 279, 432 => 278, 428 => 277, 425 => 276, 419 => 275, 412 => 270, 397 => 259, 375 => 258, 359 => 257, 352 => 254, 348 => 253, 294 => 202, 284 => 195, 276 => 189, 266 => 188, 74 => 6, 70 => 5, 60 => 4, 37 => 1,);}public function getSourceContext(){return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}{% block stylesheets %}{{ parent() }}<link rel=\"stylesheet\" href=\"{{ asset('themes/coworking/css/reservation.css') }}\" /><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" /><style>.form-check {min-height: 1.9rem !important;}.modal-backdrop.fade.show {Théâtredisplay: none;}/* css checkbox*//* hide checkbox */input[type=\"checkbox\"] {display: none;}/* if checkbox is checked, then do these things *//*input[type=\"checkbox\"]:checked + label {color: white;background:#FFD86E;border-radius: 5px;padding: 0px 10px 0px 10px;}/* styles when hovering over options */label:hover {cursor: pointer;/* transitions and animations */-webkit-transition: color .5s ease;-moz-transition: color .5s ease;-ms-transition: color .5s ease;-o-transition: color .5s ease;transition: color .5s ease;}.boutton-step{padding:10px;text-decoration:none;width:230px;font-size: 12px;font-family: 'PT Sans', sans-serif;letter-spacing:2px;}input.button {\twidth:130px;\theight:50px;\tmargin: 20px 0 30px 0;\tpadding: 0px 20px 0px 20px;\tbackground: #e6e6e6;\tborder-radius:5px;\tborder: 1px solid #ccc;\tfont-family: OpenSans, sans-serif;\tfont-size:16pt;\tcolor:#444;}.Addons label{font-size:12px !important;font-family: 'roboto';font-weight: 500;border: 1px solid #80808024;margin: 2px;padding: 0px 5px 0px 5px;border-radius: 5px;}.multistep-container .active-button li:not(:first-child) .round-btn:before {position: absolute;content: '';width: 141px;height: 3px;background-color: #E9F2FA;left: -120px;}.multistep-container .active-button li {display: inline-block;width: 140px;}.form-check {line-height: 22px;}.col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{flex: 0 0 86%;}@media (max-width:767px) {html, body {overflow-x: hidden !important;}body {position: relative !important;}.col-sm-8.reservation-steeps {padding:0%;}.multistep-container .mutistep-form-area .form-box{position: relative;top: 33px;left: 0px;}.multistep-container .active-button li{display: inline-block;width: 100px;}.panel-sticky{font-size:12px;}h6.display-6.header-steeps {margin-left: 3%;}h6.datetime{margin-left: 3%;}a#seeDetails {margin-bottom: -11%;}a#seePrice {float: right;margin-right: 52%;}}li.etape1:before {background: #7ED670 !important; /* Change the background color */color: white !important;}.titre-page{margin-top:10px;font-size: 20px;line-height:45.29px;color: #000000;}.radio-buttons {display: flex;}.radio-buttons input[type=\"radio\"] {display: none;}.radio-buttons label {display: block;margin-right: 40px;cursor: pointer;}.radio-buttons label img {border-radius: 10px;width: 100px;height: 110px;box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;}.radio-buttons input[type=\"radio\"]:checked + label img {border: 2px solid #FFCB00 ; /* Style pour indiquer la sélection, vous pouvez personnaliser */}</style>{% endblock %}{% block body %}<img src=\"{{asset('themes/coworking/front/images/sallereunion.jpg')}}\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" /><div class=\"container\"><div class=\"row justify-content-between\"><div class=\"col-sm-8 reservation-steeps\"><div class=\"row\"><div class=\"col-sm-8\"><h6 class=\"titre-page\">Réservation {{name}}</h6></div><div class=\"col-sm-4\" style=\"margin-top:10px;\"><a href=\"/themes/coworking/front/images/prixSalles.pdf\" class=\"btn-res text-center text-light text-uppercase bg-dark\" style=\"float: right;padding: 8px;border-radius: 6px;font-size:13px;\" target=\"_blank\"> NOS TARIFS</a></div></div><div class=\"container\"><div class=\"container d-flex justify-content-center align-items-center\"><ul id=\"progressbar\">\t\t <li class=\"etape1\"> <span> Type</span> </li>\t\t<li class=\"active\" > Formule </li>\t\t<li> Dates</li>\t\t<li> Confirmation</li>\t\t\t\t</ul></div><div class=\"col-xl-12\" style=\"top: 20px;\"><div class=\"multistep-container\"><div class=\"mutistep-form-area\"><div class=\"form-box\"><div class=\"container\" ><div id=\"form-attribue\" style=\"line-height: 20px;\" class=\"mt-4\"><h5>Veuillez choisir une formule </h5>{% for attr in attributValues %}{% if attr.code == \"check\" %}<div class=\"form-check\"><input class=\"form-check-input option\" data-time=\"{{attr.attribut.name}}\" data-days=\"{{ attr.attribut.description}}\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" class=\"option\" type=\"radio\" name=\"radioGroup\" id=\"radio{{ attr.attribut.id}}\" value=\"{{attr.attribut.name}}\" /><label class=\"form-check-label\" data-time=\"{{attr.attribut.name}}\" data-days=\" {{ attr.attribut.description}}\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" for=\"radio{{ attr.attribut.id}}\"> {% if(attr.attribut.name == \"1 Jour\") %} Journée entière {% else %} {{attr.attribut.name}} {% endif %} </label><br>{% if(attr.attribut.name == \"Demi-Journée\") %}<small>Choisir une plage horaire :</small><select class=\"form-select\" id=\"plage-horaire\" style=\"width: 37%;\" name=\"plage-horaire\" disabled><option value=\"\"> Plage horaire</option><option value=\"matin\">Matin (8h00-13h00)</option><option value=\"apres-midi\">Après-midi (13h00-18H00)</option></select>{% endif %}</div>{% endif %}{% endfor %}{% for attr in attributValues %}{% if attr.code == \"simple\" %}<div class=\"form-check\" ><input class=\"form-check-input option\" data-days=\"10\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" type=\"radio\" name=\"radioGroup\" class=\"option\" id=\"radio1\" value=\"{{attr.attribut.name}}\" /><label class=\"form-check-label\" data-days=\"10\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" for=\"radio1\"> {{attr.attribut.name}} </label><br><small>{{attr.attribut.description}}</small></div>{% endif %}{% endfor %}{# {% if attributValues|length > 0 %}<!-- <div class=\"form-check\"><input class=\"form-check-input\" type=\"radio\" name=\"radioGroup\" id=\"radio2\" /><label class=\"form-check-label\" for=\"radio2\">Location “Pass jours”</label><br><small>Cette formule est déclinée comme suit :</small><select style=\"padding: 4px;\" class=\"col-6 option \" id=\"serviceFormule\" ><option value=\"\" data-price=\"\" >Sélectionner un choix</option>{% for attr in attributValues %}{% if attr.code == \"multiple\" %}<option value=\"{{attr.attribut.name}}\" data-days=\"{{attr.attribut.description}}\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" >{{attr.attribut.name}}</option>{% endif %}{% endfor %}</select></div>-->{% endif %} #}{% for attr in attributValues %}{% if attr.code == \"personalized\" %}<div class=\"form-check\"><input class=\"form-check-input\" data-days=\"30\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" type=\"radio\" name=\"radioGroup\" id=\"radio{{ attr.attribut.id}}\" /><label class=\"form-check-label\" data-days=\"30\" data-id=\"{{attr.product.id}}\" data-name=\"{{attr.product.name}}\" data-price=\"{{attr.price}}\" for=\"radio{{ attr.attribut.id}}\"> {{ attr.attribut.name}} </label><br><small> {{ attr.attribut.description}}</small></div>{% endif %}{% endfor %}{% set room = name|replace({'Meeting room ': ''}) %}{% set targetRooms = ['Omega', 'Beta', 'Epsilon', 'Alpha', 'Delta'] %}{% set isDisabled = room in targetRooms %}<h5 style=\"font-weight:bold; margin-top: 20px;{% if isDisabled %}opacity: 0.5; pointer-events: none;{% endif %}\" >Veuillez choisir une disposition de la salle </h5><!-- <select class=\"form-select\" aria-label=\"Default select example\" name=\"disposition\" id=\"disposition\" style=\"width: 50%;\"><option value=\"\">Sélectionnez un choix</option><option value=\"u\">U</option><option value=\"Théâtre\">Théâtre</option><option value=\"Ecole\">Ecole</option></select>--><div class=\"radio-buttons\"><input type=\"radio\" id=\"u\" name=\"disposition\" value=\"u\" required {% if isDisabled %} disabled{% endif %} ><label for=\"u\"><img src=\"{{asset('themes/coworking/front/images/U.png')}}\" style=\"width: 110px;height: 100px;{% if isDisabled %}opacity: 0.5; pointer-events: none;{% endif %}\" class=\"img-fluid\" title=\"Disposition U\"/><br>{% if dispotionU != 0 %}<div class=\"text-center mt-1\"><small>{{dispotionU}} Personnes max</small> </div>{% endif %}</label><input type=\"radio\" id=\"theatre\" name=\"disposition\" value=\"Théâtre\" {% if isDisabled %}disabled{% endif %} ><label for=\"theatre\"><img src=\"{{asset('themes/coworking/front/images/theatre.png')}}\" style=\"width: 110px;height: 100px;{% if isDisabled %}opacity: 0.5; pointer-events: none;{% endif %}\" class=\"img-fluid\" title=\"Disposition Théâtre\" /><br>{% if dispotionTheatre != 0 %}<div class=\"text-center mt-1\"><small>{{dispotionTheatre}} Personnes max</small></div>{% endif %}</label><input type=\"radio\" id=\"ecole\" name=\"disposition\" value=\"Ecole\" {% if isDisabled %}disabled{% endif %} ><label for=\"ecole\"><img src=\"{{asset('themes/coworking/front/images/ecole.png')}}\" style=\"width: 110px;height: 100px;{% if isDisabled %}opacity: 0.5; pointer-events: none;{% endif %}\" class=\"img-fluid\" title=\"Disposition École\" /><br>{% if dispotionEcole != 0 %}<div class=\"text-center mt-1\"><small>{{dispotionEcole}} Personnes max </small></div>{% endif %}</label></div><div class=\"row\"><div class=\"col-md-4\"><label for=\"nbr\" style=\"font-size: 12px;{% if isDisabled %}opacity: 0.5; pointer-events: none;{% endif %}\">Le nombre approximatif de personnes présentes :</label></div><div class=\"col-md-4\"><input type=\"number\" id=\"nbr_personne\" name=\"nbr_personne\" class=\"form-control\" style=\"width:40%;{% if isDisabled %}disabled{% endif %}\" min=\"1\"/></div></div><h5 style=\"font-weight:bold; margin-top: 22px;\">Services supplémentaires</h5><h6 style=\"font-weight:bold; margin-top: 22px;\">Voulez-vous ajouter des services supplémentaires?</h6><!-- <small style=\"color:grey\">Disponible en location au mois ou à la journée</small>--><div class=\"row\"><div class=\"col-sm-12 Addons\">{% for service in services %}<input id=\"{{ service.name}}\" data-id=\"{{service.id}}\" data-name=\"{{service.name}}\" data-price=\"{{service.price}}\" type=\"checkbox\" class=\"CK\" name=\"services\" value=\"{{ service.id}} \"><label for=\"service\"> {{ service.name}} </label>{% endfor %}<br>{% set isSimple = false %}{% for attr in attributValues %}{% if attr.code == \"simple\" %}{% set isSimple = true %}{% endif %}{% endfor %}{% for servicesCommun in servicesCommuns %}{% if not isSimple %}{% if servicesCommun.id not in [94, 92, 69] %}<input id=\"{{ servicesCommun.name }}\" data-id=\"{{ servicesCommun.id }}\" data-name=\"{{ servicesCommun.name }}\" data-price=\"{{ servicesCommun.price }}\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"{{ servicesCommun.id }} \"><label for=\"service\"> {{ servicesCommun.name }} </label>{% endif %}{% else %}<input id=\"{{ servicesCommun.name }}\" data-id=\"{{ servicesCommun.id }}\" data-name=\"{{ servicesCommun.name }}\" data-price=\"{{ servicesCommun.price }}\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"{{ servicesCommun.id }} \"><label for=\"service\"> {{ servicesCommun.name }} </label>{% endif %}{% endfor %}{#{% for servicesCommun in servicesCommuns %}<input id=\"{{ servicesCommun.name}}\" data-id=\"{{servicesCommun.id}}\" data-name=\"{{servicesCommun.name}}\" data-price=\"{{servicesCommun.price}}\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"{{ servicesCommun.id}} \"><label for=\"service\"> {{ servicesCommun.name}} </label>{% endfor %}#}</div></div><!--<h6 style=\"font-weight:bold; margin-top: 10px;\">Avez vous des demandes spécifiques ?</h6><textarea class=\"form-control\" name=\"demande\" id=\"textAreaExample1\" rows=\"1\" placeholder=\"Saisissez votre texte Ici\" style=\"font-size: 12px;\"></textarea>--></div></div><div class=\"button-row\"><a href=\"{{path(\"reservationsallereuninon\")}}\" style=\"border:1px solid #FFCB00 !important; color:black !important;background: #ffff !important;\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__ boutton-step\" >Étape précédente</a> <a href=\"{{path(\"reservationMeetingNext\",{id:product, 'paramFormule': 'days'})}}\" style=\"background: #FFCB00 !important;\" id=\"reservationLink\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__ boutton-step\">Étape suivante</a></div></div></div></div></div></div></div><div class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto;\">{{render(path(\"ajax_cart\"))}}</div></div></div>{% endblock %}{% block javascripts %}<!-- MAIN CONTENT --><script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script><script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script><script>//recuperer la valeur des jours dans le formulaire .document.getElementById('reservationLink').addEventListener('click', function() {var errors = \"\"; // Variable pour stocker les messages d'erreurvar days=0;var check=false;var time =\"\";var isChecked = false;var selectValue = \$('#plage-horaire').val();//var disposition = \$('#disposition').val();// Obtention de la valeur de l'option de disposition sélectionnéevar disposition = \$('input[name=\"disposition\"]:checked').val();var nbrApproximatif = \$('input[name=\"nbr_personne\"]').val();var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {days = parseInt(radioButtons[i].getAttribute('data-days'));time = radioButtons[i].getAttribute('data-time');break;}}if(time == \"Horaire\" ){check = true;}// Vérification pour la plage horaireif (time == \"DEMI JOURNÉE\" && selectValue == \"\") {errors += \"Veuillez sélectionner une plage horaire.\\n\";}if (days === 0 && !isChecked) {errors += \"Vous n'avez rien sélectionné, Veuillez sélectionner une option.\\n\";}// Récupération du texte du titre de la pagevar excludedNames = [\"Omega\", \"Beta\", \"Epsilon\", \"Alpha\", \"Delta\"];var pageTitle = document.querySelector('.titre-page').textContent.trim();var titleEndsWithExcludedName = excludedNames.some(name => pageTitle.endsWith(name));// Vérification pour la dispositionif (!disposition && !titleEndsWithExcludedName ) {errors += \"Veuillez sélectionner une disposition.\\n\";}// Affichage des erreurs (s'il y en a)if (errors !== \"\") {event.preventDefault(); // Empêche le lien de se déclencheralert(errors);}var link = document.getElementById('reservationLink');link.href = \"{{ path('reservationMeetingNext', {id: product, 'paramFormule': 'days', 'Horai12': 'VALUE', 'dIS34': 'VALUE2', 'time': 'VALUE3','proxim':'VALUE4'}) }}\".replace('days', days).replace('VALUE', selectValue).replace('VALUE2', disposition).replace('VALUE3', check).replace('VALUE4',nbrApproximatif);});\$(document).ready(function(){var select= \$('#plage-horaire');\$('input[name=\"radioGroup\"]').change(function(){if (\$(this).attr('id') === 'radio24') {select.prop('disabled', false);} else {select.prop('selectedIndex', 0).prop('disabled', true);}});\$('input[type=radio][name=radioGroup]').click(function() {// \$('input[type=checkbox]').prop('checked', false);});\$('#serviceFormule').change(function(){var radio = document.getElementById('radio2');radio.checked = true;//\$('input[type=checkbox]').prop('checked', false);});var radioButtons = document.getElementsByName('radioGroup');var selectElement = document.getElementById('serviceFormule');radioButtons.forEach(function(radio) {radio.addEventListener('click', function() {if (radio.id === 'radio2') {selectElement.disabled = false;var idProduct = \$('option:nth-child(2)').attr(\"data-id\");var price = \$('option:nth-child(2)').attr(\"data-price\");var name = \$('option:nth-child(2)').attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});// alert(idProduct);selectElement.val(\$('option:nth-child(2)').prop('selected', true));} else {selectElement.selectedIndex = 0; // Sélection du premier élémentselectElement.disabled = true;}});});\$('body').on(\"click\",\".option\",function() {var selectedServiceIds = [];var formule =\"\";if (\$(this).is(':checked')) { // Vérifie si la case est cochéevar formule = \$(this).val(); // Récupère la valeur de la case cochée}\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la listeselectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");if(price != 0){var actionType = \"add\";currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});}else{var actionType = \"remove\";currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}}); });var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"change\",\"select.option\",function() {var selectedServiceIds = [];formule =\$(\"#serviceFormule\").val();// Parcourir toutes les cases cochées avec la classe CK\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la listeselectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});var idProduct = \$(this).find(\"option:selected\").attr(\"data-id\");var price = \$(this).find(\"option:selected\").attr(\"data-price\");var name = \$(this).find(\"option:selected\").attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"click\",\".delete-cart-item\",function() {var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});// Ajouter la délégation d'événements pour le clic sur le label 'service'\$('label[for=\"service\"]').click(function(){var checkBox = \$(this).prev();var value = checkBox.val();if (checkBox.is(\":checked\")) {checkBox.prop('checked', false);console.log(\"Case à cocher décochée : \" + value);checkBox.next('label').css({ 'color': '#626262' ,'background': 'none'});var idProduct = checkBox.attr(\"data-id\");var price = checkBox.attr(\"data-price\");var name = checkBox.attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});} else {checkBox.prop('checked', true);// console.log(\"Case à cocher cochée : \" + value);var formule = \"\";if (\$('#radio1').is(':checked')) {formule = \$(\"#radio1\").val();}else if (\$('#radio21').is(':checked')) {formule = \$(\"#radio21\").val();}else if (\$('#radio24').is(':checked')) {formule = \$(\"#radio24\").val();}else if (\$('#radio25').is(':checked')) {formule = \$(\"#radio25\").val();}else{formule = \"\";}var serviceId = \$(this).prev().data('id');var dataElement = \$(this).prev();\$.ajax({url: \"{{path('ajaxServicePrice')}}\",type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : value,formule : formule},success: function(response) {dataElement.attr(\"data-price\", response);var idProduct = dataElement.attr(\"data-id\");var price = dataElement.attr(\"data-price\");var name = dataElement.attr(\"data-name\");var actionType = \"add\";if(price != 0 ){\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});checkBox.next('label').css({ 'color': 'white' ,'background': '#FFD86E'});}else {// Si le prix est égal à zéro, changer le fond du checkbox en grischeckBox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});}});var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {var selectedValue = radioButtons[i].value;break;}}console.log(selectedValue); // Vous pouvez utiliser la valeur comme vous le souhaitez ici});</script>{% endblock %}", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig", "/home/gebcloud/public_html/cowork.gebanalysis.cloud/src/Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-step.html.twig");}}