<?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_50540142eddd25d0e057df0f88eb0e8629eb74b124c49ff41e05e17d8176de98 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'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_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 7
echo " ";
$this->loadTemplate("Front/Scholar/Partial/_preview_manager_heager.html.twig", "Front/Scholar/Lesson/show.html.twig", 7)->display(twig_array_merge($context, ["channel" => // line 8
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 8, $this->source); })()), "currentRoute" => // line 9
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 9, $this->source); })())]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
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 14
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 17
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 17, $this->source); })()) == "front_channel_lesson_show")) {
// line 18
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.', 18, $this->source); })()), "id", [], "any", false, false, false, 18), "html", null, true);
echo "
data-module_id=";
// line 19
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.', 19, $this->source); })()), "id", [], "any", false, false, false, 19), "html", null, true);
echo "
data-lesson_id=";
// line 20
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.', 20, $this->source); })()), "id", [], "any", false, false, false, 20), "html", null, true);
echo "
";
}
// line 22
echo ">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 25
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 26
echo " ";
if (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 26, $this->source); })()), [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 27
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.', 27, $this->source); })()));
// line 28
echo " ";
} elseif (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 28, $this->source); })()), [0 => "manager_channel_lesson_show"])) {
// line 29
echo " ";
$context["trainingModuleLessons"] = [0 => (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 29, $this->source); })())];
// line 30
echo " ";
}
// line 31
echo "
";
// line 32
$this->loadTemplate("Front/Scholar/Partial/_menu_lessons_mobile.html.twig", "Front/Scholar/Lesson/show.html.twig", 32)->display($context);
// line 33
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 38
$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.', 38, $this->source); })()), "flashes", [], "method", false, false, false, 38));
foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
// line 39
echo " <div>
";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messageType"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 41
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, twig_replace_filter($context["key"], ["error" => "danger"]), "html", null, true);
echo "\">
";
// line 42
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 45
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 47
echo " </div>
<h2 class=\"v2-title-big\">";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.summary_title.label", ["%name%" => twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 49, $this->source); })()), "name", [], "any", false, false, false, 49)]), "html", null, true);
echo "</h2>
<div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
";
// line 52
if ($this->env->getRuntime('App\Twig\Runtime\LockContentRuntime')->isLockByInterface((isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 52, $this->source); })()))) {
// line 53
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.', 53, $this->source); })()), "lockBy", [], "any", false, false, false, 53), "lessonStats", [], "any", false, false, false, 53);
// line 54
echo " ";
} else {
// line 55
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.', 55, $this->source); })()), "lessonStats", [], "any", false, false, false, 55);
// line 56
echo " ";
}
// line 57
echo " ";
if ( !(null === (isset($context["lessonStats"]) || array_key_exists("lessonStats", $context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.', 57, $this->source); })()))) {
// line 58
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.', 58, $this->source); })()), "lessonReviewMarkAvg", [], "any", false, false, false, 58), 5, ["class" => "blue-stars", "hide_when_null" => true]);
echo "
";
}
// line 60
echo "
<div>
";
// line 62
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 62, $this->source); })()), "updatedAt", [], "any", false, false, false, 62))) {
// line 63
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 64
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 64, $this->source); })()), "updatedAt", [], "any", false, false, false, 64), "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.', 64, $this->source); })()), "request", [], "any", false, false, false, 64), "locale", [], "any", false, false, false, 64))]);
} else {
// line 67
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 68
(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 68, $this->source); })()), "createdAt", [], "any", false, false, false, 68), "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.', 68, $this->source); })()), "request", [], "any", false, false, false, 68), "locale", [], "any", false, false, false, 68))]);
}
// line 71
echo " </div>
</div>
<div class=\"description-lesson mt-4\">
<p class=\"text-subcateg description-style\">";
// line 75
echo twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 75, $this->source); })()), "description", [], "any", false, false, false, 75);
echo "</p>
</div>
";
// line 78
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 78, $this->source); })()), "objective", [], "any", false, false, false, 78))) {
// line 79
echo " <div class=\"pt-30px\">
<div class=\"font-weight-bold pb-10px\">";
// line 80
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 81
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.', 81, $this->source); })()), "objective", [], "any", false, false, false, 81), "html", null, true);
echo "</p>
</div>
";
}
// line 84
echo "
";
// line 85
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.', 85, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 85)) > 0)) {
// line 86
echo " <div class=\"pt-30px mb-3\">
<div class=\"font-weight-bold pb-10px\">";
// line 87
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 88
$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.', 88, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 88));
foreach ($context['_seq'] as $context["_key"] => $context["prerequisite"]) {
// line 89
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, 89)), "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 91
echo " </div>
";
}
// line 93
echo "
";
// line 94
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 94, $this->source); })()), "minimumTime", [], "any", false, false, false, 94))) {
// line 95
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.', 95, $this->source); })()), "minimumTime", [], "any", false, false, false, 95), "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.', 95, $this->source); })()), "request", [], "any", false, false, false, 95), "locale", [], "any", false, false, false, 95));
// line 96
echo " ";
} else {
// line 97
echo " ";
$context["minimumTime"] = null;
// line 98
echo " ";
}
// line 99
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.', 99, $this->source); })()), "caseStudy", [], "any", false, false, false, 99);
// line 100
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.', 100, $this->source); })()), "exerciseCount", [], "any", false, false, false, 100);
// line 101
echo "
";
// line 102
if ((((isset($context["minimumTime"]) || array_key_exists("minimumTime", $context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.', 102, $this->source); })()) || (isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 102, $this->source); })())) || (isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 102, $this->source); })()))) {
// line 103
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 106
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 109
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 110
echo twig_escape_filter($this->env, (isset($context["minimumTime"]) || array_key_exists("minimumTime", $context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.', 110, $this->source); })()), "html", 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 116
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 119
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 120
if ((isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 120, $this->source); })())) {
// line 121
echo " <div class=\"text-subcateg\">Oui</div>
";
} else {
// line 123
echo " <div class=\"text-subcateg\">Non</div>
";
}
// line 125
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 130
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 133
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 134
if ((isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 134, $this->source); })())) {
// line 135
echo " <div class=\"text-subcateg\">Oui</div>
";
} else {
// line 137
echo " <div class=\"text-subcateg\">Non</div>
";
}
// line 139
echo " </div>
</div>
</div>
</div>
";
}
// line 144
echo "
";
// line 145
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 145, $this->source); })()) == "front_channel_lesson_show")) {
// line 146
echo " ";
$this->loadTemplate("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig", "Front/Scholar/Lesson/show.html.twig", 146)->display(twig_array_merge($context, ["next_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsLessonSummary( // line 147
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 147, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 147, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 147, $this->source); })())), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsLessonSummary( // line 148
(isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 148, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 148, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 148, $this->source); })()))]));
// line 150
echo " ";
}
// line 151
echo " </div>
<div class=\"col-3 p-0 d-none d-md-block\">
";
// line 154
$this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig", "Front/Scholar/Lesson/show.html.twig", 154)->display($context);
// line 155
echo " </div>
</div>
</div>
";
// line 159
$this->displayParentBlock("content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 162
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 163
echo " ";
$this->displayParentBlock("inner_content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 166
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 167
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 170
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 171
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.', 171, $this->source); })()), "user", [], "any", false, false, false, 171) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 171, $this->source); })()) == "front_channel_lesson_show"))) {
// line 172
echo " <script>
var attendanceLessonUrl = '";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("async_channel_scholar_attendance_lesson", ["channelId" => twig_get_attribute($this->env, $this->source, // line 174
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 174, $this->source); })()), "id", [], "any", false, false, false, 174)]), "html", null, true);
// line 175
echo "';
</script>
";
}
// line 178
echo "
";
// line 179
$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 ( 546 => 179, 543 => 178, 538 => 175, 536 => 174, 535 => 173, 532 => 172, 529 => 171, 519 => 170, 506 => 167, 496 => 166, 483 => 163, 473 => 162, 461 => 159, 455 => 155, 453 => 154, 448 => 151, 445 => 150, 443 => 148, 442 => 147, 440 => 146, 438 => 145, 435 => 144, 428 => 139, 424 => 137, 420 => 135, 418 => 134, 414 => 133, 408 => 130, 401 => 125, 397 => 123, 393 => 121, 391 => 120, 387 => 119, 381 => 116, 372 => 110, 368 => 109, 362 => 106, 357 => 103, 355 => 102, 352 => 101, 349 => 100, 346 => 99, 343 => 98, 340 => 97, 337 => 96, 334 => 95, 332 => 94, 329 => 93, 325 => 91, 316 => 89, 312 => 88, 308 => 87, 305 => 86, 303 => 85, 300 => 84, 294 => 81, 290 => 80, 287 => 79, 285 => 78, 279 => 75, 273 => 71, 270 => 68, 269 => 67, 266 => 64, 265 => 63, 263 => 62, 259 => 60, 253 => 58, 250 => 57, 247 => 56, 244 => 55, 241 => 54, 238 => 53, 236 => 52, 230 => 49, 226 => 47, 219 => 45, 210 => 42, 205 => 41, 201 => 40, 198 => 39, 194 => 38, 187 => 33, 185 => 32, 182 => 31, 179 => 30, 176 => 29, 173 => 28, 170 => 27, 167 => 26, 157 => 25, 146 => 22, 141 => 20, 137 => 19, 132 => 18, 130 => 17, 121 => 14, 111 => 13, 101 => 9, 100 => 8, 98 => 7, 88 => 6, 67 => 2, 56 => 1, 54 => 4, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% 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 %}
{% 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>
<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");
}
}