var/cache/dev/twig/ad/ad3fc6f15818c5457b425a80197f81e0.php line 50

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