<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Front/Scholar/Lesson/show.html.twig */
class __TwigTemplate_29c8d6ba70c948197238331e477696e148be3365a717477dc5d3b2a443e179c0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'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)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
// line 4
$context["currentRoute"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "attributes", [], "any", false, false, false, 4), "get", [0 => "_route"], "method", false, false, false, 4);
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "Front/Scholar/Lesson/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, 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.', 2, $this->source); })()), "name", [], "any", false, false, false, 2), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 7
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 8
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles", "core", "core");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_before_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
// line 12
echo " ";
$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
(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
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 14, $this->source); })())]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_body_markup($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
// line 19
echo "<body class=\"progression lesson-view ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo "logged-in";
}
echo "\"
style=\"font-family: 'Poppins';\"
id=\"page-training-lesson\"
";
// line 22
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")) {
// line 23
echo " data-training_id=";
echo twig_escape_filter($this->env, twig_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", false, false, false, 23), "html", null, true);
echo "
data-module_id=";
// line 24
echo twig_escape_filter($this->env, twig_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", false, false, false, 24), "html", null, true);
echo "
data-lesson_id=";
// line 25
echo twig_escape_filter($this->env, 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.', 25, $this->source); })()), "id", [], "any", false, false, false, 25), "html", null, true);
echo "
";
}
// line 27
echo ">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 30
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 31
echo " ";
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); })()), [0 => "front_channel_lesson_show", 1 => "front_channel_lesson_show_without_training", 2 => "manager_channel_module_lesson_show", 3 => "manager_channel_training_module_lesson_show"])) {
// line 32
echo " ";
$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); })()));
// line 33
echo " ";
} 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); })()), [0 => "manager_channel_lesson_show"])) {
// line 34
echo " ";
$context["trainingModuleLessons"] = [0 => (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 34, $this->source); })())];
// line 35
echo " ";
}
// line 36
echo "
";
// line 37
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", false, false, false, 37)) {
// line 38
echo " ";
$props = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->embeddedContext("ChannelUserData:CursusLockout", twig_to_array(["cursus" => (($context["cursus"]) ?? (null))]), $context);
$this->loadTemplate("Front/Scholar/Lesson/show.html.twig", "Front/Scholar/Lesson/show.html.twig", 38, "1902190137")->display($props);
// line 39
echo " ";
}
// line 40
echo "
";
// line 41
$this->loadTemplate("Front/Scholar/Partial/_menu_lessons_mobile.html.twig", "Front/Scholar/Lesson/show.html.twig", 41)->display($context);
// line 42
echo "
<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 47
$context['_parent'] = $context;
$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", false, false, false, 47));
foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
// line 48
echo " <div>
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messageType"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 50
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, twig_replace_filter($context["key"], ["error" => "danger"]), "html", null, true);
echo "\">
";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['messageType'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo " </div>
<h2 class=\"v2-title-big\">";
// line 58
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", false, false, false, 58)]), "html", null, true);
echo "</h2>
";
// line 60
$this->loadTemplate("Front/Scholar/Partial/_content_alert.html.twig", "Front/Scholar/Lesson/show.html.twig", 60)->display($context);
// line 61
echo "
<div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
";
// line 63
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); })()))) {
// line 64
echo " ";
$context["lessonStats"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 64, $this->source); })()), "lockBy", [], "any", false, false, false, 64), "lessonStats", [], "any", false, false, false, 64);
// line 65
echo " ";
} else {
// line 66
echo " ";
$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", false, false, false, 66);
// line 67
echo " ";
}
// line 68
echo " ";
if ( !(null === (isset($context["lessonStats"]) || array_key_exists("lessonStats", $context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.', 68, $this->source); })()))) {
// line 69
echo " ";
echo $this->env->getRuntime('App\Twig\Runtime\RatingRuntime')->getRatingComponent($this->env, twig_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", false, false, false, 69), 5, ["class" => "blue-stars", "hide_when_null" => true]);
echo "
";
}
// line 71
echo "
<div>
";
// line 73
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", false, false, false, 73))) {
// line 74
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, // line 75
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 75, $this->source); })()), "updatedAt", [], "any", false, false, false, 75), "long", "", null, "gregorian", twig_get_attribute($this->env, $this->source, 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.', 75, $this->source); })()), "request", [], "any", false, false, false, 75), "locale", [], "any", false, false, false, 75))]);
} else {
// line 78
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, // line 79
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 79, $this->source); })()), "createdAt", [], "any", false, false, false, 79), "long", "", null, "gregorian", twig_get_attribute($this->env, $this->source, 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.', 79, $this->source); })()), "request", [], "any", false, false, false, 79), "locale", [], "any", false, false, false, 79))]);
}
// line 82
echo " </div>
</div>
<div class=\"description-lesson mt-4\">
<p class=\"text-subcateg description-style\">";
// line 86
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", false, false, false, 86);
echo "</p>
</div>
";
// line 89
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", false, false, false, 89))) {
// line 90
echo " <div class=\"pt-30px\">
<div class=\"font-weight-bold pb-10px\">";
// line 91
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.objectif_cours.label"), "html", null, true);
echo "</div>
<p class=\"text-subcateg description-style\">";
// line 92
echo twig_escape_filter($this->env, 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.', 92, $this->source); })()), "objective", [], "any", false, false, false, 92), "html", null, true);
echo "</p>
</div>
";
}
// line 95
echo "
";
// line 96
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 96, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 96)) > 0)) {
// line 97
echo " <div class=\"pt-30px mb-3\">
<div class=\"font-weight-bold pb-10px\">";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.pre_requis.label"), "html", null, true);
echo "</div>
";
// line 99
$context['_parent'] = $context;
$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", false, false, false, 99));
foreach ($context['_seq'] as $context["_key"] => $context["prerequisite"]) {
// line 100
echo " <p class=\"font-size-14 m-0\">";
echo twig_escape_filter($this->env, ("- " . twig_get_attribute($this->env, $this->source, $context["prerequisite"], "label", [], "any", false, false, false, 100)), "html", null, true);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prerequisite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
echo " </div>
";
}
// line 104
echo "
";
// line 105
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", false, false, false, 105))) {
// line 106
echo " ";
$context["minimumTime"] = $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, 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.', 106, $this->source); })()), "minimumTime", [], "any", false, false, false, 106), "medium", "medium", "HH'h'mm", null, "gregorian", twig_get_attribute($this->env, $this->source, 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.', 106, $this->source); })()), "request", [], "any", false, false, false, 106), "locale", [], "any", false, false, false, 106));
// line 107
echo " ";
} else {
// line 108
echo " ";
$context["minimumTime"] = null;
// line 109
echo " ";
}
// line 110
echo " ";
$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", false, false, false, 110);
// line 111
echo " ";
$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", false, false, false, 111);
// line 112
echo "
";
// line 113
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); })()))) {
// line 114
echo " <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 117
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/watch.svg", "common"), "html", null, true);
echo "\"
alt=\"Temps minimum logo\"/>
<div>
<div class=\"font-weight-bold\">";
// line 120
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.temps_minimum.label"), "html", null, true);
echo "</div>
<div class=\"text-subcateg\">";
// line 121
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", null, true);
echo "</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 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-user.svg", "common"), "html", null, true);
echo "\"
alt=\"Cas pratique logo\"/>
<div>
<div class=\"font-weight-bold\">";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.label"), "html", null, true);
echo "</div>
";
// line 131
if ((isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 131, $this->source); })())) {
// line 132
echo " <div class=\"text-subcateg\">Oui</div>
";
} else {
// line 134
echo " <div class=\"text-subcateg\">Non</div>
";
}
// line 136
echo " </div>
</div>
</div>
<div class=\"col-6 col-md-4 pt-10px\">
<div class=\"d-flex flex-row\">
<img class=\"small-svg\" src=\"";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-pen.svg", "common"), "html", null, true);
echo "\"
alt=\"QCM logo\"/>
<div>
<div class=\"font-weight-bold\">";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.qcm.label"), "html", null, true);
echo "</div>
";
// line 145
if ((isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 145, $this->source); })())) {
// line 146
echo " <div class=\"text-subcateg\">Oui</div>
";
} else {
// line 148
echo " <div class=\"text-subcateg\">Non</div>
";
}
// line 150
echo " </div>
</div>
</div>
</div>
";
}
// line 155
echo "
";
// line 156
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")) {
// line 157
echo " ";
$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
(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
(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); })()))]));
// line 161
echo " ";
}
// line 162
echo " </div>
<div class=\"col-3 p-0 d-none d-md-block\">
";
// line 165
$this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig", "Front/Scholar/Lesson/show.html.twig", 165)->display($context);
// line 166
echo " </div>
</div>
</div>
";
// line 170
$this->displayParentBlock("content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 173
public function block_inner_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 174
echo " ";
$this->displayParentBlock("inner_content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 177
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 178
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 181
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 182
echo " ";
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", false, false, false, 182) && ((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"))) {
// line 183
echo " <script>
var attendanceLessonUrl = '";
// line 184
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
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 185, $this->source); })()), "id", [], "any", false, false, false, 185)]), "html", null, true);
// line 186
echo "';
</script>
";
}
// line 189
echo "
";
// line 190
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Front/Scholar/Lesson/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('styles', 'core', 'core') }}
{% endblock %}
{% block before_navbar %}
{% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
'channel': channel,
'currentRoute': currentRoute,
} %}
{% endblock before_navbar %}
{% block body_markup %}
<body class=\"progression lesson-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
style=\"font-family: 'Poppins';\"
id=\"page-training-lesson\"
{% if currentRoute == 'front_channel_lesson_show' %}
data-training_id={{ training.id }}
data-module_id={{ module.id }}
data-lesson_id={{ lesson.id }}
{% endif %}
>
{% endblock body_markup %}
{% block content %}
{% if currentRoute in ['front_channel_lesson_show', 'front_channel_lesson_show_without_training', 'manager_channel_module_lesson_show', 'manager_channel_training_module_lesson_show'] %}
{% set trainingModuleLessons = module | get_lessons %}
{% elseif currentRoute in ['manager_channel_lesson_show'] %}
{% set trainingModuleLessons = [lesson] %}
{% endif %}
{% if app.user %}
{% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
{% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' %}
<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({'error': 'danger'}) }}\">
{{ message | trans }}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<h2 class=\"v2-title-big\">{{- 'front.scholar.lesson.show.summary_title.label'|trans({'%name%': lesson.name}) -}}</h2>
{% include 'Front/Scholar/Partial/_content_alert.html.twig' %}
<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, {'class': 'blue-stars', 'hide_when_null': true}) }}
{% endif %}
<div>
{% if lesson.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
<div class=\"description-lesson mt-4\">
<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\">{{- 'front.scholar.lesson.show.objectif_cours.label'|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\">{{- 'front.scholar.lesson.show.pre_requis.label'|trans -}}</div>
{% for prerequisite in lesson.lessonPrerequisites %}
<p class=\"font-size-14 m-0\">{{- '- ' ~ prerequisite.label -}}</p>
{% endfor %}
</div>
{% endif %}
{% if lesson.minimumTime is not null %}
{% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH'h'mm\", 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('build/common/watch.svg', 'common') }}\"
alt=\"Temps minimum logo\"/>
<div>
<div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.temps_minimum.label'|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('build/common/sheet-user.svg', 'common') }}\"
alt=\"Cas pratique logo\"/>
<div>
<div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.cas_pratique.label'|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('build/common/sheet-pen.svg', 'common') }}\"
alt=\"QCM logo\"/>
<div>
<div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.qcm.label'|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 == 'front_channel_lesson_show' %}
{% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' 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 p-0 d-none d-md-block\">
{% include 'Front/Scholar/Partial/menu_lessons.html.twig' %}
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
{{ parent() }}
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{% if app.user and currentRoute == 'front_channel_lesson_show' %}
<script>
var attendanceLessonUrl = '{{ url('async_channel_scholar_attendance_lesson', {
'channelId': channel.id
}) }}';
</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_29c8d6ba70c948197238331e477696e148be3365a717477dc5d3b2a443e179c0___1902190137 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 38
return "@NellappSDK/Components/channelUserData/cursus_lockout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
$this->parent = $this->loadTemplate("@NellappSDK/Components/channelUserData/cursus_lockout.html.twig", "Front/Scholar/Lesson/show.html.twig", 38);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Front/Scholar/Lesson/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('styles', 'core', 'core') }}
{% endblock %}
{% block before_navbar %}
{% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
'channel': channel,
'currentRoute': currentRoute,
} %}
{% endblock before_navbar %}
{% block body_markup %}
<body class=\"progression lesson-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
style=\"font-family: 'Poppins';\"
id=\"page-training-lesson\"
{% if currentRoute == 'front_channel_lesson_show' %}
data-training_id={{ training.id }}
data-module_id={{ module.id }}
data-lesson_id={{ lesson.id }}
{% endif %}
>
{% endblock body_markup %}
{% block content %}
{% if currentRoute in ['front_channel_lesson_show', 'front_channel_lesson_show_without_training', 'manager_channel_module_lesson_show', 'manager_channel_training_module_lesson_show'] %}
{% set trainingModuleLessons = module | get_lessons %}
{% elseif currentRoute in ['manager_channel_lesson_show'] %}
{% set trainingModuleLessons = [lesson] %}
{% endif %}
{% if app.user %}
{% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
{% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' %}
<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({'error': 'danger'}) }}\">
{{ message | trans }}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<h2 class=\"v2-title-big\">{{- 'front.scholar.lesson.show.summary_title.label'|trans({'%name%': lesson.name}) -}}</h2>
{% include 'Front/Scholar/Partial/_content_alert.html.twig' %}
<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, {'class': 'blue-stars', 'hide_when_null': true}) }}
{% endif %}
<div>
{% if lesson.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
<div class=\"description-lesson mt-4\">
<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\">{{- 'front.scholar.lesson.show.objectif_cours.label'|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\">{{- 'front.scholar.lesson.show.pre_requis.label'|trans -}}</div>
{% for prerequisite in lesson.lessonPrerequisites %}
<p class=\"font-size-14 m-0\">{{- '- ' ~ prerequisite.label -}}</p>
{% endfor %}
</div>
{% endif %}
{% if lesson.minimumTime is not null %}
{% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH'h'mm\", 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('build/common/watch.svg', 'common') }}\"
alt=\"Temps minimum logo\"/>
<div>
<div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.temps_minimum.label'|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('build/common/sheet-user.svg', 'common') }}\"
alt=\"Cas pratique logo\"/>
<div>
<div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.cas_pratique.label'|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('build/common/sheet-pen.svg', 'common') }}\"
alt=\"QCM logo\"/>
<div>
<div class=\"font-weight-bold\">{{- 'front.scholar.lesson.show.qcm.label'|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 == 'front_channel_lesson_show' %}
{% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' 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 p-0 d-none d-md-block\">
{% include 'Front/Scholar/Partial/menu_lessons.html.twig' %}
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
{{ parent() }}
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{% if app.user and currentRoute == 'front_channel_lesson_show' %}
<script>
var attendanceLessonUrl = '{{ url('async_channel_scholar_attendance_lesson', {
'channelId': channel.id
}) }}';
</script>
{% endif %}
{{ parent() }}
{% endblock %}
", "Front/Scholar/Lesson/show.html.twig", "/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
}
}