<?php
use 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;
/* session/index.html.twig */
class __TwigTemplate_e159539ca8b7084e7aa5db699d3cc8a0aee0a4f45b8256485fec1131c9092470 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'pixel' => [$this, 'block_pixel'],
'header' => [$this, 'block_header'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "session/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "session/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "session/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Liste des groupes collectifs", [], "messages");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_pixel($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pixel"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pixel"));
// line 7
echo " <!-- Convert Pixel -->
<script type=\"text/javascript\">!function(e,t){(e=t.createElement(\"script\")).src=\"https://cdn.convertbox.com/convertbox/js/embed.js\",e.id=\"app-convertbox-script\",e.async=true,e.dataset.uuid=\"4f52879f-6d67-4653-9761-5edfc32f78fd\",document.getElementsByTagName(\"head\")[0].appendChild(e)}(window,document);</script>
<!-- End Convert Pixel Code -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 14
echo " ";
echo twig_include($this->env, $context, "partials/_navbar.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 18
echo "<div class=\"container content mt-5 p-4\">
<h1 class=\"mb-4\">";
// line 19
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cours collectifs", [], "messages");
echo " <strong>";
echo twig_escape_filter($this->env, (((0 === twig_compare((isset($context["local"]) || array_key_exists("local", $context) ? $context["local"] : (function () { throw new RuntimeError('Variable "local" does not exist.', 19, $this->source); })()), "fr"))) ? (twig_get_attribute($this->env, $this->source, (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 19, $this->source); })()), "name", [], "any", false, false, false, 19)) : (twig_get_attribute($this->env, $this->source, (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 19, $this->source); })()), "nameEn", [], "any", false, false, false, 19))), "html", null, true);
echo "</strong></h1>
";
// line 20
if ( !(null === (isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 20, $this->source); })()))) {
// line 21
echo " ";
if (((1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 22
(isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 22, $this->source); })()), "openRegistrationDate", [], "any", false, false, false, 22), "Y/m/d"))) && (-1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 24
(isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 24, $this->source); })()), "closeRegistrationDate", [], "any", false, false, false, 24), "Y/m/d"))))) {
// line 26
echo " <div class=\"ddio_countdown_wrap\"></div>
<div class=\"row\">
<div class=\"col mb-5\">
<h2>";
// line 29
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Groupe pour", [], "messages");
echo " ";
if ((0 === twig_compare((isset($context["gender"]) || array_key_exists("gender", $context) ? $context["gender"] : (function () { throw new RuntimeError('Variable "gender" does not exist.', 29, $this->source); })()), "feminin"))) {
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Femme", [], "messages");
echo " ";
} else {
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Homme", [], "messages");
}
echo "</h2>
<hr>
</div>
<div class=\"alert alert-warning\">
<h3 class=\"mt-2 mb-4\"><strong>";
// line 33
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Votre niveau", [], "messages");
echo "</strong></h3>
<p class=\"h5\">";
// line 34
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Il est impératif de passer un test de niveau avec un de nos professeurs avant de vous inscrire à un groupe. Ce test, constitue une étape essentielle pour vous orienter vers le groupe qui vous convient le mieux. Le prix du test est de 7€. Celui-i sera déduit de vos frais d'inscription, rendant ainsi le test sans frais supplémentaires une fois que vous intégrez nos rangs en tant qu'étudiant.", [], "messages");
echo "</p>
<br>
<p><a target=\"_blank\" class=\"btn btn-primary btn-lg\" href=\"";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("test_placement", ["gender" => // line 37
(isset($context["gender"]) || array_key_exists("gender", $context) ? $context["gender"] : (function () { throw new RuntimeError('Variable "gender" does not exist.', 37, $this->source); })()), "tag" => twig_get_attribute($this->env, $this->source, // line 38
(isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 38, $this->source); })()), "tagName", [], "any", false, false, false, 38)]), "html", null, true);
// line 39
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Test de niveau (avec le professeur) pour", [], "messages");
echo " ";
echo twig_escape_filter($this->env, (((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["gender"]) || array_key_exists("gender", $context) ? $context["gender"] : (function () { throw new RuntimeError('Variable "gender" does not exist.', 39, $this->source); })()), "name", [], "any", false, false, false, 39), "masculin"))) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("HOMMES")) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("FEMMES"))), "html", null, true);
echo " »</a></p>
<br>
<p class=\"h5\">";
// line 41
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Si vous avez déjà été étudiant chez nous et que votre évaluation de niveau remonte à moins de six mois, vous avez la possibilité de sélectionner directement votre niveau sans passer par l'étape du test.", [], "messages");
echo "</p>
</div>
</div>
<div class=\"row\">
<p class=\"alert alert-danger\"><strong>";
// line 45
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Rappel", [], "messages");
echo "</strong> : ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ce sont des horaires égyptiens. Pour connaître le décalage avec votre pays", [], "messages");
// line 46
echo "
<a target=\"_blank\" href=\"https://www.timeanddate.com/worldclock/egypt/cairo\"> ";
// line 47
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("cliquez-ici", [], "messages");
echo "</a> ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("(pour voir quelle heure il est actuellement en Egypte)", [], "messages");
echo ".
";
// line 48
if (((-1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, "now", "Y/10/30"))) && (1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, twig_date_modify_filter($this->env, twig_date_format_filter($this->env, "now", "Y/10/30"), (("-" . twig_get_attribute($this->env, $this->source, (isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 48, $this->source); })()), "sessionDurationByWeek", [], "any", false, false, false, 48)) . "weeks")), "Y/m/d"))))) {
// line 49
echo " ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("N'oubliez pas que l'Europe passera à l'heure d'hiver à la fin d'Octobre (l'Egypte changera d'heure aussi le dernier vendredi d'octobre)", [], "messages");
echo ".
";
}
// line 51
echo " ";
if (((-1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, "now", "Y/03/28"))) && (1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, twig_date_modify_filter($this->env, twig_date_format_filter($this->env, "now", "Y/03/28"), (("-" . twig_get_attribute($this->env, $this->source, (isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 51, $this->source); })()), "sessionDurationByWeek", [], "any", false, false, false, 51)) . "weeks")), "Y/m/d"))))) {
// line 52
echo " ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("N'oubliez pas que l'Europe passera à l'heure d'été à la fin Mars (l'Egypte changera d'heure aussi le dernier vendredi d'avril)", [], "messages");
echo ".
";
}
// line 54
echo " ";
if (((-1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, "now", "Y/05/01"))) && (1 === twig_compare(twig_date_format_filter($this->env, "now", "Y/m/d"), twig_date_format_filter($this->env, twig_date_modify_filter($this->env, twig_date_format_filter($this->env, "now", "Y/05/01"), (("-" . twig_get_attribute($this->env, $this->source, (isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 54, $this->source); })()), "sessionDurationByWeek", [], "any", false, false, false, 54)) . "weeks")), "Y/m/d"))))) {
// line 55
echo " <strong>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("l'Egypte changera passe à l'heure d'été le dernier vendredi d'avril (+1h)", [], "messages");
echo ".</strong>
";
}
// line 57
echo " </p>
";
// line 68
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sessions"]) || array_key_exists("sessions", $context) ? $context["sessions"] : (function () { throw new RuntimeError('Variable "sessions" does not exist.', 68, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["session"]) {
// line 69
echo " <div class=\"col-md-4 mb-5\">
<div class=\"card h-100\">
<div class=\"card-header\">
<h4 class=\"card-title text-uppercase font-weight-bold\">
";
// line 73
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 73, $this->source); })()), "request", [], "any", false, false, false, 73), "locale", [], "any", false, false, false, 73), "fr"))) ? ("niveau ") : ("level "));
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["session"], "level", [], "any", false, false, false, 73), "level", [], "any", false, false, false, 73), "html", null, true);
echo "
</h4>
<h6 class=\"card-subtitle mb-2 text-muted\">";
// line 75
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Avec", [], "messages");
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["session"], "teacher", [], "any", false, false, false, 75), "userId", [], "any", false, false, false, 75), "gender", [], "any", false, false, false, 75), "name", [], "any", false, false, false, 75), "feminin"))) {
echo "Oustadha ";
} else {
echo " Oustadh";
}
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["session"], "teacher", [], "any", false, false, false, 75), "userId", [], "any", false, false, false, 75), "firstname", [], "any", false, false, false, 75), "html", null, true);
echo "</h6>
</div>
<div class=\"card-body\">
<p class=\"card-text\">
<span class=\"font-weight-bold\">";
// line 79
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Planning", [], "messages");
echo " :</span>
<br>
";
// line 81
echo twig_escape_filter($this->env, (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 81, $this->source); })()), "request", [], "any", false, false, false, 81), "locale", [], "any", false, false, false, 81), "fr"))) ? (twig_get_attribute($this->env, $this->source, $context["session"], "displaySchedule", [], "any", false, false, false, 81)) : (twig_get_attribute($this->env, $this->source, $context["session"], "displayScheduleEn", [], "any", false, false, false, 81))), "html", null, true);
echo "
<br>
<small>";
// line 83
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Heure égyptienne", [], "messages");
echo "</small>
</p>
<p class=\"card-text\"><span class=\"font-weight-bold\">";
// line 85
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Début de session", [], "messages");
echo " : ";
((twig_get_attribute($this->env, $this->source, $context["session"], "startDate", [], "any", false, false, false, 85)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["session"], "startDate", [], "any", false, false, false, 85), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</span></p>
<p class=\"card-text\"><span class=\"font-weight-bold\">";
// line 86
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Fin de session", [], "messages");
echo " :</span> ";
((twig_get_attribute($this->env, $this->source, $context["session"], "endDate", [], "any", false, false, false, 86)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["session"], "endDate", [], "any", false, false, false, 86), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</p>
<p class=\"card-text\">
";
// line 89
if ((0 === twig_compare((isset($context["isDiscount"]) || array_key_exists("isDiscount", $context) ? $context["isDiscount"] : (function () { throw new RuntimeError('Variable "isDiscount" does not exist.', 89, $this->source); })()), true))) {
// line 90
echo " <span class=\"font-weight-bold\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Prix", [], "messages");
echo " :</span>
";
// line 91
if ((0 === twig_compare((isset($context["discountType"]) || array_key_exists("discountType", $context) ? $context["discountType"] : (function () { throw new RuntimeError('Variable "discountType" does not exist.', 91, $this->source); })()), "percent"))) {
// line 92
echo " ";
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["session"], "price", [], "any", false, false, false, 92) - ((twig_get_attribute($this->env, $this->source, $context["session"], "price", [], "any", false, false, false, 92) * (isset($context["discountAmount"]) || array_key_exists("discountAmount", $context) ? $context["discountAmount"] : (function () { throw new RuntimeError('Variable "discountAmount" does not exist.', 92, $this->source); })())) / 100)), "html", null, true);
echo "€ <br>
";
} else {
// line 94
echo " ";
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["session"], "price", [], "any", false, false, false, 94) - (isset($context["discountAmount"]) || array_key_exists("discountAmount", $context) ? $context["discountAmount"] : (function () { throw new RuntimeError('Variable "discountAmount" does not exist.', 94, $this->source); })())), "html", null, true);
echo "€ <br>
";
}
// line 96
echo " <small> <strong class=\"text-danger\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("au lieu de", [], "messages");
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["session"], "price", [], "any", false, false, false, 96), "html", null, true);
echo " €</strong></small>
<br>
<small>🔥<strong class=\"text-danger\"> ";
// line 98
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ceci est un prix réduit pour une durée limitée !", [], "messages");
echo "</strong></small>
";
}
// line 100
echo " </p>
<p class=\"card-text\"><span class=\"font-weight-bold\"></span>
";
// line 102
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["session"], "seat", [], "any", false, false, false, 102), 0))) {
// line 103
echo " <span class=\"text-danger font-weight-bold\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("PLACES LIMITÉES", [], "messages");
echo "</span>
";
}
// line 105
echo "
</p>
</div>
<div class=\"card-footer\">
";
// line 109
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["session"], "seat", [], "any", false, false, false, 109), 0))) {
// line 110
echo " ";
if ((isset($context["parameter"]) || array_key_exists("parameter", $context) ? $context["parameter"] : (function () { throw new RuntimeError('Variable "parameter" does not exist.', 110, $this->source); })())) {
// line 111
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("session_purchase", ["id" => twig_get_attribute($this->env, $this->source, $context["session"], "id", [], "any", false, false, false, 111), "d" => (isset($context["parameter"]) || array_key_exists("parameter", $context) ? $context["parameter"] : (function () { throw new RuntimeError('Variable "parameter" does not exist.', 111, $this->source); })())]), "html", null, true);
echo "\" class=\"btn btn-primary\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Je m'inscris", [], "messages");
echo " !</a>
";
} else {
// line 113
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("session_purchase", ["id" => twig_get_attribute($this->env, $this->source, $context["session"], "id", [], "any", false, false, false, 113)]), "html", null, true);
echo "\" class=\"btn btn-primary\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Je m'inscris", [], "messages");
echo " !</a>
";
}
// line 115
echo " ";
} else {
// line 116
echo " <span class=\"text-danger font-weight-bold\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Groupe complet", [], "messages");
echo " !</span>
";
}
// line 118
echo " </div>
</div>
</div>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 122
echo " <div class=\"container content mt-5 p-4 \">
<p class=\"alert alert-warning\">
";
// line 124
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Il n'y a pas de groupe prévu pour ce programme:", [], "messages");
echo " ";
echo twig_escape_filter($this->env, (((0 === twig_compare((isset($context["local"]) || array_key_exists("local", $context) ? $context["local"] : (function () { throw new RuntimeError('Variable "local" does not exist.', 124, $this->source); })()), "fr"))) ? (twig_get_attribute($this->env, $this->source, (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 124, $this->source); })()), "name", [], "any", false, false, false, 124)) : (twig_get_attribute($this->env, $this->source, (isset($context["subject"]) || array_key_exists("subject", $context) ? $context["subject"] : (function () { throw new RuntimeError('Variable "subject" does not exist.', 124, $this->source); })()), "nameEn", [], "any", false, false, false, 124))), "html", null, true);
echo "
<br>
";
// line 126
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Si vous souhaitez étudier cette matière en groupe privé (avec vos amis), vous pouvez nous contacter pour en ouvrir un.", [], "messages");
// line 127
echo " </p>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['session'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 130
echo " </div>
";
} else {
// line 132
echo " <div class=\"container content mt-5 p-4\">
<p class=\"alert alert-warning\">
";
// line 134
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Les inscriptions pour les cours collectifs sont fermées. Inscrivez-vous sur la liste ci-dessous pour être tenu informé de l'ouverture des inscriptions :", [], "messages");
// line 135
echo " </p>
";
// line 136
echo (((0 === twig_compare((isset($context["local"]) || array_key_exists("local", $context) ? $context["local"] : (function () { throw new RuntimeError('Variable "local" does not exist.', 136, $this->source); })()), "fr"))) ? (twig_get_attribute($this->env, $this->source, (isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 136, $this->source); })()), "subscribeFormFr", [], "any", false, false, false, 136)) : (twig_get_attribute($this->env, $this->source, (isset($context["registrationDate"]) || array_key_exists("registrationDate", $context) ? $context["registrationDate"] : (function () { throw new RuntimeError('Variable "registrationDate" does not exist.', 136, $this->source); })()), "subscribeFormEn", [], "any", false, false, false, 136)));
echo "
</div>
";
}
} else {
// line 140
echo " <div class=\"container content mt-5 p-4\">
<p class=\"alert alert-warning\">
";
// line 142
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Les inscriptions pour les cours collectifs sont fermées. Inscrivez-vous sur la liste ci-dessous pour être tenu informé de l'ouverture des inscriptions :", [], "messages");
// line 143
echo " </p>
";
// line 144
if ((0 === twig_compare((isset($context["local"]) || array_key_exists("local", $context) ? $context["local"] : (function () { throw new RuntimeError('Variable "local" does not exist.', 144, $this->source); })()), "fr"))) {
// line 145
echo " <div class=\"_form_65\"></div><script src=\"https://alkunuz84085.activehosted.com/f/embed.php?id=65\" type=\"text/javascript\" charset=\"utf-8\"></script>
";
} else {
// line 147
echo " <div class=\"_form_67\"></div><script src=\"https://alkunuz84085.activehosted.com/f/embed.php?id=67\" type=\"text/javascript\" charset=\"utf-8\"></script>
";
}
// line 149
echo " </div>
";
}
// line 151
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 153
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 154
echo " ";
echo twig_include($this->env, $context, "partials/js-scroll.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "session/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 481 => 154, 471 => 153, 460 => 151, 456 => 149, 452 => 147, 448 => 145, 446 => 144, 443 => 143, 441 => 142, 437 => 140, 430 => 136, 427 => 135, 425 => 134, 421 => 132, 417 => 130, 409 => 127, 407 => 126, 400 => 124, 396 => 122, 388 => 118, 382 => 116, 379 => 115, 371 => 113, 363 => 111, 360 => 110, 358 => 109, 352 => 105, 346 => 103, 344 => 102, 340 => 100, 335 => 98, 327 => 96, 321 => 94, 315 => 92, 313 => 91, 308 => 90, 306 => 89, 298 => 86, 292 => 85, 287 => 83, 282 => 81, 277 => 79, 262 => 75, 255 => 73, 249 => 69, 243 => 68, 240 => 57, 234 => 55, 231 => 54, 225 => 52, 222 => 51, 216 => 49, 214 => 48, 208 => 47, 205 => 46, 201 => 45, 194 => 41, 186 => 39, 184 => 38, 183 => 37, 182 => 36, 177 => 34, 173 => 33, 159 => 29, 154 => 26, 152 => 24, 151 => 22, 149 => 21, 147 => 20, 141 => 19, 138 => 18, 128 => 17, 115 => 14, 105 => 13, 91 => 7, 81 => 6, 62 => 4, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{% trans %}Liste des groupes collectifs{% endtrans %}{% endblock %}
{% block pixel %}
<!-- Convert Pixel -->
<script type=\"text/javascript\">!function(e,t){(e=t.createElement(\"script\")).src=\"https://cdn.convertbox.com/convertbox/js/embed.js\",e.id=\"app-convertbox-script\",e.async=true,e.dataset.uuid=\"4f52879f-6d67-4653-9761-5edfc32f78fd\",document.getElementsByTagName(\"head\")[0].appendChild(e)}(window,document);</script>
<!-- End Convert Pixel Code -->
{% endblock %}
{% block header %}
{{ include('partials/_navbar.html.twig') }}
{% endblock %}
{% block body %}
<div class=\"container content mt-5 p-4\">
<h1 class=\"mb-4\">{% trans %}Cours collectifs{% endtrans %} <strong>{{ local == \"fr\" ? subject.name : subject.nameEn }}</strong></h1>
{% if registrationDate is not null %}
{% if
\"now\"|date('Y/m/d') > registrationDate.openRegistrationDate|date('Y/m/d')
and
\"now\"|date('Y/m/d') < registrationDate.closeRegistrationDate|date('Y/m/d')
%}
<div class=\"ddio_countdown_wrap\"></div>
<div class=\"row\">
<div class=\"col mb-5\">
<h2>{% trans %}Groupe pour{% endtrans %} {% if gender == 'feminin' %}{% trans %}Femme{% endtrans %} {% else %}{% trans %}Homme{% endtrans %}{% endif %}</h2>
<hr>
</div>
<div class=\"alert alert-warning\">
<h3 class=\"mt-2 mb-4\"><strong>{% trans %}Votre niveau{% endtrans %}</strong></h3>
<p class=\"h5\">{% trans %}Il est impératif de passer un test de niveau avec un de nos professeurs avant de vous inscrire à un groupe. Ce test, constitue une étape essentielle pour vous orienter vers le groupe qui vous convient le mieux. Le prix du test est de 7€. Celui-i sera déduit de vos frais d'inscription, rendant ainsi le test sans frais supplémentaires une fois que vous intégrez nos rangs en tant qu'étudiant.{% endtrans %}</p>
<br>
<p><a target=\"_blank\" class=\"btn btn-primary btn-lg\" href=\"{{ path('test_placement', {
'gender' : gender,
'tag' : subject.tagName
}) }}\">{% trans %}Test de niveau (avec le professeur) pour{% endtrans %} {{ gender.name == 'masculin' ? 'HOMMES'|trans : 'FEMMES'|trans }} »</a></p>
<br>
<p class=\"h5\">{% trans %}Si vous avez déjà été étudiant chez nous et que votre évaluation de niveau remonte à moins de six mois, vous avez la possibilité de sélectionner directement votre niveau sans passer par l'étape du test.{% endtrans %}</p>
</div>
</div>
<div class=\"row\">
<p class=\"alert alert-danger\"><strong>{% trans %}Rappel{% endtrans %}</strong> : {% trans %}Ce sont des horaires égyptiens. Pour connaître le décalage avec votre pays{% endtrans %}
<a target=\"_blank\" href=\"https://www.timeanddate.com/worldclock/egypt/cairo\"> {% trans %}cliquez-ici{% endtrans %}</a> {% trans %}(pour voir quelle heure il est actuellement en Egypte){% endtrans %}.
{% if \"now\"|date('Y/m/d') < \"now\"|date('Y/10/30') and \"now\"|date('Y/m/d') > \"now\"|date('Y/10/30')|date_modify(\"-\"~ registrationDate.sessionDurationByWeek ~\"weeks\")|date('Y/m/d') %}
{% trans %}N'oubliez pas que l'Europe passera à l'heure d'hiver à la fin d'Octobre (l'Egypte changera d'heure aussi le dernier vendredi d'octobre){% endtrans %}.
{% endif %}
{% if \"now\"|date('Y/m/d') < \"now\"|date('Y/03/28') and \"now\"|date('Y/m/d') > \"now\"|date('Y/03/28')|date_modify(\"-\"~ registrationDate.sessionDurationByWeek ~\"weeks\")|date('Y/m/d') %}
{% trans %}N'oubliez pas que l'Europe passera à l'heure d'été à la fin Mars (l'Egypte changera d'heure aussi le dernier vendredi d'avril){% endtrans %}.
{% endif %}
{% if \"now\"|date('Y/m/d') < \"now\"|date('Y/05/01') and \"now\"|date('Y/m/d') > \"now\"|date('Y/05/01')|date_modify(\"-\"~ registrationDate.sessionDurationByWeek ~\"weeks\")|date('Y/m/d') %}
<strong>{% trans %}l'Egypte changera passe à l'heure d'été le dernier vendredi d'avril (+1h){% endtrans %}.</strong>
{% endif %}
</p>
{#
{% for holiday in holidays %}
{% if \"now\"|date('Y/m/d') > holiday.startAt|date_modify(\"-\"~ registrationDate.sessionDurationByWeek ~\"weeks\")|date('Y/m/d') and \"now\"|date('Y/m/d') < holiday.endAt|date('Y/m/d') %}
<p class=\"alert alert-warning\"><strong>☪️ {% trans %}INFO{% endtrans %}</strong> : {% trans %} À l'occasion de{% endtrans %} <strong>{{ holiday.name}}</strong> {% trans %}Nous serons fermés du{% endtrans %} {{ holiday.startAt|date('d/m/Y') }} {% trans %}au{% endtrans %} {{ holiday.endAt|date('d/m/Y')}} {% trans %}inclus. Tous les cours seront mis en suspend durant cette période.{% endtrans %}
<br>
<strong>{% trans %}Du matériel pédagogique vous sera offert durant cette pause pour garder le cap + une séance de révision sera rajoutée gratuitement{% endtrans %}</strong>. <em> {% trans %}(Pour réviser à la reprise){% endtrans %}</em>
</p>
{% endif %}
{% endfor %}
#}
{% for session in sessions %}
<div class=\"col-md-4 mb-5\">
<div class=\"card h-100\">
<div class=\"card-header\">
<h4 class=\"card-title text-uppercase font-weight-bold\">
{{ (app.request.locale == 'fr') ? \"niveau \" : \"level \" }} {{ session.level.level }}
</h4>
<h6 class=\"card-subtitle mb-2 text-muted\">{% trans %}Avec{% endtrans %} {% if session.teacher.userId.gender.name == 'feminin' %}Oustadha {% else %} Oustadh{% endif %} {{ session.teacher.userId.firstname }}</h6>
</div>
<div class=\"card-body\">
<p class=\"card-text\">
<span class=\"font-weight-bold\">{% trans %}Planning{% endtrans %} :</span>
<br>
{{ (app.request.locale == 'fr') ? session.displaySchedule : session.displayScheduleEn }}
<br>
<small>{% trans %}Heure égyptienne{% endtrans %}</small>
</p>
<p class=\"card-text\"><span class=\"font-weight-bold\">{% trans %}Début de session{% endtrans %} : {{ session.startDate ? session.startDate|date('d/m/Y') : '' }}</span></p>
<p class=\"card-text\"><span class=\"font-weight-bold\">{% trans %}Fin de session{% endtrans %} :</span> {{ session.endDate ? session.endDate|date('d/m/Y') : '' }}</p>
<p class=\"card-text\">
{% if isDiscount == true %}
<span class=\"font-weight-bold\">{% trans %}Prix{% endtrans %} :</span>
{% if discountType == 'percent' %}
{{ session.price - ((session.price * discountAmount)/100) }}€ <br>
{% else %}
{{ session.price - discountAmount }}€ <br>
{% endif %}
<small> <strong class=\"text-danger\">{% trans %}au lieu de{% endtrans %} {{ session.price }} €</strong></small>
<br>
<small>🔥<strong class=\"text-danger\"> {% trans%}Ceci est un prix réduit pour une durée limitée !{% endtrans%}</strong></small>
{% endif %}
</p>
<p class=\"card-text\"><span class=\"font-weight-bold\"></span>
{% if session.seat > 0 %}
<span class=\"text-danger font-weight-bold\">{% trans %}PLACES LIMITÉES{% endtrans %}</span>
{% endif %}
</p>
</div>
<div class=\"card-footer\">
{% if session.seat > 0 %}
{% if parameter %}
<a href=\"{{ path('session_purchase', {'id': session.id, 'd': parameter}) }}\" class=\"btn btn-primary\">{% trans %}Je m'inscris{% endtrans %} !</a>
{% else%}
<a href=\"{{ path('session_purchase', {'id': session.id}) }}\" class=\"btn btn-primary\">{% trans %}Je m'inscris{% endtrans %} !</a>
{% endif %}
{% else %}
<span class=\"text-danger font-weight-bold\">{% trans %}Groupe complet{% endtrans %} !</span>
{% endif %}
</div>
</div>
</div>
{% else %}
<div class=\"container content mt-5 p-4 \">
<p class=\"alert alert-warning\">
{% trans %}Il n'y a pas de groupe prévu pour ce programme:{% endtrans %} {{ local == 'fr' ? subject.name : subject.nameEn }}
<br>
{% trans %}Si vous souhaitez étudier cette matière en groupe privé (avec vos amis), vous pouvez nous contacter pour en ouvrir un.{% endtrans %}
</p>
</div>
{% endfor %}
</div>
{% else %}
<div class=\"container content mt-5 p-4\">
<p class=\"alert alert-warning\">
{% trans %}Les inscriptions pour les cours collectifs sont fermées. Inscrivez-vous sur la liste ci-dessous pour être tenu informé de l'ouverture des inscriptions : {% endtrans %}
</p>
{{ local == 'fr' ? registrationDate.subscribeFormFr|raw : registrationDate.subscribeFormEn|raw}}
</div>
{% endif %}
{% else %}
<div class=\"container content mt-5 p-4\">
<p class=\"alert alert-warning\">
{% trans %}Les inscriptions pour les cours collectifs sont fermées. Inscrivez-vous sur la liste ci-dessous pour être tenu informé de l'ouverture des inscriptions : {% endtrans %}
</p>
{% if local == 'fr' %}
<div class=\"_form_65\"></div><script src=\"https://alkunuz84085.activehosted.com/f/embed.php?id=65\" type=\"text/javascript\" charset=\"utf-8\"></script>
{% else %}
<div class=\"_form_67\"></div><script src=\"https://alkunuz84085.activehosted.com/f/embed.php?id=67\" type=\"text/javascript\" charset=\"utf-8\"></script>
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}
{% block javascripts %}
{{ include('partials/js-scroll.html.twig') }}
{% endblock %}", "session/index.html.twig", "/home/staging/deploy/releases/163/templates/session/index.html.twig");
}
}