var/cache/dev/twig/c7/c7ee393ebb8539a28828a55d01a28fd6.php line 40

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-next.html.twig */
  14. class __TwigTemplate_7e10855682bab7f9cdf40c45e5ea7b11 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-next.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-next.html.twig"));
  40.         $this->parent $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig""@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-next.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.  
  59.  <link rel=\"stylesheet\" href=\"";
  60.         // line 7
  61.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/css/reservation.css"), "html"nulltrue);
  62.         echo "\" />
  63.  
  64. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" />
  65.  <style>
  66.  
  67.  .card{
  68.    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px ;
  69. }
  70. .custom-tooltip .tooltip-inner {
  71.     background-color: #fff; /* Remplacez #ff0000 par la couleur de votre choix */
  72.     text-align: left;
  73.     color: #000; /* Couleur du texte à l'intérieur de l'info-bulle */
  74. }
  75. /* Tooltip */
  76. .tooltip {
  77.     background-color: #fff; /* Couleur de fond */
  78.     color: #fff; /* Couleur du texte */
  79.     border: 1px solid #fff; /* Bordure */
  80.     border-radius: 4px; /* Coins arrondis */
  81.     padding: 5px 10px; /* Espacement intérieur */
  82.     font-size: 13px; /* Taille de la police */
  83.     box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Ombre */
  84. }
  85. /* Tooltip - flèche */
  86. .tooltip .arrow::before {
  87.     border-top-color: #fff; /* Couleur de fond */
  88. }
  89. /* Tooltip - position */
  90. .tooltip.top {
  91.     margin-top: -3px; /* Positionnement par rapport à l'élément parent */
  92. }
  93.  .menu {
  94.   display: flex;
  95.   justify-content: space-around;
  96. }
  97. h5 {
  98.     color: #7b7b7b !important;
  99. }
  100. .category {
  101.   flex: 1;
  102.   margin: 0 10px;
  103.   border: 1px solid #ccc;
  104.   border-radius: 5px;
  105.   padding: 10px;
  106. }
  107. h2 {
  108.   font-size: 13px;
  109.   margin-bottom: 5px;
  110.   padding: 5px;
  111. }
  112. .menu .category ul {
  113.   list-style-type: none;
  114.   padding: 0;
  115. }
  116. .menu .category   li {
  117.   margin-bottom: 5px;
  118.  
  119.   font-size: 12px; /* Taille de police légèrement augmentée */
  120. }
  121. /* Style additionnel pour un meilleur aspect */
  122. .menu {
  123.   background-color: #f9f9f9;
  124.   padding: 20px;
  125.   border-radius: 10px;
  126. }
  127. .category {
  128.   background-color: #fff;
  129.   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  130. }
  131. .list-group li {
  132.   font-size: 11px;
  133.     color: #333;
  134.  
  135. }
  136. /* Ajout de styles de survol pour un effet interactif */
  137. .list-group li:hover {
  138.   color: #FFCB00 !important; /* Changement de couleur au survol */
  139.   cursor: pointer; /* Curseur de la souris en pointeur */
  140. }
  141. /* Animation de survol */
  142. .list-group li:hover {
  143.   transform: scale(1.1); /* Agrandissement au survol */
  144.   transition: transform 0.2s ease; /* Transition fluide */
  145. }
  146. .form-control {
  147.     border-radius: 9px;
  148.      padding: 0px !important
  149. }
  150.   .form-check {
  151.  
  152.     min-height: 1.9rem !important;
  153.     }
  154.   .modal-backdrop.fade.show {
  155.         display: none;
  156. }
  157.  
  158.  
  159. /* css checkbox*/
  160. /* hide checkbox */
  161. input[type=\"checkbox\"] {
  162.   display: none;
  163. }
  164. /* if checkbox is checked, then do these things */
  165. input[type=\"checkbox\"]:checked + label {
  166.   color: white;
  167.   background:#FFD86E;
  168.   border-radius: 5px;
  169.   padding: 0px 10px 0px 10px;
  170. }
  171. /* styles when hovering over options */
  172. label:hover {
  173.   cursor: pointer;
  174.   
  175.   /* transitions and animations */
  176.   -webkit-transition: color .5s ease;
  177.   -moz-transition: color .5s ease;
  178.   -ms-transition: color .5s ease;
  179.   -o-transition: color .5s ease;
  180.   transition: color .5s ease;
  181. }
  182. .boutton-step{
  183.   padding:10px; 
  184.   text-decoration:none; 
  185.   width:230px; 
  186.    font-size: 12px;
  187.     font-family: 'PT Sans', sans-serif;
  188.     letter-spacing:2px;
  189. }
  190.   
  191. input.button {
  192.   
  193. \twidth:130px;
  194. \theight:50px;
  195. \tmargin: 20px 0 30px 0;
  196. \tpadding: 0px 20px 0px 20px;
  197. \tbackground: #e6e6e6;
  198. \tborder-radius:5px;
  199. \tborder: 1px solid #ccc;
  200. \tfont-family: OpenSans, sans-serif;
  201. \tfont-size:16pt;
  202. \tcolor:#444;
  203. }
  204. .Addons label{
  205.     font-size:12px !important;
  206.     font-family: 'roboto';
  207.     font-weight: 500;
  208.     border: 1px solid #80808024;
  209.     margin: 2px;
  210.     padding: 0px 5px 0px 5px;
  211.     border-radius: 5px;
  212. }
  213. .multistep-container .active-button li:not(:first-child) .round-btn:before {
  214.     position: absolute;
  215.     content: '';
  216.     width: 141px;
  217.     height: 3px;
  218.     background-color: #E9F2FA;
  219.     left: -120px;
  220. }
  221. .multistep-container .active-button li {
  222.     display: inline-block;
  223.     width: 140px;
  224. }
  225. .form-check {
  226.     line-height: 22px;
  227. }   
  228. .col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{
  229.         flex: 0 0 86%;
  230. }
  231.  p.badge.badge-light {
  232.     background-color: black;
  233. }
  234.     
  235.      li.etape1:before {
  236.     background: #7ED670 !important; /* Change the background color */
  237.     color: white !important;
  238. }
  239.   .titre-page{
  240. margin-top:10px;
  241. font-size: 20px;
  242. line-height:45.29px;
  243. color: #000000;
  244. .radio-buttons {
  245.   display: flex;
  246. }
  247. .radio-buttons input[type=\"radio\"] {
  248.   display: none;
  249. }
  250. .radio-buttons label {
  251.   display: block;
  252.   margin-right: 40px;
  253.   cursor: pointer;
  254. }
  255. .radio-buttons label img {
  256.   border-radius: 10px;
  257.   width: 100px;  
  258.   height: 110px;  
  259.   box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
  260. }
  261. .radio-buttons input[type=\"radio\"]:checked + label img {
  262.   border: 2px solid #FFCB00 ; /* Style pour indiquer la sélection, vous pouvez personnaliser */
  263. }
  264.  
  265.   .form-select{
  266.     width: 100% !important;
  267.   }
  268.    .custom-radio {
  269.       padding-right: 20px; /* Ajoutez le padding ici */
  270.     }
  271.  
  272. </style>
  273.   
  274.   
  275. ";
  276.         
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  278.         
  279.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  280.     }
  281.     // line 266
  282.     public function block_body($context, array $blocks = [])
  283.     {
  284.         $macros $this->macros;
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  286.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  287.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  288.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  289.         // line 267
  290.         echo 
  291.  
  292.  
  293.  
  294.   <img src=\"";
  295.         // line 273
  296.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/sallereunion.jpg"), "html"nulltrue);
  297.         echo "\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" />
  298.   <div class=\"container\">
  299.     <div class=\"row justify-content-between\">
  300.       <div class=\"col-sm-8 reservation-steeps\">
  301.        
  302.        <div class=\"row\">
  303.           <div class=\"col-sm-8\">
  304.             <h6 class=\"titre-page\">Réservation 
  305.                 
  306.             </h6>
  307.           </div>
  308.           <div class=\"col-sm-4\" style=\"margin-top:10px;\">
  309.             <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>
  310.           </div>
  311.         </div>
  312.        
  313.        
  314.         <div class=\"container\">
  315.          
  316.               
  317.                    
  318.   <div class=\"container d-flex justify-content-center align-items-center\">
  319.          
  320.          
  321.           <ul id=\"progressbar\">
  322. \t\t <li class=\"etape1\"> <span> Type</span>  </li>
  323. \t\t<li class=\"active\" > Formule + extra </li>
  324. \t\t<li> Dates</li>
  325. \t\t<li> Confirmation</li>
  326.            
  327.           
  328. \t\t\t\t</ul>
  329.         </div>
  330.             
  331.             <div class=\"col-xl-12\" style=\"top: 20px;\">
  332.               
  333.               <div class=\"multistep-container\">
  334.                 <div class=\"mutistep-form-area\">
  335.                     
  336.                  
  337.                   <div class=\"form-box\">
  338.                 
  339.                     
  340.                  
  341.                        
  342.                             <div class=\"container\" >
  343.                   
  344.               
  345.                
  346.                  <div id=\"form-attribue\" style=\"line-height: 20px;\" class=\"mt-4\"> 
  347.              
  348.           <div class=\"form-check\">
  349.         <input class=\"form-check-input\" type=\"radio\" name=\"choix\" id=\"repas_demande\" value=\"repas\">
  350.         <label class=\"form-check-label\" for=\"repas_demande\">
  351.          <h5 style=\"font-weight:bold; margin-top: 2px;\" >Voulez-vous choisir un extra ?</h5>
  352.          
  353.         </label>
  354.       </div>
  355.    <div class=\"container\">
  356.   <div class=\"row\">
  357.       <div class=\"col-md-4\">
  358.          
  359.       <div class=\"card\">
  360.           ";
  361.         // line 338
  362.         $context['_parent'] = $context;
  363.         $context['_seq'] = twig_ensure_traversable((isset($context["breakfast"]) || array_key_exists("breakfast"$context) ? $context["breakfast"] : (function () { throw new RuntimeError('Variable "breakfast" does not exist.'338$this->source); })()));
  364.         foreach ($context['_seq'] as $context["_key"] => $context["break"]) {
  365.             // line 339
  366.             echo "         ";
  367.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["break"], "photo", [], "any"falsefalsefalse339))) {
  368.                 // line 340
  369.                 echo "        <img style=\"widh:100%\"  src=\"";
  370.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/coworking/" twig_get_attribute($this->env$this->source$context["break"], "photo", [], "any"falsefalsefalse340))), "html"nulltrue);
  371.                 echo "\" class=\"card-img-top\" alt=\"Breakfast Image\">
  372.             ";
  373.             }
  374.             // line 342
  375.             echo "                 ";
  376.         }
  377.         $_parent $context['_parent'];
  378.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['break'], $context['_parent'], $context['loop']);
  379.         $context array_intersect_key($context$_parent) + $_parent;
  380.         // line 343
  381.         echo "                <div  >
  382.        
  383.           <ul class=\"list-group\">
  384.             ";
  385.         // line 346
  386.         $context['_parent'] = $context;
  387.         $context['_seq'] = twig_ensure_traversable((isset($context["breakfast"]) || array_key_exists("breakfast"$context) ? $context["breakfast"] : (function () { throw new RuntimeError('Variable "breakfast" does not exist.'346$this->source); })()));
  388.         foreach ($context['_seq'] as $context["_key"] => $context["break"]) {
  389.             // line 347
  390.             echo "            <li class=\"list-group-item\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"<b>";
  391.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["break"], "type", [], "any"falsefalsefalse347), "html"nulltrue);
  392.             echo "</b><br>";
  393.             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["break"], "description", [], "any"falsefalsefalse347));
  394.             echo "\"> ";
  395.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["break"], "name", [], "any"falsefalsefalse347), "html"nulltrue);
  396.             echo "</li>
  397.              ";
  398.         }
  399.         $_parent $context['_parent'];
  400.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['break'], $context['_parent'], $context['loop']);
  401.         $context array_intersect_key($context$_parent) + $_parent;
  402.         // line 349
  403.         echo "          </ul>
  404.         </div>
  405.       </div>
  406.     </div>
  407.     <div class=\"col-md-4\">
  408.        <div class=\"card\">
  409.              ";
  410.         // line 356
  411.         $context['_parent'] = $context;
  412.         $context['_seq'] = twig_ensure_traversable((isset($context["lunch"]) || array_key_exists("lunch"$context) ? $context["lunch"] : (function () { throw new RuntimeError('Variable "lunch" does not exist.'356$this->source); })()));
  413.         foreach ($context['_seq'] as $context["_key"] => $context["lun"]) {
  414.             // line 357
  415.             echo "         ";
  416.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["lun"], "photo", [], "any"falsefalsefalse357))) {
  417.                 // line 358
  418.                 echo "        <img style=\"widh:100%\" src=\"";
  419.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/coworking/" twig_get_attribute($this->env$this->source$context["lun"], "photo", [], "any"falsefalsefalse358))), "html"nulltrue);
  420.                 echo "\" class=\"card-img-top\" alt=\"Lunch Image\">
  421.          ";
  422.             }
  423.             // line 360
  424.             echo "                 ";
  425.         }
  426.         $_parent $context['_parent'];
  427.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lun'], $context['_parent'], $context['loop']);
  428.         $context array_intersect_key($context$_parent) + $_parent;
  429.         // line 361
  430.         echo 
  431.           <ul class=\"list-group\">
  432.             ";
  433.         // line 363
  434.         $context['_parent'] = $context;
  435.         $context['_seq'] = twig_ensure_traversable((isset($context["lunch"]) || array_key_exists("lunch"$context) ? $context["lunch"] : (function () { throw new RuntimeError('Variable "lunch" does not exist.'363$this->source); })()));
  436.         foreach ($context['_seq'] as $context["_key"] => $context["lun"]) {
  437.             // line 364
  438.             echo "            <li class=\"list-group-item\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"<b>";
  439.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lun"], "type", [], "any"falsefalsefalse364), "html"nulltrue);
  440.             echo "</b><br> ";
  441.             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["lun"], "description", [], "any"falsefalsefalse364));
  442.             echo "\">";
  443.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lun"], "name", [], "any"falsefalsefalse364), "html"nulltrue);
  444.             echo "</li>
  445.             ";
  446.         }
  447.         $_parent $context['_parent'];
  448.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lun'], $context['_parent'], $context['loop']);
  449.         $context array_intersect_key($context$_parent) + $_parent;
  450.         // line 366
  451.         echo "          </ul>
  452.        
  453.       </div>
  454.     </div>
  455.      
  456.     <div class=\"col-md-4\">
  457.       <div class=\"card\">
  458.            ";
  459.         // line 374
  460.         $context['_parent'] = $context;
  461.         $context['_seq'] = twig_ensure_traversable((isset($context["afternoonBreak"]) || array_key_exists("afternoonBreak"$context) ? $context["afternoonBreak"] : (function () { throw new RuntimeError('Variable "afternoonBreak" does not exist.'374$this->source); })()));
  462.         foreach ($context['_seq'] as $context["_key"] => $context["after"]) {
  463.             // line 375
  464.             echo "         ";
  465.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["after"], "photo", [], "any"falsefalsefalse375))) {
  466.                 // line 376
  467.                 echo "          <img style=\"widh:100%\" src=\"";
  468.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/coworking/" twig_get_attribute($this->env$this->source$context["after"], "photo", [], "any"falsefalsefalse376))), "html"nulltrue);
  469.                 echo "\" class=\"card-img-top\" alt=\"Lunch Image\">
  470.          ";
  471.             }
  472.             // line 378
  473.             echo "                 ";
  474.         }
  475.         $_parent $context['_parent'];
  476.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['after'], $context['_parent'], $context['loop']);
  477.         $context array_intersect_key($context$_parent) + $_parent;
  478.         // line 379
  479.         echo "        <ul class=\"list-group\">
  480.           ";
  481.         // line 380
  482.         $context['_parent'] = $context;
  483.         $context['_seq'] = twig_ensure_traversable((isset($context["afternoonBreak"]) || array_key_exists("afternoonBreak"$context) ? $context["afternoonBreak"] : (function () { throw new RuntimeError('Variable "afternoonBreak" does not exist.'380$this->source); })()));
  484.         foreach ($context['_seq'] as $context["_key"] => $context["after"]) {
  485.             // line 381
  486.             echo "          <li class=\"list-group-item\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"<b>";
  487.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["after"], "type", [], "any"falsefalsefalse381), "html"nulltrue);
  488.             echo "</b> <br> ";
  489.             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["after"], "description", [], "any"falsefalsefalse381));
  490.             echo "\">";
  491.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["after"], "name", [], "any"falsefalsefalse381), "html"nulltrue);
  492.             echo "</li>
  493.           ";
  494.         }
  495.         $_parent $context['_parent'];
  496.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['after'], $context['_parent'], $context['loop']);
  497.         $context array_intersect_key($context$_parent) + $_parent;
  498.         // line 383
  499.         echo "        </ul>
  500.       </div>
  501.     </div>
  502.   </div>
  503. </div>
  504.           
  505.         
  506.     <div class=\"form-group\" style=\"margin-top: 10px;\">
  507.      
  508.         <div id=\"repas\" style=\"padding: 0 20px !important;\">
  509.            <div class=\"row\">
  510.            <div class=\"col-md-6\">
  511.                 <div class=\"form-group\">
  512.                     <label for=\"select_repas_matin\">Pause matin</label>
  513.                     <select class=\"form-select\" id=\"select_repas_matin\" name=\"select_repas_matin\" disabled>
  514.                         <option value=\"\">Choisissez un repas pour le matin</option>
  515.                        ";
  516.         // line 400
  517.         $context['_parent'] = $context;
  518.         $context['_seq'] = twig_ensure_traversable((isset($context["breakfast"]) || array_key_exists("breakfast"$context) ? $context["breakfast"] : (function () { throw new RuntimeError('Variable "breakfast" does not exist.'400$this->source); })()));
  519.         foreach ($context['_seq'] as $context["_key"] => $context["break"]) {
  520.             // line 401
  521.             echo "                        <option data-id=\"";
  522.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["break"], "id", [], "any"falsefalsefalse401), "html"nulltrue);
  523.             echo "\"  value=\"";
  524.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["break"], "price", [], "any"falsefalsefalse401), "html"nulltrue);
  525.             echo "\">";
  526.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["break"], "name", [], "any"falsefalsefalse401), "html"nulltrue);
  527.             echo " (";
  528.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["break"], "price", [], "any"falsefalsefalse401), "html"nulltrue);
  529.             echo " DH)</option>
  530.                         
  531.                         ";
  532.         }
  533.         $_parent $context['_parent'];
  534.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['break'], $context['_parent'], $context['loop']);
  535.         $context array_intersect_key($context$_parent) + $_parent;
  536.         // line 404
  537.         echo "                    </select>
  538.                 </div>
  539.             </div>
  540.             <div class=\"col-md-6\">
  541.                 <div class=\"form-group\" id=\"quantity_input\" style=\"display: none;\">
  542.                     <label for=\"quantity\"><small>Quantité </small></label>
  543.                     <input type=\"number\" class=\"form-control\" id=\"quantity\" name=\"quantity\" min=\"0\" style=\"width: 50px;\">
  544.                 </div>
  545.                 <div id=\"total_price\" style=\"display: none;\">
  546.                    <span class=\"badge badge-light\">Total : <span id=\"total_amount\" class=\"total-amount\"></span> DH</span> 
  547.                 </div>
  548.             </div>
  549.         </div>
  550.       
  551.       <div class=\"row\">
  552.            <div class=\"col-md-6\">
  553.       <div class=\"form-group\">
  554.         <label for=\"select_repas_dejeuner\"> Déjeuner </label>
  555.         <select class=\"form-select\" id=\"select_repas_dejeuner\" name=\"select_repas_dejeuner\" disabled>
  556.              <option value=\"\">Choisissez un repas pour le déjeuner </option>
  557.             ";
  558.         // line 424
  559.         $context['_parent'] = $context;
  560.         $context['_seq'] = twig_ensure_traversable((isset($context["lunch"]) || array_key_exists("lunch"$context) ? $context["lunch"] : (function () { throw new RuntimeError('Variable "lunch" does not exist.'424$this->source); })()));
  561.         foreach ($context['_seq'] as $context["_key"] => $context["lun"]) {
  562.             // line 425
  563.             echo "            <option data-id=\"";
  564.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lun"], "id", [], "any"falsefalsefalse425), "html"nulltrue);
  565.             echo "\" value=\"";
  566.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lun"], "price", [], "any"falsefalsefalse425), "html"nulltrue);
  567.             echo "\">";
  568.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lun"], "name", [], "any"falsefalsefalse425), "html"nulltrue);
  569.             echo " (";
  570.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lun"], "price", [], "any"falsefalsefalse425), "html"nulltrue);
  571.             echo " DH)</option>
  572.             ";
  573.         }
  574.         $_parent $context['_parent'];
  575.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lun'], $context['_parent'], $context['loop']);
  576.         $context array_intersect_key($context$_parent) + $_parent;
  577.         // line 427
  578.         echo "        </select>
  579.       </div>
  580.         </div>
  581.          <div class=\"col-md-6\">
  582.                 <div class=\"form-group\" id=\"quantity_dejeune\" style=\"display: none;\" >
  583.                     <label for=\"quantity\"><small>Quantité </small></label>
  584.                     <input type=\"number\" class=\"form-control\" id=\"quantity_input_dejeuner\" name=\"quantity_input_dejeuner\" min=\"0\" style=\"width: 50px;\">
  585.                 </div>
  586.                 <div id=\"total_price_dejeune\" style=\"display: none;\">
  587.                    <span class=\"badge badge-light\">Total : <span id=\"total_amount_dejeune\" class=\"total-amount\"></span> DH</span> 
  588.                 </div>
  589.                 
  590.             </div>
  591.         </div>
  592.         
  593.       
  594.       <div class=\"row\">
  595.            <div class=\"col-md-6\">
  596.       <div class=\"form-group\">
  597.         <label for=\"select_repas_apres_midi\">  Pause après-midi  </label>
  598.         <select class=\"form-select\" id=\"select_repas_apres_midi\" name=\"select_repas_apres_midi\" disabled>
  599.             <option value=\"\">Choisissez un repas pour la pause après-midi </option>
  600.              ";
  601.         // line 452
  602.         $context['_parent'] = $context;
  603.         $context['_seq'] = twig_ensure_traversable((isset($context["afternoonBreak"]) || array_key_exists("afternoonBreak"$context) ? $context["afternoonBreak"] : (function () { throw new RuntimeError('Variable "afternoonBreak" does not exist.'452$this->source); })()));
  604.         foreach ($context['_seq'] as $context["_key"] => $context["after"]) {
  605.             // line 453
  606.             echo "            <option data-id=\"";
  607.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["after"], "id", [], "any"falsefalsefalse453), "html"nulltrue);
  608.             echo "\" value=\"";
  609.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["after"], "price", [], "any"falsefalsefalse453), "html"nulltrue);
  610.             echo "\">";
  611.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["after"], "name", [], "any"falsefalsefalse453), "html"nulltrue);
  612.             echo " (";
  613.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["after"], "price", [], "any"falsefalsefalse453), "html"nulltrue);
  614.             echo " DH)</option>
  615.             ";
  616.         }
  617.         $_parent $context['_parent'];
  618.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['after'], $context['_parent'], $context['loop']);
  619.         $context array_intersect_key($context$_parent) + $_parent;
  620.         // line 455
  621.         echo "        </select>
  622.       </div>
  623.       </div>
  624.  <div class=\"col-md-6\">
  625.                 <div class=\"form-group\" id=\"quantity_input_apres\" style=\"display: none;\" >
  626.                     <label for=\"quantity\"><small>Quantité</small></label>
  627.                     <input type=\"number\" class=\"form-control\" id=\"quantity_apres\" name=\"quantity_apres\" min=\"0\" style=\"width: 50px;\">
  628.                 </div>
  629.                 <div id=\"total_price_apres\" style=\"display: none;\">
  630.                    <span class=\"badge badge-light\">Total : <span id=\"total_amount_apres\" class=\"total-amount\"></span> DH</span> 
  631.                 </div>
  632.                 
  633.             </div>
  634. <div class=\"col-md-6\">
  635.    
  636. </div>
  637. <div id=\"total_sum_section\"  class=\"col-md-6\">
  638.     <p class=\"badge badge-light\">Total : <span id=\"total_sum\"></span> DH</p>
  639. </div>
  640.         
  641.         </div>
  642.  
  643.       </div>
  644.       <div class=\"form-check mt-4\">
  645.         <input class=\"form-check-input\" type=\"radio\" name=\"choix\"  value=\"demande\">
  646.         <label class=\"form-check-label\" for=\"repas_demande\">
  647.          <h5 style=\"font-weight:bold; \" >Non merci </h5>
  648.         </label>
  649.       </div>
  650.         
  651.     </div>
  652.  
  653.     
  654.   
  655.   </form>
  656.                    
  657.  
  658.                   
  659.                   </div>
  660.               
  661.                                
  662.                     
  663.               
  664.                  </div>
  665.                     <div class=\"button-row\">
  666.         <form action=\"";
  667.         // line 508
  668.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationstep2", ["id" => (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'508$this->source); })())]), "html"nulltrue);
  669.         echo "\" id=\"myForm\"   method=\"GET\" data-turbo=\"false\">          
  670.             <input type=\"hidden\" name=\"days\"  id=\"formule_\" value=\"";
  671.         // line 509
  672.         echo twig_escape_filter($this->env, (isset($context["days"]) || array_key_exists("days"$context) ? $context["days"] : (function () { throw new RuntimeError('Variable "days" does not exist.'509$this->source); })()), "html"nulltrue);
  673.         echo "\"/>
  674.               <input type=\"hidden\" name=\"Plage\"  id=\"horaire_\" value=\"";
  675.         // line 510
  676.         echo twig_escape_filter($this->env, (isset($context["Plage"]) || array_key_exists("Plage"$context) ? $context["Plage"] : (function () { throw new RuntimeError('Variable "Plage" does not exist.'510$this->source); })()), "html"nulltrue);
  677.         echo "\"/>
  678.               <input type=\"hidden\" name=\"amount_extra\"  id=\"amount_extra\" value=\"\"/>
  679.               <input type=\"hidden\" name=\"id_extra\"  id=\"id_extra\" value=\"\"/>
  680.               <input type=\"hidden\" name=\"time\"  id=\"time_\" value=\"";
  681.         // line 513
  682.         echo twig_escape_filter($this->env, (isset($context["time"]) || array_key_exists("time"$context) ? $context["time"] : (function () { throw new RuntimeError('Variable "time" does not exist.'513$this->source); })()), "html"nulltrue);
  683.         echo "\"/>
  684.               <input type=\"hidden\" name=\"device\"  id=\"device_\" value=\"";
  685.         // line 514
  686.         echo twig_escape_filter($this->env, (isset($context["device"]) || array_key_exists("device"$context) ? $context["device"] : (function () { throw new RuntimeError('Variable "device" does not exist.'514$this->source); })()), "html"nulltrue);
  687.         echo "\"/>
  688.               <input type=\"hidden\" name=\"nbrApproximatif\" id=\"nbrApproximatif\" value=\"";
  689.         // line 515
  690.         echo twig_escape_filter($this->env, (isset($context["nbrApproximatif"]) || array_key_exists("nbrApproximatif"$context) ? $context["nbrApproximatif"] : (function () { throw new RuntimeError('Variable "nbrApproximatif" does not exist.'515$this->source); })()), "html"nulltrue);
  691.         echo "\"/>
  692.            
  693.             <a href=\"javascript:void(0)\" onclick=\"history.back()\" 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>
  694.             &nbsp;&nbsp;
  695.              <button type=\"submit\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\" style=\"background: #FFCB00 !important;padding:5px;    border: none; text-decoration:none; width:177px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">
  696.               Étape suivante
  697.                     </button>
  698.              </form>
  699.                       </div> 
  700.                             
  701.                             
  702.                            
  703.                      
  704.            
  705.                     
  706.                    
  707.                   </div>
  708.                    
  709.                 
  710.                 </div>
  711.               </div>
  712.             </div>
  713.           
  714.         </div>
  715.          
  716.       
  717.       </div>
  718.          <div class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto;\">
  719.       
  720.         ";
  721.         // line 551
  722.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart"));
  723.         echo "
  724.     </div>
  725.     </div>
  726.   </div>
  727.   
  728.   
  729. ";
  730.         
  731.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  732.         
  733.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  734.     }
  735.     // line 564
  736.     public function block_javascripts($context, array $blocks = [])
  737.     {
  738.         $macros $this->macros;
  739.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  740.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  741.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  742.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  743.         // line 565
  744.         echo "  <!-- MAIN CONTENT -->
  745.  
  746. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
  747. <script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script>
  748. <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script>
  749.  
  750.  
  751. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js\"></script>
  752. <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js\"></script> 
  753.  
  754. <script>
  755.   \$(document).ready(function(){
  756.       
  757.          \$('#myForm').on('submit', function(event) {
  758.             if (!\$('input[name=\"choix\"]:checked').length) {
  759.                 alert('Veuillez sélectionner une option.');
  760.                 event.preventDefault();
  761.             }
  762.         });
  763.         
  764.   
  765.    \$('[data-toggle=\"tooltip\"]').tooltip({
  766.       placement: 'top', // Position de l'info-bulle
  767.       trigger: 'hover', // Déclencheur de l'info-bulle
  768.       delay: { \"show\": 500, \"hide\": 100 }, // Délai d'affichage et de masquage en millisecondes
  769.       html: true, // Autoriser le contenu HTML dans l'info-bulle
  770.       template: '<div class=\"tooltip custom-tooltip\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"tooltip-inner\"></div></div>' // Utilisation d'un modèle personnalisé pour l'info-bulle
  771.     });
  772. \$('body').on(\"click\",\".delete-cart-item\",function() {
  773.           
  774.     var idProduct = \$(this).attr(\"data-id\");
  775.     var price = \$(this).attr(\"data-price\");
  776.     var name = \$(this).attr(\"data-name\");
  777.     var actionType = \"remove\";
  778.     \$.ajax({
  779.       url:\"";
  780.         // line 606
  781.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");
  782.         echo "\",
  783.       data:{
  784.         idProduct:idProduct,
  785.         price:price,
  786.         name:name,
  787.         actionType:actionType
  788.       },
  789.       success:function(result){
  790.         console.log(result);
  791.           \$(\".reservation-steeps-panier\").html(result);
  792.       }
  793.     });
  794.     });
  795.      // Fonction de mise à jour du prix total pour le repas du matin
  796.     \$('#select_repas_matin, #quantity').change(function() {
  797.       if (\$(this).val() === \"0\") {
  798.         \$('#select_repas_matin').val(\"\"); 
  799.     }
  800.         updateTotalPrice('#select_repas_matin', '#quantity', '#total_amount', '#total_price');
  801.         calculateTotalSum();
  802.         updateIdExtra(); // Mettre à jour l'ID extra
  803.     });
  804.     // Fonction de mise à jour du prix total pour le repas du déjeuner
  805.     \$('#select_repas_dejeuner, #quantity_input_dejeuner').change(function() {
  806.       if (\$(this).val() === \"0\") {
  807.         \$('#select_repas_dejeuner').val(\"\"); // Réinitialiser la sélection si la quantité est 0
  808.     }
  809.      updateTotalPrice('#select_repas_dejeuner', '#quantity_input_dejeuner', '#total_amount_dejeune', '#total_price_dejeune');
  810.         calculateTotalSum();
  811.         updateIdExtra(); // Mettre à jour l'ID extra
  812.     });
  813.     // Fonction de mise à jour du prix total pour la pause de l'après-midi
  814.     \$('#select_repas_apres_midi, #quantity_apres').change(function() {
  815.         updateTotalPrice('#select_repas_apres_midi', '#quantity_apres', '#total_amount_apres', '#total_price_apres');
  816.         calculateTotalSum();
  817.          updateIdExtra(); // Mettre à jour l'ID extra
  818.     });
  819.     
  820. function updateIdExtra() {
  821.     var selectedIds = [];
  822.     \$('#select_repas_dejeuner, #select_repas_matin , #select_repas_apres_midi').each(function() {
  823.         var selectedOption = \$(this).find(':selected');
  824.         if (selectedOption.length > 0) {
  825.             var dataId = selectedOption.data('id');
  826.             selectedIds.push(dataId);
  827.         }
  828.     });
  829.     \$('#id_extra').val(selectedIds.join(',')); // Mettre à jour la valeur de l'input caché avec les data-ids séparés par une virgule
  830. }
  831.  // Fonction de mise à jour du prix total
  832.     function updateTotalPrice(selectElement, quantityElement, totalAmountElement, totalPriceElement) {
  833.         var selectedOptionValue = parseInt(\$(selectElement).val());
  834.         var quantity = parseInt(\$(quantityElement).val());
  835.         if (!isNaN(selectedOptionValue) && !isNaN(quantity)) {
  836.             var totalPrice = selectedOptionValue * quantity;
  837.             \$(totalAmountElement).text(totalPrice);
  838.             \$(totalPriceElement).show();
  839.         } else {
  840.             \$(totalPriceElement).hide();
  841.         }
  842.     }
  843.      // Fonction de calcul de la somme totale
  844.     function calculateTotalSum() {
  845.         var totalSum = 0;
  846.         \$('.total-amount').each(function() {
  847.             var amount = parseInt(\$(this).text());
  848.             if (!isNaN(amount)) {
  849.                 totalSum += amount;
  850.             }
  851.         });
  852.         \$('#total_sum').text(totalSum);
  853.         \$('#amount_extra').val(totalSum);
  854.     }
  855.  // Écouter le changement de la sélection pour le repas du matin
  856.     \$('#repas_demande').change(function() {
  857.         if (\$(this).is(':checked')) {
  858.             \$('#quantity_input').show();
  859.             \$('#select_repas_matin').prop('disabled', false);
  860.         } else {
  861.             \$('#quantity_input').hide();
  862.             \$('#select_repas_matin').prop('disabled', true);
  863.             \$('#total_price').hide();
  864.         }
  865.     });
  866.         // Écouter le changement de la sélection pour le déjeuner
  867.     \$('#repas_demande').change(function() {
  868.         if (\$(this).is(':checked')) {
  869.             \$('#quantity_dejeune').show();
  870.             \$('#select_repas_dejeuner').prop('disabled', false);
  871.         } else {
  872.             \$('#quantity_input_dejeuner').hide();
  873.             \$('#select_repas_dejeuner').prop('disabled', true);
  874.             \$('#total_price_dejeune').hide();
  875.         }
  876.     });
  877.       // Écouter le changement de la sélection pour l'après-midi
  878.     \$('#repas_demande').change(function() {
  879.         if (\$(this).is(':checked')) {
  880.             \$('#quantity_input_apres').show();
  881.             \$('#select_repas_apres_midi').prop('disabled', false);
  882.         } else {
  883.             \$('#quantity_input_apres').hide();
  884.             \$('#select_repas_apres_midi').prop('disabled', true);
  885.             \$('#total_price_apres').hide();
  886.         }
  887.     });
  888.  
  889.   
  890.      \$('input[name=\"choix\"]').change(function(){ 
  891.       if(\$(this).val() == \"demande\"){
  892.           
  893.            \$('#select_repas_apres_midi').prop('selectedIndex', 0);
  894.            \$('#select_repas_dejeuner').prop('selectedIndex', 0);
  895.            \$('#select_repas_matin').prop('selectedIndex', 0);
  896.            \$('#quantity').val(0);
  897.            \$('#quantity_input_dejeuner').val(0);
  898.            \$(\"#quantity_apres\").val(0);
  899.             \$(\"#total_amount\").text(0);
  900.             \$(\"#total_amount_dejeune\").text(0);
  901.             \$(\"#total_amount_apres\").text(0);
  902.             \$(\"#total_sum\").text(0);
  903.             \$(\"#amount_extra\").val(0);
  904.            \$(\"#select_repas_matin\").prop('disabled', true);
  905.             \$(\"#select_repas_dejeuner\").prop('disabled', true);
  906.                 \$(\"#select_repas_apres_midi\").prop('disabled', true);  
  907.          
  908.       }else if(\$(this).val() == \"non\"){
  909.          
  910.         \$('#select_repas_apres_midi').prop('selectedIndex', 0);
  911.         \$('#select_repas_dejeuner').prop('selectedIndex', 0);
  912.         \$('#select_repas_matin').prop('selectedIndex', 0);
  913.          \$('#quantity').val(0);
  914.           \$('#quantity_input_dejeuner').val(0);
  915.            \$(\"#quantity_apres\").val(0);
  916.            \$(\"#total_amount\").text(0);
  917.            \$(\"#total_amount_dejeune\").text(0);
  918.            \$(\"#total_amount_apres\").text(0);
  919.            \$(\"#total_sum\").text(0);
  920.            \$(\"#amount_extra\").val(0);
  921.         
  922.          \$(\"#select_repas_matin\").prop('disabled', true);
  923.          \$(\"#select_repas_dejeuner\").prop('disabled', true);
  924.          \$(\"#select_repas_apres_midi\").prop('disabled', true); 
  925.       }else if(\$(this).val() == \"repas\"){
  926.           
  927.             \$(\"#select_repas_matin\").prop('disabled', false);
  928.                \$(\"#select_repas_dejeuner\").prop('disabled', false);
  929.                 \$(\"#select_repas_apres_midi\").prop('disabled', false);
  930.       }
  931.    
  932.         
  933.         });
  934.   /*\$('input[name=\"repas\"]').change(function(){
  935.  
  936.       
  937.     if(\$(this).val() === 'pause_matin') {
  938.       
  939.        // \$(\"#select_repas_matin\").val(\$('option:nth-child(1)').prop('selected', true));
  940.       \$(\"#select_repas_matin\").prop('disabled', false);
  941.       \$(\"#select_repas_dejeuner\").prop('disabled', true);
  942.        \$(\"#select_repas_apres_midi\").prop('disabled', true);
  943.       
  944.       
  945.     } else if(\$(this).val() == 'dejeuner') {
  946.       
  947.        // \$(\"#select_repas_dejeuner\").val(\$('option:nth-child(1)').prop('selected', true));
  948.         
  949.          \$(\"#select_repas_dejeuner\").prop('disabled', false);
  950.           \$(\"#select_repas_matin\").prop('disabled', true);
  951.           \$(\"#select_repas_apres_midi\").prop('disabled', true);
  952.       
  953.     } else if(\$(this).val() == 'pause_apres_midi') {
  954.        // \$(\"#select_repas_apres_midi\").val(\$('option:nth-child(1)').prop('selected', true));
  955.           
  956.       \$(\"#select_repas_apres_midi\").prop('disabled', false);
  957.          \$(\"#select_repas_dejeuner\").prop('disabled', true);
  958.           \$(\"#select_repas_matin\").prop('disabled', true);
  959.          
  960.     }
  961.   });*/
  962.   
  963.   function updateSession() {
  964.         let meals = {
  965.             breakfast: {
  966.                 name: \$(\"#select_repas_matin option:selected\").text(),
  967.                 price: \$(\"#select_repas_matin\").val(),
  968.                 quantity: \$(\"#quantity\").val() || 0
  969.             },
  970.             lunch: {
  971.                 name: \$(\"#select_repas_dejeuner option:selected\").text(),
  972.                 price: \$(\"#select_repas_dejeuner\").val(),
  973.                 quantity: \$(\"#quantity_input_dejeuner\").val() || 0
  974.             },
  975.             afternoonBreak: {
  976.                 name: \$(\"#select_repas_apres_midi option:selected\").text(),
  977.                 price: \$(\"#select_repas_apres_midi\").val(),
  978.                 quantity: \$(\"#quantity_apres\").val() || 0
  979.             }
  980.         };
  981.         // Envoi des données à Symfony via AJAX
  982.         \$.ajax({
  983.             url: \"";
  984.         // line 836
  985.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_meals_session");
  986.         echo "\",
  987.             type: \"POST\",
  988.             contentType: \"application/json\",
  989.             data: JSON.stringify(meals),
  990.             success: function (response) {
  991.                 console.log(\"Session updated\", response);
  992.             },
  993.             error: function (xhr, status, error) {
  994.                 console.error(\"Error:\", error);
  995.             }
  996.         });
  997.     }
  998.     // Écoute des changements sur les sélections de repas
  999.    
  1000.     \$(\"#select_repas_matin, #quantity, #select_repas_dejeuner, #quantity_input_dejeuner, #select_repas_apres_midi, #quantity_apres\").on(\"change\", updateSession);
  1001.  
  1002.     });
  1003.  
  1004. </script>
  1005.  
  1006. ";
  1007.         
  1008.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1009.         
  1010.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1011.     }
  1012.     public function getTemplateName()
  1013.     {
  1014.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-next.html.twig";
  1015.     }
  1016.     public function isTraitable()
  1017.     {
  1018.         return false;
  1019.     }
  1020.     public function getDebugInfo()
  1021.     {
  1022.         return array (  1114 => 836,  881 => 606,  838 => 565,  828 => 564,  811 => 551,  772 => 515,  768 => 514,  764 => 513,  758 => 510,  754 => 509,  750 => 508,  695 => 455,  680 => 453,  676 => 452,  649 => 427,  634 => 425,  630 => 424,  608 => 404,  592 => 401,  588 => 400,  569 => 383,  556 => 381,  552 => 380,  549 => 379,  543 => 378,  537 => 376,  534 => 375,  530 => 374,  520 => 366,  507 => 364,  503 => 363,  499 => 361,  493 => 360,  487 => 358,  484 => 357,  480 => 356,  471 => 349,  458 => 347,  454 => 346,  449 => 343,  443 => 342,  437 => 340,  434 => 339,  430 => 338,  362 => 273,  354 => 267,  344 => 266,  75 => 7,  70 => 5,  60 => 4,  37 => 1,);
  1023.     }
  1024.     public function getSourceContext()
  1025.     {
  1026.         return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}
  1027. {% block stylesheets %}
  1028. {{ parent() }}
  1029.  
  1030.  <link rel=\"stylesheet\" href=\"{{ asset('themes/coworking/css/reservation.css') }}\" />
  1031.  
  1032. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" />
  1033.  <style>
  1034.  
  1035.  .card{
  1036.    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px ;
  1037. }
  1038. .custom-tooltip .tooltip-inner {
  1039.     background-color: #fff; /* Remplacez #ff0000 par la couleur de votre choix */
  1040.     text-align: left;
  1041.     color: #000; /* Couleur du texte à l'intérieur de l'info-bulle */
  1042. }
  1043. /* Tooltip */
  1044. .tooltip {
  1045.     background-color: #fff; /* Couleur de fond */
  1046.     color: #fff; /* Couleur du texte */
  1047.     border: 1px solid #fff; /* Bordure */
  1048.     border-radius: 4px; /* Coins arrondis */
  1049.     padding: 5px 10px; /* Espacement intérieur */
  1050.     font-size: 13px; /* Taille de la police */
  1051.     box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Ombre */
  1052. }
  1053. /* Tooltip - flèche */
  1054. .tooltip .arrow::before {
  1055.     border-top-color: #fff; /* Couleur de fond */
  1056. }
  1057. /* Tooltip - position */
  1058. .tooltip.top {
  1059.     margin-top: -3px; /* Positionnement par rapport à l'élément parent */
  1060. }
  1061.  .menu {
  1062.   display: flex;
  1063.   justify-content: space-around;
  1064. }
  1065. h5 {
  1066.     color: #7b7b7b !important;
  1067. }
  1068. .category {
  1069.   flex: 1;
  1070.   margin: 0 10px;
  1071.   border: 1px solid #ccc;
  1072.   border-radius: 5px;
  1073.   padding: 10px;
  1074. }
  1075. h2 {
  1076.   font-size: 13px;
  1077.   margin-bottom: 5px;
  1078.   padding: 5px;
  1079. }
  1080. .menu .category ul {
  1081.   list-style-type: none;
  1082.   padding: 0;
  1083. }
  1084. .menu .category   li {
  1085.   margin-bottom: 5px;
  1086.  
  1087.   font-size: 12px; /* Taille de police légèrement augmentée */
  1088. }
  1089. /* Style additionnel pour un meilleur aspect */
  1090. .menu {
  1091.   background-color: #f9f9f9;
  1092.   padding: 20px;
  1093.   border-radius: 10px;
  1094. }
  1095. .category {
  1096.   background-color: #fff;
  1097.   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  1098. }
  1099. .list-group li {
  1100.   font-size: 11px;
  1101.     color: #333;
  1102.  
  1103. }
  1104. /* Ajout de styles de survol pour un effet interactif */
  1105. .list-group li:hover {
  1106.   color: #FFCB00 !important; /* Changement de couleur au survol */
  1107.   cursor: pointer; /* Curseur de la souris en pointeur */
  1108. }
  1109. /* Animation de survol */
  1110. .list-group li:hover {
  1111.   transform: scale(1.1); /* Agrandissement au survol */
  1112.   transition: transform 0.2s ease; /* Transition fluide */
  1113. }
  1114. .form-control {
  1115.     border-radius: 9px;
  1116.      padding: 0px !important
  1117. }
  1118.   .form-check {
  1119.  
  1120.     min-height: 1.9rem !important;
  1121.     }
  1122.   .modal-backdrop.fade.show {
  1123.         display: none;
  1124. }
  1125.  
  1126.  
  1127. /* css checkbox*/
  1128. /* hide checkbox */
  1129. input[type=\"checkbox\"] {
  1130.   display: none;
  1131. }
  1132. /* if checkbox is checked, then do these things */
  1133. input[type=\"checkbox\"]:checked + label {
  1134.   color: white;
  1135.   background:#FFD86E;
  1136.   border-radius: 5px;
  1137.   padding: 0px 10px 0px 10px;
  1138. }
  1139. /* styles when hovering over options */
  1140. label:hover {
  1141.   cursor: pointer;
  1142.   
  1143.   /* transitions and animations */
  1144.   -webkit-transition: color .5s ease;
  1145.   -moz-transition: color .5s ease;
  1146.   -ms-transition: color .5s ease;
  1147.   -o-transition: color .5s ease;
  1148.   transition: color .5s ease;
  1149. }
  1150. .boutton-step{
  1151.   padding:10px; 
  1152.   text-decoration:none; 
  1153.   width:230px; 
  1154.    font-size: 12px;
  1155.     font-family: 'PT Sans', sans-serif;
  1156.     letter-spacing:2px;
  1157. }
  1158.   
  1159. input.button {
  1160.   
  1161. \twidth:130px;
  1162. \theight:50px;
  1163. \tmargin: 20px 0 30px 0;
  1164. \tpadding: 0px 20px 0px 20px;
  1165. \tbackground: #e6e6e6;
  1166. \tborder-radius:5px;
  1167. \tborder: 1px solid #ccc;
  1168. \tfont-family: OpenSans, sans-serif;
  1169. \tfont-size:16pt;
  1170. \tcolor:#444;
  1171. }
  1172. .Addons label{
  1173.     font-size:12px !important;
  1174.     font-family: 'roboto';
  1175.     font-weight: 500;
  1176.     border: 1px solid #80808024;
  1177.     margin: 2px;
  1178.     padding: 0px 5px 0px 5px;
  1179.     border-radius: 5px;
  1180. }
  1181. .multistep-container .active-button li:not(:first-child) .round-btn:before {
  1182.     position: absolute;
  1183.     content: '';
  1184.     width: 141px;
  1185.     height: 3px;
  1186.     background-color: #E9F2FA;
  1187.     left: -120px;
  1188. }
  1189. .multistep-container .active-button li {
  1190.     display: inline-block;
  1191.     width: 140px;
  1192. }
  1193. .form-check {
  1194.     line-height: 22px;
  1195. }   
  1196. .col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{
  1197.         flex: 0 0 86%;
  1198. }
  1199.  p.badge.badge-light {
  1200.     background-color: black;
  1201. }
  1202.     
  1203.      li.etape1:before {
  1204.     background: #7ED670 !important; /* Change the background color */
  1205.     color: white !important;
  1206. }
  1207.   .titre-page{
  1208. margin-top:10px;
  1209. font-size: 20px;
  1210. line-height:45.29px;
  1211. color: #000000;
  1212. .radio-buttons {
  1213.   display: flex;
  1214. }
  1215. .radio-buttons input[type=\"radio\"] {
  1216.   display: none;
  1217. }
  1218. .radio-buttons label {
  1219.   display: block;
  1220.   margin-right: 40px;
  1221.   cursor: pointer;
  1222. }
  1223. .radio-buttons label img {
  1224.   border-radius: 10px;
  1225.   width: 100px;  
  1226.   height: 110px;  
  1227.   box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
  1228. }
  1229. .radio-buttons input[type=\"radio\"]:checked + label img {
  1230.   border: 2px solid #FFCB00 ; /* Style pour indiquer la sélection, vous pouvez personnaliser */
  1231. }
  1232.  
  1233.   .form-select{
  1234.     width: 100% !important;
  1235.   }
  1236.    .custom-radio {
  1237.       padding-right: 20px; /* Ajoutez le padding ici */
  1238.     }
  1239.  
  1240. </style>
  1241.   
  1242.   
  1243. {% endblock  %}
  1244. {% block body %}
  1245.  
  1246.  
  1247.  
  1248.  
  1249.   <img src=\"{{asset('themes/coworking/front/images/sallereunion.jpg')}}\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" />
  1250.   <div class=\"container\">
  1251.     <div class=\"row justify-content-between\">
  1252.       <div class=\"col-sm-8 reservation-steeps\">
  1253.        
  1254.        <div class=\"row\">
  1255.           <div class=\"col-sm-8\">
  1256.             <h6 class=\"titre-page\">Réservation 
  1257.                 
  1258.             </h6>
  1259.           </div>
  1260.           <div class=\"col-sm-4\" style=\"margin-top:10px;\">
  1261.             <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>
  1262.           </div>
  1263.         </div>
  1264.        
  1265.        
  1266.         <div class=\"container\">
  1267.          
  1268.               
  1269.                    
  1270.   <div class=\"container d-flex justify-content-center align-items-center\">
  1271.          
  1272.          
  1273.           <ul id=\"progressbar\">
  1274. \t\t <li class=\"etape1\"> <span> Type</span>  </li>
  1275. \t\t<li class=\"active\" > Formule + extra </li>
  1276. \t\t<li> Dates</li>
  1277. \t\t<li> Confirmation</li>
  1278.            
  1279.           
  1280. \t\t\t\t</ul>
  1281.         </div>
  1282.             
  1283.             <div class=\"col-xl-12\" style=\"top: 20px;\">
  1284.               
  1285.               <div class=\"multistep-container\">
  1286.                 <div class=\"mutistep-form-area\">
  1287.                     
  1288.                  
  1289.                   <div class=\"form-box\">
  1290.                 
  1291.                     
  1292.                  
  1293.                        
  1294.                             <div class=\"container\" >
  1295.                   
  1296.               
  1297.                
  1298.                  <div id=\"form-attribue\" style=\"line-height: 20px;\" class=\"mt-4\"> 
  1299.              
  1300.           <div class=\"form-check\">
  1301.         <input class=\"form-check-input\" type=\"radio\" name=\"choix\" id=\"repas_demande\" value=\"repas\">
  1302.         <label class=\"form-check-label\" for=\"repas_demande\">
  1303.          <h5 style=\"font-weight:bold; margin-top: 2px;\" >Voulez-vous choisir un extra ?</h5>
  1304.          
  1305.         </label>
  1306.       </div>
  1307.    <div class=\"container\">
  1308.   <div class=\"row\">
  1309.       <div class=\"col-md-4\">
  1310.          
  1311.       <div class=\"card\">
  1312.           {% for break in breakfast %}
  1313.          {%if break.photo is not empty %}
  1314.         <img style=\"widh:100%\"  src=\"{{asset('/uploads/coworking/' ~ break.photo )}}\" class=\"card-img-top\" alt=\"Breakfast Image\">
  1315.             {% endif %}
  1316.                  {% endfor %}
  1317.                 <div  >
  1318.        
  1319.           <ul class=\"list-group\">
  1320.             {% for break in breakfast %}
  1321.             <li class=\"list-group-item\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"<b>{{ break.type }}</b><br>{{ break.description|raw|nl2br }}\"> {{ break.name }}</li>
  1322.              {% endfor %}
  1323.           </ul>
  1324.         </div>
  1325.       </div>
  1326.     </div>
  1327.     <div class=\"col-md-4\">
  1328.        <div class=\"card\">
  1329.              {% for lun in lunch %}
  1330.          {%if lun.photo is not empty %}
  1331.         <img style=\"widh:100%\" src=\"{{asset('/uploads/coworking/' ~ lun.photo )}}\" class=\"card-img-top\" alt=\"Lunch Image\">
  1332.          {% endif %}
  1333.                  {% endfor %}
  1334.  
  1335.           <ul class=\"list-group\">
  1336.             {% for lun in lunch %}
  1337.             <li class=\"list-group-item\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"<b>{{ lun.type }}</b><br> {{lun.description|raw|nl2br}}\">{{ lun.name }}</li>
  1338.             {% endfor %}
  1339.           </ul>
  1340.        
  1341.       </div>
  1342.     </div>
  1343.      
  1344.     <div class=\"col-md-4\">
  1345.       <div class=\"card\">
  1346.            {% for after in afternoonBreak %}
  1347.          {%if after.photo is not empty %}
  1348.           <img style=\"widh:100%\" src=\"{{asset('/uploads/coworking/' ~ after.photo )}}\" class=\"card-img-top\" alt=\"Lunch Image\">
  1349.          {% endif %}
  1350.                  {% endfor %}
  1351.         <ul class=\"list-group\">
  1352.           {% for after in afternoonBreak %}
  1353.           <li class=\"list-group-item\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"<b>{{ after.type }}</b> <br> {{ after.description|raw|nl2br }}\">{{ after.name }}</li>
  1354.           {% endfor %}
  1355.         </ul>
  1356.       </div>
  1357.     </div>
  1358.   </div>
  1359. </div>
  1360.           
  1361.         
  1362.     <div class=\"form-group\" style=\"margin-top: 10px;\">
  1363.      
  1364.         <div id=\"repas\" style=\"padding: 0 20px !important;\">
  1365.            <div class=\"row\">
  1366.            <div class=\"col-md-6\">
  1367.                 <div class=\"form-group\">
  1368.                     <label for=\"select_repas_matin\">Pause matin</label>
  1369.                     <select class=\"form-select\" id=\"select_repas_matin\" name=\"select_repas_matin\" disabled>
  1370.                         <option value=\"\">Choisissez un repas pour le matin</option>
  1371.                        {% for break in  breakfast %}
  1372.                         <option data-id=\"{{break.id}}\"  value=\"{{break.price}}\">{{break.name}} ({{break.price}} DH)</option>
  1373.                         
  1374.                         {% endfor  %}
  1375.                     </select>
  1376.                 </div>
  1377.             </div>
  1378.             <div class=\"col-md-6\">
  1379.                 <div class=\"form-group\" id=\"quantity_input\" style=\"display: none;\">
  1380.                     <label for=\"quantity\"><small>Quantité </small></label>
  1381.                     <input type=\"number\" class=\"form-control\" id=\"quantity\" name=\"quantity\" min=\"0\" style=\"width: 50px;\">
  1382.                 </div>
  1383.                 <div id=\"total_price\" style=\"display: none;\">
  1384.                    <span class=\"badge badge-light\">Total : <span id=\"total_amount\" class=\"total-amount\"></span> DH</span> 
  1385.                 </div>
  1386.             </div>
  1387.         </div>
  1388.       
  1389.       <div class=\"row\">
  1390.            <div class=\"col-md-6\">
  1391.       <div class=\"form-group\">
  1392.         <label for=\"select_repas_dejeuner\"> Déjeuner </label>
  1393.         <select class=\"form-select\" id=\"select_repas_dejeuner\" name=\"select_repas_dejeuner\" disabled>
  1394.              <option value=\"\">Choisissez un repas pour le déjeuner </option>
  1395.             {% for lun in  lunch %}
  1396.             <option data-id=\"{{lun.id}}\" value=\"{{lun.price}}\">{{lun.name}} ({{lun.price}} DH)</option>
  1397.             {% endfor  %}
  1398.         </select>
  1399.       </div>
  1400.         </div>
  1401.          <div class=\"col-md-6\">
  1402.                 <div class=\"form-group\" id=\"quantity_dejeune\" style=\"display: none;\" >
  1403.                     <label for=\"quantity\"><small>Quantité </small></label>
  1404.                     <input type=\"number\" class=\"form-control\" id=\"quantity_input_dejeuner\" name=\"quantity_input_dejeuner\" min=\"0\" style=\"width: 50px;\">
  1405.                 </div>
  1406.                 <div id=\"total_price_dejeune\" style=\"display: none;\">
  1407.                    <span class=\"badge badge-light\">Total : <span id=\"total_amount_dejeune\" class=\"total-amount\"></span> DH</span> 
  1408.                 </div>
  1409.                 
  1410.             </div>
  1411.         </div>
  1412.         
  1413.       
  1414.       <div class=\"row\">
  1415.            <div class=\"col-md-6\">
  1416.       <div class=\"form-group\">
  1417.         <label for=\"select_repas_apres_midi\">  Pause après-midi  </label>
  1418.         <select class=\"form-select\" id=\"select_repas_apres_midi\" name=\"select_repas_apres_midi\" disabled>
  1419.             <option value=\"\">Choisissez un repas pour la pause après-midi </option>
  1420.              {% for after in  afternoonBreak %}
  1421.             <option data-id=\"{{after.id}}\" value=\"{{after.price}}\">{{after.name}} ({{after.price}} DH)</option>
  1422.             {% endfor  %}
  1423.         </select>
  1424.       </div>
  1425.       </div>
  1426.  <div class=\"col-md-6\">
  1427.                 <div class=\"form-group\" id=\"quantity_input_apres\" style=\"display: none;\" >
  1428.                     <label for=\"quantity\"><small>Quantité</small></label>
  1429.                     <input type=\"number\" class=\"form-control\" id=\"quantity_apres\" name=\"quantity_apres\" min=\"0\" style=\"width: 50px;\">
  1430.                 </div>
  1431.                 <div id=\"total_price_apres\" style=\"display: none;\">
  1432.                    <span class=\"badge badge-light\">Total : <span id=\"total_amount_apres\" class=\"total-amount\"></span> DH</span> 
  1433.                 </div>
  1434.                 
  1435.             </div>
  1436. <div class=\"col-md-6\">
  1437.    
  1438. </div>
  1439. <div id=\"total_sum_section\"  class=\"col-md-6\">
  1440.     <p class=\"badge badge-light\">Total : <span id=\"total_sum\"></span> DH</p>
  1441. </div>
  1442.         
  1443.         </div>
  1444.  
  1445.       </div>
  1446.       <div class=\"form-check mt-4\">
  1447.         <input class=\"form-check-input\" type=\"radio\" name=\"choix\"  value=\"demande\">
  1448.         <label class=\"form-check-label\" for=\"repas_demande\">
  1449.          <h5 style=\"font-weight:bold; \" >Non merci </h5>
  1450.         </label>
  1451.       </div>
  1452.         
  1453.     </div>
  1454.  
  1455.     
  1456.   
  1457.   </form>
  1458.                    
  1459.  
  1460.                   
  1461.                   </div>
  1462.               
  1463.                                
  1464.                     
  1465.               
  1466.                  </div>
  1467.                     <div class=\"button-row\">
  1468.         <form action=\"{{path('reservationstep2',{id:id})}}\" id=\"myForm\"   method=\"GET\" data-turbo=\"false\">          
  1469.             <input type=\"hidden\" name=\"days\"  id=\"formule_\" value=\"{{ days }}\"/>
  1470.               <input type=\"hidden\" name=\"Plage\"  id=\"horaire_\" value=\"{{ Plage }}\"/>
  1471.               <input type=\"hidden\" name=\"amount_extra\"  id=\"amount_extra\" value=\"\"/>
  1472.               <input type=\"hidden\" name=\"id_extra\"  id=\"id_extra\" value=\"\"/>
  1473.               <input type=\"hidden\" name=\"time\"  id=\"time_\" value=\"{{ time }}\"/>
  1474.               <input type=\"hidden\" name=\"device\"  id=\"device_\" value=\"{{ device }}\"/>
  1475.               <input type=\"hidden\" name=\"nbrApproximatif\" id=\"nbrApproximatif\" value=\"{{ nbrApproximatif }}\"/>
  1476.            
  1477.             <a href=\"javascript:void(0)\" onclick=\"history.back()\" 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>
  1478.             &nbsp;&nbsp;
  1479.              <button type=\"submit\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\" style=\"background: #FFCB00 !important;padding:5px;    border: none; text-decoration:none; width:177px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">
  1480.               Étape suivante
  1481.                     </button>
  1482.              </form>
  1483.                       </div> 
  1484.                             
  1485.                             
  1486.                            
  1487.                      
  1488.            
  1489.                     
  1490.                    
  1491.                   </div>
  1492.                    
  1493.                 
  1494.                 </div>
  1495.               </div>
  1496.             </div>
  1497.           
  1498.         </div>
  1499.          
  1500.       
  1501.       </div>
  1502.          <div class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto;\">
  1503.       
  1504.         {{render(path(\"ajax_cart\"))}}
  1505.     </div>
  1506.     </div>
  1507.   </div>
  1508.   
  1509.   
  1510. {% endblock %}
  1511. {% block javascripts %}
  1512.   <!-- MAIN CONTENT -->
  1513.  
  1514. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
  1515. <script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script>
  1516. <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script>
  1517.  
  1518.  
  1519. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js\"></script>
  1520. <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js\"></script> 
  1521.  
  1522. <script>
  1523.   \$(document).ready(function(){
  1524.       
  1525.          \$('#myForm').on('submit', function(event) {
  1526.             if (!\$('input[name=\"choix\"]:checked').length) {
  1527.                 alert('Veuillez sélectionner une option.');
  1528.                 event.preventDefault();
  1529.             }
  1530.         });
  1531.         
  1532.   
  1533.    \$('[data-toggle=\"tooltip\"]').tooltip({
  1534.       placement: 'top', // Position de l'info-bulle
  1535.       trigger: 'hover', // Déclencheur de l'info-bulle
  1536.       delay: { \"show\": 500, \"hide\": 100 }, // Délai d'affichage et de masquage en millisecondes
  1537.       html: true, // Autoriser le contenu HTML dans l'info-bulle
  1538.       template: '<div class=\"tooltip custom-tooltip\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"tooltip-inner\"></div></div>' // Utilisation d'un modèle personnalisé pour l'info-bulle
  1539.     });
  1540. \$('body').on(\"click\",\".delete-cart-item\",function() {
  1541.           
  1542.     var idProduct = \$(this).attr(\"data-id\");
  1543.     var price = \$(this).attr(\"data-price\");
  1544.     var name = \$(this).attr(\"data-name\");
  1545.     var actionType = \"remove\";
  1546.     \$.ajax({
  1547.       url:\"{{path('ajax_cart')}}\",
  1548.       data:{
  1549.         idProduct:idProduct,
  1550.         price:price,
  1551.         name:name,
  1552.         actionType:actionType
  1553.       },
  1554.       success:function(result){
  1555.         console.log(result);
  1556.           \$(\".reservation-steeps-panier\").html(result);
  1557.       }
  1558.     });
  1559.     });
  1560.      // Fonction de mise à jour du prix total pour le repas du matin
  1561.     \$('#select_repas_matin, #quantity').change(function() {
  1562.       if (\$(this).val() === \"0\") {
  1563.         \$('#select_repas_matin').val(\"\"); 
  1564.     }
  1565.         updateTotalPrice('#select_repas_matin', '#quantity', '#total_amount', '#total_price');
  1566.         calculateTotalSum();
  1567.         updateIdExtra(); // Mettre à jour l'ID extra
  1568.     });
  1569.     // Fonction de mise à jour du prix total pour le repas du déjeuner
  1570.     \$('#select_repas_dejeuner, #quantity_input_dejeuner').change(function() {
  1571.       if (\$(this).val() === \"0\") {
  1572.         \$('#select_repas_dejeuner').val(\"\"); // Réinitialiser la sélection si la quantité est 0
  1573.     }
  1574.      updateTotalPrice('#select_repas_dejeuner', '#quantity_input_dejeuner', '#total_amount_dejeune', '#total_price_dejeune');
  1575.         calculateTotalSum();
  1576.         updateIdExtra(); // Mettre à jour l'ID extra
  1577.     });
  1578.     // Fonction de mise à jour du prix total pour la pause de l'après-midi
  1579.     \$('#select_repas_apres_midi, #quantity_apres').change(function() {
  1580.         updateTotalPrice('#select_repas_apres_midi', '#quantity_apres', '#total_amount_apres', '#total_price_apres');
  1581.         calculateTotalSum();
  1582.          updateIdExtra(); // Mettre à jour l'ID extra
  1583.     });
  1584.     
  1585. function updateIdExtra() {
  1586.     var selectedIds = [];
  1587.     \$('#select_repas_dejeuner, #select_repas_matin , #select_repas_apres_midi').each(function() {
  1588.         var selectedOption = \$(this).find(':selected');
  1589.         if (selectedOption.length > 0) {
  1590.             var dataId = selectedOption.data('id');
  1591.             selectedIds.push(dataId);
  1592.         }
  1593.     });
  1594.     \$('#id_extra').val(selectedIds.join(',')); // Mettre à jour la valeur de l'input caché avec les data-ids séparés par une virgule
  1595. }
  1596.  // Fonction de mise à jour du prix total
  1597.     function updateTotalPrice(selectElement, quantityElement, totalAmountElement, totalPriceElement) {
  1598.         var selectedOptionValue = parseInt(\$(selectElement).val());
  1599.         var quantity = parseInt(\$(quantityElement).val());
  1600.         if (!isNaN(selectedOptionValue) && !isNaN(quantity)) {
  1601.             var totalPrice = selectedOptionValue * quantity;
  1602.             \$(totalAmountElement).text(totalPrice);
  1603.             \$(totalPriceElement).show();
  1604.         } else {
  1605.             \$(totalPriceElement).hide();
  1606.         }
  1607.     }
  1608.      // Fonction de calcul de la somme totale
  1609.     function calculateTotalSum() {
  1610.         var totalSum = 0;
  1611.         \$('.total-amount').each(function() {
  1612.             var amount = parseInt(\$(this).text());
  1613.             if (!isNaN(amount)) {
  1614.                 totalSum += amount;
  1615.             }
  1616.         });
  1617.         \$('#total_sum').text(totalSum);
  1618.         \$('#amount_extra').val(totalSum);
  1619.     }
  1620.  // Écouter le changement de la sélection pour le repas du matin
  1621.     \$('#repas_demande').change(function() {
  1622.         if (\$(this).is(':checked')) {
  1623.             \$('#quantity_input').show();
  1624.             \$('#select_repas_matin').prop('disabled', false);
  1625.         } else {
  1626.             \$('#quantity_input').hide();
  1627.             \$('#select_repas_matin').prop('disabled', true);
  1628.             \$('#total_price').hide();
  1629.         }
  1630.     });
  1631.         // Écouter le changement de la sélection pour le déjeuner
  1632.     \$('#repas_demande').change(function() {
  1633.         if (\$(this).is(':checked')) {
  1634.             \$('#quantity_dejeune').show();
  1635.             \$('#select_repas_dejeuner').prop('disabled', false);
  1636.         } else {
  1637.             \$('#quantity_input_dejeuner').hide();
  1638.             \$('#select_repas_dejeuner').prop('disabled', true);
  1639.             \$('#total_price_dejeune').hide();
  1640.         }
  1641.     });
  1642.       // Écouter le changement de la sélection pour l'après-midi
  1643.     \$('#repas_demande').change(function() {
  1644.         if (\$(this).is(':checked')) {
  1645.             \$('#quantity_input_apres').show();
  1646.             \$('#select_repas_apres_midi').prop('disabled', false);
  1647.         } else {
  1648.             \$('#quantity_input_apres').hide();
  1649.             \$('#select_repas_apres_midi').prop('disabled', true);
  1650.             \$('#total_price_apres').hide();
  1651.         }
  1652.     });
  1653.  
  1654.   
  1655.      \$('input[name=\"choix\"]').change(function(){ 
  1656.       if(\$(this).val() == \"demande\"){
  1657.           
  1658.            \$('#select_repas_apres_midi').prop('selectedIndex', 0);
  1659.            \$('#select_repas_dejeuner').prop('selectedIndex', 0);
  1660.            \$('#select_repas_matin').prop('selectedIndex', 0);
  1661.            \$('#quantity').val(0);
  1662.            \$('#quantity_input_dejeuner').val(0);
  1663.            \$(\"#quantity_apres\").val(0);
  1664.             \$(\"#total_amount\").text(0);
  1665.             \$(\"#total_amount_dejeune\").text(0);
  1666.             \$(\"#total_amount_apres\").text(0);
  1667.             \$(\"#total_sum\").text(0);
  1668.             \$(\"#amount_extra\").val(0);
  1669.            \$(\"#select_repas_matin\").prop('disabled', true);
  1670.             \$(\"#select_repas_dejeuner\").prop('disabled', true);
  1671.                 \$(\"#select_repas_apres_midi\").prop('disabled', true);  
  1672.          
  1673.       }else if(\$(this).val() == \"non\"){
  1674.          
  1675.         \$('#select_repas_apres_midi').prop('selectedIndex', 0);
  1676.         \$('#select_repas_dejeuner').prop('selectedIndex', 0);
  1677.         \$('#select_repas_matin').prop('selectedIndex', 0);
  1678.          \$('#quantity').val(0);
  1679.           \$('#quantity_input_dejeuner').val(0);
  1680.            \$(\"#quantity_apres\").val(0);
  1681.            \$(\"#total_amount\").text(0);
  1682.            \$(\"#total_amount_dejeune\").text(0);
  1683.            \$(\"#total_amount_apres\").text(0);
  1684.            \$(\"#total_sum\").text(0);
  1685.            \$(\"#amount_extra\").val(0);
  1686.         
  1687.          \$(\"#select_repas_matin\").prop('disabled', true);
  1688.          \$(\"#select_repas_dejeuner\").prop('disabled', true);
  1689.          \$(\"#select_repas_apres_midi\").prop('disabled', true); 
  1690.       }else if(\$(this).val() == \"repas\"){
  1691.           
  1692.             \$(\"#select_repas_matin\").prop('disabled', false);
  1693.                \$(\"#select_repas_dejeuner\").prop('disabled', false);
  1694.                 \$(\"#select_repas_apres_midi\").prop('disabled', false);
  1695.       }
  1696.    
  1697.         
  1698.         });
  1699.   /*\$('input[name=\"repas\"]').change(function(){
  1700.  
  1701.       
  1702.     if(\$(this).val() === 'pause_matin') {
  1703.       
  1704.        // \$(\"#select_repas_matin\").val(\$('option:nth-child(1)').prop('selected', true));
  1705.       \$(\"#select_repas_matin\").prop('disabled', false);
  1706.       \$(\"#select_repas_dejeuner\").prop('disabled', true);
  1707.        \$(\"#select_repas_apres_midi\").prop('disabled', true);
  1708.       
  1709.       
  1710.     } else if(\$(this).val() == 'dejeuner') {
  1711.       
  1712.        // \$(\"#select_repas_dejeuner\").val(\$('option:nth-child(1)').prop('selected', true));
  1713.         
  1714.          \$(\"#select_repas_dejeuner\").prop('disabled', false);
  1715.           \$(\"#select_repas_matin\").prop('disabled', true);
  1716.           \$(\"#select_repas_apres_midi\").prop('disabled', true);
  1717.       
  1718.     } else if(\$(this).val() == 'pause_apres_midi') {
  1719.        // \$(\"#select_repas_apres_midi\").val(\$('option:nth-child(1)').prop('selected', true));
  1720.           
  1721.       \$(\"#select_repas_apres_midi\").prop('disabled', false);
  1722.          \$(\"#select_repas_dejeuner\").prop('disabled', true);
  1723.           \$(\"#select_repas_matin\").prop('disabled', true);
  1724.          
  1725.     }
  1726.   });*/
  1727.   
  1728.   function updateSession() {
  1729.         let meals = {
  1730.             breakfast: {
  1731.                 name: \$(\"#select_repas_matin option:selected\").text(),
  1732.                 price: \$(\"#select_repas_matin\").val(),
  1733.                 quantity: \$(\"#quantity\").val() || 0
  1734.             },
  1735.             lunch: {
  1736.                 name: \$(\"#select_repas_dejeuner option:selected\").text(),
  1737.                 price: \$(\"#select_repas_dejeuner\").val(),
  1738.                 quantity: \$(\"#quantity_input_dejeuner\").val() || 0
  1739.             },
  1740.             afternoonBreak: {
  1741.                 name: \$(\"#select_repas_apres_midi option:selected\").text(),
  1742.                 price: \$(\"#select_repas_apres_midi\").val(),
  1743.                 quantity: \$(\"#quantity_apres\").val() || 0
  1744.             }
  1745.         };
  1746.         // Envoi des données à Symfony via AJAX
  1747.         \$.ajax({
  1748.             url: \"{{path('save_meals_session')}}\",
  1749.             type: \"POST\",
  1750.             contentType: \"application/json\",
  1751.             data: JSON.stringify(meals),
  1752.             success: function (response) {
  1753.                 console.log(\"Session updated\", response);
  1754.             },
  1755.             error: function (xhr, status, error) {
  1756.                 console.error(\"Error:\", error);
  1757.             }
  1758.         });
  1759.     }
  1760.     // Écoute des changements sur les sélections de repas
  1761.    
  1762.     \$(\"#select_repas_matin, #quantity, #select_repas_dejeuner, #quantity_input_dejeuner, #select_repas_apres_midi, #quantity_apres\").on(\"change\", updateSession);
  1763.  
  1764.     });
  1765.  
  1766. </script>
  1767.  
  1768. {% endblock %}
  1769. ""@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-next.html.twig""/home/gebcloud/public_html/cowork.gebanalysis.cloud/src/Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-meeting-next.html.twig");
  1770.     }
  1771. }