var/cache/dev/twig/40/407ce5cb014e3c5556ac1931b53c1a85.php line 55

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