var/cache/dev/twig/46/46d9c56a5f4424dabb2bdbd89ee05046eb2fa78e5da48f62d5d586b9bfe3915c.php line 64

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Front/Scholar/Chapter/show.html.twig */
  14. class __TwigTemplate_a48e03f7d290d42adce9ea69ce8e951f4845455e0379bc26976c54063f6b41a0 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'before_navbar' => [$this'block_before_navbar'],
  26.             'body_markup' => [$this'block_body_markup'],
  27.             'content' => [$this'block_content'],
  28.             'body' => [$this'block_body'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Chapter/show.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Chapter/show.html.twig"));
  44.         // line 2
  45.         if ( !array_key_exists("canSeeMessages"$context)) {
  46.             // line 3
  47.             $context["canSeeMessages"] = true;
  48.         }
  49.         // line 8
  50.         $context["currentRoute"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "attributes", [], "any"falsefalsefalse8), "get", [=> "_route"], "method"falsefalsefalse8);
  51.         // line 9
  52.         $context["enableChatBot"] = ($this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarChapterRuntime')->isChatBotEnabled((isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'9$this->source); })())) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'9$this->source); })()) == "front_channel_chapter_show"));
  53.         // line 1
  54.         $this->parent $this->loadTemplate("base.html.twig""Front/Scholar/Chapter/show.html.twig"1);
  55.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  56.         
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.     }
  61.     // line 6
  62.     public function block_title($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  69.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'6$this->source); })()), "lesson", [], "any"falsefalsefalse6), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  70.         echo " - ";
  71.         $this->displayParentBlock("title"$context$blocks);
  72.         
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.     }
  77.     // line 11
  78.     public function block_stylesheets($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  85.         // line 12
  86.         echo "    ";
  87.         $this->displayParentBlock("stylesheets"$context$blocks);
  88.         echo "
  89.     ";
  90.         // line 13
  91.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles""core""core");
  92.         echo "
  93. ";
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.     }
  99.     // line 16
  100.     public function block_before_navbar($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  107.         // line 17
  108.         echo "    ";
  109.         $this->loadTemplate("Front/Scholar/Partial/_preview_manager_heager.html.twig""Front/Scholar/Chapter/show.html.twig"17)->display(twig_array_merge($context, ["channel" =>         // line 18
  110. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'18$this->source); })()), "currentRoute" =>         // line 19
  111. (isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'19$this->source); })())]));
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.         
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  116.     }
  117.     // line 23
  118.     public function block_body_markup($context, array $blocks = [])
  119.     {
  120.         $macros $this->macros;
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_markup"));
  125.         // line 24
  126.         echo "<body class=\"progression chapter-view ";
  127.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  128.             echo "logged-in";
  129.         }
  130.         echo "\"
  131.       style=\"font-family: 'Poppins';\"
  132.       id=\"page-training-lesson\"
  133.         ";
  134.         // line 27
  135.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'27$this->source); })()) == "front_channel_chapter_show")) {
  136.             // line 28
  137.             echo "            data-training_id=";
  138.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'28$this->source); })()), "id", [], "any"falsefalsefalse28), "html"nulltrue);
  139.             echo "
  140.             data-module_id=";
  141.             // line 29
  142.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'29$this->source); })()), "id", [], "any"falsefalsefalse29), "html"nulltrue);
  143.             echo "
  144.             data-lesson_id=";
  145.             // line 30
  146.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'30$this->source); })()), "id", [], "any"falsefalsefalse30), "html"nulltrue);
  147.             echo "
  148.             data-chapter_id=\"";
  149.             // line 31
  150.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'31$this->source); })()), "id", [], "any"falsefalsefalse31), "html"nulltrue);
  151.             echo "\"
  152.         ";
  153.         }
  154.         // line 33
  155.         echo ">
  156. ";
  157.         
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  159.         
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  161.     }
  162.     // line 36
  163.     public function block_content($context, array $blocks = [])
  164.     {
  165.         $macros $this->macros;
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  170.         // line 37
  171.         echo "    ";
  172.         if (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'37$this->source); })()), [=> "front_channel_chapter_show"=> "manager_channel_module_chapter_show"=> "manager_channel_training_module_chapter_show"])) {
  173.             // line 38
  174.             echo "        ";
  175.             $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.'38$this->source); })()));
  176.             // line 39
  177.             echo "    ";
  178.         } elseif (twig_in_filter((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'39$this->source); })()), [=> "manager_channel_chapter_show_message"=> "manager_channel_chapter_show"])) {
  179.             // line 40
  180.             echo "        ";
  181.             $context["trainingModuleLessons"] = [=> (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'40$this->source); })())];
  182.             // line 41
  183.             echo "    ";
  184.         }
  185.         // line 42
  186.         echo "
  187.     ";
  188.         // line 43
  189.         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.'43$this->source); })()), "user", [], "any"falsefalsefalse43)) {
  190.             // line 44
  191.             echo "        ";
  192. $props $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->embeddedContext("ChannelUserData:CursusLockout"twig_to_array(["cursus" => (($context["cursus"]) ?? (null))]), $context);
  193.             $this->loadTemplate("Front/Scholar/Chapter/show.html.twig""Front/Scholar/Chapter/show.html.twig"44"1335818022")->display($props);
  194.             // line 45
  195.             echo "    ";
  196.         }
  197.         // line 46
  198.         echo "
  199.     ";
  200.         // line 47
  201.         $this->loadTemplate("Front/Scholar/Partial/_menu_lessons_mobile.html.twig""Front/Scholar/Chapter/show.html.twig"47)->display(twig_array_merge($context, ["current_chapter" =>         // line 48
  202. (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'48$this->source); })())]));
  203.         // line 50
  204.         echo "
  205.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  206.         <div class=\"row\">
  207.             <div class=\"col-md-9 col-12\">
  208.                 <div>
  209.                     ";
  210.         // line 55
  211.         $context['_parent'] = $context;
  212.         $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.'55$this->source); })()), "flashes", [], "method"falsefalsefalse55));
  213.         foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
  214.             // line 56
  215.             echo "                        <div>
  216.                             ";
  217.             // line 57
  218.             $context['_parent'] = $context;
  219.             $context['_seq'] = twig_ensure_traversable($context["messageType"]);
  220.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  221.                 // line 58
  222.                 echo "                                <div class=\"alert alert-";
  223.                 echo twig_escape_filter($this->envtwig_replace_filter($context["key"], ["error" => "danger"]), "html"nulltrue);
  224.                 echo "\">
  225.                                     ";
  226.                 // line 59
  227.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html"nulltrue);
  228.                 echo "
  229.                                 </div>
  230.                             ";
  231.             }
  232.             $_parent $context['_parent'];
  233.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  234.             $context array_intersect_key($context$_parent) + $_parent;
  235.             // line 62
  236.             echo "                        </div>
  237.                     ";
  238.         }
  239.         $_parent $context['_parent'];
  240.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['messageType'], $context['_parent'], $context['loop']);
  241.         $context array_intersect_key($context$_parent) + $_parent;
  242.         // line 64
  243.         echo "                </div>
  244.                 <h2 class=\"font-weight-bold font-size-16px\">";
  245.         // line 66
  246.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.title.label", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'66$this->source); })()), "lesson", [], "any"falsefalsefalse66), "name", [], "any"falsefalsefalse66)]), "html"nulltrue);
  247.         echo "</h2>
  248.                 <h1 class=\"v2-title-big\">";
  249.         // line 67
  250.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'67$this->source); })()), "name", [], "any"falsefalsefalse67), "html"nulltrue);
  251.         echo "</h1>
  252.                 ";
  253.         // line 69
  254.         $this->loadTemplate("Front/Scholar/Partial/_content_alert.html.twig""Front/Scholar/Chapter/show.html.twig"69)->display($context);
  255.         // line 70
  256.         echo "
  257.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between p-0\"> ";
  258.         // line 72
  259.         echo "                    <div class=\"d-flex align-items-center\"> ";
  260.         // line 73
  261.         echo "                        <img class=\"star-space chapter-comment-logo\"
  262.                              src=\"";
  263.         // line 74
  264.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/icon-chat.svg""common"), "html"nulltrue);
  265.         echo "\" alt=\"Count comments\"/>
  266.                         <div class=\"marks d-flex justify-content-center align-items-center\">";
  267.         // line 75
  268.         echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarChapterRuntime')->getMessageCount((isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'75$this->source); })())), "html"nulltrue);
  269.         echo "</div>
  270.                     </div>
  271.                     <div class=\"d-flex justify-content-center align-items-center\">";
  272.         // line 79
  273.         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.'79$this->source); })()), "updatedAt", [], "any"falsefalsefalse79))) {
  274.             // line 80
  275.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source,             // line 81
  276. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'81$this->source); })()), "updatedAt", [], "any"falsefalsefalse81), "long"""null"gregorian"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'81$this->source); })()), "request", [], "any"falsefalsefalse81), "locale", [], "any"falsefalsefalse81))]);
  277.         } else {
  278.             // line 84
  279.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source,             // line 85
  280. (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'85$this->source); })()), "createdAt", [], "any"falsefalsefalse85), "long"""null"gregorian"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'85$this->source); })()), "request", [], "any"falsefalsefalse85), "locale", [], "any"falsefalsefalse85))]);
  281.         }
  282.         // line 88
  283.         echo "</div>
  284.                 </div>
  285.                 ";
  286.         // line 92
  287.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'92$this->source); })()), "description", [], "any"falsefalsefalse92))) {
  288.             // line 93
  289.             echo "                    <div class=\"description-lesson mt-4\">
  290.                         <p class=\"text-subcateg description-style\">";
  291.             // line 94
  292.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'94$this->source); })()), "description", [], "any"falsefalsefalse94), "html"nulltrue);
  293.             echo "</p>
  294.                     </div>
  295.                 ";
  296.         }
  297.         // line 97
  298.         echo "
  299.                 <div class=\"mt-4 lesson-content\">";
  300.         // line 98
  301.         echo twig_get_attribute($this->env$this->source, (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'98$this->source); })()), "body", [], "any"falsefalsefalse98);
  302.         echo "</div>
  303.                 ";
  304.         // line 100
  305.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'100$this->source); })()) == "front_channel_chapter_show")) {
  306.             // line 101
  307.             echo "                    ";
  308.             $this->loadTemplate("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig""Front/Scholar/Chapter/show.html.twig"101)->display(twig_array_merge($context, ["next_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsChapter(            // line 102
  309. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'102$this->source); })()), (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'102$this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'102$this->source); })()), (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'102$this->source); })())), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsChapter(            // line 103
  310. (isset($context["training"]) || array_key_exists("training"$context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.'103$this->source); })()), (isset($context["module"]) || array_key_exists("module"$context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.'103$this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson"$context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.'103$this->source); })()), (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'103$this->source); })()))]));
  311.             // line 105
  312.             echo "                ";
  313.         }
  314.         // line 106
  315.         echo "
  316.                 ";
  317.         // line 107
  318.         if (((isset($context["canSeeMessages"]) || array_key_exists("canSeeMessages"$context) ? $context["canSeeMessages"] : (function () { throw new RuntimeError('Variable "canSeeMessages" does not exist.'107$this->source); })()) === true)) {
  319.             // line 108
  320.             echo "                    <div class=\"mt-5 chapter-questions-separator\"></div>
  321.                     <div class=\"mt-5\" id=\"forum-messages\">
  322.                         <div class=\"font-weight-bold font-size-16px mb-4\">";
  323.             // line 111
  324.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.title.label", ["%count%" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarChapterRuntime')->getMessageCount((isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'111$this->source); })()))]), "html"nulltrue);
  325.             echo "</div>
  326.                         ";
  327.             // line 113
  328.             if ((twig_length_filter($this->env, (isset($context["messages"]) || array_key_exists("messages"$context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.'113$this->source); })())) == 0)) {
  329.                 // line 114
  330.                 echo "                            <div>";
  331.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.no_message.label"), "html"nulltrue);
  332.                 echo "</div>
  333.                         ";
  334.             }
  335.             // line 116
  336.             echo "
  337.                         ";
  338.             // line 117
  339.             $context['_parent'] = $context;
  340.             $context['_seq'] = twig_ensure_traversable((isset($context["messages"]) || array_key_exists("messages"$context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.'117$this->source); })()));
  341.             $context['loop'] = [
  342.               'parent' => $context['_parent'],
  343.               'index0' => 0,
  344.               'index'  => 1,
  345.               'first'  => true,
  346.             ];
  347.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  348.                 $length count($context['_seq']);
  349.                 $context['loop']['revindex0'] = $length 1;
  350.                 $context['loop']['revindex'] = $length;
  351.                 $context['loop']['length'] = $length;
  352.                 $context['loop']['last'] = === $length;
  353.             }
  354.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  355.                 // line 118
  356.                 echo "                            ";
  357.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse118) != 0)) {
  358.                     // line 119
  359.                     echo "                                <div class=\"mt-3 mb-3 ml-5 mr-5 chapter-questions-separator\"></div>
  360.                             ";
  361.                 }
  362.                 // line 121
  363.                 echo "
  364.                             ";
  365.                 // line 122
  366.                 $context["messageToAnswer"] = null;
  367.                 // line 123
  368.                 echo "                            ";
  369.                 $context["children"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarChapterRuntime')->getMessageChildren($context["message"]);
  370.                 // line 124
  371.                 echo "                            ";
  372.                 if ((twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'124$this->source); })())) === 0)) {
  373.                     // line 125
  374.                     echo "                                ";
  375.                     $context["messageToAnswer"] = $context["message"];
  376.                     // line 126
  377.                     echo "                            ";
  378.                 }
  379.                 // line 127
  380.                 echo "
  381.                             ";
  382.                 // line 128
  383.                 $this->loadTemplate("Front/Scholar/Chapter/show_forum_message.html.twig""Front/Scholar/Chapter/show.html.twig"128)->display(twig_array_merge($context, ["message" =>                 // line 129
  384. $context["message"], "canDelete" => (                // line 130
  385. (isset($context["is_granted_comment"]) || array_key_exists("is_granted_comment"$context) ? $context["is_granted_comment"] : (function () { throw new RuntimeError('Variable "is_granted_comment" does not exist.'130$this->source); })()) || ( !(null === 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.'130$this->source); })()), "user", [], "any"falsefalsefalse130)) && $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Permission\Twig\Runtime\Info\UserOwnerRuntime')->isOwner(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.'130$this->source); })()), "user", [], "any"falsefalsefalse130), $context["message"]))), "messageToAnswer" =>                 // line 131
  386. (isset($context["messageToAnswer"]) || array_key_exists("messageToAnswer"$context) ? $context["messageToAnswer"] : (function () { throw new RuntimeError('Variable "messageToAnswer" does not exist.'131$this->source); })())]));
  387.                 // line 133
  388.                 echo "
  389.                             ";
  390.                 // line 134
  391.                 $context["messageToAnswer"] = null;
  392.                 // line 135
  393.                 echo "                            ";
  394.                 $context['_parent'] = $context;
  395.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'135$this->source); })()));
  396.                 $context['loop'] = [
  397.                   'parent' => $context['_parent'],
  398.                   'index0' => 0,
  399.                   'index'  => 1,
  400.                   'first'  => true,
  401.                 ];
  402.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  403.                     $length count($context['_seq']);
  404.                     $context['loop']['revindex0'] = $length 1;
  405.                     $context['loop']['revindex'] = $length;
  406.                     $context['loop']['length'] = $length;
  407.                     $context['loop']['last'] = === $length;
  408.                 }
  409.                 foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  410.                     // line 136
  411.                     echo "                                ";
  412.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse136) === true)) {
  413.                         // line 137
  414.                         echo "                                    ";
  415.                         $context["messageToAnswer"] = $context["message"];
  416.                         // line 138
  417.                         echo "                                ";
  418.                     }
  419.                     // line 139
  420.                     echo "                                ";
  421.                     $this->loadTemplate("Front/Scholar/Chapter/show_forum_message.html.twig""Front/Scholar/Chapter/show.html.twig"139)->display(twig_array_merge($context, ["message" =>                     // line 140
  422. $context["child"], "canDelete" => (                    // line 141
  423. (isset($context["is_granted_comment"]) || array_key_exists("is_granted_comment"$context) ? $context["is_granted_comment"] : (function () { throw new RuntimeError('Variable "is_granted_comment" does not exist.'141$this->source); })()) || ( !(null === 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.'141$this->source); })()), "user", [], "any"falsefalsefalse141)) && $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Permission\Twig\Runtime\Info\UserOwnerRuntime')->isOwner(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.'141$this->source); })()), "user", [], "any"falsefalsefalse141), $context["child"]))), "messageToAnswer" =>                     // line 142
  424. (isset($context["messageToAnswer"]) || array_key_exists("messageToAnswer"$context) ? $context["messageToAnswer"] : (function () { throw new RuntimeError('Variable "messageToAnswer" does not exist.'142$this->source); })())]));
  425.                     // line 144
  426.                     echo "                            ";
  427.                     ++$context['loop']['index0'];
  428.                     ++$context['loop']['index'];
  429.                     $context['loop']['first'] = false;
  430.                     if (isset($context['loop']['length'])) {
  431.                         --$context['loop']['revindex0'];
  432.                         --$context['loop']['revindex'];
  433.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  434.                     }
  435.                 }
  436.                 $_parent $context['_parent'];
  437.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  438.                 $context array_intersect_key($context$_parent) + $_parent;
  439.                 // line 145
  440.                 echo "                        ";
  441.                 ++$context['loop']['index0'];
  442.                 ++$context['loop']['index'];
  443.                 $context['loop']['first'] = false;
  444.                 if (isset($context['loop']['length'])) {
  445.                     --$context['loop']['revindex0'];
  446.                     --$context['loop']['revindex'];
  447.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  448.                 }
  449.             }
  450.             $_parent $context['_parent'];
  451.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  452.             $context array_intersect_key($context$_parent) + $_parent;
  453.             // line 146
  454.             echo "
  455.                         ";
  456.             // line 147
  457.             if (array_key_exists("form"$context)) {
  458.                 // line 148
  459.                 echo "                            <div id=\"form-message-anchor\" class=\"row";
  460.                 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.'148$this->source); })()), "user", [], "any"falsefalsefalse148)) {
  461.                     echo " justify-content-center align-items-center";
  462.                 }
  463.                 echo " mt-5\">
  464.                                 ";
  465.                 // line 149
  466.                 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.'149$this->source); })()), "user", [], "any"falsefalsefalse149)) {
  467.                     // line 150
  468.                     echo "                                    <div class=\"col-1 d-none d-md-block\">
  469.                                         ";
  470.                     // line 151
  471.                     if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'151$this->source); })()), "user", [], "any"falsefalsefalse151), "avatarPath", [], "any"falsefalsefalse151))) {
  472.                         // line 152
  473.                         echo "                                            <span class=\"user-account\">
  474.                                             <i class=\"fas fa-user\"></i>
  475.                                         </span>
  476.                                         ";
  477.                     } else {
  478.                         // line 156
  479.                         echo "                                            <img class=\"user-account\" src=\"";
  480.                         echo twig_escape_filter($this->env$this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ImageRunTime')->getUserAvatarThumbnail(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.'156$this->source); })()), "user", [], "any"falsefalsefalse156)), "html"nulltrue);
  481.                         echo "\"
  482.                                                  alt=\"User avatar\">
  483.                                         ";
  484.                     }
  485.                     // line 159
  486.                     echo "                                    </div>
  487.                                     <div class=\"col-md-11 col-12 pr-0 pl-0\">
  488.                                         ";
  489.                     // line 162
  490.                     if (((isset($context["enableChatBot"]) || array_key_exists("enableChatBot"$context) ? $context["enableChatBot"] : (function () { throw new RuntimeError('Variable "enableChatBot" does not exist.'162$this->source); })()) === false)) {
  491.                         // line 163
  492.                         echo "                                            ";
  493.                         echo                         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'163$this->source); })()), 'form_start', ["attr" => ["class" => "m-0 d-flex flex-column flex-md-row"]]);
  494.                         echo "
  495.                                             <div class=\"col-md-10 col-12\">
  496.                                                 <div>";
  497.                         // line 165
  498.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'165$this->source); })()), "content", [], "any"falsefalsefalse165), 'row');
  499.                         echo "</div>
  500.                                                 <div>";
  501.                         // line 166
  502.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'166$this->source); })()), 'errors');
  503.                         echo "</div>
  504.                                             </div>
  505.                                             <div class=\"col-md-2 col-12 mt-send-mobile\">
  506.                                                 <button
  507.                                                         class=\"btn-nellapp-v2\"
  508.                                                         style=\"display: flex;justify-content: space-between;align-items: center;padding: 10px 15px;\"
  509.                                                         type=\"submit\"
  510.                                                 >
  511.                                                     <span>";
  512.                         // line 175
  513.                         echo "Envoyer";
  514.                         echo "</span>
  515.                                                     <i class=\"ml-2 fas fa-paper-plane\"></i>
  516.                                                 </button>
  517.                                             </div>
  518.                                             ";
  519.                         // line 179
  520.                         echo                         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'179$this->source); })()), 'form_end');
  521.                         echo "
  522.                                         ";
  523.                     } else {
  524.                         // line 181
  525.                         echo "                                            <button
  526.                                                     class=\"btn-nellapp-v2\"
  527.                                                     style=\"display: flex;justify-content: space-between;align-items: center;padding: 10px 15px;\"
  528.                                                     type=\"button\"
  529.                                                     data-toggle=\"modal\"
  530.                                                     data-target=\"#chat-bot-modal\"
  531.                                                     id=\"chat-bot-modal-label\"
  532.                                             >
  533.                                                 <span>Posez votre question</span>
  534.                                                 <i class=\"ml-2 fas fa-paper-plane\"></i>
  535.                                             </button>
  536.                                         ";
  537.                     }
  538.                     // line 194
  539.                     echo "                                    </div>
  540.                                 ";
  541.                 } else {
  542.                     // line 196
  543.                     echo "                                    <div class=\"col-1\">
  544.                                     <span class=\"user-account\" style=\"border: 1px solid #dee2e6;\">
  545.                                         <i class=\"fas fa-user\"></i>
  546.                                     </span>
  547.                                     </div>
  548.                                     <div class=\"col-9\">";
  549.                     // line 202
  550.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.modal.please_connect.label"), "html"nulltrue);
  551.                     // line 203
  552.                     echo "</div>
  553.                                     <div class=\"col-2\">
  554.                                         <a href=\"";
  555.                     // line 205
  556.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nellapp_sdk_connect_nellapp");
  557.                     echo "\" class=\"btn-nellapp-v2\">";
  558.                     // line 206
  559.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.modal.login.label"), "html"nulltrue);
  560.                     // line 207
  561.                     echo "</a>
  562.                                     </div>
  563.                                 ";
  564.                 }
  565.                 // line 210
  566.                 echo "                            </div>
  567.                         ";
  568.             }
  569.             // line 212
  570.             echo "                    </div>
  571.                 ";
  572.         }
  573.         // line 214
  574.         echo "            </div>
  575.             <div class=\"col-3 p-0 d-none d-md-block\">
  576.                 ";
  577.         // line 217
  578.         $this->loadTemplate("Front/Scholar/Partial/menu_lessons.html.twig""Front/Scholar/Chapter/show.html.twig"217)->display(twig_array_merge($context, ["current_chapter" =>         // line 218
  579. (isset($context["chapter"]) || array_key_exists("chapter"$context) ? $context["chapter"] : (function () { throw new RuntimeError('Variable "chapter" does not exist.'218$this->source); })())]));
  580.         // line 220
  581.         echo "            </div>
  582.         </div>
  583.     </div>
  584.     ";
  585.         // line 224
  586.         $this->displayParentBlock("content"$context$blocks);
  587.         echo "
  588. ";
  589.         
  590.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  591.         
  592.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  593.     }
  594.     // line 227
  595.     public function block_body($context, array $blocks = [])
  596.     {
  597.         $macros $this->macros;
  598.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  599.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  600.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  601.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  602.         // line 228
  603.         echo "    ";
  604.         $this->displayParentBlock("body"$context$blocks);
  605.         echo "
  606.     ";
  607.         // line 230
  608.         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.'230$this->source); })()), "user", [], "any"falsefalsefalse230)) {
  609.             // line 231
  610.             echo "        <!-- Modal -->
  611.         <div class=\"modal fade\" id=\"modalMessage\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\"
  612.              style=\"font-family: 'Poppins'\">
  613.             <div class=\"modal-dialog modal-dialog-centered forum-message-modal\" role=\"document\">
  614.                 <div class=\"modal-content border-8\">
  615.                     <div class=\"modal-header\">
  616.                         <h5 class=\"modal-title title-main-modal-message question-title\"
  617.                             style=\"font-size: 0.875rem;font-weight: bold;\">
  618.                             ";
  619.             // line 239
  620.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.modal.title.label"), "html"nulltrue);
  621.             echo "
  622.                         </h5>
  623.                         <h5 class=\"modal-title title-main-modal-message response-title\"
  624.                             style=\"display:none; font-size: 0.875rem; font-weight: bold\">
  625.                             ";
  626.             // line 243
  627.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.modal.title_response.label"), "html"nulltrue);
  628.             echo "
  629.                             <span class=\"span-response-title\"></span>
  630.                         </h5>
  631.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  632.                             <span aria-hidden=\"true\">&times;</span>
  633.                         </button>
  634.                     </div>
  635.                     <div class=\"modal-body\" style=\"padding: 20px 24px 0px 24px;\">
  636.                         <div id=\"modal-response-message\"></div>
  637.                         ";
  638.             // line 253
  639.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formAnswer"]) || array_key_exists("formAnswer"$context) ? $context["formAnswer"] : (function () { throw new RuntimeError('Variable "formAnswer" does not exist.'253$this->source); })()), 'form_start');
  640.             echo "
  641.                         ";
  642.             // line 254
  643.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formAnswer"]) || array_key_exists("formAnswer"$context) ? $context["formAnswer"] : (function () { throw new RuntimeError('Variable "formAnswer" does not exist.'254$this->source); })()), "content", [], "any"falsefalsefalse254), 'row');
  644.             echo "
  645.                     </div>
  646.                     <div class=\"modal-footer\" style=\"padding:8px 24px 16px 24px;\">
  647.                         <button type=\"button\" class=\"btn-close-modale\"
  648.                                 data-dismiss=\"modal\">";
  649.             // line 259
  650.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.message.modal.close.label"), "html"nulltrue);
  651.             echo "</button>
  652.                         <button type=\"submit\"
  653.                                 class=\"btn-valid-modale\">";
  654.             // line 261
  655.             echo twig_escape_filter($this->env, ((array_key_exists("button_label"$context)) ? (_twig_default_filter((isset($context["button_label"]) || array_key_exists("button_label"$context) ? $context["button_label"] : (function () { throw new RuntimeError('Variable "button_label" does not exist.'261$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("message.entity.save.label"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("message.entity.save.label"))), "html"nulltrue);
  656.             echo "</button>
  657.                     </div>
  658.                     ";
  659.             // line 264
  660.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formAnswer"]) || array_key_exists("formAnswer"$context) ? $context["formAnswer"] : (function () { throw new RuntimeError('Variable "formAnswer" does not exist.'264$this->source); })()), 'form_end');
  661.             echo "
  662.                 </div>
  663.             </div>
  664.         </div>
  665.         ";
  666.             // line 269
  667.             if (((isset($context["enableChatBot"]) || array_key_exists("enableChatBot"$context) ? $context["enableChatBot"] : (function () { throw new RuntimeError('Variable "enableChatBot" does not exist.'269$this->source); })()) === true)) {
  668.                 // line 270
  669.                 echo "            ";
  670.                 $this->loadTemplate("Front/Scholar/Chapter/_chat_bot_modal.html.twig""Front/Scholar/Chapter/show.html.twig"270)->display($context);
  671.                 // line 271
  672.                 echo "        ";
  673.             }
  674.             // line 272
  675.             echo "    ";
  676.         }
  677.         
  678.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  679.         
  680.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  681.     }
  682.     // line 275
  683.     public function block_javascripts($context, array $blocks = [])
  684.     {
  685.         $macros $this->macros;
  686.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  687.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  688.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  689.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  690.         // line 276
  691.         echo "    ";
  692.         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.'276$this->source); })()), "user", [], "any"falsefalsefalse276) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'276$this->source); })()) == "front_channel_chapter_show"))) {
  693.             // line 277
  694.             echo "        <script>
  695.             var attendanceUrl = '";
  696.             // line 278
  697.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("async_channel_scholar_attendance_chapter", ["channelId" => twig_get_attribute($this->env$this->source,             // line 279
  698. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'279$this->source); })()), "id", [], "any"falsefalsefalse279)]), "html"nulltrue);
  699.             // line 280
  700.             echo "';
  701.         </script>
  702.     ";
  703.         }
  704.         // line 283
  705.         echo "
  706.     ";
  707.         // line 284
  708.         $this->displayParentBlock("javascripts"$context$blocks);
  709.         echo "
  710. ";
  711.         
  712.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  713.         
  714.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  715.     }
  716.     public function getTemplateName()
  717.     {
  718.         return "Front/Scholar/Chapter/show.html.twig";
  719.     }
  720.     public function isTraitable()
  721.     {
  722.         return false;
  723.     }
  724.     public function getDebugInfo()
  725.     {
  726.         return array (  770 => 284,  767 => 283,  762 => 280,  760 => 279,  759 => 278,  756 => 277,  753 => 276,  743 => 275,  732 => 272,  729 => 271,  726 => 270,  724 => 269,  716 => 264,  710 => 261,  705 => 259,  697 => 254,  693 => 253,  680 => 243,  673 => 239,  663 => 231,  661 => 230,  655 => 228,  645 => 227,  633 => 224,  627 => 220,  625 => 218,  624 => 217,  619 => 214,  615 => 212,  611 => 210,  606 => 207,  604 => 206,  601 => 205,  597 => 203,  595 => 202,  588 => 196,  584 => 194,  569 => 181,  564 => 179,  557 => 175,  545 => 166,  541 => 165,  535 => 163,  533 => 162,  528 => 159,  521 => 156,  515 => 152,  513 => 151,  510 => 150,  508 => 149,  501 => 148,  499 => 147,  496 => 146,  482 => 145,  468 => 144,  466 => 142,  465 => 141,  464 => 140,  462 => 139,  459 => 138,  456 => 137,  453 => 136,  435 => 135,  433 => 134,  430 => 133,  428 => 131,  427 => 130,  426 => 129,  425 => 128,  422 => 127,  419 => 126,  416 => 125,  413 => 124,  410 => 123,  408 => 122,  405 => 121,  401 => 119,  398 => 118,  381 => 117,  378 => 116,  372 => 114,  370 => 113,  365 => 111,  360 => 108,  358 => 107,  355 => 106,  352 => 105,  350 => 103,  349 => 102,  347 => 101,  345 => 100,  340 => 98,  337 => 97,  331 => 94,  328 => 93,  326 => 92,  320 => 88,  317 => 85,  316 => 84,  313 => 81,  312 => 80,  310 => 79,  304 => 75,  300 => 74,  297 => 73,  295 => 72,  292 => 70,  290 => 69,  285 => 67,  281 => 66,  277 => 64,  270 => 62,  261 => 59,  256 => 58,  252 => 57,  249 => 56,  245 => 55,  238 => 50,  236 => 48,  235 => 47,  232 => 46,  229 => 45,  225 => 44,  223 => 43,  220 => 42,  217 => 41,  214 => 40,  211 => 39,  208 => 38,  205 => 37,  195 => 36,  184 => 33,  179 => 31,  175 => 30,  171 => 29,  166 => 28,  164 => 27,  155 => 24,  145 => 23,  135 => 19,  134 => 18,  132 => 17,  122 => 16,  110 => 13,  105 => 12,  95 => 11,  74 => 6,  63 => 1,  61 => 9,  59 => 8,  56 => 3,  54 => 2,  41 => 1,);
  727.     }
  728.     public function getSourceContext()
  729.     {
  730.         return new Source("{% extends 'base.html.twig' %}
  731. {% if canSeeMessages is not defined %}
  732.     {% set canSeeMessages = true %}
  733. {% endif %}
  734. {% block title %}{{ chapter.lesson.name }} - {{ parent() }}{% endblock %}
  735. {% set currentRoute = app.request.attributes.get('_route') %}
  736. {% set enableChatBot = chapter is chat_bot_enabled and currentRoute == 'front_channel_chapter_show' %}
  737. {% block stylesheets %}
  738.     {{ parent() }}
  739.     {{ encore_entry_link_tags('styles', 'core', 'core') }}
  740. {% endblock %}
  741. {% block before_navbar %}
  742.     {% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
  743.         'channel': channel,
  744.         'currentRoute': currentRoute,
  745.     } %}
  746. {% endblock before_navbar %}
  747. {% block body_markup %}
  748. <body class=\"progression chapter-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
  749.       style=\"font-family: 'Poppins';\"
  750.       id=\"page-training-lesson\"
  751.         {% if currentRoute == 'front_channel_chapter_show' %}
  752.             data-training_id={{ training.id }}
  753.             data-module_id={{ module.id }}
  754.             data-lesson_id={{ lesson.id }}
  755.             data-chapter_id=\"{{ chapter.id }}\"
  756.         {% endif %}
  757. >
  758. {% endblock body_markup %}
  759. {% block content %}
  760.     {% if currentRoute in ['front_channel_chapter_show', 'manager_channel_module_chapter_show', 'manager_channel_training_module_chapter_show'] %}
  761.         {% set trainingModuleLessons = module | get_lessons %}
  762.     {% elseif currentRoute in ['manager_channel_chapter_show_message', 'manager_channel_chapter_show'] %}
  763.         {% set trainingModuleLessons = [lesson] %}
  764.     {% endif %}
  765.     {% if app.user %}
  766.         {% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
  767.     {% endif %}
  768.     {% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' with {
  769.         'current_chapter': chapter
  770.     } %}
  771.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  772.         <div class=\"row\">
  773.             <div class=\"col-md-9 col-12\">
  774.                 <div>
  775.                     {% for key, messageType in app.flashes() %}
  776.                         <div>
  777.                             {% for message in messageType %}
  778.                                 <div class=\"alert alert-{{ key|replace({'error': 'danger'}) }}\">
  779.                                     {{ message | trans }}
  780.                                 </div>
  781.                             {% endfor %}
  782.                         </div>
  783.                     {% endfor %}
  784.                 </div>
  785.                 <h2 class=\"font-weight-bold font-size-16px\">{{- 'front.scholar.lesson.show.title.label'|trans({'%name%': chapter.lesson.name}) -}}</h2>
  786.                 <h1 class=\"v2-title-big\">{{- chapter.name -}}</h1>
  787.                 {% include 'Front/Scholar/Partial/_content_alert.html.twig' %}
  788.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between p-0\"> {# align-items-baseline #}
  789.                     <div class=\"d-flex align-items-center\"> {# align-items-baseline #}
  790.                         <img class=\"star-space chapter-comment-logo\"
  791.                              src=\"{{- asset('build/common/icon-chat.svg', 'common') -}}\" alt=\"Count comments\"/>
  792.                         <div class=\"marks d-flex justify-content-center align-items-center\">{{ chapter | getMessageCount }}</div>
  793.                     </div>
  794.                     <div class=\"d-flex justify-content-center align-items-center\">
  795.                         {%- if lesson.updatedAt is not null -%}
  796.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  797.                                 '%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
  798.                             })|raw -}}
  799.                         {%- else -%}
  800.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  801.                                 '%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
  802.                             })|raw -}}
  803.                         {%- endif -%}
  804.                     </div>
  805.                 </div>
  806.                 {% if chapter.description is not null %}
  807.                     <div class=\"description-lesson mt-4\">
  808.                         <p class=\"text-subcateg description-style\">{{- chapter.description -}}</p>
  809.                     </div>
  810.                 {% endif %}
  811.                 <div class=\"mt-4 lesson-content\">{{- chapter.body|raw -}}</div>
  812.                 {% if currentRoute == 'front_channel_chapter_show' %}
  813.                     {% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
  814.                         next_informations: get_next_informations_chapter(training, module, lesson, chapter),
  815.                         previous_informations: get_previous_informations_chapter(training, module, lesson, chapter),
  816.                     } %}
  817.                 {% endif %}
  818.                 {% if canSeeMessages is same as true %}
  819.                     <div class=\"mt-5 chapter-questions-separator\"></div>
  820.                     <div class=\"mt-5\" id=\"forum-messages\">
  821.                         <div class=\"font-weight-bold font-size-16px mb-4\">{{- 'front.scholar.lesson.show.message.title.label'|trans({'%count%': chapter|getMessageCount}) -}}</div>
  822.                         {% if messages|length == 0 %}
  823.                             <div>{{- 'front.scholar.lesson.show.message.no_message.label'|trans -}}</div>
  824.                         {% endif %}
  825.                         {% for message in messages %}
  826.                             {% if loop.index0 != 0 %}
  827.                                 <div class=\"mt-3 mb-3 ml-5 mr-5 chapter-questions-separator\"></div>
  828.                             {% endif %}
  829.                             {% set messageToAnswer = null %}
  830.                             {% set children = message|getMessageChildren %}
  831.                             {% if  children|length is same as 0 %}
  832.                                 {% set messageToAnswer = message %}
  833.                             {% endif %}
  834.                             {% include 'Front/Scholar/Chapter/show_forum_message.html.twig' with {
  835.                                 'message': message,
  836.                                 'canDelete': is_granted_comment or app.user is not null and app.user is owner_of(message),
  837.                                 'messageToAnswer': messageToAnswer
  838.                             } %}
  839.                             {% set messageToAnswer = null %}
  840.                             {% for child in children %}
  841.                                 {% if loop.last is same as true %}
  842.                                     {% set messageToAnswer = message %}
  843.                                 {% endif %}
  844.                                 {% include 'Front/Scholar/Chapter/show_forum_message.html.twig' with {
  845.                                     'message': child,
  846.                                     'canDelete': is_granted_comment or app.user is not null and app.user is owner_of(child),
  847.                                     'messageToAnswer': messageToAnswer
  848.                                 } %}
  849.                             {% endfor %}
  850.                         {% endfor %}
  851.                         {% if form is defined %}
  852.                             <div id=\"form-message-anchor\" class=\"row{% if not app.user %} justify-content-center align-items-center{% endif %} mt-5\">
  853.                                 {% if app.user %}
  854.                                     <div class=\"col-1 d-none d-md-block\">
  855.                                         {% if app.user.avatarPath is null %}
  856.                                             <span class=\"user-account\">
  857.                                             <i class=\"fas fa-user\"></i>
  858.                                         </span>
  859.                                         {% else %}
  860.                                             <img class=\"user-account\" src=\"{{ get_user_avatar_thumbnail(app.user) }}\"
  861.                                                  alt=\"User avatar\">
  862.                                         {% endif %}
  863.                                     </div>
  864.                                     <div class=\"col-md-11 col-12 pr-0 pl-0\">
  865.                                         {% if enableChatBot is same as false %}
  866.                                             {{ form_start(form, {'attr': {'class': 'm-0 d-flex flex-column flex-md-row'}}) }}
  867.                                             <div class=\"col-md-10 col-12\">
  868.                                                 <div>{{ form_row(form.content) }}</div>
  869.                                                 <div>{{ form_errors(form) }}</div>
  870.                                             </div>
  871.                                             <div class=\"col-md-2 col-12 mt-send-mobile\">
  872.                                                 <button
  873.                                                         class=\"btn-nellapp-v2\"
  874.                                                         style=\"display: flex;justify-content: space-between;align-items: center;padding: 10px 15px;\"
  875.                                                         type=\"submit\"
  876.                                                 >
  877.                                                     <span>{{ \"Envoyer\" }}</span>
  878.                                                     <i class=\"ml-2 fas fa-paper-plane\"></i>
  879.                                                 </button>
  880.                                             </div>
  881.                                             {{ form_end(form) }}
  882.                                         {% else %}
  883.                                             <button
  884.                                                     class=\"btn-nellapp-v2\"
  885.                                                     style=\"display: flex;justify-content: space-between;align-items: center;padding: 10px 15px;\"
  886.                                                     type=\"button\"
  887.                                                     data-toggle=\"modal\"
  888.                                                     data-target=\"#chat-bot-modal\"
  889.                                                     id=\"chat-bot-modal-label\"
  890.                                             >
  891.                                                 <span>Posez votre question</span>
  892.                                                 <i class=\"ml-2 fas fa-paper-plane\"></i>
  893.                                             </button>
  894.                                         {% endif %}
  895.                                     </div>
  896.                                 {% else %}
  897.                                     <div class=\"col-1\">
  898.                                     <span class=\"user-account\" style=\"border: 1px solid #dee2e6;\">
  899.                                         <i class=\"fas fa-user\"></i>
  900.                                     </span>
  901.                                     </div>
  902.                                     <div class=\"col-9\">
  903.                                         {{- 'front.scholar.lesson.show.message.modal.please_connect.label'|trans -}}
  904.                                     </div>
  905.                                     <div class=\"col-2\">
  906.                                         <a href=\"{{ path('nellapp_sdk_connect_nellapp') }}\" class=\"btn-nellapp-v2\">
  907.                                             {{- 'front.scholar.lesson.show.message.modal.login.label'|trans -}}
  908.                                         </a>
  909.                                     </div>
  910.                                 {% endif %}
  911.                             </div>
  912.                         {% endif %}
  913.                     </div>
  914.                 {% endif %}
  915.             </div>
  916.             <div class=\"col-3 p-0 d-none d-md-block\">
  917.                 {% include 'Front/Scholar/Partial/menu_lessons.html.twig' with {
  918.                     'current_chapter': chapter
  919.                 } %}
  920.             </div>
  921.         </div>
  922.     </div>
  923.     {{ parent() }}
  924. {% endblock content %}
  925. {% block body %}
  926.     {{ parent() }}
  927.     {% if app.user %}
  928.         <!-- Modal -->
  929.         <div class=\"modal fade\" id=\"modalMessage\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\"
  930.              style=\"font-family: 'Poppins'\">
  931.             <div class=\"modal-dialog modal-dialog-centered forum-message-modal\" role=\"document\">
  932.                 <div class=\"modal-content border-8\">
  933.                     <div class=\"modal-header\">
  934.                         <h5 class=\"modal-title title-main-modal-message question-title\"
  935.                             style=\"font-size: 0.875rem;font-weight: bold;\">
  936.                             {{ 'front.scholar.lesson.show.message.modal.title.label'|trans }}
  937.                         </h5>
  938.                         <h5 class=\"modal-title title-main-modal-message response-title\"
  939.                             style=\"display:none; font-size: 0.875rem; font-weight: bold\">
  940.                             {{ 'front.scholar.lesson.show.message.modal.title_response.label'|trans }}
  941.                             <span class=\"span-response-title\"></span>
  942.                         </h5>
  943.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  944.                             <span aria-hidden=\"true\">&times;</span>
  945.                         </button>
  946.                     </div>
  947.                     <div class=\"modal-body\" style=\"padding: 20px 24px 0px 24px;\">
  948.                         <div id=\"modal-response-message\"></div>
  949.                         {{ form_start(formAnswer) }}
  950.                         {{ form_row(formAnswer.content) }}
  951.                     </div>
  952.                     <div class=\"modal-footer\" style=\"padding:8px 24px 16px 24px;\">
  953.                         <button type=\"button\" class=\"btn-close-modale\"
  954.                                 data-dismiss=\"modal\">{{ 'front.scholar.lesson.show.message.modal.close.label'|trans }}</button>
  955.                         <button type=\"submit\"
  956.                                 class=\"btn-valid-modale\">{{ button_label|default('message.entity.save.label'|trans) }}</button>
  957.                     </div>
  958.                     {{ form_end(formAnswer) }}
  959.                 </div>
  960.             </div>
  961.         </div>
  962.         {% if enableChatBot is same as true %}
  963.             {% include 'Front/Scholar/Chapter/_chat_bot_modal.html.twig' %}
  964.         {% endif %}
  965.     {% endif %}
  966. {% endblock %}
  967. {% block javascripts %}
  968.     {% if app.user and currentRoute == 'front_channel_chapter_show' %}
  969.         <script>
  970.             var attendanceUrl = '{{ url('async_channel_scholar_attendance_chapter', {
  971.                 'channelId': channel.id
  972.             }) }}';
  973.         </script>
  974.     {% endif %}
  975.     {{ parent() }}
  976. {% endblock %}
  977. ""Front/Scholar/Chapter/show.html.twig""/var/www/html/templates/Front/Scholar/Chapter/show.html.twig");
  978.     }
  979. }
  980. /* Front/Scholar/Chapter/show.html.twig */
  981. class __TwigTemplate_a48e03f7d290d42adce9ea69ce8e951f4845455e0379bc26976c54063f6b41a0___1335818022 extends Template
  982. {
  983.     private $source;
  984.     private $macros = [];
  985.     public function __construct(Environment $env)
  986.     {
  987.         parent::__construct($env);
  988.         $this->source $this->getSourceContext();
  989.         $this->blocks = [
  990.         ];
  991.     }
  992.     protected function doGetParent(array $context)
  993.     {
  994.         // line 44
  995.         return "@NellappSDK/Components/channelUserData/cursus_lockout.html.twig";
  996.     }
  997.     protected function doDisplay(array $context, array $blocks = [])
  998.     {
  999.         $macros $this->macros;
  1000.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1001.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Chapter/show.html.twig"));
  1002.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1003.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Chapter/show.html.twig"));
  1004.         $this->parent $this->loadTemplate("@NellappSDK/Components/channelUserData/cursus_lockout.html.twig""Front/Scholar/Chapter/show.html.twig"44);
  1005.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  1006.         
  1007.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1008.         
  1009.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1010.     }
  1011.     public function getTemplateName()
  1012.     {
  1013.         return "Front/Scholar/Chapter/show.html.twig";
  1014.     }
  1015.     public function isTraitable()
  1016.     {
  1017.         return false;
  1018.     }
  1019.     public function getDebugInfo()
  1020.     {
  1021.         return array (  1107 => 44,  770 => 284,  767 => 283,  762 => 280,  760 => 279,  759 => 278,  756 => 277,  753 => 276,  743 => 275,  732 => 272,  729 => 271,  726 => 270,  724 => 269,  716 => 264,  710 => 261,  705 => 259,  697 => 254,  693 => 253,  680 => 243,  673 => 239,  663 => 231,  661 => 230,  655 => 228,  645 => 227,  633 => 224,  627 => 220,  625 => 218,  624 => 217,  619 => 214,  615 => 212,  611 => 210,  606 => 207,  604 => 206,  601 => 205,  597 => 203,  595 => 202,  588 => 196,  584 => 194,  569 => 181,  564 => 179,  557 => 175,  545 => 166,  541 => 165,  535 => 163,  533 => 162,  528 => 159,  521 => 156,  515 => 152,  513 => 151,  510 => 150,  508 => 149,  501 => 148,  499 => 147,  496 => 146,  482 => 145,  468 => 144,  466 => 142,  465 => 141,  464 => 140,  462 => 139,  459 => 138,  456 => 137,  453 => 136,  435 => 135,  433 => 134,  430 => 133,  428 => 131,  427 => 130,  426 => 129,  425 => 128,  422 => 127,  419 => 126,  416 => 125,  413 => 124,  410 => 123,  408 => 122,  405 => 121,  401 => 119,  398 => 118,  381 => 117,  378 => 116,  372 => 114,  370 => 113,  365 => 111,  360 => 108,  358 => 107,  355 => 106,  352 => 105,  350 => 103,  349 => 102,  347 => 101,  345 => 100,  340 => 98,  337 => 97,  331 => 94,  328 => 93,  326 => 92,  320 => 88,  317 => 85,  316 => 84,  313 => 81,  312 => 80,  310 => 79,  304 => 75,  300 => 74,  297 => 73,  295 => 72,  292 => 70,  290 => 69,  285 => 67,  281 => 66,  277 => 64,  270 => 62,  261 => 59,  256 => 58,  252 => 57,  249 => 56,  245 => 55,  238 => 50,  236 => 48,  235 => 47,  232 => 46,  229 => 45,  225 => 44,  223 => 43,  220 => 42,  217 => 41,  214 => 40,  211 => 39,  208 => 38,  205 => 37,  195 => 36,  184 => 33,  179 => 31,  175 => 30,  171 => 29,  166 => 28,  164 => 27,  155 => 24,  145 => 23,  135 => 19,  134 => 18,  132 => 17,  122 => 16,  110 => 13,  105 => 12,  95 => 11,  74 => 6,  63 => 1,  61 => 9,  59 => 8,  56 => 3,  54 => 2,  41 => 1,);
  1022.     }
  1023.     public function getSourceContext()
  1024.     {
  1025.         return new Source("{% extends 'base.html.twig' %}
  1026. {% if canSeeMessages is not defined %}
  1027.     {% set canSeeMessages = true %}
  1028. {% endif %}
  1029. {% block title %}{{ chapter.lesson.name }} - {{ parent() }}{% endblock %}
  1030. {% set currentRoute = app.request.attributes.get('_route') %}
  1031. {% set enableChatBot = chapter is chat_bot_enabled and currentRoute == 'front_channel_chapter_show' %}
  1032. {% block stylesheets %}
  1033.     {{ parent() }}
  1034.     {{ encore_entry_link_tags('styles', 'core', 'core') }}
  1035. {% endblock %}
  1036. {% block before_navbar %}
  1037.     {% include 'Front/Scholar/Partial/_preview_manager_heager.html.twig' with {
  1038.         'channel': channel,
  1039.         'currentRoute': currentRoute,
  1040.     } %}
  1041. {% endblock before_navbar %}
  1042. {% block body_markup %}
  1043. <body class=\"progression chapter-view {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}logged-in{% endif %}\"
  1044.       style=\"font-family: 'Poppins';\"
  1045.       id=\"page-training-lesson\"
  1046.         {% if currentRoute == 'front_channel_chapter_show' %}
  1047.             data-training_id={{ training.id }}
  1048.             data-module_id={{ module.id }}
  1049.             data-lesson_id={{ lesson.id }}
  1050.             data-chapter_id=\"{{ chapter.id }}\"
  1051.         {% endif %}
  1052. >
  1053. {% endblock body_markup %}
  1054. {% block content %}
  1055.     {% if currentRoute in ['front_channel_chapter_show', 'manager_channel_module_chapter_show', 'manager_channel_training_module_chapter_show'] %}
  1056.         {% set trainingModuleLessons = module | get_lessons %}
  1057.     {% elseif currentRoute in ['manager_channel_chapter_show_message', 'manager_channel_chapter_show'] %}
  1058.         {% set trainingModuleLessons = [lesson] %}
  1059.     {% endif %}
  1060.     {% if app.user %}
  1061.         {% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
  1062.     {% endif %}
  1063.     {% include 'Front/Scholar/Partial/_menu_lessons_mobile.html.twig' with {
  1064.         'current_chapter': chapter
  1065.     } %}
  1066.     <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  1067.         <div class=\"row\">
  1068.             <div class=\"col-md-9 col-12\">
  1069.                 <div>
  1070.                     {% for key, messageType in app.flashes() %}
  1071.                         <div>
  1072.                             {% for message in messageType %}
  1073.                                 <div class=\"alert alert-{{ key|replace({'error': 'danger'}) }}\">
  1074.                                     {{ message | trans }}
  1075.                                 </div>
  1076.                             {% endfor %}
  1077.                         </div>
  1078.                     {% endfor %}
  1079.                 </div>
  1080.                 <h2 class=\"font-weight-bold font-size-16px\">{{- 'front.scholar.lesson.show.title.label'|trans({'%name%': chapter.lesson.name}) -}}</h2>
  1081.                 <h1 class=\"v2-title-big\">{{- chapter.name -}}</h1>
  1082.                 {% include 'Front/Scholar/Partial/_content_alert.html.twig' %}
  1083.                 <div class=\"col-12 col-lg-6 d-flex justify-content-between p-0\"> {# align-items-baseline #}
  1084.                     <div class=\"d-flex align-items-center\"> {# align-items-baseline #}
  1085.                         <img class=\"star-space chapter-comment-logo\"
  1086.                              src=\"{{- asset('build/common/icon-chat.svg', 'common') -}}\" alt=\"Count comments\"/>
  1087.                         <div class=\"marks d-flex justify-content-center align-items-center\">{{ chapter | getMessageCount }}</div>
  1088.                     </div>
  1089.                     <div class=\"d-flex justify-content-center align-items-center\">
  1090.                         {%- if lesson.updatedAt is not null -%}
  1091.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1092.                                 '%date%': lesson.updatedAt|format_date('long', locale=app.request.locale),
  1093.                             })|raw -}}
  1094.                         {%- else -%}
  1095.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1096.                                 '%date%': lesson.createdAt|format_date('long', locale=app.request.locale),
  1097.                             })|raw -}}
  1098.                         {%- endif -%}
  1099.                     </div>
  1100.                 </div>
  1101.                 {% if chapter.description is not null %}
  1102.                     <div class=\"description-lesson mt-4\">
  1103.                         <p class=\"text-subcateg description-style\">{{- chapter.description -}}</p>
  1104.                     </div>
  1105.                 {% endif %}
  1106.                 <div class=\"mt-4 lesson-content\">{{- chapter.body|raw -}}</div>
  1107.                 {% if currentRoute == 'front_channel_chapter_show' %}
  1108.                     {% include 'Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig' with {
  1109.                         next_informations: get_next_informations_chapter(training, module, lesson, chapter),
  1110.                         previous_informations: get_previous_informations_chapter(training, module, lesson, chapter),
  1111.                     } %}
  1112.                 {% endif %}
  1113.                 {% if canSeeMessages is same as true %}
  1114.                     <div class=\"mt-5 chapter-questions-separator\"></div>
  1115.                     <div class=\"mt-5\" id=\"forum-messages\">
  1116.                         <div class=\"font-weight-bold font-size-16px mb-4\">{{- 'front.scholar.lesson.show.message.title.label'|trans({'%count%': chapter|getMessageCount}) -}}</div>
  1117.                         {% if messages|length == 0 %}
  1118.                             <div>{{- 'front.scholar.lesson.show.message.no_message.label'|trans -}}</div>
  1119.                         {% endif %}
  1120.                         {% for message in messages %}
  1121.                             {% if loop.index0 != 0 %}
  1122.                                 <div class=\"mt-3 mb-3 ml-5 mr-5 chapter-questions-separator\"></div>
  1123.                             {% endif %}
  1124.                             {% set messageToAnswer = null %}
  1125.                             {% set children = message|getMessageChildren %}
  1126.                             {% if  children|length is same as 0 %}
  1127.                                 {% set messageToAnswer = message %}
  1128.                             {% endif %}
  1129.                             {% include 'Front/Scholar/Chapter/show_forum_message.html.twig' with {
  1130.                                 'message': message,
  1131.                                 'canDelete': is_granted_comment or app.user is not null and app.user is owner_of(message),
  1132.                                 'messageToAnswer': messageToAnswer
  1133.                             } %}
  1134.                             {% set messageToAnswer = null %}
  1135.                             {% for child in children %}
  1136.                                 {% if loop.last is same as true %}
  1137.                                     {% set messageToAnswer = message %}
  1138.                                 {% endif %}
  1139.                                 {% include 'Front/Scholar/Chapter/show_forum_message.html.twig' with {
  1140.                                     'message': child,
  1141.                                     'canDelete': is_granted_comment or app.user is not null and app.user is owner_of(child),
  1142.                                     'messageToAnswer': messageToAnswer
  1143.                                 } %}
  1144.                             {% endfor %}
  1145.                         {% endfor %}
  1146.                         {% if form is defined %}
  1147.                             <div id=\"form-message-anchor\" class=\"row{% if not app.user %} justify-content-center align-items-center{% endif %} mt-5\">
  1148.                                 {% if app.user %}
  1149.                                     <div class=\"col-1 d-none d-md-block\">
  1150.                                         {% if app.user.avatarPath is null %}
  1151.                                             <span class=\"user-account\">
  1152.                                             <i class=\"fas fa-user\"></i>
  1153.                                         </span>
  1154.                                         {% else %}
  1155.                                             <img class=\"user-account\" src=\"{{ get_user_avatar_thumbnail(app.user) }}\"
  1156.                                                  alt=\"User avatar\">
  1157.                                         {% endif %}
  1158.                                     </div>
  1159.                                     <div class=\"col-md-11 col-12 pr-0 pl-0\">
  1160.                                         {% if enableChatBot is same as false %}
  1161.                                             {{ form_start(form, {'attr': {'class': 'm-0 d-flex flex-column flex-md-row'}}) }}
  1162.                                             <div class=\"col-md-10 col-12\">
  1163.                                                 <div>{{ form_row(form.content) }}</div>
  1164.                                                 <div>{{ form_errors(form) }}</div>
  1165.                                             </div>
  1166.                                             <div class=\"col-md-2 col-12 mt-send-mobile\">
  1167.                                                 <button
  1168.                                                         class=\"btn-nellapp-v2\"
  1169.                                                         style=\"display: flex;justify-content: space-between;align-items: center;padding: 10px 15px;\"
  1170.                                                         type=\"submit\"
  1171.                                                 >
  1172.                                                     <span>{{ \"Envoyer\" }}</span>
  1173.                                                     <i class=\"ml-2 fas fa-paper-plane\"></i>
  1174.                                                 </button>
  1175.                                             </div>
  1176.                                             {{ form_end(form) }}
  1177.                                         {% else %}
  1178.                                             <button
  1179.                                                     class=\"btn-nellapp-v2\"
  1180.                                                     style=\"display: flex;justify-content: space-between;align-items: center;padding: 10px 15px;\"
  1181.                                                     type=\"button\"
  1182.                                                     data-toggle=\"modal\"
  1183.                                                     data-target=\"#chat-bot-modal\"
  1184.                                                     id=\"chat-bot-modal-label\"
  1185.                                             >
  1186.                                                 <span>Posez votre question</span>
  1187.                                                 <i class=\"ml-2 fas fa-paper-plane\"></i>
  1188.                                             </button>
  1189.                                         {% endif %}
  1190.                                     </div>
  1191.                                 {% else %}
  1192.                                     <div class=\"col-1\">
  1193.                                     <span class=\"user-account\" style=\"border: 1px solid #dee2e6;\">
  1194.                                         <i class=\"fas fa-user\"></i>
  1195.                                     </span>
  1196.                                     </div>
  1197.                                     <div class=\"col-9\">
  1198.                                         {{- 'front.scholar.lesson.show.message.modal.please_connect.label'|trans -}}
  1199.                                     </div>
  1200.                                     <div class=\"col-2\">
  1201.                                         <a href=\"{{ path('nellapp_sdk_connect_nellapp') }}\" class=\"btn-nellapp-v2\">
  1202.                                             {{- 'front.scholar.lesson.show.message.modal.login.label'|trans -}}
  1203.                                         </a>
  1204.                                     </div>
  1205.                                 {% endif %}
  1206.                             </div>
  1207.                         {% endif %}
  1208.                     </div>
  1209.                 {% endif %}
  1210.             </div>
  1211.             <div class=\"col-3 p-0 d-none d-md-block\">
  1212.                 {% include 'Front/Scholar/Partial/menu_lessons.html.twig' with {
  1213.                     'current_chapter': chapter
  1214.                 } %}
  1215.             </div>
  1216.         </div>
  1217.     </div>
  1218.     {{ parent() }}
  1219. {% endblock content %}
  1220. {% block body %}
  1221.     {{ parent() }}
  1222.     {% if app.user %}
  1223.         <!-- Modal -->
  1224.         <div class=\"modal fade\" id=\"modalMessage\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\"
  1225.              style=\"font-family: 'Poppins'\">
  1226.             <div class=\"modal-dialog modal-dialog-centered forum-message-modal\" role=\"document\">
  1227.                 <div class=\"modal-content border-8\">
  1228.                     <div class=\"modal-header\">
  1229.                         <h5 class=\"modal-title title-main-modal-message question-title\"
  1230.                             style=\"font-size: 0.875rem;font-weight: bold;\">
  1231.                             {{ 'front.scholar.lesson.show.message.modal.title.label'|trans }}
  1232.                         </h5>
  1233.                         <h5 class=\"modal-title title-main-modal-message response-title\"
  1234.                             style=\"display:none; font-size: 0.875rem; font-weight: bold\">
  1235.                             {{ 'front.scholar.lesson.show.message.modal.title_response.label'|trans }}
  1236.                             <span class=\"span-response-title\"></span>
  1237.                         </h5>
  1238.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1239.                             <span aria-hidden=\"true\">&times;</span>
  1240.                         </button>
  1241.                     </div>
  1242.                     <div class=\"modal-body\" style=\"padding: 20px 24px 0px 24px;\">
  1243.                         <div id=\"modal-response-message\"></div>
  1244.                         {{ form_start(formAnswer) }}
  1245.                         {{ form_row(formAnswer.content) }}
  1246.                     </div>
  1247.                     <div class=\"modal-footer\" style=\"padding:8px 24px 16px 24px;\">
  1248.                         <button type=\"button\" class=\"btn-close-modale\"
  1249.                                 data-dismiss=\"modal\">{{ 'front.scholar.lesson.show.message.modal.close.label'|trans }}</button>
  1250.                         <button type=\"submit\"
  1251.                                 class=\"btn-valid-modale\">{{ button_label|default('message.entity.save.label'|trans) }}</button>
  1252.                     </div>
  1253.                     {{ form_end(formAnswer) }}
  1254.                 </div>
  1255.             </div>
  1256.         </div>
  1257.         {% if enableChatBot is same as true %}
  1258.             {% include 'Front/Scholar/Chapter/_chat_bot_modal.html.twig' %}
  1259.         {% endif %}
  1260.     {% endif %}
  1261. {% endblock %}
  1262. {% block javascripts %}
  1263.     {% if app.user and currentRoute == 'front_channel_chapter_show' %}
  1264.         <script>
  1265.             var attendanceUrl = '{{ url('async_channel_scholar_attendance_chapter', {
  1266.                 'channelId': channel.id
  1267.             }) }}';
  1268.         </script>
  1269.     {% endif %}
  1270.     {{ parent() }}
  1271. {% endblock %}
  1272. ""Front/Scholar/Chapter/show.html.twig""/var/www/html/templates/Front/Scholar/Chapter/show.html.twig");
  1273.     }
  1274. }