var/cache/dev/twig/28/281225a5aee5c22c77a5ab79aad0558b.php line 40

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig */
  14. class __TwigTemplate_053d0e8b404d18d09b74bb802da39f0b extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig"));
  40.         $this->parent $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig""@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 4
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 5
  56.         $this->displayParentBlock("stylesheets"$context$blocks);
  57.         echo "
  58.  <link rel=\"stylesheet\" href=\"";
  59.         // line 6
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/css/reservation.css"), "html"nulltrue);
  61.         echo "\" />
  62.  
  63. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" />
  64. <style>
  65.   .modal-backdrop.fade.show {
  66.         display: none;
  67. }
  68.  
  69.  
  70. /* css checkbox*/
  71. /* hide checkbox */
  72. input[type=\"checkbox\"] {
  73.   display: none;
  74. }
  75. /* if checkbox is checked, then do these things */
  76. /*input[type=\"checkbox\"]:checked + label {
  77.   color: white;
  78.   background:#FFD86E;
  79.   border-radius: 5px;
  80.   padding: 0px 10px 0px 10px;
  81. }
  82. /* styles when hovering over options */
  83. label:hover {
  84.   cursor: pointer;
  85.   
  86.   /* transitions and animations */
  87.   -webkit-transition: color .5s ease;
  88.   -moz-transition: color .5s ease;
  89.   -ms-transition: color .5s ease;
  90.   -o-transition: color .5s ease;
  91.   transition: color .5s ease;
  92. }
  93.   
  94. input.button {
  95.   
  96. \twidth:130px;
  97. \theight:50px;
  98. \tmargin: 20px 0 30px 0;
  99. \tpadding: 0px 20px 0px 20px;
  100. \tbackground: #e6e6e6;
  101. \tborder-radius:5px;
  102. \tborder: 1px solid #ccc;
  103. \tfont-family: OpenSans, sans-serif;
  104. \tfont-size:16pt;
  105. \tcolor:#444;
  106. }
  107. .Addons label{
  108.     font-size:12px !important;
  109.     font-family: 'roboto';
  110.     font-weight: 500;
  111.     border: 1px solid #80808024;
  112.     margin: 2px;
  113.     padding: 0px 5px 0px 5px;
  114.     border-radius: 5px;
  115. }
  116. .multistep-container .active-button li:not(:first-child) .round-btn:before {
  117.     position: absolute;
  118.     content: '';
  119.     width: 141px;
  120.     height: 3px;
  121.     background-color: #E9F2FA;
  122.     left: -120px;
  123. }
  124. .multistep-container .active-button li {
  125.     display: inline-block;
  126.     width: 140px;
  127. }
  128. .form-check {
  129.     line-height: 22px;
  130. }   
  131. .col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{
  132.         flex: 0 0 86%;
  133. }
  134.  @media (max-width:767px) {
  135.                 html, body {
  136.                   overflow-x: hidden  !important;
  137.                 }
  138.                 body {
  139.                   position: relative !important;
  140.                 }
  141.                 .col-sm-8.reservation-steeps {
  142.                     padding:0%;
  143.                 }
  144.                 .multistep-container .mutistep-form-area .form-box{
  145.                     position: relative;
  146.                     top: 33px;
  147.                     left: 0px;
  148.                 }
  149.                 .multistep-container .active-button li{
  150.                     display: inline-block;
  151.                     width: 100px;
  152.                 }
  153.                 .panel-sticky{
  154.                     font-size:12px;
  155.                 }
  156.               h6.display-6.header-steeps {
  157.                 margin-left: 3%;
  158.             }
  159.             h6.datetime{
  160.                  margin-left: 3%;
  161.             }
  162.             a#seeDetails {
  163.                 margin-bottom: -11%;
  164.             }
  165.             a#seePrice {
  166.                 float: right;
  167.                 margin-right: 52%;
  168.             }
  169.  }
  170.  
  171.  li.etape1:before {
  172.     background: #7ED670 !important; /* Change the background color */
  173.     color: white !important;
  174. }
  175.  .message {
  176.         
  177.                color: white;
  178.             background: rgb(199, 200, 204);
  179.             
  180.             font-size: 15px;
  181.             padding: 20px;
  182.             border-radius: 10px;
  183.             text-align: center;
  184.             font-weight: bold;
  185.             box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  186.             height: 100px; /* Adjust the height as necessary */
  187.             display: flex;
  188.             align-items: center;
  189.             justify-content: center;
  190.         }
  191.     
  192. </style>
  193.   
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.     }
  200.     // line 154
  201.     public function block_body($context, array $blocks = [])
  202.     {
  203.         $macros $this->macros;
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  208.         // line 155
  209.         echo 
  210.  
  211.  
  212.  
  213.   <img src=\"";
  214.         // line 161
  215.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/office.jpg"), "html"nulltrue);
  216.         echo "\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" />
  217.   <div class=\"container\">
  218.     <div class=\"row justify-content-between\">
  219.       <div class=\"col-sm-8 reservation-steeps\">
  220.        
  221.        <div class=\"row\">
  222.           <div class=\"col-sm-8\">
  223.             <h6 style=\"margin-top:10px\">Réservation   
  224.                  ";
  225.         // line 169
  226.         $context["displayed_categories"] = [];
  227.         echo "  
  228.               ";
  229.         // line 170
  230.         $context['_parent'] = $context;
  231.         $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'170$this->source); })()));
  232.         foreach ($context['_seq'] as $context["_key"] => $context["bureau"]) {
  233.             // line 171
  234.             echo "                            ";
  235.             $context['_parent'] = $context;
  236.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["bureau"], "categoriesProduct", [], "any"falsefalsefalse171));
  237.             foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  238.                 // line 172
  239.                 echo "                             ";
  240.                 if (((twig_get_attribute($this->env$this->source$context["cat"], "id", [], "any"falsefalsefalse172) == (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'172$this->source); })())) && !twig_in_filter(twig_get_attribute($this->env$this->source$context["cat"], "id", [], "any"falsefalsefalse172), (isset($context["displayed_categories"]) || array_key_exists("displayed_categories"$context) ? $context["displayed_categories"] : (function () { throw new RuntimeError('Variable "displayed_categories" does not exist.'172$this->source); })())))) {
  241.                     // line 173
  242.                     echo "                                 
  243.                                  ";
  244.                     // line 174
  245.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "name", [], "any"falsefalsefalse174), "html"nulltrue);
  246.                     echo "
  247.                               ";
  248.                 }
  249.                 // line 176
  250.                 echo "                                 ";
  251.                 $context["displayed_categories"] = twig_array_merge((isset($context["displayed_categories"]) || array_key_exists("displayed_categories"$context) ? $context["displayed_categories"] : (function () { throw new RuntimeError('Variable "displayed_categories" does not exist.'176$this->source); })()), [twig_get_attribute($this->env$this->source$context["cat"], "id", [], "any"falsefalsefalse176)]);
  252.                 // line 177
  253.                 echo "                              ";
  254.             }
  255.             $_parent $context['_parent'];
  256.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
  257.             $context array_intersect_key($context$_parent) + $_parent;
  258.             // line 178
  259.             echo "                        ";
  260.         }
  261.         $_parent $context['_parent'];
  262.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bureau'], $context['_parent'], $context['loop']);
  263.         $context array_intersect_key($context$_parent) + $_parent;
  264.         // line 179
  265.         echo "
  266.             </h6>
  267.           </div>
  268.           <div class=\"col-sm-4\" style=\"margin-top:10px;\">
  269.             <a href=\"/themes/coworking/front/images/BUREAUX.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>
  270.           </div>
  271.         </div>
  272.        
  273.        
  274.         <div class=\"container\">
  275.          
  276.               
  277.           
  278.           <div class=\"row\">
  279.               
  280.          <div class=\"container d-flex justify-content-center align-items-center\">
  281.          
  282.          
  283.           <ul id=\"progressbar\">
  284. \t\t \t<li class=\"etape1\" >   <span>   Type</span>  </li>
  285. \t       <li class=\"active\" >    <span>   Formule</span></li>
  286. \t\t  <li> Date </li>
  287.           <li> Confirmation</li>
  288.           
  289. \t\t\t\t</ul>
  290.            
  291.       </div>
  292.             
  293.             
  294.             <div class=\"col-xl-12\" style=\"top: 20px ;\">
  295.               
  296.               <div class=\"multistep-container\">
  297.                 <div class=\"mutistep-form-area\">
  298.                     
  299.                  
  300.                   <div class=\"form-box\">
  301.                 
  302.                    
  303.                  
  304.                        
  305.                             <div class=\"container\" >
  306.                            
  307.                             <!--     <h5>Veuillez choisir un bureau :</h5>
  308.                    <select name=\"select\" id=\"select\" class=\"form-control selectpiker\">
  309.                         <option value=\"\">Sélectionner votre choix </option>
  310.                         ";
  311.         // line 226
  312.         $context['_parent'] = $context;
  313.         $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'226$this->source); })()));
  314.         foreach ($context['_seq'] as $context["_key"] => $context["bureau"]) {
  315.             // line 227
  316.             echo "                     
  317.                             ";
  318.             // line 228
  319.             $context['_parent'] = $context;
  320.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["bureau"], "categoriesProduct", [], "any"falsefalsefalse228));
  321.             foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  322.                 // line 229
  323.                 echo "                          
  324.                                 ";
  325.                 // line 230
  326.                 if ((twig_get_attribute($this->env$this->source$context["cat"], "id", [], "any"falsefalsefalse230) == (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'230$this->source); })()))) {
  327.                     // line 231
  328.                     echo "                                    <option value=\"";
  329.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bureau"], "id", [], "any"falsefalsefalse231), "html"nulltrue);
  330.                     echo "\">BUREAU ";
  331.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bureau"], "name", [], "any"falsefalsefalse231), "html"nulltrue);
  332.                     echo "</option>
  333.                                 ";
  334.                 }
  335.                 // line 233
  336.                 echo "                            ";
  337.             }
  338.             $_parent $context['_parent'];
  339.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
  340.             $context array_intersect_key($context$_parent) + $_parent;
  341.             // line 234
  342.             echo "                        ";
  343.         }
  344.         $_parent $context['_parent'];
  345.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bureau'], $context['_parent'], $context['loop']);
  346.         $context array_intersect_key($context$_parent) + $_parent;
  347.         // line 235
  348.         echo "                    </select>-->
  349.                  
  350.                           
  351.               
  352.               
  353.                
  354.                  <div id=\"form-attribue\" style=\"line-height: 30px;\" class=\"mt-4\"> 
  355. <h5>Veuillez choisir une formule  </h5>
  356.             
  357.                   ";
  358.         // line 249
  359.         $context['_parent'] = $context;
  360.         $context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues"$context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.'249$this->source); })()));
  361.         foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {
  362.             // line 250
  363.             echo "                    
  364.                     
  365.                    
  366.                   ";
  367.             // line 254
  368.             if ((twig_get_attribute($this->env$this->source$context["attr"], "code", [], "any"falsefalsefalse254) == "simple")) {
  369.                 // line 255
  370.                 echo "
  371.                
  372.                   
  373.                   <div class=\"form-check\"  >
  374.                 <input class=\"form-check-input option radio1 \"  data-days=\"10\" data-id=\"";
  375.                 // line 260
  376.                 echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'260$this->source); })()), "html"nulltrue);
  377.                 echo "\" data-name=\"";
  378.                 echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName"$context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.'260$this->source); })()), "html"nulltrue);
  379.                 echo "\"  data-price=\"";
  380.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse260), "html"nulltrue);
  381.                 echo "\" type=\"radio\" name=\"radioGroup\" class=\"option\" id=\"radio1\" value=\"";
  382.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse260), "name", [], "any"falsefalsefalse260), "html"nulltrue);
  383.                 echo "\" />
  384.                 <label class=\"form-check-label\"  data-days=\"10\" data-id=\"";
  385.                 // line 261
  386.                 echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'261$this->source); })()), "html"nulltrue);
  387.                 echo "\" data-name=\"";
  388.                 echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName"$context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.'261$this->source); })()), "html"nulltrue);
  389.                 echo "\"  data-price=\"";
  390.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse261), "html"nulltrue);
  391.                 echo "\" for=\"radio1\">";
  392.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse261), "name", [], "any"falsefalsefalse261), "html"nulltrue);
  393.                 echo "</label><br>
  394.                 <small>
  395.                   
  396.                   ";
  397.                 // line 264
  398.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse264), "description", [], "any"falsefalsefalse264), "html"nulltrue);
  399.                 echo "
  400.                   </small>
  401.                 </div>
  402.                 
  403.                   ";
  404.             }
  405.             // line 271
  406.             echo "                  ";
  407.         }
  408.         $_parent $context['_parent'];
  409.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);
  410.         $context array_intersect_key($context$_parent) + $_parent;
  411.         // line 272
  412.         echo "
  413.                   
  414.                  ";
  415.         // line 274
  416.         $context["addedValues"] = [];
  417.         // line 275
  418.         echo "                ";
  419.         if ((twig_length_filter($this->env, (isset($context["attributValues"]) || array_key_exists("attributValues"$context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.'275$this->source); })())) > 0)) {
  420.             // line 276
  421.             echo "                
  422.                  <div class=\"form-check\">
  423.                         <input class=\"form-check-input\" type=\"radio\" name=\"radioGroup\" id=\"radio2\"  />
  424.                         <label class=\"form-check-label\" for=\"radio2\">Location “Pass jours”</label><br>
  425.                         <small>Cette formule est déclinée comme suit :</small>
  426.                         <select style=\"padding: 4px;\" class=\"col-6  option \" id=\"serviceFormule\" >
  427.                        
  428.                              <option value=\"\" data-price=\"\"  >Sélectionner un choix</option>
  429.                     
  430.                          ";
  431.             // line 285
  432.             $context['_parent'] = $context;
  433.             $context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues"$context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.'285$this->source); })()));
  434.             foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {
  435.                 // line 286
  436.                 echo "                         ";
  437.                 if ((twig_get_attribute($this->env$this->source$context["attr"], "code", [], "any"falsefalsefalse286) == "multiple")) {
  438.                     // line 287
  439.                     echo "                          ";
  440.                     $context["optionId"] = ((((((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse287), "name", [], "any"falsefalsefalse287) . "-") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse287), "description", [], "any"falsefalsefalse287)) . "-") . (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'287$this->source); })())) . "-") . (isset($context["subcategoryName"]) || array_key_exists("subcategoryName"$context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.'287$this->source); })())) . "-") . twig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse287));
  441.                     // line 288
  442.                     echo "                            ";
  443.                     if (!twig_in_filter((isset($context["optionId"]) || array_key_exists("optionId"$context) ? $context["optionId"] : (function () { throw new RuntimeError('Variable "optionId" does not exist.'288$this->source); })()), (isset($context["addedValues"]) || array_key_exists("addedValues"$context) ? $context["addedValues"] : (function () { throw new RuntimeError('Variable "addedValues" does not exist.'288$this->source); })()))) {
  444.                         // line 289
  445.                         echo "                          ";
  446.                         $context["_"] = twig_array_merge((isset($context["addedValues"]) || array_key_exists("addedValues"$context) ? $context["addedValues"] : (function () { throw new RuntimeError('Variable "addedValues" does not exist.'289$this->source); })()), [(isset($context["optionId"]) || array_key_exists("optionId"$context) ? $context["optionId"] : (function () { throw new RuntimeError('Variable "optionId" does not exist.'289$this->source); })())]);
  447.                         // line 290
  448.                         echo "                        <option  value=\"";
  449.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse290), "name", [], "any"falsefalsefalse290), "html"nulltrue);
  450.                         echo "\"  data-days=\"";
  451.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse290), "description", [], "any"falsefalsefalse290), "html"nulltrue);
  452.                         echo "\" data-id=\"";
  453.                         echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'290$this->source); })()), "html"nulltrue);
  454.                         echo "\" data-name=\"";
  455.                         echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName"$context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.'290$this->source); })()), "html"nulltrue);
  456.                         echo "\"  data-price=\"";
  457.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse290), "html"nulltrue);
  458.                         echo "\"  >";
  459.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse290), "name", [], "any"falsefalsefalse290), "html"nulltrue);
  460.                         echo "</option>
  461.                          ";
  462.                     }
  463.                     // line 292
  464.                     echo "                        ";
  465.                 }
  466.                 // line 293
  467.                 echo "                        ";
  468.             }
  469.             $_parent $context['_parent'];
  470.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);
  471.             $context array_intersect_key($context$_parent) + $_parent;
  472.             // line 294
  473.             echo "                        </select>
  474.                  </div>
  475.                ";
  476.         }
  477.         // line 297
  478.         echo "
  479.              ";
  480.         // line 298
  481.         $context['_parent'] = $context;
  482.         $context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues"$context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.'298$this->source); })()));
  483.         foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {
  484.             // line 299
  485.             echo "                   ";
  486.             if ((twig_get_attribute($this->env$this->source$context["attr"], "code", [], "any"falsefalsefalse299) == "personalized")) {
  487.                 echo "     
  488.                    
  489.                      
  490.                      <div class=\"form-check\">
  491.                       <input class=\"form-check-input option radio1 \"  data-days=\"30\"  data-id=\"";
  492.                 // line 303
  493.                 echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'303$this->source); })()), "html"nulltrue);
  494.                 echo "\" data-name=\"";
  495.                 echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName"$context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.'303$this->source); })()), "html"nulltrue);
  496.                 echo "\"  ";
  497.                 if ((null === twig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse303))) {
  498.                     echo " data-price=\"0\"  ";
  499.                 } else {
  500.                     echo "  data-price=\"";
  501.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse303), "html"nulltrue);
  502.                     echo "\"  ";
  503.                 }
  504.                 echo "  type=\"radio\" name=\"radioGroup\"  ";
  505.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse303), "name", [], "any"falsefalsefalse303) == "Période personnalisée")) {
  506.                     echo "   value=\"Mois\"   ";
  507.                 } else {
  508.                     echo "  value=\"";
  509.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse303), "name", [], "any"falsefalsefalse303), "html"nulltrue);
  510.                     echo "\" ";
  511.                 }
  512.                 echo "  id=\"radioMois\"  />
  513.                       <label class=\"form-check-label\" data-days=\"30\" data-id=\"";
  514.                 // line 304
  515.                 echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'304$this->source); })()), "html"nulltrue);
  516.                 echo "\" data-name=\"";
  517.                 echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName"$context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.'304$this->source); })()), "html"nulltrue);
  518.                 echo "\"  ";
  519.                 if ((null === twig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse304))) {
  520.                     echo " data-price=\"0\"  ";
  521.                 } else {
  522.                     echo "  data-price=\"";
  523.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attr"], "price", [], "any"falsefalsefalse304), "html"nulltrue);
  524.                     echo "\"  ";
  525.                 }
  526.                 echo "    for=\"radio";
  527.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse304), "id", [], "any"falsefalsefalse304), "html"nulltrue);
  528.                 echo "\">  ";
  529.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse304), "name", [], "any"falsefalsefalse304), "html"nulltrue);
  530.                 echo "   </label><br>
  531.                       
  532.                        <small> ";
  533.                 // line 306
  534.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["attr"], "attribut", [], "any"falsefalsefalse306), "description", [], "any"falsefalsefalse306), "html"nulltrue);
  535.                 echo "</small>
  536.                     </div>
  537.                      
  538.                      ";
  539.             }
  540.             // line 310
  541.             echo "                   ";
  542.         }
  543.         $_parent $context['_parent'];
  544.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);
  545.         $context array_intersect_key($context$_parent) + $_parent;
  546.         // line 311
  547.         echo "                 
  548.                     <h5 style=\"font-weight:bold; margin-top: 10px;\">Services supplémentaires </h5>
  549.                     <h6 style=\"font-weight:bold; margin-top: 10px;\">Voulez-vous ajouter des services supplémentaires?</h6>
  550.                     <!--<small style=\"color:grey\">Disponible en location au mois ou à la journée</small>-->
  551.                     <div class=\"row\">
  552.                          <div class=\"col-sm-12 Addons\">
  553.                             ";
  554.         // line 317
  555.         $context['_parent'] = $context;
  556.         $context['_seq'] = twig_ensure_traversable((isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'317$this->source); })()));
  557.         foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  558.             // line 318
  559.             echo "
  560.                                     <input id=\"";
  561.             // line 319
  562.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse319), "html"nulltrue);
  563.             echo "\"  data-id=\"";
  564.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "id", [], "any"falsefalsefalse319), "html"nulltrue);
  565.             echo "\" data-name=\"";
  566.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse319), "html"nulltrue);
  567.             echo "\"  data-price=\"";
  568.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "price", [], "any"falsefalsefalse319), "html"nulltrue);
  569.             echo "\"  type=\"checkbox\" class=\"CK\"  name=\"services\" value=\"";
  570.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "id", [], "any"falsefalsefalse319), "html"nulltrue);
  571.             echo " \"><label for=\"service\"> ";
  572.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse319), "html"nulltrue);
  573.             echo "  </label> 
  574.                             ";
  575.         }
  576.         $_parent $context['_parent'];
  577.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  578.         $context array_intersect_key($context$_parent) + $_parent;
  579.         // line 320
  580.         echo "<br>
  581.                             
  582.                             
  583.                                    ";
  584.         // line 323
  585.         $context["isSimple"] = false;
  586.         // line 324
  587.         echo "                                ";
  588.         $context['_parent'] = $context;
  589.         $context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues"$context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.'324$this->source); })()));
  590.         foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {
  591.             // line 325
  592.             echo "                                    ";
  593.             if ((twig_get_attribute($this->env$this->source$context["attr"], "code", [], "any"falsefalsefalse325) == "simple")) {
  594.                 // line 326
  595.                 echo "                                        ";
  596.                 $context["isSimple"] = true;
  597.                 // line 327
  598.                 echo "                                    ";
  599.             }
  600.             // line 328
  601.             echo "                                ";
  602.         }
  603.         $_parent $context['_parent'];
  604.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);
  605.         $context array_intersect_key($context$_parent) + $_parent;
  606.         // line 329
  607.         echo "
  608.                                  
  609.                            
  610.                               ";
  611.         // line 333
  612.         $context['_parent'] = $context;
  613.         $context['_seq'] = twig_ensure_traversable((isset($context["servicesCommuns"]) || array_key_exists("servicesCommuns"$context) ? $context["servicesCommuns"] : (function () { throw new RuntimeError('Variable "servicesCommuns" does not exist.'333$this->source); })()));
  614.         foreach ($context['_seq'] as $context["_key"] => $context["servicesCommun"]) {
  615.             // line 334
  616.             echo "                               ";
  617.             if ( !(isset($context["isSimple"]) || array_key_exists("isSimple"$context) ? $context["isSimple"] : (function () { throw new RuntimeError('Variable "isSimple" does not exist.'334$this->source); })())) {
  618.                 // line 335
  619.                 echo "                               ";
  620.                 if (!twig_in_filter(twig_get_attribute($this->env$this->source$context["servicesCommun"], "id", [], "any"falsefalsefalse335), [949269])) {
  621.                     // line 336
  622.                     echo "                            <input id=\"";
  623.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "name", [], "any"falsefalsefalse336), "html"nulltrue);
  624.                     echo "\" data-id=\"";
  625.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "id", [], "any"falsefalsefalse336), "html"nulltrue);
  626.                     echo "\" data-name=\"";
  627.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "name", [], "any"falsefalsefalse336), "html"nulltrue);
  628.                     echo "\" data-price=\"";
  629.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "price", [], "any"falsefalsefalse336), "html"nulltrue);
  630.                     echo "\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"";
  631.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "id", [], "any"falsefalsefalse336), "html"nulltrue);
  632.                     echo " \">
  633.                             <label for=\"service\"> ";
  634.                     // line 337
  635.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "name", [], "any"falsefalsefalse337), "html"nulltrue);
  636.                     echo " </label>
  637.                              ";
  638.                 }
  639.                 // line 339
  640.                 echo "                            ";
  641.             } else {
  642.                 // line 340
  643.                 echo "                        <input id=\"";
  644.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "name", [], "any"falsefalsefalse340), "html"nulltrue);
  645.                 echo "\" data-id=\"";
  646.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "id", [], "any"falsefalsefalse340), "html"nulltrue);
  647.                 echo "\" data-name=\"";
  648.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "name", [], "any"falsefalsefalse340), "html"nulltrue);
  649.                 echo "\" data-price=\"";
  650.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "price", [], "any"falsefalsefalse340), "html"nulltrue);
  651.                 echo "\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"";
  652.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "id", [], "any"falsefalsefalse340), "html"nulltrue);
  653.                 echo " \">
  654.                         <label for=\"service\"> ";
  655.                 // line 341
  656.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["servicesCommun"], "name", [], "any"falsefalsefalse341), "html"nulltrue);
  657.                 echo " </label>
  658.                            ";
  659.             }
  660.             // line 343
  661.             echo "                              ";
  662.         }
  663.         $_parent $context['_parent'];
  664.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicesCommun'], $context['_parent'], $context['loop']);
  665.         $context array_intersect_key($context$_parent) + $_parent;
  666.         // line 344
  667.         echo "
  668.                               ";
  669.         // line 348
  670.         echo "     
  671.  
  672.                              </div>
  673.                      <!-- <div class=\"col-sm-12\">
  674.                         <small style=\"color:grey; margin-top: 5px;\">Autre</small>
  675.                         <input type=\"text\" class=\"form-control\" id=\"information\" placeholder=\"Saisissez votre texte ici\" style=\"height: 30px;border-radius: 4px;\">
  676.                       </div>-->
  677.                       
  678.                     <!-- <h5 style=\"font-weight:bold;margin-top: 10px; \">Informations additionnelles </h5>
  679.                      <h6 style=\"font-weight:bold; margin-top: 10px;\">Avez vous des demandes spécifiques ? </h6>
  680.                       <textarea class=\"form-control\" name=\"demande_specifique\" id=\"textAreaExample1\" rows=\"1\" placeholder=\"Saisissez votre texte Ici\" style=\"font-size: 12px;\"></textarea>
  681.                       -->
  682.                        <div class=\"message\" style=\" display: none;\">Les Services supplémentaires sont indisponibles pour cette sélection.</div>
  683.                     </div>
  684.                     <div class=\"button-row\">
  685.             <a href=\"";
  686.         // line 366
  687.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationbureaux");
  688.         echo "\"   class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\"   style=\" border:1px solid #FFCB00 !important; color:black !important;background: #ffff !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape précédente</a>
  689.             &nbsp;&nbsp;
  690.                <a href=\"";
  691.         // line 368
  692.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationstep2office", ["id" => (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'368$this->source); })())]), "html"nulltrue);
  693.         echo "\"  id=\"reservationLink\"  class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\"   style=\"background: #FFCB00 !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape suivante</a>
  694.                                                       
  695.                       </div>
  696.                  </div>
  697.                 
  698.               
  699.                  </div>
  700.                             
  701.                             
  702.                            
  703.                      
  704.            
  705.                     
  706.                    
  707.                   </div>
  708.                    
  709.                 
  710.                 </div>
  711.               </div>
  712.             </div>
  713.           </div>
  714.         </div>
  715.          
  716.       </div>
  717.         <div id=\"panier\" class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto; \"> 
  718.       
  719.         ";
  720.         // line 403
  721.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart"));
  722.         echo "
  723.     </div>
  724.   </div>
  725.   
  726.   
  727. ";
  728.         
  729.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  730.         
  731.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  732.     }
  733.     // line 415
  734.     public function block_javascripts($context, array $blocks = [])
  735.     {
  736.         $macros $this->macros;
  737.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  738.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  739.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  740.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  741.         // line 416
  742.         echo "  <!-- MAIN CONTENT -->
  743.  
  744. <script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script>
  745. <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script>
  746.  
  747.  
  748. <script>
  749.  //recuperer la valeur des jours dans le formulaire .
  750.     document.getElementById('reservationLink').addEventListener('click', function() {
  751.          
  752.         var days=0;
  753.         var selectedOption = document.getElementById('serviceFormule');
  754.          var selected = selectedOption.value;
  755.           if(selected != \"\"){
  756.            days = selectedOption.options[selectedOption.selectedIndex].getAttribute('data-days');
  757.           }else{
  758.          var radioButtons = document.getElementsByName('radioGroup');
  759.           for (var i = 0; i < radioButtons.length; i++) {
  760.             if (radioButtons[i].checked) {
  761.              days = parseInt(radioButtons[i].getAttribute('data-days'));
  762.             break;
  763.             }
  764.         }  }
  765.             
  766.           
  767.     if (days === 0) {
  768.         event.preventDefault(); // Empêche le lien de se déclencher
  769.         alert(\"Vous n'avez rien sélectionné. Veuillez sélectionner une option.\");
  770.     }  
  771.         var link = document.getElementById('reservationLink');
  772.       
  773.        link.href = \"";
  774.         // line 450
  775.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationstep2office", ["id" => (isset($context["subcategory"]) || array_key_exists("subcategory"$context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.'450$this->source); })()), "paramFormule" => "days"]), "html"nulltrue);
  776.         echo "\".replace('days', days);
  777.     });
  778.   
  779.     \$(document).ready(function(){
  780.     
  781.         /*\$(\"#select\").change(function(){
  782.             var selectedValue = \$(this).val();
  783.  
  784.              
  785.             \$.ajax({
  786.                 url: '/reservation/ajax-formule-reservation',
  787.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  788.                 data: { office : selectedValue },
  789.                 success: function(response) {
  790.                     
  791.                    // Vider le contenu de la div #form-attribue
  792.                \$('#form-attribue').empty();
  793.                     
  794.             setTimeout(function() {
  795.               // Cacher la div loader après le délai spécifié (par exemple, 2 secondes)
  796.                  
  797.               // Afficher le résultat dans la div
  798.                    \$('#form-attribue').html(response);
  799.              }, 1000); // Délai de 2 secondes (2000 millisecondes)
  800.         
  801.                 
  802.                 },
  803.                 error: function(xhr, status, error) {
  804.                     // Gérez les erreurs ici
  805.                     console.error(error);
  806.                 }
  807.             });
  808.         });*/
  809.   \$('#serviceFormule').change(function(){ 
  810.                         var radio = document.getElementById('radio2');
  811.                           radio.checked = true;
  812.                   \$('.Addons').show();
  813.              \$('.message').hide();
  814.  
  815.     
  816.    });
  817.  var radioButtons = document.getElementsByName('radioGroup');
  818.  var selectElement = document.getElementById('serviceFormule');
  819. radioButtons.forEach(function(radio) {
  820.     radio.addEventListener('click', function() {
  821.         if (radio.id === 'radio2') {
  822.             selectElement.disabled = false;
  823.     
  824.                 
  825.             selectElement.val(\$('option:nth-child(1)').prop('selected', true));
  826.              \$('.Addons').show();
  827.              \$('.message').hide()
  828.             
  829.             
  830.         }
  831.         else if(radio.id === 'radio1'){
  832.                
  833.                     \$('.Addons').hide();
  834.                     \$('.message').show();
  835.         }
  836.         else {
  837.             selectElement.selectedIndex = 0; // Sélection du premier élément
  838.             selectElement.disabled = true;
  839.              \$('.Addons').show();
  840.                     \$('.message').hide();
  841.         }
  842.     });
  843. });
  844.          \$('body').on(\"click\",\".option\",function() {
  845.            /*var selectedServiceIds = [];
  846.           var formule =\"\";
  847.             formule = \$(\".radio1\").val();*/
  848.              if (\$(this).is(':checked')) {  
  849.         var formule = \$(this).val(); 
  850.        
  851.     }
  852.              \$('.CK:checked').each(function() {
  853.         // Ajouter l'ID du service sélectionné à la liste
  854.         //selectedServiceIds.push(\$(this).data('id'));
  855.   
  856.            var currentCheckbox = \$(this);
  857.           \$.ajax({
  858.                 url: '/reservation/ajax-service-price',
  859.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  860.                 data: { 
  861.                   serviceId : \$(this).data('id'),
  862.                   formule : formule
  863.                  },
  864.                 success: function(response) {
  865.                     currentCheckbox.attr('data-price', response);
  866.                     var idProduct = currentCheckbox.attr(\"data-id\");
  867.                     var price = currentCheckbox.attr(\"data-price\");
  868.                     var name = currentCheckbox.attr(\"data-name\");
  869.                      if(price != 0){
  870.                     var actionType = \"add\";
  871.                      currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});
  872.                     }else{
  873.                       var actionType = \"remove\";
  874.                       currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});
  875.                     }
  876.                     
  877.              \$.ajax({
  878.                 url:\"";
  879.         // line 571
  880.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  881.         echo "\",
  882.                 data:{
  883.                   idProduct:idProduct,
  884.                   price:price,
  885.                   name:name,
  886.                   actionType:actionType
  887.                 },
  888.                 success:function(result){
  889.                   console.log(result);
  890.                     \$(\".reservation-steeps-panier\").html(result);
  891.                 }
  892.               });
  893.                             
  894.                        
  895.         },
  896.                 error: function(xhr, status, error) {
  897.                     // Gérez les erreurs ici
  898.                     console.error(error);
  899.                 }
  900.             });
  901.          
  902.   
  903.           
  904.     
  905.         
  906.     });
  907.         
  908.           
  909.     var idProduct = \$(this).attr(\"data-id\");
  910.     var price = \$(this).attr(\"data-price\");
  911.     var name = \$(this).attr(\"data-name\");
  912.     var actionType = \"add\";
  913.     \$.ajax({
  914.       url:\"";
  915.         // line 609
  916.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  917.         echo "\",
  918.       data:{
  919.         idProduct:idProduct,
  920.         price:price,
  921.         name:name,
  922.         actionType:actionType
  923.       },
  924.       success:function(result){
  925.         console.log(result);
  926.           \$(\".reservation-steeps-panier\").html(result);
  927.       }
  928.     });
  929.     });
  930.              \$('body').on(\"change\",\"select.option\",function() {
  931.  var selectedServiceIds = [];
  932.                  if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio3\").val() != \"\"){
  933.          if(\$(\"#serviceFormule\").val() != \"\" ){
  934.                  formule =\$(\"#serviceFormule\").val();
  935.                 }else{
  936.                  formule = \$(\".radio1\").val();
  937.                 }
  938.           }
  939.             // Parcourir toutes les cases cochées avec la classe CK
  940.     \$('.CK:checked').each(function() {
  941.         // Ajouter l'ID du service sélectionné à la liste
  942.        // selectedServiceIds.push(\$(this).data('id'));
  943.   
  944.            var currentCheckbox = \$(this);
  945.           \$.ajax({
  946.                 url: '/reservation/ajax-service-price',
  947.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  948.                 data: { 
  949.                   serviceId : \$(this).data('id'),
  950.                   formule : formule
  951.                  },
  952.                 success: function(response) {
  953.                     currentCheckbox.attr('data-price', response);
  954.                     var idProduct = currentCheckbox.attr(\"data-id\");
  955.                     var price = currentCheckbox.attr(\"data-price\");
  956.                     var name = currentCheckbox.attr(\"data-name\");
  957.                     
  958.                      if(price != 0){
  959.                     var actionType = \"add\";
  960.                      currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});
  961.                     }else{
  962.                       var actionType = \"remove\";
  963.                       currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});
  964.                     }
  965.                     
  966.                    
  967.              \$.ajax({
  968.                 url:\"";
  969.         // line 665
  970.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  971.         echo "\",
  972.                 data:{
  973.                   idProduct:idProduct,
  974.                   price:price,
  975.                   name:name,
  976.                   actionType:actionType
  977.                 },
  978.                 success:function(result){
  979.                   console.log(result);
  980.                     \$(\".reservation-steeps-panier\").html(result);
  981.                 }
  982.               });
  983.                             
  984.                        
  985.         },
  986.                 error: function(xhr, status, error) {
  987.                     // Gérez les erreurs ici
  988.                     console.error(error);
  989.                 }
  990.             });
  991.          
  992.   
  993.           
  994.     
  995.         
  996.     });
  997.     
  998.       
  999.                 
  1000.           
  1001.     var idProduct = \$(this).find(\"option:selected\").attr(\"data-id\");
  1002.     var price = \$(this).find(\"option:selected\").attr(\"data-price\");
  1003.     var name = \$(this).find(\"option:selected\").attr(\"data-name\");
  1004.     var actionType = \"add\";
  1005.    
  1006.     \$.ajax({
  1007.       url:\"";
  1008.         // line 709
  1009.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  1010.         echo "\",
  1011.       data:{
  1012.         idProduct:idProduct,
  1013.         price:price,
  1014.         name:name,
  1015.         actionType:actionType
  1016.       },
  1017.       success:function(result){
  1018.         console.log(result);
  1019.           \$(\".reservation-steeps-panier\").html(result);
  1020.       }
  1021.     });
  1022.     });
  1023.           \$('body').on(\"click\",\".delete-cart-item\",function() {
  1024.           
  1025.     var idProduct = \$(this).attr(\"data-id\");
  1026.     var price = \$(this).attr(\"data-price\");
  1027.     var name = \$(this).attr(\"data-name\");
  1028.     var actionType = \"remove\";
  1029.     \$.ajax({
  1030.       url:\"";
  1031.         // line 733
  1032.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  1033.         echo "\",
  1034.       data:{
  1035.         idProduct:idProduct,
  1036.         price:price,
  1037.         name:name,
  1038.         actionType:actionType
  1039.       },
  1040.       success:function(result){
  1041.         console.log(result);
  1042.           \$(\".reservation-steeps-panier\").html(result);
  1043.       }
  1044.     });
  1045.     });
  1046.         // Ajouter la délégation d'événements pour le clic sur le label 'service'
  1047. \$('#form-attribue').on('click', 'label[for=\"service\"]', function() {
  1048.     
  1049.     var checkBox = \$(this).prev();
  1050.     var value = checkBox.val();
  1051.     if (checkBox.is(\":checked\")) {
  1052.         checkBox.prop('checked', false);
  1053.         console.log(\"Case à cocher décochée : \" + value);
  1054.            checkBox.next('label').css({ 'color': '#626262' ,'background': 'none'});   
  1055.     var idProduct = checkBox.attr(\"data-id\");
  1056.     var price = checkBox.attr(\"data-price\");
  1057.     var name = checkBox.attr(\"data-name\");
  1058.     var actionType = \"remove\";
  1059.       \$.ajax({
  1060.       url:\"";
  1061.         // line 762
  1062.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  1063.         echo "\",
  1064.       data:{
  1065.         idProduct:idProduct,
  1066.         price:price,
  1067.         name:name,
  1068.         actionType:actionType
  1069.       },
  1070.       success:function(result){
  1071.         console.log(result);
  1072.           \$(\".reservation-steeps-panier\").html(result);
  1073.       }
  1074.     });
  1075.  
  1076.     } else {
  1077.         checkBox.prop('checked', true);
  1078.        // console.log(\"Case à cocher cochée : \" + value);
  1079.        var formule = \"\";
  1080.        
  1081.         
  1082.               if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio1\").val() != \"\"){
  1083.                  if(\$(\"#serviceFormule\").val() != \"\" ){
  1084.                  formule =\$(\"#serviceFormule\").val();
  1085.                 }
  1086.                 else if (\$('#radio1').is(':checked')) {
  1087.                   formule = \$(\".radio1\").val();
  1088.                  }
  1089.                  else if (\$('#radio1').is(':checked')) {
  1090.                   formule = \$(\"#radio1\").val();
  1091.                  }
  1092.                   else if (\$('#radioMois').is(':checked')) {
  1093.                   formule = \$(\"#radioMois\").val();
  1094.                  }
  1095.               
  1096.                      var serviceId = \$(this).prev().data('id');
  1097.                     var dataElement = \$(this).prev();
  1098.              \$.ajax({
  1099.                 url: \"";
  1100.         // line 801
  1101.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajaxServicePrice");
  1102.         echo "\",
  1103.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  1104.                 data: { 
  1105.                   serviceId : value,
  1106.                   formule : formule
  1107.                  },
  1108.                 success: function(response) {
  1109.                    // alert(response);
  1110.                  
  1111.                     dataElement.attr(\"data-price\", response);
  1112.                     var idProduct = dataElement.attr(\"data-id\");
  1113.                     var price = dataElement.attr(\"data-price\");
  1114.                     var name = dataElement.attr(\"data-name\");
  1115.                     var actionType = \"add\";
  1116.                  if(price != 0 ){
  1117.                 \$.ajax({
  1118.                 url:\"";
  1119.         // line 818
  1120.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  1121.         echo "\",
  1122.                 data:{
  1123.                   idProduct:idProduct,
  1124.                   price:price,
  1125.                   name:name,
  1126.                   actionType:actionType
  1127.                 },
  1128.                 success:function(result){
  1129.                   console.log(result);
  1130.                     \$(\".reservation-steeps-panier\").html(result);
  1131.                 }
  1132.               });
  1133.                checkBox.next('label').css({ 'color': 'white' ,'background': '#FFD86E'});
  1134.                  
  1135.                    }else {
  1136.                 // Si le prix est égal à zéro, changer le fond du checkbox en gris
  1137.                 checkBox.next('label').css({'color': 'white', 'background': '#C7C8CC'});
  1138.             }   
  1139.                  
  1140.                        
  1141.                 },
  1142.                 error: function(xhr, status, error) {
  1143.                     // Gérez les erreurs ici
  1144.                     console.error(error);
  1145.                 }
  1146.             });
  1147.             }
  1148.     }
  1149.    
  1150. });
  1151.  
  1152.  
  1153.  var radioButtons = document.getElementsByName('radioGroup');
  1154. for (var i = 0; i < radioButtons.length; i++) {
  1155.     if (radioButtons[i].checked) {
  1156.         var selectedValue = radioButtons[i].value;
  1157.         break;
  1158.     }
  1159. }
  1160. console.log(selectedValue); // Vous pouvez utiliser la valeur comme vous le souhaitez ici
  1161.     });
  1162.    
  1163.  
  1164.  
  1165. </script>
  1166.  
  1167. ";
  1168.         
  1169.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1170.         
  1171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1172.     }
  1173.     public function getTemplateName()
  1174.     {
  1175.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig";
  1176.     }
  1177.     public function isTraitable()
  1178.     {
  1179.         return false;
  1180.     }
  1181.     public function getDebugInfo()
  1182.     {
  1183.         return array (  1234 => 818,  1214 => 801,  1172 => 762,  1140 => 733,  1113 => 709,  1066 => 665,  1007 => 609,  966 => 571,  842 => 450,  806 => 416,  796 => 415,  780 => 403,  742 => 368,  737 => 366,  717 => 348,  714 => 344,  708 => 343,  703 => 341,  690 => 340,  687 => 339,  682 => 337,  669 => 336,  666 => 335,  663 => 334,  659 => 333,  653 => 329,  647 => 328,  644 => 327,  641 => 326,  638 => 325,  633 => 324,  631 => 323,  626 => 320,  608 => 319,  605 => 318,  601 => 317,  593 => 311,  587 => 310,  580 => 306,  561 => 304,  539 => 303,  531 => 299,  527 => 298,  524 => 297,  519 => 294,  513 => 293,  510 => 292,  494 => 290,  491 => 289,  488 => 288,  485 => 287,  482 => 286,  478 => 285,  467 => 276,  464 => 275,  462 => 274,  458 => 272,  452 => 271,  442 => 264,  430 => 261,  420 => 260,  413 => 255,  411 => 254,  405 => 250,  401 => 249,  385 => 235,  379 => 234,  373 => 233,  365 => 231,  363 => 230,  360 => 229,  356 => 228,  353 => 227,  349 => 226,  300 => 179,  294 => 178,  288 => 177,  285 => 176,  280 => 174,  277 => 173,  274 => 172,  269 => 171,  265 => 170,  261 => 169,  250 => 161,  242 => 155,  232 => 154,  74 => 6,  70 => 5,  60 => 4,  37 => 1,);
  1184.     }
  1185.     public function getSourceContext()
  1186.     {
  1187.         return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}
  1188. {% block stylesheets %}
  1189. {{ parent() }}
  1190.  <link rel=\"stylesheet\" href=\"{{ asset('themes/coworking/css/reservation.css') }}\" />
  1191.  
  1192. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" />
  1193. <style>
  1194.   .modal-backdrop.fade.show {
  1195.         display: none;
  1196. }
  1197.  
  1198.  
  1199. /* css checkbox*/
  1200. /* hide checkbox */
  1201. input[type=\"checkbox\"] {
  1202.   display: none;
  1203. }
  1204. /* if checkbox is checked, then do these things */
  1205. /*input[type=\"checkbox\"]:checked + label {
  1206.   color: white;
  1207.   background:#FFD86E;
  1208.   border-radius: 5px;
  1209.   padding: 0px 10px 0px 10px;
  1210. }
  1211. /* styles when hovering over options */
  1212. label:hover {
  1213.   cursor: pointer;
  1214.   
  1215.   /* transitions and animations */
  1216.   -webkit-transition: color .5s ease;
  1217.   -moz-transition: color .5s ease;
  1218.   -ms-transition: color .5s ease;
  1219.   -o-transition: color .5s ease;
  1220.   transition: color .5s ease;
  1221. }
  1222.   
  1223. input.button {
  1224.   
  1225. \twidth:130px;
  1226. \theight:50px;
  1227. \tmargin: 20px 0 30px 0;
  1228. \tpadding: 0px 20px 0px 20px;
  1229. \tbackground: #e6e6e6;
  1230. \tborder-radius:5px;
  1231. \tborder: 1px solid #ccc;
  1232. \tfont-family: OpenSans, sans-serif;
  1233. \tfont-size:16pt;
  1234. \tcolor:#444;
  1235. }
  1236. .Addons label{
  1237.     font-size:12px !important;
  1238.     font-family: 'roboto';
  1239.     font-weight: 500;
  1240.     border: 1px solid #80808024;
  1241.     margin: 2px;
  1242.     padding: 0px 5px 0px 5px;
  1243.     border-radius: 5px;
  1244. }
  1245. .multistep-container .active-button li:not(:first-child) .round-btn:before {
  1246.     position: absolute;
  1247.     content: '';
  1248.     width: 141px;
  1249.     height: 3px;
  1250.     background-color: #E9F2FA;
  1251.     left: -120px;
  1252. }
  1253. .multistep-container .active-button li {
  1254.     display: inline-block;
  1255.     width: 140px;
  1256. }
  1257. .form-check {
  1258.     line-height: 22px;
  1259. }   
  1260. .col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{
  1261.         flex: 0 0 86%;
  1262. }
  1263.  @media (max-width:767px) {
  1264.                 html, body {
  1265.                   overflow-x: hidden  !important;
  1266.                 }
  1267.                 body {
  1268.                   position: relative !important;
  1269.                 }
  1270.                 .col-sm-8.reservation-steeps {
  1271.                     padding:0%;
  1272.                 }
  1273.                 .multistep-container .mutistep-form-area .form-box{
  1274.                     position: relative;
  1275.                     top: 33px;
  1276.                     left: 0px;
  1277.                 }
  1278.                 .multistep-container .active-button li{
  1279.                     display: inline-block;
  1280.                     width: 100px;
  1281.                 }
  1282.                 .panel-sticky{
  1283.                     font-size:12px;
  1284.                 }
  1285.               h6.display-6.header-steeps {
  1286.                 margin-left: 3%;
  1287.             }
  1288.             h6.datetime{
  1289.                  margin-left: 3%;
  1290.             }
  1291.             a#seeDetails {
  1292.                 margin-bottom: -11%;
  1293.             }
  1294.             a#seePrice {
  1295.                 float: right;
  1296.                 margin-right: 52%;
  1297.             }
  1298.  }
  1299.  
  1300.  li.etape1:before {
  1301.     background: #7ED670 !important; /* Change the background color */
  1302.     color: white !important;
  1303. }
  1304.  .message {
  1305.         
  1306.                color: white;
  1307.             background: rgb(199, 200, 204);
  1308.             
  1309.             font-size: 15px;
  1310.             padding: 20px;
  1311.             border-radius: 10px;
  1312.             text-align: center;
  1313.             font-weight: bold;
  1314.             box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  1315.             height: 100px; /* Adjust the height as necessary */
  1316.             display: flex;
  1317.             align-items: center;
  1318.             justify-content: center;
  1319.         }
  1320.     
  1321. </style>
  1322.   
  1323. {% endblock  %}
  1324. {% block body %}
  1325.  
  1326.  
  1327.  
  1328.  
  1329.   <img src=\"{{asset('themes/coworking/front/images/office.jpg')}}\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" />
  1330.   <div class=\"container\">
  1331.     <div class=\"row justify-content-between\">
  1332.       <div class=\"col-sm-8 reservation-steeps\">
  1333.        
  1334.        <div class=\"row\">
  1335.           <div class=\"col-sm-8\">
  1336.             <h6 style=\"margin-top:10px\">Réservation   
  1337.                  {% set displayed_categories = [] %}  
  1338.               {% for bureau in products %}
  1339.                             {% for cat in bureau.categoriesProduct %}
  1340.                              {% if cat.id == subcategory and  cat.id not in displayed_categories %}
  1341.                                  
  1342.                                  {{cat.name }}
  1343.                               {% endif%}
  1344.                                  {% set displayed_categories = displayed_categories|merge([cat.id]) %}
  1345.                               {% endfor %}
  1346.                         {% endfor %}
  1347.             </h6>
  1348.           </div>
  1349.           <div class=\"col-sm-4\" style=\"margin-top:10px;\">
  1350.             <a href=\"/themes/coworking/front/images/BUREAUX.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>
  1351.           </div>
  1352.         </div>
  1353.        
  1354.        
  1355.         <div class=\"container\">
  1356.          
  1357.               
  1358.           
  1359.           <div class=\"row\">
  1360.               
  1361.          <div class=\"container d-flex justify-content-center align-items-center\">
  1362.          
  1363.          
  1364.           <ul id=\"progressbar\">
  1365. \t\t \t<li class=\"etape1\" >   <span>   Type</span>  </li>
  1366. \t       <li class=\"active\" >    <span>   Formule</span></li>
  1367. \t\t  <li> Date </li>
  1368.           <li> Confirmation</li>
  1369.           
  1370. \t\t\t\t</ul>
  1371.            
  1372.       </div>
  1373.             
  1374.             
  1375.             <div class=\"col-xl-12\" style=\"top: 20px ;\">
  1376.               
  1377.               <div class=\"multistep-container\">
  1378.                 <div class=\"mutistep-form-area\">
  1379.                     
  1380.                  
  1381.                   <div class=\"form-box\">
  1382.                 
  1383.                    
  1384.                  
  1385.                        
  1386.                             <div class=\"container\" >
  1387.                            
  1388.                             <!--     <h5>Veuillez choisir un bureau :</h5>
  1389.                    <select name=\"select\" id=\"select\" class=\"form-control selectpiker\">
  1390.                         <option value=\"\">Sélectionner votre choix </option>
  1391.                         {% for bureau in products %}
  1392.                      
  1393.                             {% for cat in bureau.categoriesProduct %}
  1394.                           
  1395.                                 {% if cat.id == subcategory %}
  1396.                                     <option value=\"{{bureau.id }}\">BUREAU {{ bureau.name }}</option>
  1397.                                 {% endif %}
  1398.                             {% endfor %}
  1399.                         {% endfor %}
  1400.                     </select>-->
  1401.                  
  1402.                           
  1403.               
  1404.               
  1405.                
  1406.                  <div id=\"form-attribue\" style=\"line-height: 30px;\" class=\"mt-4\"> 
  1407. <h5>Veuillez choisir une formule  </h5>
  1408.             
  1409.                   {% for attr in  attributValues %}
  1410.                     
  1411.                     
  1412.                    
  1413.                   {% if attr.code == \"simple\" %}
  1414.                
  1415.                   
  1416.                   <div class=\"form-check\"  >
  1417.                 <input class=\"form-check-input option radio1 \"  data-days=\"10\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\"  data-price=\"{{attr.price}}\" type=\"radio\" name=\"radioGroup\" class=\"option\" id=\"radio1\" value=\"{{attr.attribut.name}}\" />
  1418.                 <label class=\"form-check-label\"  data-days=\"10\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\"  data-price=\"{{attr.price}}\" for=\"radio1\">{{attr.attribut.name}}</label><br>
  1419.                 <small>
  1420.                   
  1421.                   {{attr.attribut.description}}
  1422.                   </small>
  1423.                 </div>
  1424.                 
  1425.                   {% endif %}
  1426.                   {% endfor %}
  1427.                   
  1428.                  {% set addedValues = [] %}
  1429.                 {% if attributValues|length > 0 %}
  1430.                 
  1431.                  <div class=\"form-check\">
  1432.                         <input class=\"form-check-input\" type=\"radio\" name=\"radioGroup\" id=\"radio2\"  />
  1433.                         <label class=\"form-check-label\" for=\"radio2\">Location “Pass jours”</label><br>
  1434.                         <small>Cette formule est déclinée comme suit :</small>
  1435.                         <select style=\"padding: 4px;\" class=\"col-6  option \" id=\"serviceFormule\" >
  1436.                        
  1437.                              <option value=\"\" data-price=\"\"  >Sélectionner un choix</option>
  1438.                     
  1439.                          {% for attr in attributValues %}
  1440.                          {% if attr.code == \"multiple\" %}
  1441.                           {% set optionId = attr.attribut.name ~ \"-\" ~ attr.attribut.description ~ \"-\" ~ subcategory ~ \"-\" ~ subcategoryName ~ \"-\" ~ attr.price %}
  1442.                             {% if optionId not in addedValues %}
  1443.                           {% set _ = addedValues|merge([optionId]) %}
  1444.                         <option  value=\"{{attr.attribut.name}}\"  data-days=\"{{attr.attribut.description}}\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\"  data-price=\"{{attr.price}}\"  >{{attr.attribut.name}}</option>
  1445.                          {% endif %}
  1446.                         {% endif %}
  1447.                         {% endfor %}
  1448.                         </select>
  1449.                  </div>
  1450.                {% endif %}
  1451.              {% for attr in  attributValues %}
  1452.                    {% if attr.code == \"personalized\" %}     
  1453.                    
  1454.                      
  1455.                      <div class=\"form-check\">
  1456.                       <input class=\"form-check-input option radio1 \"  data-days=\"30\"  data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\"  {% if(attr.price is null) %} data-price=\"0\"  {% else %}  data-price=\"{{attr.price}}\"  {% endif %}  type=\"radio\" name=\"radioGroup\"  {% if(attr.attribut.name==\"Période personnalisée\") %}   value=\"Mois\"   {% else %}  value=\"{{attr.attribut.name}}\" {% endif %}  id=\"radioMois\"  />
  1457.                       <label class=\"form-check-label\" data-days=\"30\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\"  {% if(attr.price is null) %} data-price=\"0\"  {% else %}  data-price=\"{{attr.price}}\"  {% endif %}    for=\"radio{{ attr.attribut.id}}\">  {{ attr.attribut.name}}   </label><br>
  1458.                       
  1459.                        <small> {{ attr.attribut.description}}</small>
  1460.                     </div>
  1461.                      
  1462.                      {% endif %}
  1463.                    {% endfor %}
  1464.                  
  1465.                     <h5 style=\"font-weight:bold; margin-top: 10px;\">Services supplémentaires </h5>
  1466.                     <h6 style=\"font-weight:bold; margin-top: 10px;\">Voulez-vous ajouter des services supplémentaires?</h6>
  1467.                     <!--<small style=\"color:grey\">Disponible en location au mois ou à la journée</small>-->
  1468.                     <div class=\"row\">
  1469.                          <div class=\"col-sm-12 Addons\">
  1470.                             {% for service in  services %}
  1471.                                     <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> 
  1472.                             {% endfor %}<br>
  1473.                             
  1474.                             
  1475.                                    {% set isSimple = false %}
  1476.                                 {% for attr in attributValues %}
  1477.                                     {% if attr.code == \"simple\" %}
  1478.                                         {% set isSimple = true %}
  1479.                                     {% endif %}
  1480.                                 {% endfor %}
  1481.                                  
  1482.                            
  1483.                               {% for servicesCommun in  servicesCommuns %}
  1484.                                {% if not isSimple %}
  1485.                                {% if servicesCommun.id not in [94, 92, 69]  %}
  1486.                             <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 }} \">
  1487.                             <label for=\"service\"> {{ servicesCommun.name }} </label>
  1488.                              {% endif %}
  1489.                             {% else %}
  1490.                         <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 }} \">
  1491.                         <label for=\"service\"> {{ servicesCommun.name }} </label>
  1492.                            {% endif %}
  1493.                               {% endfor %}
  1494.                               {#{% for servicesCommun in  servicesCommuns %}
  1495.                                     <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>
  1496.                                       
  1497.                               {% endfor %}#}     
  1498.  
  1499.                              </div>
  1500.                      <!-- <div class=\"col-sm-12\">
  1501.                         <small style=\"color:grey; margin-top: 5px;\">Autre</small>
  1502.                         <input type=\"text\" class=\"form-control\" id=\"information\" placeholder=\"Saisissez votre texte ici\" style=\"height: 30px;border-radius: 4px;\">
  1503.                       </div>-->
  1504.                       
  1505.                     <!-- <h5 style=\"font-weight:bold;margin-top: 10px; \">Informations additionnelles </h5>
  1506.                      <h6 style=\"font-weight:bold; margin-top: 10px;\">Avez vous des demandes spécifiques ? </h6>
  1507.                       <textarea class=\"form-control\" name=\"demande_specifique\" id=\"textAreaExample1\" rows=\"1\" placeholder=\"Saisissez votre texte Ici\" style=\"font-size: 12px;\"></textarea>
  1508.                       -->
  1509.                        <div class=\"message\" style=\" display: none;\">Les Services supplémentaires sont indisponibles pour cette sélection.</div>
  1510.                     </div>
  1511.                     <div class=\"button-row\">
  1512.             <a href=\"{{path(\"reservationbureaux\")}}\"   class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\"   style=\" border:1px solid #FFCB00 !important; color:black !important;background: #ffff !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape précédente</a>
  1513.             &nbsp;&nbsp;
  1514.                <a href=\"{{path(\"reservationstep2office\",{id:subcategory})}}\"  id=\"reservationLink\"  class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\"   style=\"background: #FFCB00 !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape suivante</a>
  1515.                                                       
  1516.                       </div>
  1517.                  </div>
  1518.                 
  1519.               
  1520.                  </div>
  1521.                             
  1522.                             
  1523.                            
  1524.                      
  1525.            
  1526.                     
  1527.                    
  1528.                   </div>
  1529.                    
  1530.                 
  1531.                 </div>
  1532.               </div>
  1533.             </div>
  1534.           </div>
  1535.         </div>
  1536.          
  1537.       </div>
  1538.         <div id=\"panier\" class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto; \"> 
  1539.       
  1540.         {{render(path(\"ajax_cart\"))}}
  1541.     </div>
  1542.   </div>
  1543.   
  1544.   
  1545. {% endblock %}
  1546. {% block javascripts %}
  1547.   <!-- MAIN CONTENT -->
  1548.  
  1549. <script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script>
  1550. <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script>
  1551.  
  1552.  
  1553. <script>
  1554.  //recuperer la valeur des jours dans le formulaire .
  1555.     document.getElementById('reservationLink').addEventListener('click', function() {
  1556.          
  1557.         var days=0;
  1558.         var selectedOption = document.getElementById('serviceFormule');
  1559.          var selected = selectedOption.value;
  1560.           if(selected != \"\"){
  1561.            days = selectedOption.options[selectedOption.selectedIndex].getAttribute('data-days');
  1562.           }else{
  1563.          var radioButtons = document.getElementsByName('radioGroup');
  1564.           for (var i = 0; i < radioButtons.length; i++) {
  1565.             if (radioButtons[i].checked) {
  1566.              days = parseInt(radioButtons[i].getAttribute('data-days'));
  1567.             break;
  1568.             }
  1569.         }  }
  1570.             
  1571.           
  1572.     if (days === 0) {
  1573.         event.preventDefault(); // Empêche le lien de se déclencher
  1574.         alert(\"Vous n'avez rien sélectionné. Veuillez sélectionner une option.\");
  1575.     }  
  1576.         var link = document.getElementById('reservationLink');
  1577.       
  1578.        link.href = \"{{ path('reservationstep2office', {id: subcategory, 'paramFormule': 'days'}) }}\".replace('days', days);
  1579.     });
  1580.   
  1581.     \$(document).ready(function(){
  1582.     
  1583.         /*\$(\"#select\").change(function(){
  1584.             var selectedValue = \$(this).val();
  1585.  
  1586.              
  1587.             \$.ajax({
  1588.                 url: '/reservation/ajax-formule-reservation',
  1589.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  1590.                 data: { office : selectedValue },
  1591.                 success: function(response) {
  1592.                     
  1593.                    // Vider le contenu de la div #form-attribue
  1594.                \$('#form-attribue').empty();
  1595.                     
  1596.             setTimeout(function() {
  1597.               // Cacher la div loader après le délai spécifié (par exemple, 2 secondes)
  1598.                  
  1599.               // Afficher le résultat dans la div
  1600.                    \$('#form-attribue').html(response);
  1601.              }, 1000); // Délai de 2 secondes (2000 millisecondes)
  1602.         
  1603.                 
  1604.                 },
  1605.                 error: function(xhr, status, error) {
  1606.                     // Gérez les erreurs ici
  1607.                     console.error(error);
  1608.                 }
  1609.             });
  1610.         });*/
  1611.   \$('#serviceFormule').change(function(){ 
  1612.                         var radio = document.getElementById('radio2');
  1613.                           radio.checked = true;
  1614.                   \$('.Addons').show();
  1615.              \$('.message').hide();
  1616.  
  1617.     
  1618.    });
  1619.  var radioButtons = document.getElementsByName('radioGroup');
  1620.  var selectElement = document.getElementById('serviceFormule');
  1621. radioButtons.forEach(function(radio) {
  1622.     radio.addEventListener('click', function() {
  1623.         if (radio.id === 'radio2') {
  1624.             selectElement.disabled = false;
  1625.     
  1626.                 
  1627.             selectElement.val(\$('option:nth-child(1)').prop('selected', true));
  1628.              \$('.Addons').show();
  1629.              \$('.message').hide()
  1630.             
  1631.             
  1632.         }
  1633.         else if(radio.id === 'radio1'){
  1634.                
  1635.                     \$('.Addons').hide();
  1636.                     \$('.message').show();
  1637.         }
  1638.         else {
  1639.             selectElement.selectedIndex = 0; // Sélection du premier élément
  1640.             selectElement.disabled = true;
  1641.              \$('.Addons').show();
  1642.                     \$('.message').hide();
  1643.         }
  1644.     });
  1645. });
  1646.          \$('body').on(\"click\",\".option\",function() {
  1647.            /*var selectedServiceIds = [];
  1648.           var formule =\"\";
  1649.             formule = \$(\".radio1\").val();*/
  1650.              if (\$(this).is(':checked')) {  
  1651.         var formule = \$(this).val(); 
  1652.        
  1653.     }
  1654.              \$('.CK:checked').each(function() {
  1655.         // Ajouter l'ID du service sélectionné à la liste
  1656.         //selectedServiceIds.push(\$(this).data('id'));
  1657.   
  1658.            var currentCheckbox = \$(this);
  1659.           \$.ajax({
  1660.                 url: '/reservation/ajax-service-price',
  1661.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  1662.                 data: { 
  1663.                   serviceId : \$(this).data('id'),
  1664.                   formule : formule
  1665.                  },
  1666.                 success: function(response) {
  1667.                     currentCheckbox.attr('data-price', response);
  1668.                     var idProduct = currentCheckbox.attr(\"data-id\");
  1669.                     var price = currentCheckbox.attr(\"data-price\");
  1670.                     var name = currentCheckbox.attr(\"data-name\");
  1671.                      if(price != 0){
  1672.                     var actionType = \"add\";
  1673.                      currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});
  1674.                     }else{
  1675.                       var actionType = \"remove\";
  1676.                       currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});
  1677.                     }
  1678.                     
  1679.              \$.ajax({
  1680.                 url:\"{{path('ajax_cart')}}\",
  1681.                 data:{
  1682.                   idProduct:idProduct,
  1683.                   price:price,
  1684.                   name:name,
  1685.                   actionType:actionType
  1686.                 },
  1687.                 success:function(result){
  1688.                   console.log(result);
  1689.                     \$(\".reservation-steeps-panier\").html(result);
  1690.                 }
  1691.               });
  1692.                             
  1693.                        
  1694.         },
  1695.                 error: function(xhr, status, error) {
  1696.                     // Gérez les erreurs ici
  1697.                     console.error(error);
  1698.                 }
  1699.             });
  1700.          
  1701.   
  1702.           
  1703.     
  1704.         
  1705.     });
  1706.         
  1707.           
  1708.     var idProduct = \$(this).attr(\"data-id\");
  1709.     var price = \$(this).attr(\"data-price\");
  1710.     var name = \$(this).attr(\"data-name\");
  1711.     var actionType = \"add\";
  1712.     \$.ajax({
  1713.       url:\"{{path('ajax_cart')}}\",
  1714.       data:{
  1715.         idProduct:idProduct,
  1716.         price:price,
  1717.         name:name,
  1718.         actionType:actionType
  1719.       },
  1720.       success:function(result){
  1721.         console.log(result);
  1722.           \$(\".reservation-steeps-panier\").html(result);
  1723.       }
  1724.     });
  1725.     });
  1726.              \$('body').on(\"change\",\"select.option\",function() {
  1727.  var selectedServiceIds = [];
  1728.                  if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio3\").val() != \"\"){
  1729.          if(\$(\"#serviceFormule\").val() != \"\" ){
  1730.                  formule =\$(\"#serviceFormule\").val();
  1731.                 }else{
  1732.                  formule = \$(\".radio1\").val();
  1733.                 }
  1734.           }
  1735.             // Parcourir toutes les cases cochées avec la classe CK
  1736.     \$('.CK:checked').each(function() {
  1737.         // Ajouter l'ID du service sélectionné à la liste
  1738.        // selectedServiceIds.push(\$(this).data('id'));
  1739.   
  1740.            var currentCheckbox = \$(this);
  1741.           \$.ajax({
  1742.                 url: '/reservation/ajax-service-price',
  1743.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  1744.                 data: { 
  1745.                   serviceId : \$(this).data('id'),
  1746.                   formule : formule
  1747.                  },
  1748.                 success: function(response) {
  1749.                     currentCheckbox.attr('data-price', response);
  1750.                     var idProduct = currentCheckbox.attr(\"data-id\");
  1751.                     var price = currentCheckbox.attr(\"data-price\");
  1752.                     var name = currentCheckbox.attr(\"data-name\");
  1753.                     
  1754.                      if(price != 0){
  1755.                     var actionType = \"add\";
  1756.                      currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});
  1757.                     }else{
  1758.                       var actionType = \"remove\";
  1759.                       currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});
  1760.                     }
  1761.                     
  1762.                    
  1763.              \$.ajax({
  1764.                 url:\"{{path('ajax_cart')}}\",
  1765.                 data:{
  1766.                   idProduct:idProduct,
  1767.                   price:price,
  1768.                   name:name,
  1769.                   actionType:actionType
  1770.                 },
  1771.                 success:function(result){
  1772.                   console.log(result);
  1773.                     \$(\".reservation-steeps-panier\").html(result);
  1774.                 }
  1775.               });
  1776.                             
  1777.                        
  1778.         },
  1779.                 error: function(xhr, status, error) {
  1780.                     // Gérez les erreurs ici
  1781.                     console.error(error);
  1782.                 }
  1783.             });
  1784.          
  1785.   
  1786.           
  1787.     
  1788.         
  1789.     });
  1790.     
  1791.       
  1792.                 
  1793.           
  1794.     var idProduct = \$(this).find(\"option:selected\").attr(\"data-id\");
  1795.     var price = \$(this).find(\"option:selected\").attr(\"data-price\");
  1796.     var name = \$(this).find(\"option:selected\").attr(\"data-name\");
  1797.     var actionType = \"add\";
  1798.    
  1799.     \$.ajax({
  1800.       url:\"{{path('ajax_cart')}}\",
  1801.       data:{
  1802.         idProduct:idProduct,
  1803.         price:price,
  1804.         name:name,
  1805.         actionType:actionType
  1806.       },
  1807.       success:function(result){
  1808.         console.log(result);
  1809.           \$(\".reservation-steeps-panier\").html(result);
  1810.       }
  1811.     });
  1812.     });
  1813.           \$('body').on(\"click\",\".delete-cart-item\",function() {
  1814.           
  1815.     var idProduct = \$(this).attr(\"data-id\");
  1816.     var price = \$(this).attr(\"data-price\");
  1817.     var name = \$(this).attr(\"data-name\");
  1818.     var actionType = \"remove\";
  1819.     \$.ajax({
  1820.       url:\"{{path('ajax_cart')}}\",
  1821.       data:{
  1822.         idProduct:idProduct,
  1823.         price:price,
  1824.         name:name,
  1825.         actionType:actionType
  1826.       },
  1827.       success:function(result){
  1828.         console.log(result);
  1829.           \$(\".reservation-steeps-panier\").html(result);
  1830.       }
  1831.     });
  1832.     });
  1833.         // Ajouter la délégation d'événements pour le clic sur le label 'service'
  1834. \$('#form-attribue').on('click', 'label[for=\"service\"]', function() {
  1835.     
  1836.     var checkBox = \$(this).prev();
  1837.     var value = checkBox.val();
  1838.     if (checkBox.is(\":checked\")) {
  1839.         checkBox.prop('checked', false);
  1840.         console.log(\"Case à cocher décochée : \" + value);
  1841.            checkBox.next('label').css({ 'color': '#626262' ,'background': 'none'});   
  1842.     var idProduct = checkBox.attr(\"data-id\");
  1843.     var price = checkBox.attr(\"data-price\");
  1844.     var name = checkBox.attr(\"data-name\");
  1845.     var actionType = \"remove\";
  1846.       \$.ajax({
  1847.       url:\"{{path('ajax_cart')}}\",
  1848.       data:{
  1849.         idProduct:idProduct,
  1850.         price:price,
  1851.         name:name,
  1852.         actionType:actionType
  1853.       },
  1854.       success:function(result){
  1855.         console.log(result);
  1856.           \$(\".reservation-steeps-panier\").html(result);
  1857.       }
  1858.     });
  1859.  
  1860.     } else {
  1861.         checkBox.prop('checked', true);
  1862.        // console.log(\"Case à cocher cochée : \" + value);
  1863.        var formule = \"\";
  1864.        
  1865.         
  1866.               if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio1\").val() != \"\"){
  1867.                  if(\$(\"#serviceFormule\").val() != \"\" ){
  1868.                  formule =\$(\"#serviceFormule\").val();
  1869.                 }
  1870.                 else if (\$('#radio1').is(':checked')) {
  1871.                   formule = \$(\".radio1\").val();
  1872.                  }
  1873.                  else if (\$('#radio1').is(':checked')) {
  1874.                   formule = \$(\"#radio1\").val();
  1875.                  }
  1876.                   else if (\$('#radioMois').is(':checked')) {
  1877.                   formule = \$(\"#radioMois\").val();
  1878.                  }
  1879.               
  1880.                      var serviceId = \$(this).prev().data('id');
  1881.                     var dataElement = \$(this).prev();
  1882.              \$.ajax({
  1883.                 url: \"{{path('ajaxServicePrice')}}\",
  1884.                 type: 'GET', // ou 'GET' en fonction de votre besoin
  1885.                 data: { 
  1886.                   serviceId : value,
  1887.                   formule : formule
  1888.                  },
  1889.                 success: function(response) {
  1890.                    // alert(response);
  1891.                  
  1892.                     dataElement.attr(\"data-price\", response);
  1893.                     var idProduct = dataElement.attr(\"data-id\");
  1894.                     var price = dataElement.attr(\"data-price\");
  1895.                     var name = dataElement.attr(\"data-name\");
  1896.                     var actionType = \"add\";
  1897.                  if(price != 0 ){
  1898.                 \$.ajax({
  1899.                 url:\"{{path('ajax_cart')}}\",
  1900.                 data:{
  1901.                   idProduct:idProduct,
  1902.                   price:price,
  1903.                   name:name,
  1904.                   actionType:actionType
  1905.                 },
  1906.                 success:function(result){
  1907.                   console.log(result);
  1908.                     \$(\".reservation-steeps-panier\").html(result);
  1909.                 }
  1910.               });
  1911.                checkBox.next('label').css({ 'color': 'white' ,'background': '#FFD86E'});
  1912.                  
  1913.                    }else {
  1914.                 // Si le prix est égal à zéro, changer le fond du checkbox en gris
  1915.                 checkBox.next('label').css({'color': 'white', 'background': '#C7C8CC'});
  1916.             }   
  1917.                  
  1918.                        
  1919.                 },
  1920.                 error: function(xhr, status, error) {
  1921.                     // Gérez les erreurs ici
  1922.                     console.error(error);
  1923.                 }
  1924.             });
  1925.             }
  1926.     }
  1927.    
  1928. });
  1929.  
  1930.  
  1931.  var radioButtons = document.getElementsByName('radioGroup');
  1932. for (var i = 0; i < radioButtons.length; i++) {
  1933.     if (radioButtons[i].checked) {
  1934.         var selectedValue = radioButtons[i].value;
  1935.         break;
  1936.     }
  1937. }
  1938. console.log(selectedValue); // Vous pouvez utiliser la valeur comme vous le souhaitez ici
  1939.     });
  1940.    
  1941.  
  1942.  
  1943. </script>
  1944.  
  1945. {% endblock %}
  1946. ""@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig""/home/gebcloud/public_html/cowork.gebanalysis.cloud/src/Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig");
  1947.     }
  1948. }