var/cache/dev/twig/e0/e04dff2eaac740f583d701b398ec4a444212ff4cf08dd7da20ed5da6db3d562d.php line 43

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