<?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;
/* Front/Exercise/show.html.twig */
class __TwigTemplate_0d39598cd13d715e85dd8cee25486f10dd03560b2510c446ccfccdacd77397ec extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'before_navbar' => [$this, 'block_before_navbar'],
'body_markup' => [$this, 'block_body_markup'],
'content' => [$this, 'block_content'],
'inner_content' => [$this, 'block_inner_content'],
'body' => [$this, 'block_body'],
];
}
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", "Front/Exercise/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Exercise/show.html.twig"));
// line 4
$context["currentRoute"] = twig_get_attribute($this->env, $this->source, 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "attributes", [], "any", false, false, false, 4), "get", [0 => "_route"], "method", false, false, false, 4);
// line 16
$context["next_informations"] = null;
// line 17
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 17, $this->source); })()) == "front_channel_exercise_show")) {
// line 18
$context["next_informations"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsExerciseResult((isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 18, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 18, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 18, $this->source); })()), (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 18, $this->source); })()));
}
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "Front/Exercise/show.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 2
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 twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 2, $this->source); })()), "name", [], "any", false, false, false, 2), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_before_navbar($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", "before_navbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
// line 7
echo " ";
$this->loadTemplate("Front/Scholar/Partial/_preview_manager_heager.html.twig", "Front/Exercise/show.html.twig", 7)->display(twig_array_merge($context, ["channel" => // line 8
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 8, $this->source); })()), "currentRoute" => // line 9
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 9, $this->source); })())]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_body_markup($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_markup"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
// line 14
echo "<body class=\"progression\" style=\"font-family: 'Poppins';\" id=\"page-training-lesson\">";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 22
echo " ";
if (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 22, $this->source); })()), [0 => "front_channel_exercise_show", 1 => "manager_channel_module_lesson_exercise_show", 2 => "manager_channel_training_module_lesson_exercise_show"])) {
// line 23
echo " ";
$context["trainingModuleLessons"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarModuleRuntime')->getLessons((isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 23, $this->source); })()));
// line 24
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 24, $this->source); })()) == "manager_channel_lesson_exercise_show")) {
// line 25
echo " ";
$context["trainingModuleLessons"] = [0 => (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 25, $this->source); })())];
// line 26
echo " ";
}
// line 27
echo "
";
// line 28
$this->loadTemplate("Front/Scholar/Partial/_menu_lessons_mobile.html.twig", "Front/Exercise/show.html.twig", 28)->display(twig_array_merge($context, ["current_exercise" => // line 29
(isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 29, $this->source); })())]));
// line 31
echo "
<div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
<div class=\"row\">
<div class=\"col-md-9 col-12\">
<h3 class=\"mb-4\" style=\"font-size: 16px;\">";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 35, $this->source); })()), "name", [], "any", false, false, false, 35), "html", null, true);
echo "</h3>
<h2 class=\"v2-title-big\">";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 36, $this->source); })()), "name", [], "any", false, false, false, 36), "html", null, true);
echo "</h2>
";
// line 38
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 38, $this->source); })()), "updatedAt", [], "any", false, false, false, 38)) || !(null === twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 38, $this->source); })()), "createdAt", [], "any", false, false, false, 38)))) {
// line 39
echo " <div class=\"col-12 col-md-6 d-flex justify-content-between align-items-baseline p-0\">
<div>
";
// line 41
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 41, $this->source); })()), "updatedAt", [], "any", false, false, false, 41))) {
// line 42
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, // line 43
(isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 43, $this->source); })()), "updatedAt", [], "any", false, false, false, 43), "long", "", null, "gregorian", 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.', 43, $this->source); })()), "request", [], "any", false, false, false, 43), "locale", [], "any", false, false, false, 43))]);
} else {
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, // line 47
(isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 47, $this->source); })()), "createdAt", [], "any", false, false, false, 47), "long", "", null, "gregorian", 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.', 47, $this->source); })()), "request", [], "any", false, false, false, 47), "locale", [], "any", false, false, false, 47))]);
}
// line 50
echo " </div>
</div>
";
}
// line 53
echo "
<div class=\"pt-40px-mobile description-container\">
<div class=\"row\">
";
// line 56
$context["stat"] = ((twig_get_attribute($this->env, $this->source, ($context["current_exercise"] ?? null), "stat", [], "any", true, true, false, 56)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["current_exercise"] ?? null), "stat", [], "any", false, false, false, 56), ((array_key_exists("stat", $context)) ? (_twig_default_filter((isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 56, $this->source); })()), null)) : (null)))) : (((array_key_exists("stat", $context)) ? (_twig_default_filter((isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 56, $this->source); })()), null)) : (null))));
// line 57
echo "
";
// line 58
$context["displayStatistics"] = false;
// line 59
echo " ";
if (( !twig_test_empty((isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 59, $this->source); })())) && twig_get_attribute($this->env, $this->source, (isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 59, $this->source); })()), "hasResults", [], "any", false, false, false, 59))) {
// line 60
echo " ";
$context["displayStatistics"] = true;
// line 61
echo " ";
}
// line 62
echo "
<div class=\"col-md-4 col-12 d-none\">
<div style=\"box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);padding:15px;border-radius: 6px;\">
<div class=\"font-weight-bold text-center mb-3\">";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercise.stat.title.label"), "html", null, true);
echo "</div>
<div class=\"d-flex justify-content-between mb-1\">
<div>";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.avgScore.label"), "html", null, true);
echo " :</div>
";
// line 69
if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics", $context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.', 69, $this->source); })())) {
// line 70
echo " <div class=\"little-grey\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 70, $this->source); })()), "avgScore", [], "any", false, false, false, 70), "html", null, true);
echo " / 100</div>
";
} else {
// line 72
echo " <div class=\"little-grey\">-</div>
";
}
// line 74
echo " </div>
<div class=\"d-flex justify-content-between mb-1\">
<div>";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.medianScore.label"), "html", null, true);
echo " :</div>
";
// line 78
if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics", $context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.', 78, $this->source); })())) {
// line 79
echo " <div class=\"little-grey\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 79, $this->source); })()), "medianScore", [], "any", false, false, false, 79), "html", null, true);
echo " / 100</div>
";
} else {
// line 81
echo " <div class=\"little-grey\">-</div>
";
}
// line 83
echo " </div>
<div class=\"d-flex justify-content-between mb-1\">
<div>";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.avgTime.label"), "html", null, true);
echo " :</div>
";
// line 87
if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics", $context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.', 87, $this->source); })())) {
// line 88
echo " <div class=\"little-grey\">";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\TimerRuntime')->timerDisplay(twig_get_attribute($this->env, $this->source, (isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 88, $this->source); })()), "avgTime", [], "any", false, false, false, 88)), "html", null, true);
echo "</div>
";
} else {
// line 90
echo " <div class=\"little-grey\">-</div>
";
}
// line 92
echo " </div>
<div class=\"d-flex justify-content-between mb-1\">
<div>";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.medianTime.label"), "html", null, true);
echo " :</div>
";
// line 96
if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics", $context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.', 96, $this->source); })())) {
// line 97
echo " <div class=\"little-grey\">";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\TimerRuntime')->timerDisplay(twig_get_attribute($this->env, $this->source, (isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 97, $this->source); })()), "medianTime", [], "any", false, false, false, 97)), "html", null, true);
echo "</div>
";
} else {
// line 99
echo " <div class=\"little-grey\">-</div>
";
}
// line 101
echo " </div>
<div class=\"d-flex justify-content-between mb-1\">
<div>";
// line 104
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.totalDone.label"), "html", null, true);
echo " :</div>
";
// line 105
if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics", $context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.', 105, $this->source); })())) {
// line 106
echo " <div class=\"little-grey\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stat"]) || array_key_exists("stat", $context) ? $context["stat"] : (function () { throw new RuntimeError('Variable "stat" does not exist.', 106, $this->source); })()), "totalDone", [], "any", false, false, false, 106), "html", null, true);
echo "</div>
";
} else {
// line 108
echo " <div class=\"little-grey\">0</div>
";
}
// line 110
echo " </div>
</div>
</div>
<div class=\"col-10 offset-1 exercise-statistics-description-separator d-block d-md-none\"></div>
<div class=\"col-12 col-lg-9 exercise-description-container\">
<div class=\"exercise-description-block\">
<div class=\"font-weight-bold mb-3\">";
// line 118
echo "Description de l'exercice";
echo "</div>
<div class=\"description-style\">";
// line 119
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 119, $this->source); })()), "description", [], "any", false, false, false, 119), "html", null, true);
echo "</div>
</div>
<div class=\"separation\"></div>
";
// line 123
if ((array_key_exists("bestExerciseResult", $context) && !(null === (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 123, $this->source); })())))) {
// line 124
echo " ";
$context["exercise_failed"] = true;
// line 125
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 125, $this->source); })()), "isSuccessful", [], "any", false, false, false, 125)) {
// line 126
echo " ";
$context["exercise_failed"] = false;
// line 127
echo " ";
}
// line 128
echo "
";
// line 129
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 129, $this->source); })()), "startedAt", [], "any", false, false, false, 129))) {
// line 130
echo " ";
$context["exerciseStartPath"] = null;
// line 131
echo " ";
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 131, $this->source); })()) == "front_channel_exercise_show")) {
// line 132
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_exercise_start", ["trainingId" => twig_get_attribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 132, $this->source); })()), "id", [], "any", false, false, false, 132), "moduleId" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 132, $this->source); })()), "id", [], "any", false, false, false, 132), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 132, $this->source); })()), "id", [], "any", false, false, false, 132), "id" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 132, $this->source); })()), "id", [], "any", false, false, false, 132)]);
// line 133
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 133, $this->source); })()) == "manager_channel_lesson_exercise_show")) {
// line 134
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_lesson_exercise_start", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 134, $this->source); })()), "id", [], "any", false, false, false, 134), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 134, $this->source); })()), "id", [], "any", false, false, false, 134), "exerciseId" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 134, $this->source); })()), "id", [], "any", false, false, false, 134)]);
// line 135
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 135, $this->source); })()) == "manager_channel_module_lesson_exercise_show")) {
// line 136
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_module_lesson_exercise_start", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 136, $this->source); })()), "id", [], "any", false, false, false, 136), "moduleId" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 136, $this->source); })()), "id", [], "any", false, false, false, 136), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 136, $this->source); })()), "id", [], "any", false, false, false, 136), "exerciseId" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 136, $this->source); })()), "id", [], "any", false, false, false, 136)]);
// line 137
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 137, $this->source); })()) == "manager_channel_training_module_lesson_exercise_show")) {
// line 138
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_training_module_lesson_exercise_start", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, false, 138), "trainingId" => twig_get_attribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, false, 138), "moduleId" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, false, 138), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, false, 138), "exerciseId" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, false, 138)]);
// line 139
echo " ";
}
// line 140
echo " <div class=\"last-results-container\">
<div class=\"results-container\">
";
// line 142
if (((isset($context["exercise_failed"]) || array_key_exists("exercise_failed", $context) ? $context["exercise_failed"] : (function () { throw new RuntimeError('Variable "exercise_failed" does not exist.', 142, $this->source); })()) === false)) {
// line 143
echo " <div class=\"date-score-container\">
<div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container passed\">
<i class=\"fal fa-check icone\"></i>
<div class=\"score\">
Score : ";
// line 147
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 147, $this->source); })()), "score", [], "any", false, false, false, 147) / 10), "html", null, true);
echo " / 10
</div>
</div>
<p>Réalisé le ";
// line 150
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 150, $this->source); })()), "startedAt", [], "any", false, false, false, 150), "d/m/Y"), "html", null, true);
echo ".</p>
</div>
<p class=\"text-success font-weight-bold result-sentence\">
Vous avez obtenu un score suffisant à ce QCM pour poursuivre vers le
cours suivant.
</p>
<div class=\"exercise-start-block\">
<a href=\"";
// line 157
echo twig_escape_filter($this->env, (isset($context["exerciseStartPath"]) || array_key_exists("exerciseStartPath", $context) ? $context["exerciseStartPath"] : (function () { throw new RuntimeError('Variable "exerciseStartPath" does not exist.', 157, $this->source); })()), "html", null, true);
echo "\"
class=\"btn-nellapp-v2 btn-begin-exercise\">
<i class=\"far fa-money-check-edit mark-icon\"></i>
Recommencer l'exercice
</a>
";
// line 162
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 162, $this->source); })()) == "front_channel_exercise_show")) {
// line 163
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_exercise_solution", ["id" => twig_get_attribute($this->env, $this->source, // line 164
(isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 164, $this->source); })()), "id", [], "any", false, false, false, 164), "trainingId" => twig_get_attribute($this->env, $this->source, // line 165
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 165, $this->source); })()), "id", [], "any", false, false, false, 165), "moduleId" => twig_get_attribute($this->env, $this->source, // line 166
(isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 166, $this->source); })()), "id", [], "any", false, false, false, 166), "lessonId" => twig_get_attribute($this->env, $this->source, // line 167
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 167, $this->source); })()), "id", [], "any", false, false, false, 167), "resultId" => twig_get_attribute($this->env, $this->source, // line 168
(isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 168, $this->source); })()), "id", [], "any", false, false, false, 168)]), "html", null, true);
// line 169
echo "\"
class=\"btn-nellapp-v2\"
>
Voir mon résultat
</a>
";
}
// line 175
echo " </div>
";
} else {
// line 177
echo " <div class=\"date-score-container justify-content-center justify-content-md-start\">
<div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container not-passed\">
<i class=\"fal fa-times icone\"></i>
<div class=\"score\">
Score : ";
// line 181
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 181, $this->source); })()), "score", [], "any", false, false, false, 181) / 10), "html", null, true);
echo " / 10
</div>
</div>
<p>Réalisé le ";
// line 184
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 184, $this->source); })()), "startedAt", [], "any", false, false, false, 184), "d/m/Y"), "html", null, true);
echo ".</p>
</div>
<div class=\"result-advice\">
<p class=\"text-danger font-weight-bold result-sentence\">Vous n'avez
pas
obtenu un score suffisant à ce QCM pour
poursuivre vers le cours suivant.</p>
<p class=\"advice\">Veuillez retravailler le cours et repasser le
QCM.</p>
</div>
<div class=\"exercise-start-block\">
<a href=\"";
// line 195
echo twig_escape_filter($this->env, (isset($context["exerciseStartPath"]) || array_key_exists("exerciseStartPath", $context) ? $context["exerciseStartPath"] : (function () { throw new RuntimeError('Variable "exerciseStartPath" does not exist.', 195, $this->source); })()), "html", null, true);
echo "\"
class=\"btn-nellapp-v2 btn-begin-exercise\">
<i class=\"far fa-money-check-edit mark-icon\"></i>
Recommencer l'exercice
</a>
";
// line 200
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 200, $this->source); })()) == "front_channel_exercise_show")) {
// line 201
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_exercise_solution", ["id" => twig_get_attribute($this->env, $this->source, // line 202
(isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 202, $this->source); })()), "id", [], "any", false, false, false, 202), "trainingId" => twig_get_attribute($this->env, $this->source, // line 203
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 203, $this->source); })()), "id", [], "any", false, false, false, 203), "moduleId" => twig_get_attribute($this->env, $this->source, // line 204
(isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 204, $this->source); })()), "id", [], "any", false, false, false, 204), "lessonId" => twig_get_attribute($this->env, $this->source, // line 205
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 205, $this->source); })()), "id", [], "any", false, false, false, 205), "resultId" => twig_get_attribute($this->env, $this->source, // line 206
(isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult", $context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.', 206, $this->source); })()), "id", [], "any", false, false, false, 206)]), "html", null, true);
// line 207
echo "\"
class=\"btn-nellapp-v2\"
>
Voir mon résultat
</a>
";
}
// line 213
echo " </div>
";
}
// line 215
echo " </div>
</div>
";
}
// line 218
echo " ";
} else {
// line 219
echo " <div class=\"exercise-start-block with-separation\">
";
// line 220
$context["exerciseStartPath"] = null;
// line 221
echo " ";
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 221, $this->source); })()) == "front_channel_exercise_show")) {
// line 222
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_exercise_start", ["trainingId" => twig_get_attribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 222, $this->source); })()), "id", [], "any", false, false, false, 222), "moduleId" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 222, $this->source); })()), "id", [], "any", false, false, false, 222), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 222, $this->source); })()), "id", [], "any", false, false, false, 222), "id" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 222, $this->source); })()), "id", [], "any", false, false, false, 222)]);
// line 223
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 223, $this->source); })()) == "manager_channel_lesson_exercise_show")) {
// line 224
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_lesson_exercise_start", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 224, $this->source); })()), "id", [], "any", false, false, false, 224), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 224, $this->source); })()), "id", [], "any", false, false, false, 224), "exerciseId" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 224, $this->source); })()), "id", [], "any", false, false, false, 224)]);
// line 225
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 225, $this->source); })()) == "manager_channel_module_lesson_exercise_show")) {
// line 226
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_module_lesson_exercise_start", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 226, $this->source); })()), "id", [], "any", false, false, false, 226), "moduleId" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 226, $this->source); })()), "id", [], "any", false, false, false, 226), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 226, $this->source); })()), "id", [], "any", false, false, false, 226), "exerciseId" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 226, $this->source); })()), "id", [], "any", false, false, false, 226)]);
// line 227
echo " ";
} elseif (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 227, $this->source); })()) == "manager_channel_training_module_lesson_exercise_show")) {
// line 228
echo " ";
$context["exerciseStartPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_training_module_lesson_exercise_start", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 228, $this->source); })()), "id", [], "any", false, false, false, 228), "trainingId" => twig_get_attribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 228, $this->source); })()), "id", [], "any", false, false, false, 228), "moduleId" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 228, $this->source); })()), "id", [], "any", false, false, false, 228), "lessonId" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 228, $this->source); })()), "id", [], "any", false, false, false, 228), "exerciseId" => twig_get_attribute($this->env, $this->source, (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 228, $this->source); })()), "id", [], "any", false, false, false, 228)]);
// line 229
echo " ";
}
// line 230
echo "
<a href=\"";
// line 231
echo twig_escape_filter($this->env, (isset($context["exerciseStartPath"]) || array_key_exists("exerciseStartPath", $context) ? $context["exerciseStartPath"] : (function () { throw new RuntimeError('Variable "exerciseStartPath" does not exist.', 231, $this->source); })()), "html", null, true);
echo "\" class=\"btn-nellapp-v2 btn-begin-exercise\">
<i class=\"far fa-money-check-edit mark-icon\"></i>
Commencer l'exercice
</a>
</div>
";
}
// line 237
echo " </div>
</div>
";
// line 240
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 240, $this->source); })()) == "front_channel_exercise_show")) {
// line 241
echo " ";
$this->loadTemplate("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig", "Front/Exercise/show.html.twig", 241)->display(twig_array_merge($context, ["next_informations" => // line 242
(isset($context["next_informations"]) || array_key_exists("next_informations", $context) ? $context["next_informations"] : (function () { throw new RuntimeError('Variable "next_informations" does not exist.', 242, $this->source); })()), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsExercise( // line 243
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 243, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 243, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 243, $this->source); })()), (isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 243, $this->source); })()))]));
// line 245
echo " ";
}
// line 246
echo " </div>
</div>
<div class=\"col-3 p-0 d-none d-md-block\">
";
// line 250
$this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig", "Front/Exercise/show.html.twig", 250)->display(twig_array_merge($context, ["current_exercise" => // line 251
(isset($context["current_exercise"]) || array_key_exists("current_exercise", $context) ? $context["current_exercise"] : (function () { throw new RuntimeError('Variable "current_exercise" does not exist.', 251, $this->source); })())]));
// line 253
echo " </div>
</div>
</div>
";
// line 257
$this->displayParentBlock("content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 260
public function block_inner_content($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", "inner_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 261
echo " ";
$this->displayParentBlock("inner_content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 264
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 265
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Front/Exercise/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 647 => 265, 637 => 264, 624 => 261, 614 => 260, 602 => 257, 596 => 253, 594 => 251, 593 => 250, 587 => 246, 584 => 245, 582 => 243, 581 => 242, 579 => 241, 577 => 240, 572 => 237, 563 => 231, 560 => 230, 557 => 229, 554 => 228, 551 => 227, 548 => 226, 545 => 225, 542 => 224, 539 => 223, 536 => 222, 533 => 221, 531 => 220, 528 => 219, 525 => 218, 520 => 215, 516 => 213, 508 => 207, 506 => 206, 505 => 205, 504 => 204, 503 => 203, 502 => 202, 500 => 201, 498 => 200, 490 => 195, 476 => 184, 470 => 181, 464 => 177, 460 => 175, 452 => 169, 450 => 168, 449 => 167, 448 => 166, 447 => 165, 446 => 164, 444 => 163, 442 => 162, 434 => 157, 424 => 150, 418 => 147, 412 => 143, 410 => 142, 406 => 140, 403 => 139, 400 => 138, 397 => 137, 394 => 136, 391 => 135, 388 => 134, 385 => 133, 382 => 132, 379 => 131, 376 => 130, 374 => 129, 371 => 128, 368 => 127, 365 => 126, 362 => 125, 359 => 124, 357 => 123, 350 => 119, 346 => 118, 336 => 110, 332 => 108, 326 => 106, 324 => 105, 320 => 104, 315 => 101, 311 => 99, 305 => 97, 303 => 96, 299 => 95, 294 => 92, 290 => 90, 284 => 88, 282 => 87, 278 => 86, 273 => 83, 269 => 81, 263 => 79, 261 => 78, 257 => 77, 252 => 74, 248 => 72, 242 => 70, 240 => 69, 236 => 68, 230 => 65, 225 => 62, 222 => 61, 219 => 60, 216 => 59, 214 => 58, 211 => 57, 209 => 56, 204 => 53, 199 => 50, 196 => 47, 195 => 46, 192 => 43, 191 => 42, 189 => 41, 185 => 39, 183 => 38, 178 => 36, 174 => 35, 168 => 31, 166 => 29, 165 => 28, 162 => 27, 159 => 26, 156 => 25, 153 => 24, 150 => 23, 147 => 22, 137 => 21, 127 => 14, 117 => 13, 107 => 9, 106 => 8, 104 => 7, 94 => 6, 73 => 2, 62 => 1, 59 => 18, 57 => 17, 55 => 16, 53 => 4, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% block before_navbar %}
{% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
'channel': channel,
'currentRoute': currentRoute,
} %}
{% endblock before_navbar %}
{% block body_markup %}
<body class=\"progression\" style=\"font-family: 'Poppins';\" id=\"page-training-lesson\">{% endblock body_markup %}
{% set next_informations = null %}
{% if currentRoute == 'front_channel_exercise_show' %}
{% set next_informations = get_next_informations_exercise_result(training, module, lesson, bestExerciseResult) %}
{% endif %}
{% block content %}
{% if currentRoute in ['front_channel_exercise_show', 'manager_channel_module_lesson_exercise_show', 'manager_channel_training_module_lesson_exercise_show'] %}
{% set trainingModuleLessons = module | get_lessons %}
{% elseif currentRoute == 'manager_channel_lesson_exercise_show' %}
{% set trainingModuleLessons = [lesson] %}
{% endif %}
{% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' with {
'current_exercise': current_exercise
} %}
<div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
<div class=\"row\">
<div class=\"col-md-9 col-12\">
<h3 class=\"mb-4\" style=\"font-size: 16px;\">{{- lesson.name -}}</h3>
<h2 class=\"v2-title-big\">{{- current_exercise.name -}}</h2>
{% if lesson.updatedAt is not null or lesson.createdAt is not null %}
<div class=\"col-12 col-md-6 d-flex justify-content-between align-items-baseline p-0\">
<div>
{% if current_exercise.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': current_exercise.updatedAt|format_date('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': current_exercise.createdAt|format_date('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"pt-40px-mobile description-container\">
<div class=\"row\">
{% set stat = current_exercise.stat|default(stat|default(null)) %}
{% set displayStatistics = false %}
{% if stat is not empty and stat.hasResults %}
{% set displayStatistics = true %}
{% endif %}
<div class=\"col-md-4 col-12 d-none\">
<div style=\"box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);padding:15px;border-radius: 6px;\">
<div class=\"font-weight-bold text-center mb-3\">{{- 'exercise.stat.title.label'|trans -}}</div>
<div class=\"d-flex justify-content-between mb-1\">
<div>{{ 'exercises.stats.entity.avgScore.label'|trans }} :</div>
{% if displayStatistics %}
<div class=\"little-grey\">{{ stat.avgScore }} / 100</div>
{% else %}
<div class=\"little-grey\">-</div>
{% endif %}
</div>
<div class=\"d-flex justify-content-between mb-1\">
<div>{{ 'exercises.stats.entity.medianScore.label'|trans }} :</div>
{% if displayStatistics %}
<div class=\"little-grey\">{{ stat.medianScore }} / 100</div>
{% else %}
<div class=\"little-grey\">-</div>
{% endif %}
</div>
<div class=\"d-flex justify-content-between mb-1\">
<div>{{ 'exercises.stats.entity.avgTime.label'|trans }} :</div>
{% if displayStatistics %}
<div class=\"little-grey\">{{ stat.avgTime|timer_display }}</div>
{% else %}
<div class=\"little-grey\">-</div>
{% endif %}
</div>
<div class=\"d-flex justify-content-between mb-1\">
<div>{{ 'exercises.stats.entity.medianTime.label'|trans }} :</div>
{% if displayStatistics %}
<div class=\"little-grey\">{{ stat.medianTime|timer_display }}</div>
{% else %}
<div class=\"little-grey\">-</div>
{% endif %}
</div>
<div class=\"d-flex justify-content-between mb-1\">
<div>{{ 'exercises.stats.entity.totalDone.label'|trans }} :</div>
{% if displayStatistics %}
<div class=\"little-grey\">{{ stat.totalDone }}</div>
{% else %}
<div class=\"little-grey\">0</div>
{% endif %}
</div>
</div>
</div>
<div class=\"col-10 offset-1 exercise-statistics-description-separator d-block d-md-none\"></div>
<div class=\"col-12 col-lg-9 exercise-description-container\">
<div class=\"exercise-description-block\">
<div class=\"font-weight-bold mb-3\">{{- 'Description de l\\'exercice' -}}</div>
<div class=\"description-style\">{{- current_exercise.description -}}</div>
</div>
<div class=\"separation\"></div>
{% if bestExerciseResult is defined and bestExerciseResult is not null %}
{% set exercise_failed = true %}
{% if bestExerciseResult.isSuccessful %}
{% set exercise_failed = false %}
{% endif %}
{% if bestExerciseResult.startedAt is not null %}
{% set exerciseStartPath = null %}
{% if currentRoute == 'front_channel_exercise_show' %}
{% set exerciseStartPath = path('front_exercise_start', {'trainingId': training.id,'moduleId': module.id,'lessonId': lesson.id,'id': current_exercise.id}) %}
{% elseif currentRoute == 'manager_channel_lesson_exercise_show' %}
{% set exerciseStartPath = path('manager_channel_lesson_exercise_start', {'channelId': channel.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
{% elseif currentRoute == 'manager_channel_module_lesson_exercise_show' %}
{% set exerciseStartPath = path('manager_channel_module_lesson_exercise_start', {'channelId': channel.id, 'moduleId': module.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
{% elseif currentRoute == 'manager_channel_training_module_lesson_exercise_show' %}
{% set exerciseStartPath = path('manager_channel_training_module_lesson_exercise_start', {'channelId': channel.id, 'trainingId': training.id, 'moduleId': module.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
{% endif %}
<div class=\"last-results-container\">
<div class=\"results-container\">
{% if exercise_failed is same as false %}
<div class=\"date-score-container\">
<div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container passed\">
<i class=\"fal fa-check icone\"></i>
<div class=\"score\">
Score : {{ bestExerciseResult.score / 10 }} / 10
</div>
</div>
<p>Réalisé le {{ bestExerciseResult.startedAt|date('d/m/Y') }}.</p>
</div>
<p class=\"text-success font-weight-bold result-sentence\">
Vous avez obtenu un score suffisant à ce QCM pour poursuivre vers le
cours suivant.
</p>
<div class=\"exercise-start-block\">
<a href=\"{{- exerciseStartPath -}}\"
class=\"btn-nellapp-v2 btn-begin-exercise\">
<i class=\"far fa-money-check-edit mark-icon\"></i>
Recommencer l'exercice
</a>
{% if currentRoute == 'front_channel_exercise_show' %}
<a href=\"{{ path('front_exercise_solution', {
'id': current_exercise.id,
'trainingId': training.id,
'moduleId': module.id,
'lessonId': lesson.id,
'resultId': bestExerciseResult.id
}) }}\"
class=\"btn-nellapp-v2\"
>
Voir mon résultat
</a>
{% endif %}
</div>
{% else %}
<div class=\"date-score-container justify-content-center justify-content-md-start\">
<div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container not-passed\">
<i class=\"fal fa-times icone\"></i>
<div class=\"score\">
Score : {{ bestExerciseResult.score / 10 }} / 10
</div>
</div>
<p>Réalisé le {{ bestExerciseResult.startedAt|date('d/m/Y') }}.</p>
</div>
<div class=\"result-advice\">
<p class=\"text-danger font-weight-bold result-sentence\">Vous n'avez
pas
obtenu un score suffisant à ce QCM pour
poursuivre vers le cours suivant.</p>
<p class=\"advice\">Veuillez retravailler le cours et repasser le
QCM.</p>
</div>
<div class=\"exercise-start-block\">
<a href=\"{{- exerciseStartPath -}}\"
class=\"btn-nellapp-v2 btn-begin-exercise\">
<i class=\"far fa-money-check-edit mark-icon\"></i>
Recommencer l'exercice
</a>
{% if currentRoute == 'front_channel_exercise_show' %}
<a href=\"{{ path('front_exercise_solution', {
'id': current_exercise.id,
'trainingId': training.id,
'moduleId': module.id,
'lessonId': lesson.id,
'resultId': bestExerciseResult.id
}) }}\"
class=\"btn-nellapp-v2\"
>
Voir mon résultat
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endif %}
{% else %}
<div class=\"exercise-start-block with-separation\">
{% set exerciseStartPath = null %}
{% if currentRoute == 'front_channel_exercise_show' %}
{% set exerciseStartPath = path('front_exercise_start', {'trainingId': training.id,'moduleId': module.id,'lessonId': lesson.id,'id': current_exercise.id}) %}
{% elseif currentRoute == 'manager_channel_lesson_exercise_show' %}
{% set exerciseStartPath = path('manager_channel_lesson_exercise_start', {'channelId': channel.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
{% elseif currentRoute == 'manager_channel_module_lesson_exercise_show' %}
{% set exerciseStartPath = path('manager_channel_module_lesson_exercise_start', {'channelId': channel.id, 'moduleId': module.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
{% elseif currentRoute == 'manager_channel_training_module_lesson_exercise_show' %}
{% set exerciseStartPath = path('manager_channel_training_module_lesson_exercise_start', {'channelId': channel.id, 'trainingId': training.id, 'moduleId': module.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
{% endif %}
<a href=\"{{- exerciseStartPath -}}\" class=\"btn-nellapp-v2 btn-begin-exercise\">
<i class=\"far fa-money-check-edit mark-icon\"></i>
Commencer l'exercice
</a>
</div>
{% endif %}
</div>
</div>
{% if currentRoute == 'front_channel_exercise_show' %}
{% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
next_informations: next_informations,
previous_informations: get_previous_informations_exercise(training, module, lesson, current_exercise),
} %}
{% endif %}
</div>
</div>
<div class=\"col-3 p-0 d-none d-md-block\">
{% include 'Front/Scholar/Partial/menu_lessons.html.twig' with {
'current_exercise': current_exercise
} %}
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
{{ parent() }}
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% endblock %}
", "Front/Exercise/show.html.twig", "/var/www/html/templates/Front/Exercise/show.html.twig");
}
}