var/cache/dev/twig/10/10f8928b96d880ef757bcaf4f29b84bb7b39bee4901e99a649910efcd85c541f.php line 507

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/Scholar/Lesson/show.html.twig */
  14. class __TwigTemplate_50540142eddd25d0e057df0f88eb0e8629eb74b124c49ff41e05e17d8176de98 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.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Lesson/show.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Lesson/show.html.twig"));
  44.         // line 4
  45.         $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);
  46.         // line 1
  47.         $this->parent $this->loadTemplate("base.html.twig""Front/Scholar/Lesson/show.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 2
  55.     public function block_title($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         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);
  63.         echo " - ";
  64.         $this->displayParentBlock("title"$context$blocks);
  65.         
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  67.         
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  69.     }
  70.     // line 6
  71.     public function block_before_navbar($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  78.         // line 7
  79.         echo "    ";
  80.         $this->loadTemplate("Front/Scholar/Partial/_preview_manager_heager.html.twig""Front/Scholar/Lesson/show.html.twig"7)->display(twig_array_merge($context, ["channel" =>         // line 8
  81. (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
  82. (isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'9$this->source); })())]));
  83.         
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  85.         
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  87.     }
  88.     // line 13
  89.     public function block_body_markup($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  96.         // line 14
  97.         echo "<body class=\"progression lesson-view ";
  98.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  99.             echo "logged-in";
  100.         }
  101.         echo "\"
  102.       style=\"font-family: 'Poppins';\"
  103.       id=\"page-training-lesson\"
  104.         ";
  105.         // line 17
  106.         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_lesson_show")) {
  107.             // line 18
  108.             echo "      data-training_id=";
  109.             echo twig_escape_filter($this->envtwig_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.'18$this->source); })()), "id", [], "any"falsefalsefalse18), "html"nulltrue);
  110.             echo "
  111.       data-module_id=";
  112.             // line 19
  113.             echo twig_escape_filter($this->envtwig_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.'19$this->source); })()), "id", [], "any"falsefalsefalse19), "html"nulltrue);
  114.             echo "
  115.       data-lesson_id=";
  116.             // line 20
  117.             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.'20$this->source); })()), "id", [], "any"falsefalsefalse20), "html"nulltrue);
  118.             echo "
  119.           ";
  120.         }
  121.         // line 22
  122.         echo ">
  123. ";
  124.         
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  126.         
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  128.     }
  129.     // line 25
  130.     public function block_content($context, array $blocks = [])
  131.     {
  132.         $macros $this->macros;
  133.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  137.         // line 26
  138.         echo "    ";
  139.         if (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'26$this->source); })()), [=> "front_channel_lesson_show"=> "front_channel_lesson_show_without_training"=> "manager_channel_module_lesson_show"=> "manager_channel_training_module_lesson_show"])) {
  140.             // line 27
  141.             echo "        ";
  142.             $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.'27$this->source); })()));
  143.             // line 28
  144.             echo "    ";
  145.         } elseif (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'28$this->source); })()), [=> "manager_channel_lesson_show"])) {
  146.             // line 29
  147.             echo "        ";
  148.             $context["trainingModuleLessons"] = [=> (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'29$this->source); })())];
  149.             // line 30
  150.             echo "    ";
  151.         }
  152.         // line 31
  153.         echo "
  154.     ";
  155.         // line 32
  156.         $this->loadTemplate("Front/Scholar/Partial/_menu_lessons_mobile.html.twig""Front/Scholar/Lesson/show.html.twig"32)->display($context);
  157.         // line 33
  158.         echo "
  159.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  160.         <div class=\"row\">
  161.             <div class=\"col-md-9 col-12\">
  162.                 <div>
  163.                     ";
  164.         // line 38
  165.         $context['_parent'] = $context;
  166.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'38$this->source); })()), "flashes", [], "method"falsefalsefalse38));
  167.         foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
  168.             // line 39
  169.             echo "                        <div>
  170.                             ";
  171.             // line 40
  172.             $context['_parent'] = $context;
  173.             $context['_seq'] = twig_ensure_traversable($context["messageType"]);
  174.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  175.                 // line 41
  176.                 echo "                                <div class=\"alert alert-";
  177.                 echo twig_escape_filter($this->envtwig_replace_filter($context["key"], ["error" => "danger"]), "html"nulltrue);
  178.                 echo "\">
  179.                                     ";
  180.                 // line 42
  181.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html"nulltrue);
  182.                 echo "
  183.                                 </div>
  184.                             ";
  185.             }
  186.             $_parent $context['_parent'];
  187.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  188.             $context array_intersect_key($context$_parent) + $_parent;
  189.             // line 45
  190.             echo "                        </div>
  191.                     ";
  192.         }
  193.         $_parent $context['_parent'];
  194.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['messageType'], $context['_parent'], $context['loop']);
  195.         $context array_intersect_key($context$_parent) + $_parent;
  196.         // line 47
  197.         echo "                </div>
  198.                 <h2 class=\"v2-title-big\">";
  199.         // line 49
  200.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.summary_title.label", ["%name%" => 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.'49$this->source); })()), "name", [], "any"falsefalsefalse49)]), "html"nulltrue);
  201.         echo "</h2>
  202.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  203.                     ";
  204.         // line 52
  205.         if ($this->env->getRuntime('App\Twig\Runtime\LockContentRuntime')->isLockByInterface((isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'52$this->source); })()))) {
  206.             // line 53
  207.             echo "                        ";
  208.             $context["lessonStats"] = twig_get_attribute($this->env$this->sourcetwig_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.'53$this->source); })()), "lockBy", [], "any"falsefalsefalse53), "lessonStats", [], "any"falsefalsefalse53);
  209.             // line 54
  210.             echo "                    ";
  211.         } else {
  212.             // line 55
  213.             echo "                        ";
  214.             $context["lessonStats"] = 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.'55$this->source); })()), "lessonStats", [], "any"falsefalsefalse55);
  215.             // line 56
  216.             echo "                    ";
  217.         }
  218.         // line 57
  219.         echo "                    ";
  220.         if ( !(null === (isset($context["lessonStats"]) || array_key_exists("lessonStats"$context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.'57$this->source); })()))) {
  221.             // line 58
  222.             echo "                        ";
  223.             echo $this->env->getRuntime('App\Twig\Runtime\RatingRuntime')->getRatingComponent($this->envtwig_get_attribute($this->env$this->source, (isset($context["lessonStats"]) || array_key_exists("lessonStats"$context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.'58$this->source); })()), "lessonReviewMarkAvg", [], "any"falsefalsefalse58), 5, ["class" => "blue-stars""hide_when_null" => true]);
  224.             echo "
  225.                     ";
  226.         }
  227.         // line 60
  228.         echo "
  229.                     <div>
  230.                         ";
  231.         // line 62
  232.         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.'62$this->source); })()), "updatedAt", [], "any"falsefalsefalse62))) {
  233.             // line 63
  234.             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 64
  235. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'64$this->source); })()), "updatedAt", [], "any"falsefalsefalse64), "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.'64$this->source); })()), "request", [], "any"falsefalsefalse64), "locale", [], "any"falsefalsefalse64))]);
  236.         } else {
  237.             // line 67
  238.             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 68
  239. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'68$this->source); })()), "createdAt", [], "any"falsefalsefalse68), "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.'68$this->source); })()), "request", [], "any"falsefalsefalse68), "locale", [], "any"falsefalsefalse68))]);
  240.         }
  241.         // line 71
  242.         echo "                    </div>
  243.                 </div>
  244.                 <div class=\"description-lesson mt-4\">
  245.                     <p class=\"text-subcateg description-style\">";
  246.         // line 75
  247.         echo 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.'75$this->source); })()), "description", [], "any"falsefalsefalse75);
  248.         echo "</p>
  249.                 </div>
  250.                 ";
  251.         // line 78
  252.         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.'78$this->source); })()), "objective", [], "any"falsefalsefalse78))) {
  253.             // line 79
  254.             echo "                    <div class=\"pt-30px\">
  255.                         <div class=\"font-weight-bold pb-10px\">";
  256.             // line 80
  257.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.objectif_cours.label"), "html"nulltrue);
  258.             echo "</div>
  259.                         <p class=\"text-subcateg description-style\">";
  260.             // line 81
  261.             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.'81$this->source); })()), "objective", [], "any"falsefalsefalse81), "html"nulltrue);
  262.             echo "</p>
  263.                     </div>
  264.                 ";
  265.         }
  266.         // line 84
  267.         echo "
  268.                 ";
  269.         // line 85
  270.         if ((twig_length_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.'85$this->source); })()), "lessonPrerequisites", [], "any"falsefalsefalse85)) > 0)) {
  271.             // line 86
  272.             echo "                    <div class=\"pt-30px mb-3\">
  273.                         <div class=\"font-weight-bold pb-10px\">";
  274.             // line 87
  275.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.pre_requis.label"), "html"nulltrue);
  276.             echo "</div>
  277.                         ";
  278.             // line 88
  279.             $context['_parent'] = $context;
  280.             $context['_seq'] = twig_ensure_traversable(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.'88$this->source); })()), "lessonPrerequisites", [], "any"falsefalsefalse88));
  281.             foreach ($context['_seq'] as $context["_key"] => $context["prerequisite"]) {
  282.                 // line 89
  283.                 echo "                            <p class=\"font-size-14 m-0\">";
  284.                 echo twig_escape_filter($this->env, ("- " twig_get_attribute($this->env$this->source$context["prerequisite"], "label", [], "any"falsefalsefalse89)), "html"nulltrue);
  285.                 echo "</p>
  286.                         ";
  287.             }
  288.             $_parent $context['_parent'];
  289.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prerequisite'], $context['_parent'], $context['loop']);
  290.             $context array_intersect_key($context$_parent) + $_parent;
  291.             // line 91
  292.             echo "                    </div>
  293.                 ";
  294.         }
  295.         // line 93
  296.         echo "
  297.                 ";
  298.         // line 94
  299.         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.'94$this->source); })()), "minimumTime", [], "any"falsefalsefalse94))) {
  300.             // line 95
  301.             echo "                    ";
  302.             $context["minimumTime"] = $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($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.'95$this->source); })()), "minimumTime", [], "any"falsefalsefalse95), "medium""medium""HH'h'mm"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.'95$this->source); })()), "request", [], "any"falsefalsefalse95), "locale", [], "any"falsefalsefalse95));
  303.             // line 96
  304.             echo "                ";
  305.         } else {
  306.             // line 97
  307.             echo "                    ";
  308.             $context["minimumTime"] = null;
  309.             // line 98
  310.             echo "                ";
  311.         }
  312.         // line 99
  313.         echo "                ";
  314.         $context["caseStudy"] = 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.'99$this->source); })()), "caseStudy", [], "any"falsefalsefalse99);
  315.         // line 100
  316.         echo "                ";
  317.         $context["mcq"] = 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.'100$this->source); })()), "exerciseCount", [], "any"falsefalsefalse100);
  318.         // line 101
  319.         echo "
  320.                 ";
  321.         // line 102
  322.         if ((((isset($context["minimumTime"]) || array_key_exists("minimumTime"$context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.'102$this->source); })()) || (isset($context["caseStudy"]) || array_key_exists("caseStudy"$context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.'102$this->source); })())) || (isset($context["mcq"]) || array_key_exists("mcq"$context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.'102$this->source); })()))) {
  323.             // line 103
  324.             echo "                    <div class=\"row pt-20px\">
  325.                         <div class=\"col-6 col-md-4 pt-10px\">
  326.                             <div class=\"d-flex flex-row\">
  327.                                 <img class=\"small-svg\" src=\"";
  328.             // line 106
  329.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/watch.svg""common"), "html"nulltrue);
  330.             echo "\"
  331.                                      alt=\"Temps minimum logo\"/>
  332.                                 <div>
  333.                                     <div class=\"font-weight-bold\">";
  334.             // line 109
  335.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.temps_minimum.label"), "html"nulltrue);
  336.             echo "</div>
  337.                                     <div class=\"text-subcateg\">";
  338.             // line 110
  339.             echo twig_escape_filter($this->env, (isset($context["minimumTime"]) || array_key_exists("minimumTime"$context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.'110$this->source); })()), "html"nulltrue);
  340.             echo "</div>
  341.                                 </div>
  342.                             </div>
  343.                         </div>
  344.                         <div class=\"col-6 col-md-4 pt-10px\">
  345.                             <div class=\"d-flex flex-row\">
  346.                                 <img class=\"small-svg\" src=\"";
  347.             // line 116
  348.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-user.svg""common"), "html"nulltrue);
  349.             echo "\"
  350.                                      alt=\"Cas pratique logo\"/>
  351.                                 <div>
  352.                                     <div class=\"font-weight-bold\">";
  353.             // line 119
  354.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.label"), "html"nulltrue);
  355.             echo "</div>
  356.                                     ";
  357.             // line 120
  358.             if ((isset($context["caseStudy"]) || array_key_exists("caseStudy"$context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.'120$this->source); })())) {
  359.                 // line 121
  360.                 echo "                                        <div class=\"text-subcateg\">Oui</div>
  361.                                     ";
  362.             } else {
  363.                 // line 123
  364.                 echo "                                        <div class=\"text-subcateg\">Non</div>
  365.                                     ";
  366.             }
  367.             // line 125
  368.             echo "                                </div>
  369.                             </div>
  370.                         </div>
  371.                         <div class=\"col-6 col-md-4 pt-10px\">
  372.                             <div class=\"d-flex flex-row\">
  373.                                 <img class=\"small-svg\" src=\"";
  374.             // line 130
  375.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-pen.svg""common"), "html"nulltrue);
  376.             echo "\"
  377.                                      alt=\"QCM logo\"/>
  378.                                 <div>
  379.                                     <div class=\"font-weight-bold\">";
  380.             // line 133
  381.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.qcm.label"), "html"nulltrue);
  382.             echo "</div>
  383.                                     ";
  384.             // line 134
  385.             if ((isset($context["mcq"]) || array_key_exists("mcq"$context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.'134$this->source); })())) {
  386.                 // line 135
  387.                 echo "                                        <div class=\"text-subcateg\">Oui</div>
  388.                                     ";
  389.             } else {
  390.                 // line 137
  391.                 echo "                                        <div class=\"text-subcateg\">Non</div>
  392.                                     ";
  393.             }
  394.             // line 139
  395.             echo "                                </div>
  396.                             </div>
  397.                         </div>
  398.                     </div>
  399.                 ";
  400.         }
  401.         // line 144
  402.         echo "
  403.                 ";
  404.         // line 145
  405.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'145$this->source); })()) == "front_channel_lesson_show")) {
  406.             // line 146
  407.             echo "                    ";
  408.             $this->loadTemplate("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig""Front/Scholar/Lesson/show.html.twig"146)->display(twig_array_merge($context, ["next_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsLessonSummary(            // line 147
  409. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'147$this->source); })()), (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'147$this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'147$this->source); })())), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsLessonSummary(            // line 148
  410. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'148$this->source); })()), (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'148$this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'148$this->source); })()))]));
  411.             // line 150
  412.             echo "                ";
  413.         }
  414.         // line 151
  415.         echo "            </div>
  416.             <div class=\"col-3 p-0 d-none d-md-block\">
  417.                 ";
  418.         // line 154
  419.         $this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig""Front/Scholar/Lesson/show.html.twig"154)->display($context);
  420.         // line 155
  421.         echo "            </div>
  422.         </div>
  423.     </div>
  424.     ";
  425.         // line 159
  426.         $this->displayParentBlock("content"$context$blocks);
  427.         echo "
  428. ";
  429.         
  430.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  431.         
  432.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  433.     }
  434.     // line 162
  435.     public function block_inner_content($context, array $blocks = [])
  436.     {
  437.         $macros $this->macros;
  438.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  439.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  440.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  441.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  442.         // line 163
  443.         echo "    ";
  444.         $this->displayParentBlock("inner_content"$context$blocks);
  445.         echo "
  446. ";
  447.         
  448.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  449.         
  450.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  451.     }
  452.     // line 166
  453.     public function block_body($context, array $blocks = [])
  454.     {
  455.         $macros $this->macros;
  456.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  457.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  458.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  459.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  460.         // line 167
  461.         echo "    ";
  462.         $this->displayParentBlock("body"$context$blocks);
  463.         echo "
  464. ";
  465.         
  466.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  467.         
  468.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  469.     }
  470.     // line 170
  471.     public function block_javascripts($context, array $blocks = [])
  472.     {
  473.         $macros $this->macros;
  474.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  475.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  476.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  477.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  478.         // line 171
  479.         echo "    ";
  480.         if ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'171$this->source); })()), "user", [], "any"falsefalsefalse171) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'171$this->source); })()) == "front_channel_lesson_show"))) {
  481.             // line 172
  482.             echo "        <script>
  483.             var attendanceLessonUrl = '";
  484.             // line 173
  485.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("async_channel_scholar_attendance_lesson", ["channelId" => twig_get_attribute($this->env$this->source,             // line 174
  486. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'174$this->source); })()), "id", [], "any"falsefalsefalse174)]), "html"nulltrue);
  487.             // line 175
  488.             echo "';
  489.         </script>
  490.     ";
  491.         }
  492.         // line 178
  493.         echo "
  494.     ";
  495.         // line 179
  496.         $this->displayParentBlock("javascripts"$context$blocks);
  497.         echo "
  498. ";
  499.         
  500.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  501.         
  502.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  503.     }
  504.     public function getTemplateName()
  505.     {
  506.         return "Front/Scholar/Lesson/show.html.twig";
  507.     }
  508.     public function isTraitable()
  509.     {
  510.         return false;
  511.     }
  512.     public function getDebugInfo()
  513.     {
  514.         return array (  546 => 179,  543 => 178,  538 => 175,  536 => 174,  535 => 173,  532 => 172,  529 => 171,  519 => 170,  506 => 167,  496 => 166,  483 => 163,  473 => 162,  461 => 159,  455 => 155,  453 => 154,  448 => 151,  445 => 150,  443 => 148,  442 => 147,  440 => 146,  438 => 145,  435 => 144,  428 => 139,  424 => 137,  420 => 135,  418 => 134,  414 => 133,  408 => 130,  401 => 125,  397 => 123,  393 => 121,  391 => 120,  387 => 119,  381 => 116,  372 => 110,  368 => 109,  362 => 106,  357 => 103,  355 => 102,  352 => 101,  349 => 100,  346 => 99,  343 => 98,  340 => 97,  337 => 96,  334 => 95,  332 => 94,  329 => 93,  325 => 91,  316 => 89,  312 => 88,  308 => 87,  305 => 86,  303 => 85,  300 => 84,  294 => 81,  290 => 80,  287 => 79,  285 => 78,  279 => 75,  273 => 71,  270 => 68,  269 => 67,  266 => 64,  265 => 63,  263 => 62,  259 => 60,  253 => 58,  250 => 57,  247 => 56,  244 => 55,  241 => 54,  238 => 53,  236 => 52,  230 => 49,  226 => 47,  219 => 45,  210 => 42,  205 => 41,  201 => 40,  198 => 39,  194 => 38,  187 => 33,  185 => 32,  182 => 31,  179 => 30,  176 => 29,  173 => 28,  170 => 27,  167 => 26,  157 => 25,  146 => 22,  141 => 20,  137 => 19,  132 => 18,  130 => 17,  121 => 14,  111 => 13,  101 => 9,  100 => 8,  98 => 7,  88 => 6,  67 => 2,  56 => 1,  54 => 4,  41 => 1,);
  515.     }
  516.     public function getSourceContext()
  517.     {
  518.         return new Source("{% extends 'base.html.twig' %}
  519. {% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
  520. {% set currentRoute = app.request.attributes.get('_route') %}
  521. {% block before_navbar %}
  522.     {% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
  523.         'channel': channel,
  524.         'currentRoute': currentRoute,
  525.     } %}
  526. {% endblock before_navbar %}
  527. {% block body_markup %}
  528. <body class=\"progression lesson-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
  529.       style=\"font-family: 'Poppins';\"
  530.       id=\"page-training-lesson\"
  531.         {% if currentRoute == 'front_channel_lesson_show' %}
  532.       data-training_id={{ training.id }}
  533.       data-module_id={{ module.id }}
  534.       data-lesson_id={{ lesson.id }}
  535.           {% endif %}
  536. >
  537. {% endblock body_markup %}
  538. {% block content %}
  539.     {% if currentRoute in ['front_channel_lesson_show', 'front_channel_lesson_show_without_training', 'manager_channel_module_lesson_show', 'manager_channel_training_module_lesson_show'] %}
  540.         {% set trainingModuleLessons = module | get_lessons %}
  541.     {% elseif currentRoute in ['manager_channel_lesson_show'] %}
  542.         {% set trainingModuleLessons = [lesson] %}
  543.     {% endif %}
  544.     {% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' %}
  545.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  546.         <div class=\"row\">
  547.             <div class=\"col-md-9 col-12\">
  548.                 <div>
  549.                     {% for key, messageType in app.flashes() %}
  550.                         <div>
  551.                             {% for message in messageType %}
  552.                                 <div class=\"alert alert-{{ key|replace({'error': 'danger'}) }}\">
  553.                                     {{ message | trans }}
  554.                                 </div>
  555.                             {% endfor %}
  556.                         </div>
  557.                     {% endfor %}
  558.                 </div>
  559.                 <h2 class=\"v2-title-big\">{{- 'front.scholar.lesson.show.summary_title.label'|trans({'%name%': lesson.name}) -}}</h2>
  560.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  561.                     {% if lesson is lock_by_interface %}
  562.                         {% set lessonStats = lesson.lockBy.lessonStats %}
  563.                     {% else %}
  564.                         {% set lessonStats = lesson.lessonStats %}
  565.                     {% endif %}
  566.                     {% if lessonStats is not null %}
  567.                         {{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {'class': 'blue-stars', 'hide_when_null': true}) }}
  568.                     {% endif %}
  569.                     <div>
  570.                         {% if lesson.updatedAt is not null %}
  571.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  572.                                 '%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
  573.                             })|raw -}}
  574.                         {% else %}
  575.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  576.                                 '%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
  577.                             })|raw -}}
  578.                         {% endif %}
  579.                     </div>
  580.                 </div>
  581.                 <div class=\"description-lesson mt-4\">
  582.                     <p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
  583.                 </div>
  584.                 {% if lesson.objective is not null %}
  585.                     <div class=\"pt-30px\">
  586.                         <div class=\"font-weight-bold pb-10px\">{{- 'front.scholar.lesson.show.objectif_cours.label'|trans -}}</div>
  587.                         <p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
  588.                     </div>
  589.                 {% endif %}
  590.                 {% if lesson.lessonPrerequisites|length > 0 %}
  591.                     <div class=\"pt-30px mb-3\">
  592.                         <div class=\"font-weight-bold pb-10px\">{{- 'front.scholar.lesson.show.pre_requis.label'|trans -}}</div>
  593.                         {% for prerequisite in lesson.lessonPrerequisites %}
  594.                             <p class=\"font-size-14 m-0\">{{- '- ' ~ prerequisite.label -}}</p>
  595.                         {% endfor %}
  596.                     </div>
  597.                 {% endif %}
  598.                 {% if lesson.minimumTime is not null %}
  599.                     {% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH'h'mm\", locale=app.request.locale) %}
  600.                 {% else %}
  601.                     {% set minimumTime = null %}
  602.                 {% endif %}
  603.                 {% set caseStudy = lesson.caseStudy %}
  604.                 {% set mcq = lesson.exerciseCount %}
  605.                 {% if minimumTime or caseStudy or mcq %}
  606.                     <div class=\"row pt-20px\">
  607.                         <div class=\"col-6 col-md-4 pt-10px\">
  608.                             <div class=\"d-flex flex-row\">
  609.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/watch.svg', 'common') }}\"
  610.                                      alt=\"Temps minimum logo\"/>
  611.                                 <div>
  612.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.temps_minimum.label'|trans -}}</div>
  613.                                     <div class=\"text-subcateg\">{{- minimumTime -}}</div>
  614.                                 </div>
  615.                             </div>
  616.                         </div>
  617.                         <div class=\"col-6 col-md-4 pt-10px\">
  618.                             <div class=\"d-flex flex-row\">
  619.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/sheet-user.svg', 'common') }}\"
  620.                                      alt=\"Cas pratique logo\"/>
  621.                                 <div>
  622.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.cas_pratique.label'|trans -}}</div>
  623.                                     {% if caseStudy %}
  624.                                         <div class=\"text-subcateg\">Oui</div>
  625.                                     {% else %}
  626.                                         <div class=\"text-subcateg\">Non</div>
  627.                                     {% endif %}
  628.                                 </div>
  629.                             </div>
  630.                         </div>
  631.                         <div class=\"col-6 col-md-4 pt-10px\">
  632.                             <div class=\"d-flex flex-row\">
  633.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/sheet-pen.svg', 'common') }}\"
  634.                                      alt=\"QCM logo\"/>
  635.                                 <div>
  636.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.qcm.label'|trans -}}</div>
  637.                                     {% if mcq %}
  638.                                         <div class=\"text-subcateg\">Oui</div>
  639.                                     {% else %}
  640.                                         <div class=\"text-subcateg\">Non</div>
  641.                                     {% endif %}
  642.                                 </div>
  643.                             </div>
  644.                         </div>
  645.                     </div>
  646.                 {% endif %}
  647.                 {% if currentRoute == 'front_channel_lesson_show' %}
  648.                     {% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
  649.                         next_informations: get_next_informations_lesson_summary(training, module, lesson),
  650.                         previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
  651.                     } %}
  652.                 {% endif %}
  653.             </div>
  654.             <div class=\"col-3 p-0 d-none d-md-block\">
  655.                 {% include 'Front/Scholar/Partial/menu_lessons.html.twig' %}
  656.             </div>
  657.         </div>
  658.     </div>
  659.     {{ parent() }}
  660. {% endblock content %}
  661. {% block inner_content %}
  662.     {{ parent() }}
  663. {% endblock inner_content %}
  664. {% block body %}
  665.     {{ parent() }}
  666. {% endblock %}
  667. {% block javascripts %}
  668.     {% if app.user and currentRoute == 'front_channel_lesson_show' %}
  669.         <script>
  670.             var attendanceLessonUrl = '{{ url('async_channel_scholar_attendance_lesson', {
  671.                 'channelId': channel.id
  672.             }) }}';
  673.         </script>
  674.     {% endif %}
  675.     {{ parent() }}
  676. {% endblock %}
  677. ""Front/Scholar/Lesson/show.html.twig""/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
  678.     }
  679. }