<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* Front/Scholar/Lesson/show.html.twig */
class __TwigTemplate_b28f8784dd106abdf7a134fffed940f5 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'back_to_dashboard' => [$this, 'block_back_to_dashboard'],
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'before_navbar' => [$this, 'block_before_navbar'],
'body_markup' => [$this, 'block_body_markup'],
'content' => [$this, 'block_content'],
'inner_content' => [$this, 'block_inner_content'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("base.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
// line 9
$context["currentRoute"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "attributes", [], "any", false, false, false, 9), "get", ["_route"], "method", false, false, false, 9);
// line 1
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_back_to_dashboard(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "back_to_dashboard"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "back_to_dashboard"));
// line 4
yield " ";
yield from $this->load("Front/Scholar/Partial/_back_to_dashboard.html.twig", 4)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
yield " - ";
yield from $this->yieldParentBlock("title", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 12
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 13
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles", "core", "core");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 16
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_before_navbar(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
// line 17
yield " ";
yield from $this->load("Front/Scholar/Partial/_preview_manager_heager.html.twig", 17)->unwrap()->yield(CoreExtension::merge($context, ["channel" => // line 18
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 18, $this->source); })()), "currentRoute" => // line 19
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 19, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 23
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body_markup(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
// line 24
yield "<body class=\"progression lesson-view ";
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield "logged-in";
}
yield "\"
style=\"font-family: \x27Poppins\x27;\"
id=\"page-training-lesson\"
";
// line 27
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 27, $this->source); })()) == "front_channel_lesson_show")) {
// line 28
yield " data-training_id=";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 28, $this->source); })()), "id", [], "any", false, false, false, 28), "html", null, true);
yield "
data-module_id=";
// line 29
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 29, $this->source); })()), "id", [], "any", false, false, false, 29), "html", null, true);
yield "
data-lesson_id=";
// line 30
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 30, $this->source); })()), "id", [], "any", false, false, false, 30), "html", null, true);
yield "
";
}
// line 32
yield ">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 35
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 36
yield " ";
if (CoreExtension::inFilter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 36, $this->source); })()), ["front_channel_lesson_show", "front_channel_lesson_show_without_training", "manager_channel_module_lesson_show", "manager_channel_training_module_lesson_show"])) {
// line 37
yield " ";
$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.', 37, $this->source); })()));
// line 38
yield " ";
} elseif (CoreExtension::inFilter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 38, $this->source); })()), ["manager_channel_lesson_show"])) {
// line 39
yield " ";
$context["trainingModuleLessons"] = [(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 39, $this->source); })())];
// line 40
yield " ";
}
// line 41
yield "
";
// line 42
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 42, $this->source); })()), "user", [], "any", false, false, false, 42)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 43
yield " ";
$preRendered = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->extensionPreCreateForRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]));
if (null !== $preRendered) {
echo $preRendered;
} else {
$preRenderEvent = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->startEmbeddedComponentRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]), $context, "Front/Scholar/Lesson/show.html.twig", 8618838181);
$embeddedContext = $preRenderEvent->getVariables();
$embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
if (!isset($embeddedContext["outerBlocks"])) {
$embeddedContext["outerBlocks"] = new \Symfony\UX\TwigComponent\BlockStack();
}
$embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 8618838181);
$this->loadTemplate("Front/Scholar/Lesson/show.html.twig", "Front/Scholar/Lesson/show.html.twig", 43, "8618838181")->display($embeddedContext, $embeddedBlocks);
$this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->finishEmbeddedComponentRender();
}
// line 44
yield " ";
}
// line 45
yield "
";
// line 46
yield from $this->load("Front/Scholar/Partial/_menu_lessons_mobile.html.twig", 46)->unwrap()->yield($context);
// line 47
yield "
<div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
<div class=\"row\">
<div class=\"col-md-9 col-12\">
<div>
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "flashes", [], "method", false, false, false, 52));
foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
// line 53
yield " <div>
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["messageType"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 55
yield " <div class=\"alert alert-";
yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::replace($context["key"], ["error" => "danger"]), "html", null, true);
yield "\">
";
// line 56
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 59
yield " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['key'], $context['messageType'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 61
yield " </div>
<h2 class=\"v2-title-big\">";
// line 63
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.summary_title.label", ["%name%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 63, $this->source); })()), "name", [], "any", false, false, false, 63)]), "html", null, true);
yield "</h2>
";
// line 65
yield from $this->load("Front/Scholar/Partial/_content_alert.html.twig", 65)->unwrap()->yield($context);
// line 66
yield "
<div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
";
// line 68
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.', 68, $this->source); })()))) {
// line 69
yield " ";
$context["lessonStats"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 69, $this->source); })()), "lockBy", [], "any", false, false, false, 69), "lessonStats", [], "any", false, false, false, 69);
// line 70
yield " ";
} else {
// line 71
yield " ";
$context["lessonStats"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 71, $this->source); })()), "lessonStats", [], "any", false, false, false, 71);
// line 72
yield " ";
}
// line 73
yield " ";
if ( !(null === (isset($context["lessonStats"]) || array_key_exists("lessonStats", $context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.', 73, $this->source); })()))) {
// line 74
yield " ";
yield (string) $this->env->getRuntime('App\Twig\Runtime\RatingRuntime')->getRatingComponent($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["lessonStats"]) || array_key_exists("lessonStats", $context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.', 74, $this->source); })()), "lessonReviewMarkAvg", [], "any", false, false, false, 74), 5, ["class" => "blue-stars", "hide_when_null" => true]);
yield "
";
}
// line 76
yield "
<div>
";
// line 78
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 78, $this->source); })()), "updatedAt", [], "any", false, false, false, 78))) {
// line 79
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, CoreExtension::getAttribute($this->env, $this->source, // line 80
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 80, $this->source); })()), "updatedAt", [], "any", false, false, false, 80), "long", "", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 80, $this->source); })()), "request", [], "any", false, false, false, 80), "locale", [], "any", false, false, false, 80))]);
} else {
// line 83
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, CoreExtension::getAttribute($this->env, $this->source, // line 84
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 84, $this->source); })()), "createdAt", [], "any", false, false, false, 84), "long", "", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 84, $this->source); })()), "request", [], "any", false, false, false, 84), "locale", [], "any", false, false, false, 84))]);
}
// line 87
yield " </div>
</div>
<div class=\"description-lesson mt-4 lesson-content\">
<p class=\"text-subcateg description-style\">";
// line 91
yield (string) CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 91, $this->source); })()), "description", [], "any", false, false, false, 91);
yield "</p>
</div>
";
// line 94
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 94, $this->source); })()), "objective", [], "any", false, false, false, 94))) {
// line 95
yield " <div class=\"pt-30px\">
<div class=\"font-weight-bold pb-10px\">";
// line 96
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.objectif_cours.label"), "html", null, true);
yield "</div>
<p class=\"text-subcateg description-style\">";
// line 97
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 97, $this->source); })()), "objective", [], "any", false, false, false, 97), "html", null, true);
yield "</p>
</div>
";
}
// line 100
yield "
";
// line 101
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 101, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 101)) > 0)) {
// line 102
yield " <div class=\"pt-30px mb-3\">
<div class=\"font-weight-bold pb-10px\">";
// line 103
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.pre_requis.label"), "html", null, true);
yield "</div>
";
// line 104
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 104, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 104));
foreach ($context['_seq'] as $context["_key"] => $context["prerequisite"]) {
// line 105
yield " <p class=\"font-size-14 m-0\">";
yield (string) $this->escaper->escape(("- " . CoreExtension::getAttribute($this->env, $this->source, $context["prerequisite"], "label", [], "any", false, false, false, 105)), "html", null, true);
yield "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['prerequisite'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 107
yield " </div>
";
}
// line 109
yield "
";
// line 110
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 110, $this->source); })()), "minimumTime", [], "any", false, false, false, 110))) {
// line 111
yield " ";
$context["minimumTime"] = $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 111, $this->source); })()), "minimumTime", [], "any", false, false, false, 111), null, null, "HH\x27h\x27mm", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 111, $this->source); })()), "request", [], "any", false, false, false, 111), "locale", [], "any", false, false, false, 111));
// line 112
yield " ";
} else {
// line 113
yield " ";
$context["minimumTime"] = null;
// line 114
yield " ";
}
// line 115
yield " ";
$context["caseStudy"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 115, $this->source); })()), "caseStudy", [], "any", false, false, false, 115);
// line 116
yield " ";
$context["mcq"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 116, $this->source); })()), "exerciseCount", [], "any", false, false, false, 116);
// line 117
yield "
";
// line 118
if ((((($tmp = (isset($context["minimumTime"]) || array_key_exists("minimumTime", $context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.', 118, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = (isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 118, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = (isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 118, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 119
yield " <div class=\"row pt-20px\">
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"";
// line 122
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/watch.svg", "common"), "html", null, true);
yield "\"
alt=\"Temps minimum logo\"/>
<div>
<div class=\"font-weight-bold\">";
// line 125
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.temps_minimum.label"), "html", null, true);
yield "</div>
<div class=\"text-subcateg\">";
// line 126
yield (string) $this->escaper->escape((isset($context["minimumTime"]) || array_key_exists("minimumTime", $context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.', 126, $this->source); })()), "html", null, true);
yield "</div>
</div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"";
// line 132
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-user.svg", "common"), "html", null, true);
yield "\"
alt=\"Cas pratique logo\"/>
<div>
<div class=\"font-weight-bold\">";
// line 135
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.label"), "html", null, true);
yield "</div>
";
// line 136
if ((($tmp = (isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 136, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 137
yield " <div class=\"text-subcateg\">Oui</div>
";
} else {
// line 139
yield " <div class=\"text-subcateg\">Non</div>
";
}
// line 141
yield " </div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"";
// line 146
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-pen.svg", "common"), "html", null, true);
yield "\"
alt=\"QCM logo\"/>
<div>
<div class=\"font-weight-bold\">";
// line 149
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.qcm.label"), "html", null, true);
yield "</div>
";
// line 150
if ((($tmp = (isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 150, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 151
yield " <div class=\"text-subcateg\">Oui</div>
";
} else {
// line 153
yield " <div class=\"text-subcateg\">Non</div>
";
}
// line 155
yield " </div>
</div>
</div>
</div>
";
}
// line 160
yield "
";
// line 161
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 161, $this->source); })()) == "front_channel_lesson_show")) {
// line 162
yield " ";
yield from $this->load("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig", 162)->unwrap()->yield(CoreExtension::merge($context, ["next_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsLessonSummary( // line 163
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 163, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 163, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 163, $this->source); })())), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsLessonSummary( // line 164
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 164, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 164, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 164, $this->source); })()))]));
// line 166
yield " ";
}
// line 167
yield " </div>
<div class=\"col-3 d-none d-md-block\">
";
// line 170
yield from $this->load("Front/Scholar/Partial/menu_lessons.html.twig", 170)->unwrap()->yield($context);
// line 171
yield " </div>
</div>
</div>
";
// line 175
yield from $this->yieldParentBlock("content", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 178
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_inner_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 179
yield " ";
yield from $this->yieldParentBlock("inner_content", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 182
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 183
yield " ";
yield from $this->yieldParentBlock("body", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 186
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 187
yield " ";
if (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 187, $this->source); })()), "user", [], "any", false, false, false, 187)) && $tmp instanceof Markup ? (string) $tmp : $tmp) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 187, $this->source); })()) == "front_channel_lesson_show"))) {
// line 188
yield " <script>
var attendanceLessonUrl = \x27";
// line 189
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("async_channel_scholar_attendance_lesson", ["channelId" => CoreExtension::getAttribute($this->env, $this->source, // line 190
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 190, $this->source); })()), "id", [], "any", false, false, false, 190)]), "html", null, true);
// line 191
yield "\x27;
</script>
";
}
// line 194
yield "
";
// line 195
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Front/Scholar/Lesson/show.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 673 => 195, 670 => 194, 665 => 191, 663 => 190, 662 => 189, 659 => 188, 656 => 187, 643 => 186, 629 => 183, 616 => 182, 602 => 179, 589 => 178, 576 => 175, 570 => 171, 568 => 170, 563 => 167, 560 => 166, 558 => 164, 557 => 163, 555 => 162, 553 => 161, 550 => 160, 543 => 155, 539 => 153, 535 => 151, 533 => 150, 529 => 149, 523 => 146, 516 => 141, 512 => 139, 508 => 137, 506 => 136, 502 => 135, 496 => 132, 487 => 126, 483 => 125, 477 => 122, 472 => 119, 470 => 118, 467 => 117, 464 => 116, 461 => 115, 458 => 114, 455 => 113, 452 => 112, 449 => 111, 447 => 110, 444 => 109, 440 => 107, 430 => 105, 426 => 104, 422 => 103, 419 => 102, 417 => 101, 414 => 100, 408 => 97, 404 => 96, 401 => 95, 399 => 94, 393 => 91, 387 => 87, 384 => 84, 383 => 83, 380 => 80, 379 => 79, 377 => 78, 373 => 76, 367 => 74, 364 => 73, 361 => 72, 358 => 71, 355 => 70, 352 => 69, 350 => 68, 346 => 66, 344 => 65, 339 => 63, 335 => 61, 327 => 59, 317 => 56, 312 => 55, 308 => 54, 305 => 53, 301 => 52, 294 => 47, 292 => 46, 289 => 45, 286 => 44, 270 => 43, 268 => 42, 265 => 41, 262 => 40, 259 => 39, 256 => 38, 253 => 37, 250 => 36, 237 => 35, 225 => 32, 220 => 30, 216 => 29, 211 => 28, 209 => 27, 200 => 24, 187 => 23, 176 => 19, 175 => 18, 173 => 17, 160 => 16, 147 => 13, 142 => 12, 129 => 11, 104 => 7, 92 => 4, 79 => 3, 68 => 1, 66 => 9, 53 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block back_to_dashboard %}
{% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 %}
{% endblock back_to_dashboard %}
{% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
{% set currentRoute = app.request.attributes.get(\x27_route\x27) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags(\x27styles\x27, \x27core\x27, \x27core\x27) }}
{% endblock %}
{% block before_navbar %}
{% include \x27Front/Scholar/Partial/_preview_manager_heager.html.twig\x27 with {
\x27channel\x27: channel,
\x27currentRoute\x27: currentRoute,
} %}
{% endblock before_navbar %}
{% block body_markup %}
<body class=\"progression lesson-view {% if is_granted(\x27IS_AUTHENTICATED_REMEMBERED\x27) %}logged-in{% endif %}\"
style=\"font-family: \x27Poppins\x27;\"
id=\"page-training-lesson\"
{% if currentRoute == \x27front_channel_lesson_show\x27 %}
data-training_id={{ training.id }}
data-module_id={{ module.id }}
data-lesson_id={{ lesson.id }}
{% endif %}
>
{% endblock body_markup %}
{% block content %}
{% if currentRoute in [\x27front_channel_lesson_show\x27, \x27front_channel_lesson_show_without_training\x27, \x27manager_channel_module_lesson_show\x27, \x27manager_channel_training_module_lesson_show\x27] %}
{% set trainingModuleLessons = module | get_lessons %}
{% elseif currentRoute in [\x27manager_channel_lesson_show\x27] %}
{% set trainingModuleLessons = [lesson] %}
{% endif %}
{% if app.user %}
{% component \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
{% include \x27Front/Scholar/Partial/_menu_lessons_mobile.html.twig\x27 %}
<div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
<div class=\"row\">
<div class=\"col-md-9 col-12\">
<div>
{% for key, messageType in app.flashes() %}
<div>
{% for message in messageType %}
<div class=\"alert alert-{{ key|replace({\x27error\x27: \x27danger\x27}) }}\">
{{ message | trans }}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<h2 class=\"v2-title-big\">{{- \x27front.scholar.lesson.show.summary_title.label\x27|trans({\x27%name%\x27: lesson.name}) -}}</h2>
{% include \x27Front/Scholar/Partial/_content_alert.html.twig\x27 %}
<div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
{% if lesson is lock_by_interface %}
{% set lessonStats = lesson.lockBy.lessonStats %}
{% else %}
{% set lessonStats = lesson.lessonStats %}
{% endif %}
{% if lessonStats is not null %}
{{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {\x27class\x27: \x27blue-stars\x27, \x27hide_when_null\x27: true}) }}
{% endif %}
<div>
{% if lesson.updatedAt is not null %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: lesson.updatedAt|format_date(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% else %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: lesson.createdAt|format_date(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
<div class=\"description-lesson mt-4 lesson-content\">
<p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
</div>
{% if lesson.objective is not null %}
<div class=\"pt-30px\">
<div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.objectif_cours.label\x27|trans -}}</div>
<p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
</div>
{% endif %}
{% if lesson.lessonPrerequisites|length > 0 %}
<div class=\"pt-30px mb-3\">
<div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.pre_requis.label\x27|trans -}}</div>
{% for prerequisite in lesson.lessonPrerequisites %}
<p class=\"font-size-14 m-0\">{{- \x27- \x27 ~ prerequisite.label -}}</p>
{% endfor %}
</div>
{% endif %}
{% if lesson.minimumTime is not null %}
{% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH\x27h\x27mm\", locale=app.request.locale) %}
{% else %}
{% set minimumTime = null %}
{% endif %}
{% set caseStudy = lesson.caseStudy %}
{% set mcq = lesson.exerciseCount %}
{% if minimumTime or caseStudy or mcq %}
<div class=\"row pt-20px\">
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"{{ asset(\x27build/common/watch.svg\x27, \x27common\x27) }}\"
alt=\"Temps minimum logo\"/>
<div>
<div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.temps_minimum.label\x27|trans -}}</div>
<div class=\"text-subcateg\">{{- minimumTime -}}</div>
</div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-user.svg\x27, \x27common\x27) }}\"
alt=\"Cas pratique logo\"/>
<div>
<div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.cas_pratique.label\x27|trans -}}</div>
{% if caseStudy %}
<div class=\"text-subcateg\">Oui</div>
{% else %}
<div class=\"text-subcateg\">Non</div>
{% endif %}
</div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-pen.svg\x27, \x27common\x27) }}\"
alt=\"QCM logo\"/>
<div>
<div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.qcm.label\x27|trans -}}</div>
{% if mcq %}
<div class=\"text-subcateg\">Oui</div>
{% else %}
<div class=\"text-subcateg\">Non</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
{% if currentRoute == \x27front_channel_lesson_show\x27 %}
{% include \x27Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig\x27 with {
next_informations: get_next_informations_lesson_summary(training, module, lesson),
previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
} %}
{% endif %}
</div>
<div class=\"col-3 d-none d-md-block\">
{% include \x27Front/Scholar/Partial/menu_lessons.html.twig\x27 %}
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
{{ parent() }}
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{% if app.user and currentRoute == \x27front_channel_lesson_show\x27 %}
<script>
var attendanceLessonUrl = \x27{{ url(\x27async_channel_scholar_attendance_lesson\x27, {
\x27channelId\x27: channel.id
}) }}\x27;
</script>
{% endif %}
{{ parent() }}
{% endblock %}
", "Front/Scholar/Lesson/show.html.twig", "/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
}
}
/* Front/Scholar/Lesson/show.html.twig */
class __TwigTemplate_b28f8784dd106abdf7a134fffed940f5___8618838181 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 43
return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 43, $this->source); })()), 43);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_outer__block_fallback(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Front/Scholar/Lesson/show.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 943 => 43, 673 => 195, 670 => 194, 665 => 191, 663 => 190, 662 => 189, 659 => 188, 656 => 187, 643 => 186, 629 => 183, 616 => 182, 602 => 179, 589 => 178, 576 => 175, 570 => 171, 568 => 170, 563 => 167, 560 => 166, 558 => 164, 557 => 163, 555 => 162, 553 => 161, 550 => 160, 543 => 155, 539 => 153, 535 => 151, 533 => 150, 529 => 149, 523 => 146, 516 => 141, 512 => 139, 508 => 137, 506 => 136, 502 => 135, 496 => 132, 487 => 126, 483 => 125, 477 => 122, 472 => 119, 470 => 118, 467 => 117, 464 => 116, 461 => 115, 458 => 114, 455 => 113, 452 => 112, 449 => 111, 447 => 110, 444 => 109, 440 => 107, 430 => 105, 426 => 104, 422 => 103, 419 => 102, 417 => 101, 414 => 100, 408 => 97, 404 => 96, 401 => 95, 399 => 94, 393 => 91, 387 => 87, 384 => 84, 383 => 83, 380 => 80, 379 => 79, 377 => 78, 373 => 76, 367 => 74, 364 => 73, 361 => 72, 358 => 71, 355 => 70, 352 => 69, 350 => 68, 346 => 66, 344 => 65, 339 => 63, 335 => 61, 327 => 59, 317 => 56, 312 => 55, 308 => 54, 305 => 53, 301 => 52, 294 => 47, 292 => 46, 289 => 45, 286 => 44, 270 => 43, 268 => 42, 265 => 41, 262 => 40, 259 => 39, 256 => 38, 253 => 37, 250 => 36, 237 => 35, 225 => 32, 220 => 30, 216 => 29, 211 => 28, 209 => 27, 200 => 24, 187 => 23, 176 => 19, 175 => 18, 173 => 17, 160 => 16, 147 => 13, 142 => 12, 129 => 11, 104 => 7, 92 => 4, 79 => 3, 68 => 1, 66 => 9, 53 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block back_to_dashboard %}
{% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 %}
{% endblock back_to_dashboard %}
{% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
{% set currentRoute = app.request.attributes.get(\x27_route\x27) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags(\x27styles\x27, \x27core\x27, \x27core\x27) }}
{% endblock %}
{% block before_navbar %}
{% include \x27Front/Scholar/Partial/_preview_manager_heager.html.twig\x27 with {
\x27channel\x27: channel,
\x27currentRoute\x27: currentRoute,
} %}
{% endblock before_navbar %}
{% block body_markup %}
<body class=\"progression lesson-view {% if is_granted(\x27IS_AUTHENTICATED_REMEMBERED\x27) %}logged-in{% endif %}\"
style=\"font-family: \x27Poppins\x27;\"
id=\"page-training-lesson\"
{% if currentRoute == \x27front_channel_lesson_show\x27 %}
data-training_id={{ training.id }}
data-module_id={{ module.id }}
data-lesson_id={{ lesson.id }}
{% endif %}
>
{% endblock body_markup %}
{% block content %}
{% if currentRoute in [\x27front_channel_lesson_show\x27, \x27front_channel_lesson_show_without_training\x27, \x27manager_channel_module_lesson_show\x27, \x27manager_channel_training_module_lesson_show\x27] %}
{% set trainingModuleLessons = module | get_lessons %}
{% elseif currentRoute in [\x27manager_channel_lesson_show\x27] %}
{% set trainingModuleLessons = [lesson] %}
{% endif %}
{% if app.user %}
{% component \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
{% include \x27Front/Scholar/Partial/_menu_lessons_mobile.html.twig\x27 %}
<div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
<div class=\"row\">
<div class=\"col-md-9 col-12\">
<div>
{% for key, messageType in app.flashes() %}
<div>
{% for message in messageType %}
<div class=\"alert alert-{{ key|replace({\x27error\x27: \x27danger\x27}) }}\">
{{ message | trans }}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<h2 class=\"v2-title-big\">{{- \x27front.scholar.lesson.show.summary_title.label\x27|trans({\x27%name%\x27: lesson.name}) -}}</h2>
{% include \x27Front/Scholar/Partial/_content_alert.html.twig\x27 %}
<div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
{% if lesson is lock_by_interface %}
{% set lessonStats = lesson.lockBy.lessonStats %}
{% else %}
{% set lessonStats = lesson.lessonStats %}
{% endif %}
{% if lessonStats is not null %}
{{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {\x27class\x27: \x27blue-stars\x27, \x27hide_when_null\x27: true}) }}
{% endif %}
<div>
{% if lesson.updatedAt is not null %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: lesson.updatedAt|format_date(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% else %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: lesson.createdAt|format_date(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
<div class=\"description-lesson mt-4 lesson-content\">
<p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
</div>
{% if lesson.objective is not null %}
<div class=\"pt-30px\">
<div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.objectif_cours.label\x27|trans -}}</div>
<p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
</div>
{% endif %}
{% if lesson.lessonPrerequisites|length > 0 %}
<div class=\"pt-30px mb-3\">
<div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.pre_requis.label\x27|trans -}}</div>
{% for prerequisite in lesson.lessonPrerequisites %}
<p class=\"font-size-14 m-0\">{{- \x27- \x27 ~ prerequisite.label -}}</p>
{% endfor %}
</div>
{% endif %}
{% if lesson.minimumTime is not null %}
{% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH\x27h\x27mm\", locale=app.request.locale) %}
{% else %}
{% set minimumTime = null %}
{% endif %}
{% set caseStudy = lesson.caseStudy %}
{% set mcq = lesson.exerciseCount %}
{% if minimumTime or caseStudy or mcq %}
<div class=\"row pt-20px\">
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"{{ asset(\x27build/common/watch.svg\x27, \x27common\x27) }}\"
alt=\"Temps minimum logo\"/>
<div>
<div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.temps_minimum.label\x27|trans -}}</div>
<div class=\"text-subcateg\">{{- minimumTime -}}</div>
</div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-user.svg\x27, \x27common\x27) }}\"
alt=\"Cas pratique logo\"/>
<div>
<div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.cas_pratique.label\x27|trans -}}</div>
{% if caseStudy %}
<div class=\"text-subcateg\">Oui</div>
{% else %}
<div class=\"text-subcateg\">Non</div>
{% endif %}
</div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-pen.svg\x27, \x27common\x27) }}\"
alt=\"QCM logo\"/>
<div>
<div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.qcm.label\x27|trans -}}</div>
{% if mcq %}
<div class=\"text-subcateg\">Oui</div>
{% else %}
<div class=\"text-subcateg\">Non</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
{% if currentRoute == \x27front_channel_lesson_show\x27 %}
{% include \x27Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig\x27 with {
next_informations: get_next_informations_lesson_summary(training, module, lesson),
previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
} %}
{% endif %}
</div>
<div class=\"col-3 d-none d-md-block\">
{% include \x27Front/Scholar/Partial/menu_lessons.html.twig\x27 %}
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
{{ parent() }}
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{% if app.user and currentRoute == \x27front_channel_lesson_show\x27 %}
<script>
var attendanceLessonUrl = \x27{{ url(\x27async_channel_scholar_attendance_lesson\x27, {
\x27channelId\x27: channel.id
}) }}\x27;
</script>
{% endif %}
{{ parent() }}
{% endblock %}
", "Front/Scholar/Lesson/show.html.twig", "/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
}
}