var/cache/dev/twig/32/32e61a5ca353226d1fde22ccf7fdbfe042e264400914cc3e054abd0d48b13cc7.php line 541

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_29c8d6ba70c948197238331e477696e148be3365a717477dc5d3b2a443e179c0 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.             'stylesheets' => [$this'block_stylesheets'],
  25.             'before_navbar' => [$this'block_before_navbar'],
  26.             'body_markup' => [$this'block_body_markup'],
  27.             'content' => [$this'block_content'],
  28.             'inner_content' => [$this'block_inner_content'],
  29.             'body' => [$this'block_body'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 1
  36.         return "base.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Lesson/show.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Lesson/show.html.twig"));
  45.         // line 4
  46.         $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);
  47.         // line 1
  48.         $this->parent $this->loadTemplate("base.html.twig""Front/Scholar/Lesson/show.html.twig"1);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     // line 2
  56.     public function block_title($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         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);
  64.         echo " - ";
  65.         $this->displayParentBlock("title"$context$blocks);
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     // line 6
  72.     public function block_stylesheets($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  79.         // line 7
  80.         echo "    ";
  81.         $this->displayParentBlock("stylesheets"$context$blocks);
  82.         echo "
  83.     ";
  84.         // line 8
  85.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles""core""core");
  86.         echo "
  87. ";
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  92.     }
  93.     // line 11
  94.     public function block_before_navbar($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  101.         // line 12
  102.         echo "    ";
  103.         $this->loadTemplate("Front/Scholar/Partial/_preview_manager_heager.html.twig""Front/Scholar/Lesson/show.html.twig"12)->display(twig_array_merge($context, ["channel" =>         // line 13
  104. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'13$this->source); })()), "currentRoute" =>         // line 14
  105. (isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'14$this->source); })())]));
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     // line 18
  112.     public function block_body_markup($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  119.         // line 19
  120.         echo "<body class=\"progression lesson-view ";
  121.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  122.             echo "logged-in";
  123.         }
  124.         echo "\"
  125.       style=\"font-family: 'Poppins';\"
  126.       id=\"page-training-lesson\"
  127.         ";
  128.         // line 22
  129.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'22$this->source); })()) == "front_channel_lesson_show")) {
  130.             // line 23
  131.             echo "      data-training_id=";
  132.             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.'23$this->source); })()), "id", [], "any"falsefalsefalse23), "html"nulltrue);
  133.             echo "
  134.       data-module_id=";
  135.             // line 24
  136.             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.'24$this->source); })()), "id", [], "any"falsefalsefalse24), "html"nulltrue);
  137.             echo "
  138.       data-lesson_id=";
  139.             // line 25
  140.             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.'25$this->source); })()), "id", [], "any"falsefalsefalse25), "html"nulltrue);
  141.             echo "
  142.           ";
  143.         }
  144.         // line 27
  145.         echo ">
  146. ";
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.     }
  152.     // line 30
  153.     public function block_content($context, array $blocks = [])
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  160.         // line 31
  161.         echo "    ";
  162.         if (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'31$this->source); })()), [=> "front_channel_lesson_show"=> "front_channel_lesson_show_without_training"=> "manager_channel_module_lesson_show"=> "manager_channel_training_module_lesson_show"])) {
  163.             // line 32
  164.             echo "        ";
  165.             $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.'32$this->source); })()));
  166.             // line 33
  167.             echo "    ";
  168.         } elseif (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'33$this->source); })()), [=> "manager_channel_lesson_show"])) {
  169.             // line 34
  170.             echo "        ";
  171.             $context["trainingModuleLessons"] = [=> (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'34$this->source); })())];
  172.             // line 35
  173.             echo "    ";
  174.         }
  175.         // line 36
  176.         echo "
  177.     ";
  178.         // line 37
  179.         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.'37$this->source); })()), "user", [], "any"falsefalsefalse37)) {
  180.             // line 38
  181.             echo "        ";
  182. $props $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->embeddedContext("ChannelUserData:CursusLockout"twig_to_array(["cursus" => (($context["cursus"]) ?? (null))]), $context);
  183.             $this->loadTemplate("Front/Scholar/Lesson/show.html.twig""Front/Scholar/Lesson/show.html.twig"38"1902190137")->display($props);
  184.             // line 39
  185.             echo "    ";
  186.         }
  187.         // line 40
  188.         echo "
  189.     ";
  190.         // line 41
  191.         $this->loadTemplate("Front/Scholar/Partial/_menu_lessons_mobile.html.twig""Front/Scholar/Lesson/show.html.twig"41)->display($context);
  192.         // line 42
  193.         echo "
  194.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  195.         <div class=\"row\">
  196.             <div class=\"col-md-9 col-12\">
  197.                 <div>
  198.                     ";
  199.         // line 47
  200.         $context['_parent'] = $context;
  201.         $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.'47$this->source); })()), "flashes", [], "method"falsefalsefalse47));
  202.         foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
  203.             // line 48
  204.             echo "                        <div>
  205.                             ";
  206.             // line 49
  207.             $context['_parent'] = $context;
  208.             $context['_seq'] = twig_ensure_traversable($context["messageType"]);
  209.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  210.                 // line 50
  211.                 echo "                                <div class=\"alert alert-";
  212.                 echo twig_escape_filter($this->envtwig_replace_filter($context["key"], ["error" => "danger"]), "html"nulltrue);
  213.                 echo "\">
  214.                                     ";
  215.                 // line 51
  216.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html"nulltrue);
  217.                 echo "
  218.                                 </div>
  219.                             ";
  220.             }
  221.             $_parent $context['_parent'];
  222.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  223.             $context array_intersect_key($context$_parent) + $_parent;
  224.             // line 54
  225.             echo "                        </div>
  226.                     ";
  227.         }
  228.         $_parent $context['_parent'];
  229.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['messageType'], $context['_parent'], $context['loop']);
  230.         $context array_intersect_key($context$_parent) + $_parent;
  231.         // line 56
  232.         echo "                </div>
  233.                 <h2 class=\"v2-title-big\">";
  234.         // line 58
  235.         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.'58$this->source); })()), "name", [], "any"falsefalsefalse58)]), "html"nulltrue);
  236.         echo "</h2>
  237.                 ";
  238.         // line 60
  239.         $this->loadTemplate("Front/Scholar/Partial/_content_alert.html.twig""Front/Scholar/Lesson/show.html.twig"60)->display($context);
  240.         // line 61
  241.         echo "
  242.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  243.                     ";
  244.         // line 63
  245.         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.'63$this->source); })()))) {
  246.             // line 64
  247.             echo "                        ";
  248.             $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.'64$this->source); })()), "lockBy", [], "any"falsefalsefalse64), "lessonStats", [], "any"falsefalsefalse64);
  249.             // line 65
  250.             echo "                    ";
  251.         } else {
  252.             // line 66
  253.             echo "                        ";
  254.             $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.'66$this->source); })()), "lessonStats", [], "any"falsefalsefalse66);
  255.             // line 67
  256.             echo "                    ";
  257.         }
  258.         // line 68
  259.         echo "                    ";
  260.         if ( !(null === (isset($context["lessonStats"]) || array_key_exists("lessonStats"$context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.'68$this->source); })()))) {
  261.             // line 69
  262.             echo "                        ";
  263.             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.'69$this->source); })()), "lessonReviewMarkAvg", [], "any"falsefalsefalse69), 5, ["class" => "blue-stars""hide_when_null" => true]);
  264.             echo "
  265.                     ";
  266.         }
  267.         // line 71
  268.         echo "
  269.                     <div>
  270.                         ";
  271.         // line 73
  272.         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.'73$this->source); })()), "updatedAt", [], "any"falsefalsefalse73))) {
  273.             // line 74
  274.             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 75
  275. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'75$this->source); })()), "updatedAt", [], "any"falsefalsefalse75), "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.'75$this->source); })()), "request", [], "any"falsefalsefalse75), "locale", [], "any"falsefalsefalse75))]);
  276.         } else {
  277.             // line 78
  278.             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 79
  279. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'79$this->source); })()), "createdAt", [], "any"falsefalsefalse79), "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.'79$this->source); })()), "request", [], "any"falsefalsefalse79), "locale", [], "any"falsefalsefalse79))]);
  280.         }
  281.         // line 82
  282.         echo "                    </div>
  283.                 </div>
  284.                 <div class=\"description-lesson mt-4\">
  285.                     <p class=\"text-subcateg description-style\">";
  286.         // line 86
  287.         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.'86$this->source); })()), "description", [], "any"falsefalsefalse86);
  288.         echo "</p>
  289.                 </div>
  290.                 ";
  291.         // line 89
  292.         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.'89$this->source); })()), "objective", [], "any"falsefalsefalse89))) {
  293.             // line 90
  294.             echo "                    <div class=\"pt-30px\">
  295.                         <div class=\"font-weight-bold pb-10px\">";
  296.             // line 91
  297.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.objectif_cours.label"), "html"nulltrue);
  298.             echo "</div>
  299.                         <p class=\"text-subcateg description-style\">";
  300.             // line 92
  301.             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.'92$this->source); })()), "objective", [], "any"falsefalsefalse92), "html"nulltrue);
  302.             echo "</p>
  303.                     </div>
  304.                 ";
  305.         }
  306.         // line 95
  307.         echo "
  308.                 ";
  309.         // line 96
  310.         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.'96$this->source); })()), "lessonPrerequisites", [], "any"falsefalsefalse96)) > 0)) {
  311.             // line 97
  312.             echo "                    <div class=\"pt-30px mb-3\">
  313.                         <div class=\"font-weight-bold pb-10px\">";
  314.             // line 98
  315.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.pre_requis.label"), "html"nulltrue);
  316.             echo "</div>
  317.                         ";
  318.             // line 99
  319.             $context['_parent'] = $context;
  320.             $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.'99$this->source); })()), "lessonPrerequisites", [], "any"falsefalsefalse99));
  321.             foreach ($context['_seq'] as $context["_key"] => $context["prerequisite"]) {
  322.                 // line 100
  323.                 echo "                            <p class=\"font-size-14 m-0\">";
  324.                 echo twig_escape_filter($this->env, ("- " twig_get_attribute($this->env$this->source$context["prerequisite"], "label", [], "any"falsefalsefalse100)), "html"nulltrue);
  325.                 echo "</p>
  326.                         ";
  327.             }
  328.             $_parent $context['_parent'];
  329.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prerequisite'], $context['_parent'], $context['loop']);
  330.             $context array_intersect_key($context$_parent) + $_parent;
  331.             // line 102
  332.             echo "                    </div>
  333.                 ";
  334.         }
  335.         // line 104
  336.         echo "
  337.                 ";
  338.         // line 105
  339.         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.'105$this->source); })()), "minimumTime", [], "any"falsefalsefalse105))) {
  340.             // line 106
  341.             echo "                    ";
  342.             $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.'106$this->source); })()), "minimumTime", [], "any"falsefalsefalse106), "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.'106$this->source); })()), "request", [], "any"falsefalsefalse106), "locale", [], "any"falsefalsefalse106));
  343.             // line 107
  344.             echo "                ";
  345.         } else {
  346.             // line 108
  347.             echo "                    ";
  348.             $context["minimumTime"] = null;
  349.             // line 109
  350.             echo "                ";
  351.         }
  352.         // line 110
  353.         echo "                ";
  354.         $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.'110$this->source); })()), "caseStudy", [], "any"falsefalsefalse110);
  355.         // line 111
  356.         echo "                ";
  357.         $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.'111$this->source); })()), "exerciseCount", [], "any"falsefalsefalse111);
  358.         // line 112
  359.         echo "
  360.                 ";
  361.         // line 113
  362.         if ((((isset($context["minimumTime"]) || array_key_exists("minimumTime"$context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.'113$this->source); })()) || (isset($context["caseStudy"]) || array_key_exists("caseStudy"$context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.'113$this->source); })())) || (isset($context["mcq"]) || array_key_exists("mcq"$context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.'113$this->source); })()))) {
  363.             // line 114
  364.             echo "                    <div class=\"row pt-20px\">
  365.                         <div class=\"col-6 col-md-4 pt-10px\">
  366.                             <div class=\"d-flex flex-row\">
  367.                                 <img class=\"small-svg\" src=\"";
  368.             // line 117
  369.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/watch.svg""common"), "html"nulltrue);
  370.             echo "\"
  371.                                      alt=\"Temps minimum logo\"/>
  372.                                 <div>
  373.                                     <div class=\"font-weight-bold\">";
  374.             // line 120
  375.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.temps_minimum.label"), "html"nulltrue);
  376.             echo "</div>
  377.                                     <div class=\"text-subcateg\">";
  378.             // line 121
  379.             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.'121$this->source); })()), "html"nulltrue);
  380.             echo "</div>
  381.                                 </div>
  382.                             </div>
  383.                         </div>
  384.                         <div class=\"col-6 col-md-4 pt-10px\">
  385.                             <div class=\"d-flex flex-row\">
  386.                                 <img class=\"small-svg\" src=\"";
  387.             // line 127
  388.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-user.svg""common"), "html"nulltrue);
  389.             echo "\"
  390.                                      alt=\"Cas pratique logo\"/>
  391.                                 <div>
  392.                                     <div class=\"font-weight-bold\">";
  393.             // line 130
  394.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.label"), "html"nulltrue);
  395.             echo "</div>
  396.                                     ";
  397.             // line 131
  398.             if ((isset($context["caseStudy"]) || array_key_exists("caseStudy"$context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.'131$this->source); })())) {
  399.                 // line 132
  400.                 echo "                                        <div class=\"text-subcateg\">Oui</div>
  401.                                     ";
  402.             } else {
  403.                 // line 134
  404.                 echo "                                        <div class=\"text-subcateg\">Non</div>
  405.                                     ";
  406.             }
  407.             // line 136
  408.             echo "                                </div>
  409.                             </div>
  410.                         </div>
  411.                         <div class=\"col-6 col-md-4 pt-10px\">
  412.                             <div class=\"d-flex flex-row\">
  413.                                 <img class=\"small-svg\" src=\"";
  414.             // line 141
  415.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-pen.svg""common"), "html"nulltrue);
  416.             echo "\"
  417.                                      alt=\"QCM logo\"/>
  418.                                 <div>
  419.                                     <div class=\"font-weight-bold\">";
  420.             // line 144
  421.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.qcm.label"), "html"nulltrue);
  422.             echo "</div>
  423.                                     ";
  424.             // line 145
  425.             if ((isset($context["mcq"]) || array_key_exists("mcq"$context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.'145$this->source); })())) {
  426.                 // line 146
  427.                 echo "                                        <div class=\"text-subcateg\">Oui</div>
  428.                                     ";
  429.             } else {
  430.                 // line 148
  431.                 echo "                                        <div class=\"text-subcateg\">Non</div>
  432.                                     ";
  433.             }
  434.             // line 150
  435.             echo "                                </div>
  436.                             </div>
  437.                         </div>
  438.                     </div>
  439.                 ";
  440.         }
  441.         // line 155
  442.         echo "
  443.                 ";
  444.         // line 156
  445.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'156$this->source); })()) == "front_channel_lesson_show")) {
  446.             // line 157
  447.             echo "                    ";
  448.             $this->loadTemplate("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig""Front/Scholar/Lesson/show.html.twig"157)->display(twig_array_merge($context, ["next_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsLessonSummary(            // line 158
  449. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'158$this->source); })()), (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'158$this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'158$this->source); })())), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsLessonSummary(            // line 159
  450. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'159$this->source); })()), (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'159$this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'159$this->source); })()))]));
  451.             // line 161
  452.             echo "                ";
  453.         }
  454.         // line 162
  455.         echo "            </div>
  456.             <div class=\"col-3 p-0 d-none d-md-block\">
  457.                 ";
  458.         // line 165
  459.         $this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig""Front/Scholar/Lesson/show.html.twig"165)->display($context);
  460.         // line 166
  461.         echo "            </div>
  462.         </div>
  463.     </div>
  464.     ";
  465.         // line 170
  466.         $this->displayParentBlock("content"$context$blocks);
  467.         echo "
  468. ";
  469.         
  470.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  471.         
  472.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  473.     }
  474.     // line 173
  475.     public function block_inner_content($context, array $blocks = [])
  476.     {
  477.         $macros $this->macros;
  478.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  479.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  480.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  481.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  482.         // line 174
  483.         echo "    ";
  484.         $this->displayParentBlock("inner_content"$context$blocks);
  485.         echo "
  486. ";
  487.         
  488.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  489.         
  490.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  491.     }
  492.     // line 177
  493.     public function block_body($context, array $blocks = [])
  494.     {
  495.         $macros $this->macros;
  496.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  497.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  498.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  499.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  500.         // line 178
  501.         echo "    ";
  502.         $this->displayParentBlock("body"$context$blocks);
  503.         echo "
  504. ";
  505.         
  506.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  507.         
  508.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  509.     }
  510.     // line 181
  511.     public function block_javascripts($context, array $blocks = [])
  512.     {
  513.         $macros $this->macros;
  514.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  515.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  516.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  517.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  518.         // line 182
  519.         echo "    ";
  520.         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.'182$this->source); })()), "user", [], "any"falsefalsefalse182) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'182$this->source); })()) == "front_channel_lesson_show"))) {
  521.             // line 183
  522.             echo "        <script>
  523.             var attendanceLessonUrl = '";
  524.             // line 184
  525.             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 185
  526. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'185$this->source); })()), "id", [], "any"falsefalsefalse185)]), "html"nulltrue);
  527.             // line 186
  528.             echo "';
  529.         </script>
  530.     ";
  531.         }
  532.         // line 189
  533.         echo "
  534.     ";
  535.         // line 190
  536.         $this->displayParentBlock("javascripts"$context$blocks);
  537.         echo "
  538. ";
  539.         
  540.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  541.         
  542.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  543.     }
  544.     public function getTemplateName()
  545.     {
  546.         return "Front/Scholar/Lesson/show.html.twig";
  547.     }
  548.     public function isTraitable()
  549.     {
  550.         return false;
  551.     }
  552.     public function getDebugInfo()
  553.     {
  554.         return array (  591 => 190,  588 => 189,  583 => 186,  581 => 185,  580 => 184,  577 => 183,  574 => 182,  564 => 181,  551 => 178,  541 => 177,  528 => 174,  518 => 173,  506 => 170,  500 => 166,  498 => 165,  493 => 162,  490 => 161,  488 => 159,  487 => 158,  485 => 157,  483 => 156,  480 => 155,  473 => 150,  469 => 148,  465 => 146,  463 => 145,  459 => 144,  453 => 141,  446 => 136,  442 => 134,  438 => 132,  436 => 131,  432 => 130,  426 => 127,  417 => 121,  413 => 120,  407 => 117,  402 => 114,  400 => 113,  397 => 112,  394 => 111,  391 => 110,  388 => 109,  385 => 108,  382 => 107,  379 => 106,  377 => 105,  374 => 104,  370 => 102,  361 => 100,  357 => 99,  353 => 98,  350 => 97,  348 => 96,  345 => 95,  339 => 92,  335 => 91,  332 => 90,  330 => 89,  324 => 86,  318 => 82,  315 => 79,  314 => 78,  311 => 75,  310 => 74,  308 => 73,  304 => 71,  298 => 69,  295 => 68,  292 => 67,  289 => 66,  286 => 65,  283 => 64,  281 => 63,  277 => 61,  275 => 60,  270 => 58,  266 => 56,  259 => 54,  250 => 51,  245 => 50,  241 => 49,  238 => 48,  234 => 47,  227 => 42,  225 => 41,  222 => 40,  219 => 39,  215 => 38,  213 => 37,  210 => 36,  207 => 35,  204 => 34,  201 => 33,  198 => 32,  195 => 31,  185 => 30,  174 => 27,  169 => 25,  165 => 24,  160 => 23,  158 => 22,  149 => 19,  139 => 18,  129 => 14,  128 => 13,  126 => 12,  116 => 11,  104 => 8,  99 => 7,  89 => 6,  68 => 2,  57 => 1,  55 => 4,  42 => 1,);
  555.     }
  556.     public function getSourceContext()
  557.     {
  558.         return new Source("{% extends 'base.html.twig' %}
  559. {% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
  560. {% set currentRoute = app.request.attributes.get('_route') %}
  561. {% block stylesheets %}
  562.     {{ parent() }}
  563.     {{ encore_entry_link_tags('styles', 'core', 'core') }}
  564. {% endblock %}
  565. {% block before_navbar %}
  566.     {% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
  567.         'channel': channel,
  568.         'currentRoute': currentRoute,
  569.     } %}
  570. {% endblock before_navbar %}
  571. {% block body_markup %}
  572. <body class=\"progression lesson-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
  573.       style=\"font-family: 'Poppins';\"
  574.       id=\"page-training-lesson\"
  575.         {% if currentRoute == 'front_channel_lesson_show' %}
  576.       data-training_id={{ training.id }}
  577.       data-module_id={{ module.id }}
  578.       data-lesson_id={{ lesson.id }}
  579.           {% endif %}
  580. >
  581. {% endblock body_markup %}
  582. {% block content %}
  583.     {% if currentRoute in ['front_channel_lesson_show', 'front_channel_lesson_show_without_training', 'manager_channel_module_lesson_show', 'manager_channel_training_module_lesson_show'] %}
  584.         {% set trainingModuleLessons = module | get_lessons %}
  585.     {% elseif currentRoute in ['manager_channel_lesson_show'] %}
  586.         {% set trainingModuleLessons = [lesson] %}
  587.     {% endif %}
  588.     {% if app.user %}
  589.         {% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
  590.     {% endif %}
  591.     {% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' %}
  592.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  593.         <div class=\"row\">
  594.             <div class=\"col-md-9 col-12\">
  595.                 <div>
  596.                     {% for key, messageType in app.flashes() %}
  597.                         <div>
  598.                             {% for message in messageType %}
  599.                                 <div class=\"alert alert-{{ key|replace({'error': 'danger'}) }}\">
  600.                                     {{ message | trans }}
  601.                                 </div>
  602.                             {% endfor %}
  603.                         </div>
  604.                     {% endfor %}
  605.                 </div>
  606.                 <h2 class=\"v2-title-big\">{{- 'front.scholar.lesson.show.summary_title.label'|trans({'%name%': lesson.name}) -}}</h2>
  607.                 {% include 'Front/Scholar/Partial/_content_alert.html.twig' %}
  608.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  609.                     {% if lesson is lock_by_interface %}
  610.                         {% set lessonStats = lesson.lockBy.lessonStats %}
  611.                     {% else %}
  612.                         {% set lessonStats = lesson.lessonStats %}
  613.                     {% endif %}
  614.                     {% if lessonStats is not null %}
  615.                         {{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {'class': 'blue-stars', 'hide_when_null': true}) }}
  616.                     {% endif %}
  617.                     <div>
  618.                         {% if lesson.updatedAt is not null %}
  619.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  620.                                 '%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
  621.                             })|raw -}}
  622.                         {% else %}
  623.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  624.                                 '%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
  625.                             })|raw -}}
  626.                         {% endif %}
  627.                     </div>
  628.                 </div>
  629.                 <div class=\"description-lesson mt-4\">
  630.                     <p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
  631.                 </div>
  632.                 {% if lesson.objective is not null %}
  633.                     <div class=\"pt-30px\">
  634.                         <div class=\"font-weight-bold pb-10px\">{{- 'front.scholar.lesson.show.objectif_cours.label'|trans -}}</div>
  635.                         <p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
  636.                     </div>
  637.                 {% endif %}
  638.                 {% if lesson.lessonPrerequisites|length > 0 %}
  639.                     <div class=\"pt-30px mb-3\">
  640.                         <div class=\"font-weight-bold pb-10px\">{{- 'front.scholar.lesson.show.pre_requis.label'|trans -}}</div>
  641.                         {% for prerequisite in lesson.lessonPrerequisites %}
  642.                             <p class=\"font-size-14 m-0\">{{- '- ' ~ prerequisite.label -}}</p>
  643.                         {% endfor %}
  644.                     </div>
  645.                 {% endif %}
  646.                 {% if lesson.minimumTime is not null %}
  647.                     {% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH'h'mm\", locale=app.request.locale) %}
  648.                 {% else %}
  649.                     {% set minimumTime = null %}
  650.                 {% endif %}
  651.                 {% set caseStudy = lesson.caseStudy %}
  652.                 {% set mcq = lesson.exerciseCount %}
  653.                 {% if minimumTime or caseStudy or mcq %}
  654.                     <div class=\"row pt-20px\">
  655.                         <div class=\"col-6 col-md-4 pt-10px\">
  656.                             <div class=\"d-flex flex-row\">
  657.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/watch.svg', 'common') }}\"
  658.                                      alt=\"Temps minimum logo\"/>
  659.                                 <div>
  660.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.temps_minimum.label'|trans -}}</div>
  661.                                     <div class=\"text-subcateg\">{{- minimumTime -}}</div>
  662.                                 </div>
  663.                             </div>
  664.                         </div>
  665.                         <div class=\"col-6 col-md-4 pt-10px\">
  666.                             <div class=\"d-flex flex-row\">
  667.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/sheet-user.svg', 'common') }}\"
  668.                                      alt=\"Cas pratique logo\"/>
  669.                                 <div>
  670.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.cas_pratique.label'|trans -}}</div>
  671.                                     {% if caseStudy %}
  672.                                         <div class=\"text-subcateg\">Oui</div>
  673.                                     {% else %}
  674.                                         <div class=\"text-subcateg\">Non</div>
  675.                                     {% endif %}
  676.                                 </div>
  677.                             </div>
  678.                         </div>
  679.                         <div class=\"col-6 col-md-4 pt-10px\">
  680.                             <div class=\"d-flex flex-row\">
  681.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/sheet-pen.svg', 'common') }}\"
  682.                                      alt=\"QCM logo\"/>
  683.                                 <div>
  684.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.qcm.label'|trans -}}</div>
  685.                                     {% if mcq %}
  686.                                         <div class=\"text-subcateg\">Oui</div>
  687.                                     {% else %}
  688.                                         <div class=\"text-subcateg\">Non</div>
  689.                                     {% endif %}
  690.                                 </div>
  691.                             </div>
  692.                         </div>
  693.                     </div>
  694.                 {% endif %}
  695.                 {% if currentRoute == 'front_channel_lesson_show' %}
  696.                     {% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
  697.                         next_informations: get_next_informations_lesson_summary(training, module, lesson),
  698.                         previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
  699.                     } %}
  700.                 {% endif %}
  701.             </div>
  702.             <div class=\"col-3 p-0 d-none d-md-block\">
  703.                 {% include 'Front/Scholar/Partial/menu_lessons.html.twig' %}
  704.             </div>
  705.         </div>
  706.     </div>
  707.     {{ parent() }}
  708. {% endblock content %}
  709. {% block inner_content %}
  710.     {{ parent() }}
  711. {% endblock inner_content %}
  712. {% block body %}
  713.     {{ parent() }}
  714. {% endblock %}
  715. {% block javascripts %}
  716.     {% if app.user and currentRoute == 'front_channel_lesson_show' %}
  717.         <script>
  718.             var attendanceLessonUrl = '{{ url('async_channel_scholar_attendance_lesson', {
  719.                 'channelId': channel.id
  720.             }) }}';
  721.         </script>
  722.     {% endif %}
  723.     {{ parent() }}
  724. {% endblock %}
  725. ""Front/Scholar/Lesson/show.html.twig""/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
  726.     }
  727. }
  728. /* Front/Scholar/Lesson/show.html.twig */
  729. class __TwigTemplate_29c8d6ba70c948197238331e477696e148be3365a717477dc5d3b2a443e179c0___1902190137 extends Template
  730. {
  731.     private $source;
  732.     private $macros = [];
  733.     public function __construct(Environment $env)
  734.     {
  735.         parent::__construct($env);
  736.         $this->source $this->getSourceContext();
  737.         $this->blocks = [
  738.         ];
  739.     }
  740.     protected function doGetParent(array $context)
  741.     {
  742.         // line 38
  743.         return "@NellappSDK/Components/channelUserData/cursus_lockout.html.twig";
  744.     }
  745.     protected function doDisplay(array $context, array $blocks = [])
  746.     {
  747.         $macros $this->macros;
  748.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  749.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Lesson/show.html.twig"));
  750.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  751.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Lesson/show.html.twig"));
  752.         $this->parent $this->loadTemplate("@NellappSDK/Components/channelUserData/cursus_lockout.html.twig""Front/Scholar/Lesson/show.html.twig"38);
  753.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  754.         
  755.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  756.         
  757.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  758.     }
  759.     public function getTemplateName()
  760.     {
  761.         return "Front/Scholar/Lesson/show.html.twig";
  762.     }
  763.     public function isTraitable()
  764.     {
  765.         return false;
  766.     }
  767.     public function getDebugInfo()
  768.     {
  769.         return array (  834 => 38,  591 => 190,  588 => 189,  583 => 186,  581 => 185,  580 => 184,  577 => 183,  574 => 182,  564 => 181,  551 => 178,  541 => 177,  528 => 174,  518 => 173,  506 => 170,  500 => 166,  498 => 165,  493 => 162,  490 => 161,  488 => 159,  487 => 158,  485 => 157,  483 => 156,  480 => 155,  473 => 150,  469 => 148,  465 => 146,  463 => 145,  459 => 144,  453 => 141,  446 => 136,  442 => 134,  438 => 132,  436 => 131,  432 => 130,  426 => 127,  417 => 121,  413 => 120,  407 => 117,  402 => 114,  400 => 113,  397 => 112,  394 => 111,  391 => 110,  388 => 109,  385 => 108,  382 => 107,  379 => 106,  377 => 105,  374 => 104,  370 => 102,  361 => 100,  357 => 99,  353 => 98,  350 => 97,  348 => 96,  345 => 95,  339 => 92,  335 => 91,  332 => 90,  330 => 89,  324 => 86,  318 => 82,  315 => 79,  314 => 78,  311 => 75,  310 => 74,  308 => 73,  304 => 71,  298 => 69,  295 => 68,  292 => 67,  289 => 66,  286 => 65,  283 => 64,  281 => 63,  277 => 61,  275 => 60,  270 => 58,  266 => 56,  259 => 54,  250 => 51,  245 => 50,  241 => 49,  238 => 48,  234 => 47,  227 => 42,  225 => 41,  222 => 40,  219 => 39,  215 => 38,  213 => 37,  210 => 36,  207 => 35,  204 => 34,  201 => 33,  198 => 32,  195 => 31,  185 => 30,  174 => 27,  169 => 25,  165 => 24,  160 => 23,  158 => 22,  149 => 19,  139 => 18,  129 => 14,  128 => 13,  126 => 12,  116 => 11,  104 => 8,  99 => 7,  89 => 6,  68 => 2,  57 => 1,  55 => 4,  42 => 1,);
  770.     }
  771.     public function getSourceContext()
  772.     {
  773.         return new Source("{% extends 'base.html.twig' %}
  774. {% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
  775. {% set currentRoute = app.request.attributes.get('_route') %}
  776. {% block stylesheets %}
  777.     {{ parent() }}
  778.     {{ encore_entry_link_tags('styles', 'core', 'core') }}
  779. {% endblock %}
  780. {% block before_navbar %}
  781.     {% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
  782.         'channel': channel,
  783.         'currentRoute': currentRoute,
  784.     } %}
  785. {% endblock before_navbar %}
  786. {% block body_markup %}
  787. <body class=\"progression lesson-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
  788.       style=\"font-family: 'Poppins';\"
  789.       id=\"page-training-lesson\"
  790.         {% if currentRoute == 'front_channel_lesson_show' %}
  791.       data-training_id={{ training.id }}
  792.       data-module_id={{ module.id }}
  793.       data-lesson_id={{ lesson.id }}
  794.           {% endif %}
  795. >
  796. {% endblock body_markup %}
  797. {% block content %}
  798.     {% if currentRoute in ['front_channel_lesson_show', 'front_channel_lesson_show_without_training', 'manager_channel_module_lesson_show', 'manager_channel_training_module_lesson_show'] %}
  799.         {% set trainingModuleLessons = module | get_lessons %}
  800.     {% elseif currentRoute in ['manager_channel_lesson_show'] %}
  801.         {% set trainingModuleLessons = [lesson] %}
  802.     {% endif %}
  803.     {% if app.user %}
  804.         {% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
  805.     {% endif %}
  806.     {% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' %}
  807.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  808.         <div class=\"row\">
  809.             <div class=\"col-md-9 col-12\">
  810.                 <div>
  811.                     {% for key, messageType in app.flashes() %}
  812.                         <div>
  813.                             {% for message in messageType %}
  814.                                 <div class=\"alert alert-{{ key|replace({'error': 'danger'}) }}\">
  815.                                     {{ message | trans }}
  816.                                 </div>
  817.                             {% endfor %}
  818.                         </div>
  819.                     {% endfor %}
  820.                 </div>
  821.                 <h2 class=\"v2-title-big\">{{- 'front.scholar.lesson.show.summary_title.label'|trans({'%name%': lesson.name}) -}}</h2>
  822.                 {% include 'Front/Scholar/Partial/_content_alert.html.twig' %}
  823.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  824.                     {% if lesson is lock_by_interface %}
  825.                         {% set lessonStats = lesson.lockBy.lessonStats %}
  826.                     {% else %}
  827.                         {% set lessonStats = lesson.lessonStats %}
  828.                     {% endif %}
  829.                     {% if lessonStats is not null %}
  830.                         {{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {'class': 'blue-stars', 'hide_when_null': true}) }}
  831.                     {% endif %}
  832.                     <div>
  833.                         {% if lesson.updatedAt is not null %}
  834.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  835.                                 '%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
  836.                             })|raw -}}
  837.                         {% else %}
  838.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  839.                                 '%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
  840.                             })|raw -}}
  841.                         {% endif %}
  842.                     </div>
  843.                 </div>
  844.                 <div class=\"description-lesson mt-4\">
  845.                     <p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
  846.                 </div>
  847.                 {% if lesson.objective is not null %}
  848.                     <div class=\"pt-30px\">
  849.                         <div class=\"font-weight-bold pb-10px\">{{- 'front.scholar.lesson.show.objectif_cours.label'|trans -}}</div>
  850.                         <p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
  851.                     </div>
  852.                 {% endif %}
  853.                 {% if lesson.lessonPrerequisites|length > 0 %}
  854.                     <div class=\"pt-30px mb-3\">
  855.                         <div class=\"font-weight-bold pb-10px\">{{- 'front.scholar.lesson.show.pre_requis.label'|trans -}}</div>
  856.                         {% for prerequisite in lesson.lessonPrerequisites %}
  857.                             <p class=\"font-size-14 m-0\">{{- '- ' ~ prerequisite.label -}}</p>
  858.                         {% endfor %}
  859.                     </div>
  860.                 {% endif %}
  861.                 {% if lesson.minimumTime is not null %}
  862.                     {% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH'h'mm\", locale=app.request.locale) %}
  863.                 {% else %}
  864.                     {% set minimumTime = null %}
  865.                 {% endif %}
  866.                 {% set caseStudy = lesson.caseStudy %}
  867.                 {% set mcq = lesson.exerciseCount %}
  868.                 {% if minimumTime or caseStudy or mcq %}
  869.                     <div class=\"row pt-20px\">
  870.                         <div class=\"col-6 col-md-4 pt-10px\">
  871.                             <div class=\"d-flex flex-row\">
  872.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/watch.svg', 'common') }}\"
  873.                                      alt=\"Temps minimum logo\"/>
  874.                                 <div>
  875.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.temps_minimum.label'|trans -}}</div>
  876.                                     <div class=\"text-subcateg\">{{- minimumTime -}}</div>
  877.                                 </div>
  878.                             </div>
  879.                         </div>
  880.                         <div class=\"col-6 col-md-4 pt-10px\">
  881.                             <div class=\"d-flex flex-row\">
  882.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/sheet-user.svg', 'common') }}\"
  883.                                      alt=\"Cas pratique logo\"/>
  884.                                 <div>
  885.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.cas_pratique.label'|trans -}}</div>
  886.                                     {% if caseStudy %}
  887.                                         <div class=\"text-subcateg\">Oui</div>
  888.                                     {% else %}
  889.                                         <div class=\"text-subcateg\">Non</div>
  890.                                     {% endif %}
  891.                                 </div>
  892.                             </div>
  893.                         </div>
  894.                         <div class=\"col-6 col-md-4 pt-10px\">
  895.                             <div class=\"d-flex flex-row\">
  896.                                 <img class=\"small-svg\" src=\"{{ asset('build/common/sheet-pen.svg', 'common') }}\"
  897.                                      alt=\"QCM logo\"/>
  898.                                 <div>
  899.                                     <div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.qcm.label'|trans -}}</div>
  900.                                     {% if mcq %}
  901.                                         <div class=\"text-subcateg\">Oui</div>
  902.                                     {% else %}
  903.                                         <div class=\"text-subcateg\">Non</div>
  904.                                     {% endif %}
  905.                                 </div>
  906.                             </div>
  907.                         </div>
  908.                     </div>
  909.                 {% endif %}
  910.                 {% if currentRoute == 'front_channel_lesson_show' %}
  911.                     {% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
  912.                         next_informations: get_next_informations_lesson_summary(training, module, lesson),
  913.                         previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
  914.                     } %}
  915.                 {% endif %}
  916.             </div>
  917.             <div class=\"col-3 p-0 d-none d-md-block\">
  918.                 {% include 'Front/Scholar/Partial/menu_lessons.html.twig' %}
  919.             </div>
  920.         </div>
  921.     </div>
  922.     {{ parent() }}
  923. {% endblock content %}
  924. {% block inner_content %}
  925.     {{ parent() }}
  926. {% endblock inner_content %}
  927. {% block body %}
  928.     {{ parent() }}
  929. {% endblock %}
  930. {% block javascripts %}
  931.     {% if app.user and currentRoute == 'front_channel_lesson_show' %}
  932.         <script>
  933.             var attendanceLessonUrl = '{{ url('async_channel_scholar_attendance_lesson', {
  934.                 'channelId': channel.id
  935.             }) }}';
  936.         </script>
  937.     {% endif %}
  938.     {{ parent() }}
  939. {% endblock %}
  940. ""Front/Scholar/Lesson/show.html.twig""/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
  941.     }
  942. }