var/cache/dev/twig/38/38c5cbd449e65331863dafc3800dafa1456678381595148944fcf34ed25e3b9c.php line 59

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Front/Exercise/show.html.twig */
  14. class __TwigTemplate_0d39598cd13d715e85dd8cee25486f10dd03560b2510c446ccfccdacd77397ec extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'before_navbar' => [$this'block_before_navbar'],
  25.             'body_markup' => [$this'block_body_markup'],
  26.             'content' => [$this'block_content'],
  27.             'inner_content' => [$this'block_inner_content'],
  28.             'body' => [$this'block_body'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Exercise/show.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Exercise/show.html.twig"));
  43.         // line 4
  44.         $context["currentRoute"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), "attributes", [], "any"falsefalsefalse4), "get", [=> "_route"], "method"falsefalsefalse4);
  45.         // line 16
  46.         $context["next_informations"] = null;
  47.         // line 17
  48.         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")) {
  49.             // line 18
  50.             $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); })()));
  51.         }
  52.         // line 1
  53.         $this->parent $this->loadTemplate("base.html.twig""Front/Exercise/show.html.twig"1);
  54.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  55.         
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.     }
  60.     // line 2
  61.     public function block_title($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  68.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse2), "html"nulltrue);
  69.         echo " - ";
  70.         $this->displayParentBlock("title"$context$blocks);
  71.         
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  73.         
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  75.     }
  76.     // line 6
  77.     public function block_before_navbar($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  84.         // line 7
  85.         echo "    ";
  86.         $this->loadTemplate("Front/Scholar/Partial/_preview_manager_heager.html.twig""Front/Exercise/show.html.twig"7)->display(twig_array_merge($context, ["channel" =>         // line 8
  87. (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
  88. (isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'9$this->source); })())]));
  89.         
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  91.         
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  93.     }
  94.     // line 13
  95.     public function block_body_markup($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  102.         // line 14
  103.         echo "<body class=\"progression\" style=\"font-family: 'Poppins';\" id=\"page-training-lesson\">";
  104.         
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.     }
  109.     // line 21
  110.     public function block_content($context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  117.         // line 22
  118.         echo "    ";
  119.         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); })()), [=> "front_channel_exercise_show"=> "manager_channel_module_lesson_exercise_show"=> "manager_channel_training_module_lesson_exercise_show"])) {
  120.             // line 23
  121.             echo "        ";
  122.             $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); })()));
  123.             // line 24
  124.             echo "    ";
  125.         } 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")) {
  126.             // line 25
  127.             echo "        ";
  128.             $context["trainingModuleLessons"] = [=> (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'25$this->source); })())];
  129.             // line 26
  130.             echo "    ";
  131.         }
  132.         // line 27
  133.         echo "
  134.     ";
  135.         // line 28
  136.         $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
  137. (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); })())]));
  138.         // line 31
  139.         echo "
  140.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  141.         <div class=\"row\">
  142.             <div class=\"col-md-9 col-12\">
  143.                 <h3 class=\"mb-4\" style=\"font-size: 16px;\">";
  144.         // line 35
  145.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse35), "html"nulltrue);
  146.         echo "</h3>
  147.                 <h2 class=\"v2-title-big\">";
  148.         // line 36
  149.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse36), "html"nulltrue);
  150.         echo "</h2>
  151.                 ";
  152.         // line 38
  153.         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"falsefalsefalse38)) ||  !(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"falsefalsefalse38)))) {
  154.             // line 39
  155.             echo "                    <div class=\"col-12 col-md-6 d-flex justify-content-between align-items-baseline p-0\">
  156.                         <div>
  157.                             ";
  158.             // line 41
  159.             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"falsefalsefalse41))) {
  160.                 // line 42
  161.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source,                 // line 43
  162. (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"falsefalsefalse43), "long"""null"gregorian"twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse43), "locale", [], "any"falsefalsefalse43))]);
  163.             } else {
  164.                 // line 46
  165.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source,                 // line 47
  166. (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"falsefalsefalse47), "long"""null"gregorian"twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse47), "locale", [], "any"falsefalsefalse47))]);
  167.             }
  168.             // line 50
  169.             echo "                        </div>
  170.                     </div>
  171.                 ";
  172.         }
  173.         // line 53
  174.         echo "
  175.                 <div class=\"pt-40px-mobile description-container\">
  176.                     <div class=\"row\">
  177.                         ";
  178.         // line 56
  179.         $context["stat"] = ((twig_get_attribute($this->env$this->source, ($context["current_exercise"] ?? null), "stat", [], "any"truetruefalse56)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["current_exercise"] ?? null), "stat", [], "any"falsefalsefalse56), ((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))));
  180.         // line 57
  181.         echo "
  182.                         ";
  183.         // line 58
  184.         $context["displayStatistics"] = false;
  185.         // line 59
  186.         echo "                        ";
  187.         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"falsefalsefalse59))) {
  188.             // line 60
  189.             echo "                            ";
  190.             $context["displayStatistics"] = true;
  191.             // line 61
  192.             echo "                        ";
  193.         }
  194.         // line 62
  195.         echo "
  196.                         <div class=\"col-md-4 col-12 d-none\">
  197.                             <div style=\"box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);padding:15px;border-radius: 6px;\">
  198.                                 <div class=\"font-weight-bold text-center mb-3\">";
  199.         // line 65
  200.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercise.stat.title.label"), "html"nulltrue);
  201.         echo "</div>
  202.                                 <div class=\"d-flex justify-content-between mb-1\">
  203.                                     <div>";
  204.         // line 68
  205.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.avgScore.label"), "html"nulltrue);
  206.         echo " :</div>
  207.                                     ";
  208.         // line 69
  209.         if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics"$context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.'69$this->source); })())) {
  210.             // line 70
  211.             echo "                                        <div class=\"little-grey\">";
  212.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse70), "html"nulltrue);
  213.             echo " / 100</div>
  214.                                     ";
  215.         } else {
  216.             // line 72
  217.             echo "                                        <div class=\"little-grey\">-</div>
  218.                                     ";
  219.         }
  220.         // line 74
  221.         echo "                                </div>
  222.                                 <div class=\"d-flex justify-content-between mb-1\">
  223.                                     <div>";
  224.         // line 77
  225.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.medianScore.label"), "html"nulltrue);
  226.         echo " :</div>
  227.                                     ";
  228.         // line 78
  229.         if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics"$context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.'78$this->source); })())) {
  230.             // line 79
  231.             echo "                                        <div class=\"little-grey\">";
  232.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse79), "html"nulltrue);
  233.             echo " / 100</div>
  234.                                     ";
  235.         } else {
  236.             // line 81
  237.             echo "                                        <div class=\"little-grey\">-</div>
  238.                                     ";
  239.         }
  240.         // line 83
  241.         echo "                                </div>
  242.                                 <div class=\"d-flex justify-content-between mb-1\">
  243.                                     <div>";
  244.         // line 86
  245.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.avgTime.label"), "html"nulltrue);
  246.         echo " :</div>
  247.                                     ";
  248.         // line 87
  249.         if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics"$context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.'87$this->source); })())) {
  250.             // line 88
  251.             echo "                                        <div class=\"little-grey\">";
  252.             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"falsefalsefalse88)), "html"nulltrue);
  253.             echo "</div>
  254.                                     ";
  255.         } else {
  256.             // line 90
  257.             echo "                                        <div class=\"little-grey\">-</div>
  258.                                     ";
  259.         }
  260.         // line 92
  261.         echo "                                </div>
  262.                                 <div class=\"d-flex justify-content-between mb-1\">
  263.                                     <div>";
  264.         // line 95
  265.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.medianTime.label"), "html"nulltrue);
  266.         echo " :</div>
  267.                                     ";
  268.         // line 96
  269.         if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics"$context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.'96$this->source); })())) {
  270.             // line 97
  271.             echo "                                        <div class=\"little-grey\">";
  272.             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"falsefalsefalse97)), "html"nulltrue);
  273.             echo "</div>
  274.                                     ";
  275.         } else {
  276.             // line 99
  277.             echo "                                        <div class=\"little-grey\">-</div>
  278.                                     ";
  279.         }
  280.         // line 101
  281.         echo "                                </div>
  282.                                 <div class=\"d-flex justify-content-between mb-1\">
  283.                                     <div>";
  284.         // line 104
  285.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("exercises.stats.entity.totalDone.label"), "html"nulltrue);
  286.         echo " :</div>
  287.                                     ";
  288.         // line 105
  289.         if ((isset($context["displayStatistics"]) || array_key_exists("displayStatistics"$context) ? $context["displayStatistics"] : (function () { throw new RuntimeError('Variable "displayStatistics" does not exist.'105$this->source); })())) {
  290.             // line 106
  291.             echo "                                        <div class=\"little-grey\">";
  292.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse106), "html"nulltrue);
  293.             echo "</div>
  294.                                     ";
  295.         } else {
  296.             // line 108
  297.             echo "                                        <div class=\"little-grey\">0</div>
  298.                                     ";
  299.         }
  300.         // line 110
  301.         echo "                                </div>
  302.                             </div>
  303.                         </div>
  304.                         <div class=\"col-10 offset-1 exercise-statistics-description-separator d-block d-md-none\"></div>
  305.                         <div class=\"col-12 col-lg-9 exercise-description-container\">
  306.                             <div class=\"exercise-description-block\">
  307.                                 <div class=\"font-weight-bold mb-3\">";
  308.         // line 118
  309.         echo "Description de l'exercice";
  310.         echo "</div>
  311.                                 <div class=\"description-style\">";
  312.         // line 119
  313.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse119), "html"nulltrue);
  314.         echo "</div>
  315.                             </div>
  316.                             <div class=\"separation\"></div>
  317.                             ";
  318.         // line 123
  319.         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); })())))) {
  320.             // line 124
  321.             echo "                                ";
  322.             $context["exercise_failed"] = true;
  323.             // line 125
  324.             echo "                                ";
  325.             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"falsefalsefalse125)) {
  326.                 // line 126
  327.                 echo "                                    ";
  328.                 $context["exercise_failed"] = false;
  329.                 // line 127
  330.                 echo "                                ";
  331.             }
  332.             // line 128
  333.             echo "
  334.                                 ";
  335.             // line 129
  336.             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"falsefalsefalse129))) {
  337.                 // line 130
  338.                 echo "                                    ";
  339.                 $context["exerciseStartPath"] = null;
  340.                 // line 131
  341.                 echo "                                    ";
  342.                 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")) {
  343.                     // line 132
  344.                     echo "                                        ";
  345.                     $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"falsefalsefalse132), "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"falsefalsefalse132), "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"falsefalsefalse132), "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"falsefalsefalse132)]);
  346.                     // line 133
  347.                     echo "                                    ";
  348.                 } 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")) {
  349.                     // line 134
  350.                     echo "                                        ";
  351.                     $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"falsefalsefalse134), "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"falsefalsefalse134), "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"falsefalsefalse134)]);
  352.                     // line 135
  353.                     echo "                                    ";
  354.                 } 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")) {
  355.                     // line 136
  356.                     echo "                                        ";
  357.                     $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"falsefalsefalse136), "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"falsefalsefalse136), "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"falsefalsefalse136), "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"falsefalsefalse136)]);
  358.                     // line 137
  359.                     echo "                                    ";
  360.                 } 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")) {
  361.                     // line 138
  362.                     echo "                                        ";
  363.                     $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"falsefalsefalse138), "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"falsefalsefalse138), "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"falsefalsefalse138), "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"falsefalsefalse138), "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"falsefalsefalse138)]);
  364.                     // line 139
  365.                     echo "                                    ";
  366.                 }
  367.                 // line 140
  368.                 echo "                                    <div class=\"last-results-container\">
  369.                                         <div class=\"results-container\">
  370.                                             ";
  371.                 // line 142
  372.                 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)) {
  373.                     // line 143
  374.                     echo "                                                <div class=\"date-score-container\">
  375.                                                     <div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container passed\">
  376.                                                         <i class=\"fal fa-check icone\"></i>
  377.                                                         <div class=\"score\">
  378.                                                             Score : ";
  379.                     // line 147
  380.                     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"falsefalsefalse147) / 10), "html"nulltrue);
  381.                     echo " / 10
  382.                                                         </div>
  383.                                                     </div>
  384.                                                     <p>Réalisé le ";
  385.                     // line 150
  386.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse150), "d/m/Y"), "html"nulltrue);
  387.                     echo ".</p>
  388.                                                 </div>
  389.                                                 <p class=\"text-success font-weight-bold result-sentence\">
  390.                                                     Vous avez obtenu un score suffisant à ce QCM pour poursuivre vers le
  391.                                                     cours suivant.
  392.                                                 </p>
  393.                                                 <div class=\"exercise-start-block\">
  394.                                                     <a href=\"";
  395.                     // line 157
  396.                     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"nulltrue);
  397.                     echo "\"
  398.                                                        class=\"btn-nellapp-v2 btn-begin-exercise\">
  399.                                                         <i class=\"far fa-money-check-edit mark-icon\"></i>
  400.                                                         Recommencer l'exercice
  401.                                                     </a>
  402.                                                     ";
  403.                     // line 162
  404.                     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")) {
  405.                         // line 163
  406.                         echo "                                                        <a href=\"";
  407.                         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
  408. (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"falsefalsefalse164), "trainingId" => twig_get_attribute($this->env$this->source,                         // line 165
  409. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'165$this->source); })()), "id", [], "any"falsefalsefalse165), "moduleId" => twig_get_attribute($this->env$this->source,                         // line 166
  410. (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'166$this->source); })()), "id", [], "any"falsefalsefalse166), "lessonId" => twig_get_attribute($this->env$this->source,                         // line 167
  411. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'167$this->source); })()), "id", [], "any"falsefalsefalse167), "resultId" => twig_get_attribute($this->env$this->source,                         // line 168
  412. (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult"$context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.'168$this->source); })()), "id", [], "any"falsefalsefalse168)]), "html"nulltrue);
  413.                         // line 169
  414.                         echo "\"
  415.                                                            class=\"btn-nellapp-v2\"
  416.                                                         >
  417.                                                             Voir mon résultat
  418.                                                         </a>
  419.                                                     ";
  420.                     }
  421.                     // line 175
  422.                     echo "                                                </div>
  423.                                             ";
  424.                 } else {
  425.                     // line 177
  426.                     echo "                                                <div class=\"date-score-container justify-content-center justify-content-md-start\">
  427.                                                     <div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container not-passed\">
  428.                                                         <i class=\"fal fa-times icone\"></i>
  429.                                                         <div class=\"score\">
  430.                                                             Score : ";
  431.                     // line 181
  432.                     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"falsefalsefalse181) / 10), "html"nulltrue);
  433.                     echo " / 10
  434.                                                         </div>
  435.                                                     </div>
  436.                                                     <p>Réalisé le ";
  437.                     // line 184
  438.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse184), "d/m/Y"), "html"nulltrue);
  439.                     echo ".</p>
  440.                                                 </div>
  441.                                                 <div class=\"result-advice\">
  442.                                                     <p class=\"text-danger font-weight-bold result-sentence\">Vous n'avez
  443.                                                         pas
  444.                                                         obtenu un score suffisant à ce QCM pour
  445.                                                         poursuivre vers le cours suivant.</p>
  446.                                                     <p class=\"advice\">Veuillez retravailler le cours et repasser le
  447.                                                         QCM.</p>
  448.                                                 </div>
  449.                                                 <div class=\"exercise-start-block\">
  450.                                                     <a href=\"";
  451.                     // line 195
  452.                     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"nulltrue);
  453.                     echo "\"
  454.                                                        class=\"btn-nellapp-v2 btn-begin-exercise\">
  455.                                                         <i class=\"far fa-money-check-edit mark-icon\"></i>
  456.                                                         Recommencer l'exercice
  457.                                                     </a>
  458.                                                     ";
  459.                     // line 200
  460.                     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")) {
  461.                         // line 201
  462.                         echo "                                                        <a href=\"";
  463.                         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
  464. (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"falsefalsefalse202), "trainingId" => twig_get_attribute($this->env$this->source,                         // line 203
  465. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'203$this->source); })()), "id", [], "any"falsefalsefalse203), "moduleId" => twig_get_attribute($this->env$this->source,                         // line 204
  466. (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'204$this->source); })()), "id", [], "any"falsefalsefalse204), "lessonId" => twig_get_attribute($this->env$this->source,                         // line 205
  467. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'205$this->source); })()), "id", [], "any"falsefalsefalse205), "resultId" => twig_get_attribute($this->env$this->source,                         // line 206
  468. (isset($context["bestExerciseResult"]) || array_key_exists("bestExerciseResult"$context) ? $context["bestExerciseResult"] : (function () { throw new RuntimeError('Variable "bestExerciseResult" does not exist.'206$this->source); })()), "id", [], "any"falsefalsefalse206)]), "html"nulltrue);
  469.                         // line 207
  470.                         echo "\"
  471.                                                            class=\"btn-nellapp-v2\"
  472.                                                         >
  473.                                                             Voir mon résultat
  474.                                                         </a>
  475.                                                     ";
  476.                     }
  477.                     // line 213
  478.                     echo "                                                </div>
  479.                                             ";
  480.                 }
  481.                 // line 215
  482.                 echo "                                        </div>
  483.                                     </div>
  484.                                 ";
  485.             }
  486.             // line 218
  487.             echo "                            ";
  488.         } else {
  489.             // line 219
  490.             echo "                                <div class=\"exercise-start-block with-separation\">
  491.                                     ";
  492.             // line 220
  493.             $context["exerciseStartPath"] = null;
  494.             // line 221
  495.             echo "                                    ";
  496.             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")) {
  497.                 // line 222
  498.                 echo "                                        ";
  499.                 $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"falsefalsefalse222), "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"falsefalsefalse222), "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"falsefalsefalse222), "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"falsefalsefalse222)]);
  500.                 // line 223
  501.                 echo "                                    ";
  502.             } 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")) {
  503.                 // line 224
  504.                 echo "                                        ";
  505.                 $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"falsefalsefalse224), "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"falsefalsefalse224), "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"falsefalsefalse224)]);
  506.                 // line 225
  507.                 echo "                                    ";
  508.             } 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")) {
  509.                 // line 226
  510.                 echo "                                        ";
  511.                 $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"falsefalsefalse226), "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"falsefalsefalse226), "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"falsefalsefalse226), "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"falsefalsefalse226)]);
  512.                 // line 227
  513.                 echo "                                    ";
  514.             } 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")) {
  515.                 // line 228
  516.                 echo "                                        ";
  517.                 $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"falsefalsefalse228), "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"falsefalsefalse228), "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"falsefalsefalse228), "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"falsefalsefalse228), "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"falsefalsefalse228)]);
  518.                 // line 229
  519.                 echo "                                    ";
  520.             }
  521.             // line 230
  522.             echo "
  523.                                     <a href=\"";
  524.             // line 231
  525.             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"nulltrue);
  526.             echo "\" class=\"btn-nellapp-v2 btn-begin-exercise\">
  527.                                         <i class=\"far fa-money-check-edit mark-icon\"></i>
  528.                                         Commencer l'exercice
  529.                                     </a>
  530.                                 </div>
  531.                             ";
  532.         }
  533.         // line 237
  534.         echo "                        </div>
  535.                     </div>
  536.                     ";
  537.         // line 240
  538.         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")) {
  539.             // line 241
  540.             echo "                        ";
  541.             $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
  542. (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
  543. (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); })()))]));
  544.             // line 245
  545.             echo "                    ";
  546.         }
  547.         // line 246
  548.         echo "                </div>
  549.             </div>
  550.             <div class=\"col-3 p-0 d-none d-md-block\">
  551.                 ";
  552.         // line 250
  553.         $this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig""Front/Exercise/show.html.twig"250)->display(twig_array_merge($context, ["current_exercise" =>         // line 251
  554. (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); })())]));
  555.         // line 253
  556.         echo "            </div>
  557.         </div>
  558.     </div>
  559.     ";
  560.         // line 257
  561.         $this->displayParentBlock("content"$context$blocks);
  562.         echo "
  563. ";
  564.         
  565.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  566.         
  567.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  568.     }
  569.     // line 260
  570.     public function block_inner_content($context, array $blocks = [])
  571.     {
  572.         $macros $this->macros;
  573.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  574.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  575.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  576.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  577.         // line 261
  578.         echo "    ";
  579.         $this->displayParentBlock("inner_content"$context$blocks);
  580.         echo "
  581. ";
  582.         
  583.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  584.         
  585.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  586.     }
  587.     // line 264
  588.     public function block_body($context, array $blocks = [])
  589.     {
  590.         $macros $this->macros;
  591.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  592.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  593.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  594.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  595.         // line 265
  596.         echo "    ";
  597.         $this->displayParentBlock("body"$context$blocks);
  598.         echo "
  599. ";
  600.         
  601.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  602.         
  603.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  604.     }
  605.     public function getTemplateName()
  606.     {
  607.         return "Front/Exercise/show.html.twig";
  608.     }
  609.     public function isTraitable()
  610.     {
  611.         return false;
  612.     }
  613.     public function getDebugInfo()
  614.     {
  615.         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,);
  616.     }
  617.     public function getSourceContext()
  618.     {
  619.         return new Source("{% extends 'base.html.twig' %}
  620. {% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
  621. {% set currentRoute = app.request.attributes.get('_route') %}
  622. {% block before_navbar %}
  623.     {% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
  624.         'channel': channel,
  625.         'currentRoute': currentRoute,
  626.     } %}
  627. {% endblock before_navbar %}
  628. {% block body_markup %}
  629. <body class=\"progression\" style=\"font-family: 'Poppins';\" id=\"page-training-lesson\">{% endblock body_markup %}
  630. {% set next_informations = null %}
  631. {% if currentRoute == 'front_channel_exercise_show' %}
  632.     {% set next_informations = get_next_informations_exercise_result(training, module, lesson, bestExerciseResult) %}
  633. {% endif %}
  634. {% block content %}
  635.     {% if currentRoute in ['front_channel_exercise_show', 'manager_channel_module_lesson_exercise_show', 'manager_channel_training_module_lesson_exercise_show'] %}
  636.         {% set trainingModuleLessons = module | get_lessons %}
  637.     {% elseif currentRoute == 'manager_channel_lesson_exercise_show' %}
  638.         {% set trainingModuleLessons = [lesson] %}
  639.     {% endif %}
  640.     {% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' with {
  641.         'current_exercise': current_exercise
  642.     } %}
  643.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  644.         <div class=\"row\">
  645.             <div class=\"col-md-9 col-12\">
  646.                 <h3 class=\"mb-4\" style=\"font-size: 16px;\">{{- lesson.name -}}</h3>
  647.                 <h2 class=\"v2-title-big\">{{- current_exercise.name -}}</h2>
  648.                 {% if lesson.updatedAt is not null or lesson.createdAt is not null %}
  649.                     <div class=\"col-12 col-md-6 d-flex justify-content-between align-items-baseline p-0\">
  650.                         <div>
  651.                             {% if current_exercise.updatedAt is not null %}
  652.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  653.                                     '%date%': current_exercise.updatedAt|format_date('long', locale=app.request.locale),
  654.                                 })|raw -}}
  655.                             {% else %}
  656.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  657.                                     '%date%': current_exercise.createdAt|format_date('long', locale=app.request.locale),
  658.                                 })|raw -}}
  659.                             {% endif %}
  660.                         </div>
  661.                     </div>
  662.                 {% endif %}
  663.                 <div class=\"pt-40px-mobile description-container\">
  664.                     <div class=\"row\">
  665.                         {% set stat = current_exercise.stat|default(stat|default(null)) %}
  666.                         {% set displayStatistics = false %}
  667.                         {% if stat is not empty and stat.hasResults %}
  668.                             {% set displayStatistics = true %}
  669.                         {% endif %}
  670.                         <div class=\"col-md-4 col-12 d-none\">
  671.                             <div style=\"box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);padding:15px;border-radius: 6px;\">
  672.                                 <div class=\"font-weight-bold text-center mb-3\">{{- 'exercise.stat.title.label'|trans -}}</div>
  673.                                 <div class=\"d-flex justify-content-between mb-1\">
  674.                                     <div>{{ 'exercises.stats.entity.avgScore.label'|trans }} :</div>
  675.                                     {% if displayStatistics %}
  676.                                         <div class=\"little-grey\">{{ stat.avgScore }} / 100</div>
  677.                                     {% else %}
  678.                                         <div class=\"little-grey\">-</div>
  679.                                     {% endif %}
  680.                                 </div>
  681.                                 <div class=\"d-flex justify-content-between mb-1\">
  682.                                     <div>{{ 'exercises.stats.entity.medianScore.label'|trans }} :</div>
  683.                                     {% if displayStatistics %}
  684.                                         <div class=\"little-grey\">{{ stat.medianScore }} / 100</div>
  685.                                     {% else %}
  686.                                         <div class=\"little-grey\">-</div>
  687.                                     {% endif %}
  688.                                 </div>
  689.                                 <div class=\"d-flex justify-content-between mb-1\">
  690.                                     <div>{{ 'exercises.stats.entity.avgTime.label'|trans }} :</div>
  691.                                     {% if displayStatistics %}
  692.                                         <div class=\"little-grey\">{{ stat.avgTime|timer_display }}</div>
  693.                                     {% else %}
  694.                                         <div class=\"little-grey\">-</div>
  695.                                     {% endif %}
  696.                                 </div>
  697.                                 <div class=\"d-flex justify-content-between mb-1\">
  698.                                     <div>{{ 'exercises.stats.entity.medianTime.label'|trans }} :</div>
  699.                                     {% if displayStatistics %}
  700.                                         <div class=\"little-grey\">{{ stat.medianTime|timer_display }}</div>
  701.                                     {% else %}
  702.                                         <div class=\"little-grey\">-</div>
  703.                                     {% endif %}
  704.                                 </div>
  705.                                 <div class=\"d-flex justify-content-between mb-1\">
  706.                                     <div>{{ 'exercises.stats.entity.totalDone.label'|trans }} :</div>
  707.                                     {% if displayStatistics %}
  708.                                         <div class=\"little-grey\">{{ stat.totalDone }}</div>
  709.                                     {% else %}
  710.                                         <div class=\"little-grey\">0</div>
  711.                                     {% endif %}
  712.                                 </div>
  713.                             </div>
  714.                         </div>
  715.                         <div class=\"col-10 offset-1 exercise-statistics-description-separator d-block d-md-none\"></div>
  716.                         <div class=\"col-12 col-lg-9 exercise-description-container\">
  717.                             <div class=\"exercise-description-block\">
  718.                                 <div class=\"font-weight-bold mb-3\">{{- 'Description de l\\'exercice' -}}</div>
  719.                                 <div class=\"description-style\">{{- current_exercise.description -}}</div>
  720.                             </div>
  721.                             <div class=\"separation\"></div>
  722.                             {% if bestExerciseResult is defined and bestExerciseResult is not null %}
  723.                                 {% set exercise_failed = true %}
  724.                                 {% if bestExerciseResult.isSuccessful %}
  725.                                     {% set exercise_failed = false %}
  726.                                 {% endif %}
  727.                                 {% if bestExerciseResult.startedAt is not null %}
  728.                                     {% set exerciseStartPath = null %}
  729.                                     {% if currentRoute == 'front_channel_exercise_show' %}
  730.                                         {% set exerciseStartPath = path('front_exercise_start', {'trainingId': training.id,'moduleId': module.id,'lessonId': lesson.id,'id': current_exercise.id}) %}
  731.                                     {% elseif currentRoute == 'manager_channel_lesson_exercise_show' %}
  732.                                         {% set exerciseStartPath = path('manager_channel_lesson_exercise_start', {'channelId': channel.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
  733.                                     {% elseif currentRoute == 'manager_channel_module_lesson_exercise_show' %}
  734.                                         {% set exerciseStartPath = path('manager_channel_module_lesson_exercise_start', {'channelId': channel.id, 'moduleId': module.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
  735.                                     {% elseif currentRoute == 'manager_channel_training_module_lesson_exercise_show' %}
  736.                                         {% 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}) %}
  737.                                     {% endif %}
  738.                                     <div class=\"last-results-container\">
  739.                                         <div class=\"results-container\">
  740.                                             {% if exercise_failed is same as false %}
  741.                                                 <div class=\"date-score-container\">
  742.                                                     <div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container passed\">
  743.                                                         <i class=\"fal fa-check icone\"></i>
  744.                                                         <div class=\"score\">
  745.                                                             Score : {{ bestExerciseResult.score / 10 }} / 10
  746.                                                         </div>
  747.                                                     </div>
  748.                                                     <p>Réalisé le {{ bestExerciseResult.startedAt|date('d/m/Y') }}.</p>
  749.                                                 </div>
  750.                                                 <p class=\"text-success font-weight-bold result-sentence\">
  751.                                                     Vous avez obtenu un score suffisant à ce QCM pour poursuivre vers le
  752.                                                     cours suivant.
  753.                                                 </p>
  754.                                                 <div class=\"exercise-start-block\">
  755.                                                     <a href=\"{{- exerciseStartPath -}}\"
  756.                                                        class=\"btn-nellapp-v2 btn-begin-exercise\">
  757.                                                         <i class=\"far fa-money-check-edit mark-icon\"></i>
  758.                                                         Recommencer l'exercice
  759.                                                     </a>
  760.                                                     {% if currentRoute == 'front_channel_exercise_show' %}
  761.                                                         <a href=\"{{ path('front_exercise_solution', {
  762.                                                             'id': current_exercise.id,
  763.                                                             'trainingId': training.id,
  764.                                                             'moduleId': module.id,
  765.                                                             'lessonId': lesson.id,
  766.                                                             'resultId': bestExerciseResult.id
  767.                                                         }) }}\"
  768.                                                            class=\"btn-nellapp-v2\"
  769.                                                         >
  770.                                                             Voir mon résultat
  771.                                                         </a>
  772.                                                     {% endif %}
  773.                                                 </div>
  774.                                             {% else %}
  775.                                                 <div class=\"date-score-container justify-content-center justify-content-md-start\">
  776.                                                     <div class=\"answer-timer-container d-flex justify-content-center align-items-center score-container not-passed\">
  777.                                                         <i class=\"fal fa-times icone\"></i>
  778.                                                         <div class=\"score\">
  779.                                                             Score : {{ bestExerciseResult.score / 10 }} / 10
  780.                                                         </div>
  781.                                                     </div>
  782.                                                     <p>Réalisé le {{ bestExerciseResult.startedAt|date('d/m/Y') }}.</p>
  783.                                                 </div>
  784.                                                 <div class=\"result-advice\">
  785.                                                     <p class=\"text-danger font-weight-bold result-sentence\">Vous n'avez
  786.                                                         pas
  787.                                                         obtenu un score suffisant à ce QCM pour
  788.                                                         poursuivre vers le cours suivant.</p>
  789.                                                     <p class=\"advice\">Veuillez retravailler le cours et repasser le
  790.                                                         QCM.</p>
  791.                                                 </div>
  792.                                                 <div class=\"exercise-start-block\">
  793.                                                     <a href=\"{{- exerciseStartPath -}}\"
  794.                                                        class=\"btn-nellapp-v2 btn-begin-exercise\">
  795.                                                         <i class=\"far fa-money-check-edit mark-icon\"></i>
  796.                                                         Recommencer l'exercice
  797.                                                     </a>
  798.                                                     {% if currentRoute == 'front_channel_exercise_show' %}
  799.                                                         <a href=\"{{ path('front_exercise_solution', {
  800.                                                             'id': current_exercise.id,
  801.                                                             'trainingId': training.id,
  802.                                                             'moduleId': module.id,
  803.                                                             'lessonId': lesson.id,
  804.                                                             'resultId': bestExerciseResult.id
  805.                                                         }) }}\"
  806.                                                            class=\"btn-nellapp-v2\"
  807.                                                         >
  808.                                                             Voir mon résultat
  809.                                                         </a>
  810.                                                     {% endif %}
  811.                                                 </div>
  812.                                             {% endif %}
  813.                                         </div>
  814.                                     </div>
  815.                                 {% endif %}
  816.                             {% else %}
  817.                                 <div class=\"exercise-start-block with-separation\">
  818.                                     {% set exerciseStartPath = null %}
  819.                                     {% if currentRoute == 'front_channel_exercise_show' %}
  820.                                         {% set exerciseStartPath = path('front_exercise_start', {'trainingId': training.id,'moduleId': module.id,'lessonId': lesson.id,'id': current_exercise.id}) %}
  821.                                     {% elseif currentRoute == 'manager_channel_lesson_exercise_show' %}
  822.                                         {% set exerciseStartPath = path('manager_channel_lesson_exercise_start', {'channelId': channel.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
  823.                                     {% elseif currentRoute == 'manager_channel_module_lesson_exercise_show' %}
  824.                                         {% set exerciseStartPath = path('manager_channel_module_lesson_exercise_start', {'channelId': channel.id, 'moduleId': module.id, 'lessonId': lesson.id, 'exerciseId': current_exercise.id}) %}
  825.                                     {% elseif currentRoute == 'manager_channel_training_module_lesson_exercise_show' %}
  826.                                         {% 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}) %}
  827.                                     {% endif %}
  828.                                     <a href=\"{{- exerciseStartPath -}}\" class=\"btn-nellapp-v2 btn-begin-exercise\">
  829.                                         <i class=\"far fa-money-check-edit mark-icon\"></i>
  830.                                         Commencer l'exercice
  831.                                     </a>
  832.                                 </div>
  833.                             {% endif %}
  834.                         </div>
  835.                     </div>
  836.                     {% if currentRoute == 'front_channel_exercise_show' %}
  837.                         {% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
  838.                             next_informations: next_informations,
  839.                             previous_informations: get_previous_informations_exercise(training, module, lesson, current_exercise),
  840.                         } %}
  841.                     {% endif %}
  842.                 </div>
  843.             </div>
  844.             <div class=\"col-3 p-0 d-none d-md-block\">
  845.                 {% include 'Front/Scholar/Partial/menu_lessons.html.twig' with {
  846.                     'current_exercise': current_exercise
  847.                 } %}
  848.             </div>
  849.         </div>
  850.     </div>
  851.     {{ parent() }}
  852. {% endblock content %}
  853. {% block inner_content %}
  854.     {{ parent() }}
  855. {% endblock inner_content %}
  856. {% block body %}
  857.     {{ parent() }}
  858. {% endblock %}
  859. ""Front/Exercise/show.html.twig""/var/www/html/templates/Front/Exercise/show.html.twig");
  860.     }
  861. }