var/cache/dev/twig/28/281225a5aee5c22c77a5ab79aad0558b.php line 40
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;/* @Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig */class __TwigTemplate_053d0e8b404d18d09b74bb802da39f0b extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['stylesheets' => [$this, 'block_stylesheets'],'body' => [$this, 'block_body'],'javascripts' => [$this, 'block_javascripts'],];}protected function doGetParent(array $context){// line 1return "@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig"));$this->parent = $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 4public function block_stylesheets($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));// line 5$this->displayParentBlock("stylesheets", $context, $blocks);echo "<link rel=\"stylesheet\" href=\"";// line 6echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/css/reservation.css"), "html", null, true);echo "\" /><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" /><style>.modal-backdrop.fade.show {display: none;}/* css checkbox*//* hide checkbox */input[type=\"checkbox\"] {display: none;}/* if checkbox is checked, then do these things *//*input[type=\"checkbox\"]:checked + label {color: white;background:#FFD86E;border-radius: 5px;padding: 0px 10px 0px 10px;}/* styles when hovering over options */label:hover {cursor: pointer;/* transitions and animations */-webkit-transition: color .5s ease;-moz-transition: color .5s ease;-ms-transition: color .5s ease;-o-transition: color .5s ease;transition: color .5s ease;}input.button {\twidth:130px;\theight:50px;\tmargin: 20px 0 30px 0;\tpadding: 0px 20px 0px 20px;\tbackground: #e6e6e6;\tborder-radius:5px;\tborder: 1px solid #ccc;\tfont-family: OpenSans, sans-serif;\tfont-size:16pt;\tcolor:#444;}.Addons label{font-size:12px !important;font-family: 'roboto';font-weight: 500;border: 1px solid #80808024;margin: 2px;padding: 0px 5px 0px 5px;border-radius: 5px;}.multistep-container .active-button li:not(:first-child) .round-btn:before {position: absolute;content: '';width: 141px;height: 3px;background-color: #E9F2FA;left: -120px;}.multistep-container .active-button li {display: inline-block;width: 140px;}.form-check {line-height: 22px;}.col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{flex: 0 0 86%;}@media (max-width:767px) {html, body {overflow-x: hidden !important;}body {position: relative !important;}.col-sm-8.reservation-steeps {padding:0%;}.multistep-container .mutistep-form-area .form-box{position: relative;top: 33px;left: 0px;}.multistep-container .active-button li{display: inline-block;width: 100px;}.panel-sticky{font-size:12px;}h6.display-6.header-steeps {margin-left: 3%;}h6.datetime{margin-left: 3%;}a#seeDetails {margin-bottom: -11%;}a#seePrice {float: right;margin-right: 52%;}}li.etape1:before {background: #7ED670 !important; /* Change the background color */color: white !important;}.message {color: white;background: rgb(199, 200, 204);font-size: 15px;padding: 20px;border-radius: 10px;text-align: center;font-weight: bold;box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);height: 100px; /* Adjust the height as necessary */display: flex;align-items: center;justify-content: center;}</style>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 154public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 155echo "<img src=\"";// line 161echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/coworking/front/images/office.jpg"), "html", null, true);echo "\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" /><div class=\"container\"><div class=\"row justify-content-between\"><div class=\"col-sm-8 reservation-steeps\"><div class=\"row\"><div class=\"col-sm-8\"><h6 style=\"margin-top:10px\">Réservation";// line 169$context["displayed_categories"] = [];echo "";// line 170$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 170, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["bureau"]) {// line 171echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["bureau"], "categoriesProduct", [], "any", false, false, false, 171));foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {// line 172echo " ";if (((twig_get_attribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 172) == (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 172, $this->source); })())) && !twig_in_filter(twig_get_attribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 172), (isset($context["displayed_categories"]) || array_key_exists("displayed_categories", $context) ? $context["displayed_categories"] : (function () { throw new RuntimeError('Variable "displayed_categories" does not exist.', 172, $this->source); })())))) {// line 173echo "";// line 174echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, false, 174), "html", null, true);echo "";}// line 176echo " ";$context["displayed_categories"] = twig_array_merge((isset($context["displayed_categories"]) || array_key_exists("displayed_categories", $context) ? $context["displayed_categories"] : (function () { throw new RuntimeError('Variable "displayed_categories" does not exist.', 176, $this->source); })()), [twig_get_attribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 176)]);// line 177echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 178echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bureau'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 179echo "</h6></div><div class=\"col-sm-4\" style=\"margin-top:10px;\"><a href=\"/themes/coworking/front/images/BUREAUX.pdf\" class=\"btn-res text-center text-light text-uppercase bg-dark\" style=\"float: right;padding: 8px;border-radius: 6px;font-size:13px;\" target=\"_blank\"> NOS TARIFS</a></div></div><div class=\"container\"><div class=\"row\"><div class=\"container d-flex justify-content-center align-items-center\"><ul id=\"progressbar\">\t\t \t<li class=\"etape1\" > <span> Type</span> </li>\t <li class=\"active\" > <span> Formule</span></li>\t\t <li> Date </li><li> Confirmation</li>\t\t\t\t</ul></div><div class=\"col-xl-12\" style=\"top: 20px ;\"><div class=\"multistep-container\"><div class=\"mutistep-form-area\"><div class=\"form-box\"><div class=\"container\" ><!-- <h5>Veuillez choisir un bureau :</h5><select name=\"select\" id=\"select\" class=\"form-control selectpiker\"><option value=\"\">Sélectionner votre choix </option>";// line 226$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 226, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["bureau"]) {// line 227echo "";// line 228$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["bureau"], "categoriesProduct", [], "any", false, false, false, 228));foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {// line 229echo "";// line 230if ((twig_get_attribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 230) == (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 230, $this->source); })()))) {// line 231echo " <option value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bureau"], "id", [], "any", false, false, false, 231), "html", null, true);echo "\">BUREAU ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bureau"], "name", [], "any", false, false, false, 231), "html", null, true);echo "</option>";}// line 233echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 234echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bureau'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 235echo " </select>--><div id=\"form-attribue\" style=\"line-height: 30px;\" class=\"mt-4\"><h5>Veuillez choisir une formule </h5>";// line 249$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 249, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 250echo "";// line 254if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 254) == "simple")) {// line 255echo "<div class=\"form-check\" ><input class=\"form-check-input option radio1 \" data-days=\"10\" data-id=\"";// line 260echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 260, $this->source); })()), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName", $context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.', 260, $this->source); })()), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 260), "html", null, true);echo "\" type=\"radio\" name=\"radioGroup\" class=\"option\" id=\"radio1\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 260), "name", [], "any", false, false, false, 260), "html", null, true);echo "\" /><label class=\"form-check-label\" data-days=\"10\" data-id=\"";// line 261echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 261, $this->source); })()), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName", $context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.', 261, $this->source); })()), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 261), "html", null, true);echo "\" for=\"radio1\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 261), "name", [], "any", false, false, false, 261), "html", null, true);echo "</label><br><small>";// line 264echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 264), "description", [], "any", false, false, false, 264), "html", null, true);echo "</small></div>";}// line 271echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 272echo "";// line 274$context["addedValues"] = [];// line 275echo " ";if ((twig_length_filter($this->env, (isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 275, $this->source); })())) > 0)) {// line 276echo "<div class=\"form-check\"><input class=\"form-check-input\" type=\"radio\" name=\"radioGroup\" id=\"radio2\" /><label class=\"form-check-label\" for=\"radio2\">Location “Pass jours”</label><br><small>Cette formule est déclinée comme suit :</small><select style=\"padding: 4px;\" class=\"col-6 option \" id=\"serviceFormule\" ><option value=\"\" data-price=\"\" >Sélectionner un choix</option>";// line 285$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 285, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 286echo " ";if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 286) == "multiple")) {// line 287echo " ";$context["optionId"] = ((((((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 287), "name", [], "any", false, false, false, 287) . "-") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 287), "description", [], "any", false, false, false, 287)) . "-") . (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 287, $this->source); })())) . "-") . (isset($context["subcategoryName"]) || array_key_exists("subcategoryName", $context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.', 287, $this->source); })())) . "-") . twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 287));// line 288echo " ";if (!twig_in_filter((isset($context["optionId"]) || array_key_exists("optionId", $context) ? $context["optionId"] : (function () { throw new RuntimeError('Variable "optionId" does not exist.', 288, $this->source); })()), (isset($context["addedValues"]) || array_key_exists("addedValues", $context) ? $context["addedValues"] : (function () { throw new RuntimeError('Variable "addedValues" does not exist.', 288, $this->source); })()))) {// line 289echo " ";$context["_"] = twig_array_merge((isset($context["addedValues"]) || array_key_exists("addedValues", $context) ? $context["addedValues"] : (function () { throw new RuntimeError('Variable "addedValues" does not exist.', 289, $this->source); })()), [(isset($context["optionId"]) || array_key_exists("optionId", $context) ? $context["optionId"] : (function () { throw new RuntimeError('Variable "optionId" does not exist.', 289, $this->source); })())]);// line 290echo " <option value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 290), "name", [], "any", false, false, false, 290), "html", null, true);echo "\" data-days=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 290), "description", [], "any", false, false, false, 290), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 290, $this->source); })()), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName", $context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.', 290, $this->source); })()), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 290), "html", null, true);echo "\" >";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 290), "name", [], "any", false, false, false, 290), "html", null, true);echo "</option>";}// line 292echo " ";}// line 293echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 294echo " </select></div>";}// line 297echo "";// line 298$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 298, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 299echo " ";if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 299) == "personalized")) {echo "<div class=\"form-check\"><input class=\"form-check-input option radio1 \" data-days=\"30\" data-id=\"";// line 303echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 303, $this->source); })()), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName", $context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.', 303, $this->source); })()), "html", null, true);echo "\" ";if ((null === twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 303))) {echo " data-price=\"0\" ";} else {echo " data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 303), "html", null, true);echo "\" ";}echo " type=\"radio\" name=\"radioGroup\" ";if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 303), "name", [], "any", false, false, false, 303) == "Période personnalisée")) {echo " value=\"Mois\" ";} else {echo " value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 303), "name", [], "any", false, false, false, 303), "html", null, true);echo "\" ";}echo " id=\"radioMois\" /><label class=\"form-check-label\" data-days=\"30\" data-id=\"";// line 304echo twig_escape_filter($this->env, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 304, $this->source); })()), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, (isset($context["subcategoryName"]) || array_key_exists("subcategoryName", $context) ? $context["subcategoryName"] : (function () { throw new RuntimeError('Variable "subcategoryName" does not exist.', 304, $this->source); })()), "html", null, true);echo "\" ";if ((null === twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 304))) {echo " data-price=\"0\" ";} else {echo " data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attr"], "price", [], "any", false, false, false, 304), "html", null, true);echo "\" ";}echo " for=\"radio";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 304), "id", [], "any", false, false, false, 304), "html", null, true);echo "\"> ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 304), "name", [], "any", false, false, false, 304), "html", null, true);echo " </label><br><small> ";// line 306echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attr"], "attribut", [], "any", false, false, false, 306), "description", [], "any", false, false, false, 306), "html", null, true);echo "</small></div>";}// line 310echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 311echo "<h5 style=\"font-weight:bold; margin-top: 10px;\">Services supplémentaires </h5><h6 style=\"font-weight:bold; margin-top: 10px;\">Voulez-vous ajouter des services supplémentaires?</h6><!--<small style=\"color:grey\">Disponible en location au mois ou à la journée</small>--><div class=\"row\"><div class=\"col-sm-12 Addons\">";// line 317$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 317, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["service"]) {// line 318echo "<input id=\"";// line 319echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 319), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 319), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 319), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "price", [], "any", false, false, false, 319), "html", null, true);echo "\" type=\"checkbox\" class=\"CK\" name=\"services\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 319), "html", null, true);echo " \"><label for=\"service\"> ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 319), "html", null, true);echo " </label>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 320echo "<br>";// line 323$context["isSimple"] = false;// line 324echo " ";$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["attributValues"]) || array_key_exists("attributValues", $context) ? $context["attributValues"] : (function () { throw new RuntimeError('Variable "attributValues" does not exist.', 324, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["attr"]) {// line 325echo " ";if ((twig_get_attribute($this->env, $this->source, $context["attr"], "code", [], "any", false, false, false, 325) == "simple")) {// line 326echo " ";$context["isSimple"] = true;// line 327echo " ";}// line 328echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attr'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 329echo "";// line 333$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["servicesCommuns"]) || array_key_exists("servicesCommuns", $context) ? $context["servicesCommuns"] : (function () { throw new RuntimeError('Variable "servicesCommuns" does not exist.', 333, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["servicesCommun"]) {// line 334echo " ";if ( !(isset($context["isSimple"]) || array_key_exists("isSimple", $context) ? $context["isSimple"] : (function () { throw new RuntimeError('Variable "isSimple" does not exist.', 334, $this->source); })())) {// line 335echo " ";if (!twig_in_filter(twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 335), [94, 92, 69])) {// line 336echo " <input id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 336), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 336), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 336), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "price", [], "any", false, false, false, 336), "html", null, true);echo "\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 336), "html", null, true);echo " \"><label for=\"service\"> ";// line 337echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 337), "html", null, true);echo " </label>";}// line 339echo " ";} else {// line 340echo " <input id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 340), "html", null, true);echo "\" data-id=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 340), "html", null, true);echo "\" data-name=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 340), "html", null, true);echo "\" data-price=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "price", [], "any", false, false, false, 340), "html", null, true);echo "\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "id", [], "any", false, false, false, 340), "html", null, true);echo " \"><label for=\"service\"> ";// line 341echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicesCommun"], "name", [], "any", false, false, false, 341), "html", null, true);echo " </label>";}// line 343echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicesCommun'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 344echo "";// line 348echo "</div><!-- <div class=\"col-sm-12\"><small style=\"color:grey; margin-top: 5px;\">Autre</small><input type=\"text\" class=\"form-control\" id=\"information\" placeholder=\"Saisissez votre texte ici\" style=\"height: 30px;border-radius: 4px;\"></div>--><!-- <h5 style=\"font-weight:bold;margin-top: 10px; \">Informations additionnelles </h5><h6 style=\"font-weight:bold; margin-top: 10px;\">Avez vous des demandes spécifiques ? </h6><textarea class=\"form-control\" name=\"demande_specifique\" id=\"textAreaExample1\" rows=\"1\" placeholder=\"Saisissez votre texte Ici\" style=\"font-size: 12px;\"></textarea>--><div class=\"message\" style=\" display: none;\">Les Services supplémentaires sont indisponibles pour cette sélection.</div></div><div class=\"button-row\"><a href=\"";// line 366echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationbureaux");echo "\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\" style=\" border:1px solid #FFCB00 !important; color:black !important;background: #ffff !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape précédente</a> <a href=\"";// line 368echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationstep2office", ["id" => (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 368, $this->source); })())]), "html", null, true);echo "\" id=\"reservationLink\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\" style=\"background: #FFCB00 !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape suivante</a></div></div></div></div></div></div></div></div></div></div><div id=\"panier\" class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto; \">";// line 403echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart"));echo "</div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 415public function block_javascripts($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));// line 416echo " <!-- MAIN CONTENT --><script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script><script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script><script>//recuperer la valeur des jours dans le formulaire .document.getElementById('reservationLink').addEventListener('click', function() {var days=0;var selectedOption = document.getElementById('serviceFormule');var selected = selectedOption.value;if(selected != \"\"){days = selectedOption.options[selectedOption.selectedIndex].getAttribute('data-days');}else{var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {days = parseInt(radioButtons[i].getAttribute('data-days'));break;}} }if (days === 0) {event.preventDefault(); // Empêche le lien de se déclencheralert(\"Vous n'avez rien sélectionné. Veuillez sélectionner une option.\");}var link = document.getElementById('reservationLink');link.href = \"";// line 450echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reservationstep2office", ["id" => (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 450, $this->source); })()), "paramFormule" => "days"]), "html", null, true);echo "\".replace('days', days);});\$(document).ready(function(){/*\$(\"#select\").change(function(){var selectedValue = \$(this).val();\$.ajax({url: '/reservation/ajax-formule-reservation',type: 'GET', // ou 'GET' en fonction de votre besoindata: { office : selectedValue },success: function(response) {// Vider le contenu de la div #form-attribue\$('#form-attribue').empty();setTimeout(function() {// Cacher la div loader après le délai spécifié (par exemple, 2 secondes)// Afficher le résultat dans la div\$('#form-attribue').html(response);}, 1000); // Délai de 2 secondes (2000 millisecondes)},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});*/\$('#serviceFormule').change(function(){var radio = document.getElementById('radio2');radio.checked = true;\$('.Addons').show();\$('.message').hide();});var radioButtons = document.getElementsByName('radioGroup');var selectElement = document.getElementById('serviceFormule');radioButtons.forEach(function(radio) {radio.addEventListener('click', function() {if (radio.id === 'radio2') {selectElement.disabled = false;selectElement.val(\$('option:nth-child(1)').prop('selected', true));\$('.Addons').show();\$('.message').hide()}else if(radio.id === 'radio1'){\$('.Addons').hide();\$('.message').show();}else {selectElement.selectedIndex = 0; // Sélection du premier élémentselectElement.disabled = true;\$('.Addons').show();\$('.message').hide();}});});\$('body').on(\"click\",\".option\",function() {/*var selectedServiceIds = [];var formule =\"\";formule = \$(\".radio1\").val();*/if (\$(this).is(':checked')) {var formule = \$(this).val();}\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la liste//selectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");if(price != 0){var actionType = \"add\";currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});}else{var actionType = \"remove\";currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}\$.ajax({url:\"";// line 571echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"";// line 609echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"change\",\"select.option\",function() {var selectedServiceIds = [];if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio3\").val() != \"\"){if(\$(\"#serviceFormule\").val() != \"\" ){formule =\$(\"#serviceFormule\").val();}else{formule = \$(\".radio1\").val();}}// Parcourir toutes les cases cochées avec la classe CK\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la liste// selectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");if(price != 0){var actionType = \"add\";currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});}else{var actionType = \"remove\";currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}\$.ajax({url:\"";// line 665echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});var idProduct = \$(this).find(\"option:selected\").attr(\"data-id\");var price = \$(this).find(\"option:selected\").attr(\"data-price\");var name = \$(this).find(\"option:selected\").attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"";// line 709echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"click\",\".delete-cart-item\",function() {var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"";// line 733echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});// Ajouter la délégation d'événements pour le clic sur le label 'service'\$('#form-attribue').on('click', 'label[for=\"service\"]', function() {var checkBox = \$(this).prev();var value = checkBox.val();if (checkBox.is(\":checked\")) {checkBox.prop('checked', false);console.log(\"Case à cocher décochée : \" + value);checkBox.next('label').css({ 'color': '#626262' ,'background': 'none'});var idProduct = checkBox.attr(\"data-id\");var price = checkBox.attr(\"data-price\");var name = checkBox.attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"";// line 762echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});} else {checkBox.prop('checked', true);// console.log(\"Case à cocher cochée : \" + value);var formule = \"\";if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio1\").val() != \"\"){if(\$(\"#serviceFormule\").val() != \"\" ){formule =\$(\"#serviceFormule\").val();}else if (\$('#radio1').is(':checked')) {formule = \$(\".radio1\").val();}else if (\$('#radio1').is(':checked')) {formule = \$(\"#radio1\").val();}else if (\$('#radioMois').is(':checked')) {formule = \$(\"#radioMois\").val();}var serviceId = \$(this).prev().data('id');var dataElement = \$(this).prev();\$.ajax({url: \"";// line 801echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajaxServicePrice");echo "\",type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : value,formule : formule},success: function(response) {// alert(response);dataElement.attr(\"data-price\", response);var idProduct = dataElement.attr(\"data-id\");var price = dataElement.attr(\"data-price\");var name = dataElement.attr(\"data-name\");var actionType = \"add\";if(price != 0 ){\$.ajax({url:\"";// line 818echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_cart");echo "\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});checkBox.next('label').css({ 'color': 'white' ,'background': '#FFD86E'});}else {// Si le prix est égal à zéro, changer le fond du checkbox en grischeckBox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});}}});var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {var selectedValue = radioButtons[i].value;break;}}console.log(selectedValue); // Vous pouvez utiliser la valeur comme vous le souhaitez ici});</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 1234 => 818, 1214 => 801, 1172 => 762, 1140 => 733, 1113 => 709, 1066 => 665, 1007 => 609, 966 => 571, 842 => 450, 806 => 416, 796 => 415, 780 => 403, 742 => 368, 737 => 366, 717 => 348, 714 => 344, 708 => 343, 703 => 341, 690 => 340, 687 => 339, 682 => 337, 669 => 336, 666 => 335, 663 => 334, 659 => 333, 653 => 329, 647 => 328, 644 => 327, 641 => 326, 638 => 325, 633 => 324, 631 => 323, 626 => 320, 608 => 319, 605 => 318, 601 => 317, 593 => 311, 587 => 310, 580 => 306, 561 => 304, 539 => 303, 531 => 299, 527 => 298, 524 => 297, 519 => 294, 513 => 293, 510 => 292, 494 => 290, 491 => 289, 488 => 288, 485 => 287, 482 => 286, 478 => 285, 467 => 276, 464 => 275, 462 => 274, 458 => 272, 452 => 271, 442 => 264, 430 => 261, 420 => 260, 413 => 255, 411 => 254, 405 => 250, 401 => 249, 385 => 235, 379 => 234, 373 => 233, 365 => 231, 363 => 230, 360 => 229, 356 => 228, 353 => 227, 349 => 226, 300 => 179, 294 => 178, 288 => 177, 285 => 176, 280 => 174, 277 => 173, 274 => 172, 269 => 171, 265 => 170, 261 => 169, 250 => 161, 242 => 155, 232 => 154, 74 => 6, 70 => 5, 60 => 4, 37 => 1,);}public function getSourceContext(){return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}{% block stylesheets %}{{ parent() }}<link rel=\"stylesheet\" href=\"{{ asset('themes/coworking/css/reservation.css') }}\" /><link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.css\" /><style>.modal-backdrop.fade.show {display: none;}/* css checkbox*//* hide checkbox */input[type=\"checkbox\"] {display: none;}/* if checkbox is checked, then do these things *//*input[type=\"checkbox\"]:checked + label {color: white;background:#FFD86E;border-radius: 5px;padding: 0px 10px 0px 10px;}/* styles when hovering over options */label:hover {cursor: pointer;/* transitions and animations */-webkit-transition: color .5s ease;-moz-transition: color .5s ease;-ms-transition: color .5s ease;-o-transition: color .5s ease;transition: color .5s ease;}input.button {\twidth:130px;\theight:50px;\tmargin: 20px 0 30px 0;\tpadding: 0px 20px 0px 20px;\tbackground: #e6e6e6;\tborder-radius:5px;\tborder: 1px solid #ccc;\tfont-family: OpenSans, sans-serif;\tfont-size:16pt;\tcolor:#444;}.Addons label{font-size:12px !important;font-family: 'roboto';font-weight: 500;border: 1px solid #80808024;margin: 2px;padding: 0px 5px 0px 5px;border-radius: 5px;}.multistep-container .active-button li:not(:first-child) .round-btn:before {position: absolute;content: '';width: 141px;height: 3px;background-color: #E9F2FA;left: -120px;}.multistep-container .active-button li {display: inline-block;width: 140px;}.form-check {line-height: 22px;}.col-md-12.col-lg-12.col-sm-12.d-flex.justify-content-end.align-items-end.mb-3{flex: 0 0 86%;}@media (max-width:767px) {html, body {overflow-x: hidden !important;}body {position: relative !important;}.col-sm-8.reservation-steeps {padding:0%;}.multistep-container .mutistep-form-area .form-box{position: relative;top: 33px;left: 0px;}.multistep-container .active-button li{display: inline-block;width: 100px;}.panel-sticky{font-size:12px;}h6.display-6.header-steeps {margin-left: 3%;}h6.datetime{margin-left: 3%;}a#seeDetails {margin-bottom: -11%;}a#seePrice {float: right;margin-right: 52%;}}li.etape1:before {background: #7ED670 !important; /* Change the background color */color: white !important;}.message {color: white;background: rgb(199, 200, 204);font-size: 15px;padding: 20px;border-radius: 10px;text-align: center;font-weight: bold;box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);height: 100px; /* Adjust the height as necessary */display: flex;align-items: center;justify-content: center;}</style>{% endblock %}{% block body %}<img src=\"{{asset('themes/coworking/front/images/office.jpg')}}\" style=\"width: 100%;height: 520px;\" class=\"img-fluid\" /><div class=\"container\"><div class=\"row justify-content-between\"><div class=\"col-sm-8 reservation-steeps\"><div class=\"row\"><div class=\"col-sm-8\"><h6 style=\"margin-top:10px\">Réservation{% set displayed_categories = [] %}{% for bureau in products %}{% for cat in bureau.categoriesProduct %}{% if cat.id == subcategory and cat.id not in displayed_categories %}{{cat.name }}{% endif%}{% set displayed_categories = displayed_categories|merge([cat.id]) %}{% endfor %}{% endfor %}</h6></div><div class=\"col-sm-4\" style=\"margin-top:10px;\"><a href=\"/themes/coworking/front/images/BUREAUX.pdf\" class=\"btn-res text-center text-light text-uppercase bg-dark\" style=\"float: right;padding: 8px;border-radius: 6px;font-size:13px;\" target=\"_blank\"> NOS TARIFS</a></div></div><div class=\"container\"><div class=\"row\"><div class=\"container d-flex justify-content-center align-items-center\"><ul id=\"progressbar\">\t\t \t<li class=\"etape1\" > <span> Type</span> </li>\t <li class=\"active\" > <span> Formule</span></li>\t\t <li> Date </li><li> Confirmation</li>\t\t\t\t</ul></div><div class=\"col-xl-12\" style=\"top: 20px ;\"><div class=\"multistep-container\"><div class=\"mutistep-form-area\"><div class=\"form-box\"><div class=\"container\" ><!-- <h5>Veuillez choisir un bureau :</h5><select name=\"select\" id=\"select\" class=\"form-control selectpiker\"><option value=\"\">Sélectionner votre choix </option>{% for bureau in products %}{% for cat in bureau.categoriesProduct %}{% if cat.id == subcategory %}<option value=\"{{bureau.id }}\">BUREAU {{ bureau.name }}</option>{% endif %}{% endfor %}{% endfor %}</select>--><div id=\"form-attribue\" style=\"line-height: 30px;\" class=\"mt-4\"><h5>Veuillez choisir une formule </h5>{% for attr in attributValues %}{% if attr.code == \"simple\" %}<div class=\"form-check\" ><input class=\"form-check-input option radio1 \" data-days=\"10\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\" data-price=\"{{attr.price}}\" type=\"radio\" name=\"radioGroup\" class=\"option\" id=\"radio1\" value=\"{{attr.attribut.name}}\" /><label class=\"form-check-label\" data-days=\"10\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\" data-price=\"{{attr.price}}\" for=\"radio1\">{{attr.attribut.name}}</label><br><small>{{attr.attribut.description}}</small></div>{% endif %}{% endfor %}{% set addedValues = [] %}{% if attributValues|length > 0 %}<div class=\"form-check\"><input class=\"form-check-input\" type=\"radio\" name=\"radioGroup\" id=\"radio2\" /><label class=\"form-check-label\" for=\"radio2\">Location “Pass jours”</label><br><small>Cette formule est déclinée comme suit :</small><select style=\"padding: 4px;\" class=\"col-6 option \" id=\"serviceFormule\" ><option value=\"\" data-price=\"\" >Sélectionner un choix</option>{% for attr in attributValues %}{% if attr.code == \"multiple\" %}{% set optionId = attr.attribut.name ~ \"-\" ~ attr.attribut.description ~ \"-\" ~ subcategory ~ \"-\" ~ subcategoryName ~ \"-\" ~ attr.price %}{% if optionId not in addedValues %}{% set _ = addedValues|merge([optionId]) %}<option value=\"{{attr.attribut.name}}\" data-days=\"{{attr.attribut.description}}\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\" data-price=\"{{attr.price}}\" >{{attr.attribut.name}}</option>{% endif %}{% endif %}{% endfor %}</select></div>{% endif %}{% for attr in attributValues %}{% if attr.code == \"personalized\" %}<div class=\"form-check\"><input class=\"form-check-input option radio1 \" data-days=\"30\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\" {% if(attr.price is null) %} data-price=\"0\" {% else %} data-price=\"{{attr.price}}\" {% endif %} type=\"radio\" name=\"radioGroup\" {% if(attr.attribut.name==\"Période personnalisée\") %} value=\"Mois\" {% else %} value=\"{{attr.attribut.name}}\" {% endif %} id=\"radioMois\" /><label class=\"form-check-label\" data-days=\"30\" data-id=\"{{subcategory}}\" data-name=\"{{subcategoryName}}\" {% if(attr.price is null) %} data-price=\"0\" {% else %} data-price=\"{{attr.price}}\" {% endif %} for=\"radio{{ attr.attribut.id}}\"> {{ attr.attribut.name}} </label><br><small> {{ attr.attribut.description}}</small></div>{% endif %}{% endfor %}<h5 style=\"font-weight:bold; margin-top: 10px;\">Services supplémentaires </h5><h6 style=\"font-weight:bold; margin-top: 10px;\">Voulez-vous ajouter des services supplémentaires?</h6><!--<small style=\"color:grey\">Disponible en location au mois ou à la journée</small>--><div class=\"row\"><div class=\"col-sm-12 Addons\">{% for service in services %}<input id=\"{{ service.name}}\" data-id=\"{{service.id}}\" data-name=\"{{service.name}}\" data-price=\"{{service.price}}\" type=\"checkbox\" class=\"CK\" name=\"services\" value=\"{{ service.id}} \"><label for=\"service\"> {{ service.name}} </label>{% endfor %}<br>{% set isSimple = false %}{% for attr in attributValues %}{% if attr.code == \"simple\" %}{% set isSimple = true %}{% endif %}{% endfor %}{% for servicesCommun in servicesCommuns %}{% if not isSimple %}{% if servicesCommun.id not in [94, 92, 69] %}<input id=\"{{ servicesCommun.name }}\" data-id=\"{{ servicesCommun.id }}\" data-name=\"{{ servicesCommun.name }}\" data-price=\"{{ servicesCommun.price }}\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"{{ servicesCommun.id }} \"><label for=\"service\"> {{ servicesCommun.name }} </label>{% endif %}{% else %}<input id=\"{{ servicesCommun.name }}\" data-id=\"{{ servicesCommun.id }}\" data-name=\"{{ servicesCommun.name }}\" data-price=\"{{ servicesCommun.price }}\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"{{ servicesCommun.id }} \"><label for=\"service\"> {{ servicesCommun.name }} </label>{% endif %}{% endfor %}{#{% for servicesCommun in servicesCommuns %}<input id=\"{{ servicesCommun.name}}\" data-id=\"{{servicesCommun.id}}\" data-name=\"{{servicesCommun.name}}\" data-price=\"{{servicesCommun.price}}\" type=\"checkbox\" class=\"CK\" name=\"serviceCommun\" value=\"{{ servicesCommun.id}} \"><label for=\"service\"> {{ servicesCommun.name}} </label>{% endfor %}#}</div><!-- <div class=\"col-sm-12\"><small style=\"color:grey; margin-top: 5px;\">Autre</small><input type=\"text\" class=\"form-control\" id=\"information\" placeholder=\"Saisissez votre texte ici\" style=\"height: 30px;border-radius: 4px;\"></div>--><!-- <h5 style=\"font-weight:bold;margin-top: 10px; \">Informations additionnelles </h5><h6 style=\"font-weight:bold; margin-top: 10px;\">Avez vous des demandes spécifiques ? </h6><textarea class=\"form-control\" name=\"demande_specifique\" id=\"textAreaExample1\" rows=\"1\" placeholder=\"Saisissez votre texte Ici\" style=\"font-size: 12px;\"></textarea>--><div class=\"message\" style=\" display: none;\">Les Services supplémentaires sont indisponibles pour cette sélection.</div></div><div class=\"button-row\"><a href=\"{{path(\"reservationbureaux\")}}\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\" style=\" border:1px solid #FFCB00 !important; color:black !important;background: #ffff !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape précédente</a> <a href=\"{{path(\"reservationstep2office\",{id:subcategory})}}\" id=\"reservationLink\" class=\"btn-res text-center text-light text-uppercase bg-dark ReserveNext__\" style=\"background: #FFCB00 !important;padding:10px; text-decoration:none; width:230px; font-size:12px; font-family:'PT Sans', sans-serif; letter-spacing:2px;\">Étape suivante</a></div></div></div></div></div></div></div></div></div></div><div id=\"panier\" class=\"col-sm-4 reservation-steeps-panier\" style=\"overflow-y: auto; \">{{render(path(\"ajax_cart\"))}}</div></div>{% endblock %}{% block javascripts %}<!-- MAIN CONTENT --><script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\"></script><script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\" integrity=\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\" crossorigin=\"anonymous\"></script><script>//recuperer la valeur des jours dans le formulaire .document.getElementById('reservationLink').addEventListener('click', function() {var days=0;var selectedOption = document.getElementById('serviceFormule');var selected = selectedOption.value;if(selected != \"\"){days = selectedOption.options[selectedOption.selectedIndex].getAttribute('data-days');}else{var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {days = parseInt(radioButtons[i].getAttribute('data-days'));break;}} }if (days === 0) {event.preventDefault(); // Empêche le lien de se déclencheralert(\"Vous n'avez rien sélectionné. Veuillez sélectionner une option.\");}var link = document.getElementById('reservationLink');link.href = \"{{ path('reservationstep2office', {id: subcategory, 'paramFormule': 'days'}) }}\".replace('days', days);});\$(document).ready(function(){/*\$(\"#select\").change(function(){var selectedValue = \$(this).val();\$.ajax({url: '/reservation/ajax-formule-reservation',type: 'GET', // ou 'GET' en fonction de votre besoindata: { office : selectedValue },success: function(response) {// Vider le contenu de la div #form-attribue\$('#form-attribue').empty();setTimeout(function() {// Cacher la div loader après le délai spécifié (par exemple, 2 secondes)// Afficher le résultat dans la div\$('#form-attribue').html(response);}, 1000); // Délai de 2 secondes (2000 millisecondes)},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});*/\$('#serviceFormule').change(function(){var radio = document.getElementById('radio2');radio.checked = true;\$('.Addons').show();\$('.message').hide();});var radioButtons = document.getElementsByName('radioGroup');var selectElement = document.getElementById('serviceFormule');radioButtons.forEach(function(radio) {radio.addEventListener('click', function() {if (radio.id === 'radio2') {selectElement.disabled = false;selectElement.val(\$('option:nth-child(1)').prop('selected', true));\$('.Addons').show();\$('.message').hide()}else if(radio.id === 'radio1'){\$('.Addons').hide();\$('.message').show();}else {selectElement.selectedIndex = 0; // Sélection du premier élémentselectElement.disabled = true;\$('.Addons').show();\$('.message').hide();}});});\$('body').on(\"click\",\".option\",function() {/*var selectedServiceIds = [];var formule =\"\";formule = \$(\".radio1\").val();*/if (\$(this).is(':checked')) {var formule = \$(this).val();}\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la liste//selectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");if(price != 0){var actionType = \"add\";currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});}else{var actionType = \"remove\";currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"change\",\"select.option\",function() {var selectedServiceIds = [];if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio3\").val() != \"\"){if(\$(\"#serviceFormule\").val() != \"\" ){formule =\$(\"#serviceFormule\").val();}else{formule = \$(\".radio1\").val();}}// Parcourir toutes les cases cochées avec la classe CK\$('.CK:checked').each(function() {// Ajouter l'ID du service sélectionné à la liste// selectedServiceIds.push(\$(this).data('id'));var currentCheckbox = \$(this);\$.ajax({url: '/reservation/ajax-service-price',type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : \$(this).data('id'),formule : formule},success: function(response) {currentCheckbox.attr('data-price', response);var idProduct = currentCheckbox.attr(\"data-id\");var price = currentCheckbox.attr(\"data-price\");var name = currentCheckbox.attr(\"data-name\");if(price != 0){var actionType = \"add\";currentCheckbox.next('label').css({'color': 'white', 'background': 'rgb(255, 216, 110)'});}else{var actionType = \"remove\";currentCheckbox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});});var idProduct = \$(this).find(\"option:selected\").attr(\"data-id\");var price = \$(this).find(\"option:selected\").attr(\"data-price\");var name = \$(this).find(\"option:selected\").attr(\"data-name\");var actionType = \"add\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});\$('body').on(\"click\",\".delete-cart-item\",function() {var idProduct = \$(this).attr(\"data-id\");var price = \$(this).attr(\"data-price\");var name = \$(this).attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});});// Ajouter la délégation d'événements pour le clic sur le label 'service'\$('#form-attribue').on('click', 'label[for=\"service\"]', function() {var checkBox = \$(this).prev();var value = checkBox.val();if (checkBox.is(\":checked\")) {checkBox.prop('checked', false);console.log(\"Case à cocher décochée : \" + value);checkBox.next('label').css({ 'color': '#626262' ,'background': 'none'});var idProduct = checkBox.attr(\"data-id\");var price = checkBox.attr(\"data-price\");var name = checkBox.attr(\"data-name\");var actionType = \"remove\";\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});} else {checkBox.prop('checked', true);// console.log(\"Case à cocher cochée : \" + value);var formule = \"\";if(\$(\"#serviceFormule\").val() != \"\" || \$(\"#radio1\").val() != \"\"){if(\$(\"#serviceFormule\").val() != \"\" ){formule =\$(\"#serviceFormule\").val();}else if (\$('#radio1').is(':checked')) {formule = \$(\".radio1\").val();}else if (\$('#radio1').is(':checked')) {formule = \$(\"#radio1\").val();}else if (\$('#radioMois').is(':checked')) {formule = \$(\"#radioMois\").val();}var serviceId = \$(this).prev().data('id');var dataElement = \$(this).prev();\$.ajax({url: \"{{path('ajaxServicePrice')}}\",type: 'GET', // ou 'GET' en fonction de votre besoindata: {serviceId : value,formule : formule},success: function(response) {// alert(response);dataElement.attr(\"data-price\", response);var idProduct = dataElement.attr(\"data-id\");var price = dataElement.attr(\"data-price\");var name = dataElement.attr(\"data-name\");var actionType = \"add\";if(price != 0 ){\$.ajax({url:\"{{path('ajax_cart')}}\",data:{idProduct:idProduct,price:price,name:name,actionType:actionType},success:function(result){console.log(result);\$(\".reservation-steeps-panier\").html(result);}});checkBox.next('label').css({ 'color': 'white' ,'background': '#FFD86E'});}else {// Si le prix est égal à zéro, changer le fond du checkbox en grischeckBox.next('label').css({'color': 'white', 'background': '#C7C8CC'});}},error: function(xhr, status, error) {// Gérez les erreurs iciconsole.error(error);}});}}});var radioButtons = document.getElementsByName('radioGroup');for (var i = 0; i < radioButtons.length; i++) {if (radioButtons[i].checked) {var selectedValue = radioButtons[i].value;break;}}console.log(selectedValue); // Vous pouvez utiliser la valeur comme vous le souhaitez ici});</script>{% endblock %}", "@Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig", "/home/gebcloud/public_html/cowork.gebanalysis.cloud/src/Flexy/FrontBundle/Themes/CoWorking/templates/reservation/reservation-offices-step.html.twig");}}