var/cache/dev/twig/c4/c477b13dad9b15ce183326062a3bd66d5bdee20fdfb71bb46b28638047874443.php line 57

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