var/cache/dev/twig/9b/9b9ca1aa5d39ec0c628457e70dfa2cd3d01a5a1cc24508a95b044f3000e65214.php line 59

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/Training/show.html.twig */
  14. class __TwigTemplate_463832754a223d6b82c017c3faf085b84c0c59653fbbbd2dca2cbfdbbe4119ca 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'before_navbar' => [$this'block_before_navbar'],
  25.             'title' => [$this'block_title'],
  26.             'content' => [$this'block_content'],
  27.             'inner_content' => [$this'block_inner_content'],
  28.             'body' => [$this'block_body'],
  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/Training/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/Training/show.html.twig"));
  43.         // line 3
  44.         $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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "attributes", [], "any"falsefalsefalse3), "get", [=> "_route"], "method"falsefalsefalse3);
  45.         // line 4
  46.         $context["has_front_access"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("FRONT_ACCESS", ["training" =>         // line 5
  47. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'5$this->source); })())]);
  48.         // line 1
  49.         $this->parent $this->loadTemplate("base.html.twig""Front/Scholar/Training/show.html.twig"1);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     // line 8
  57.     public function block_stylesheets($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  64.         // line 9
  65.         echo "    ";
  66.         $this->displayParentBlock("stylesheets"$context$blocks);
  67.         echo "
  68.     ";
  69.         // line 10
  70.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles""core""core");
  71.         echo "
  72. ";
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.     }
  78.     // line 13
  79.     public function block_before_navbar($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  86.         // line 14
  87.         echo "    ";
  88.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'14$this->source); })()) == "manager_channel_training_show")) {
  89.             // line 15
  90.             echo "        <div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
  91.             ";
  92.             // line 17
  93.             $context["headerReturnLink"] = null;
  94.             // line 18
  95.             echo "            ";
  96.             if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'18$this->source); })()) == "manager_channel_training_show")) {
  97.                 // line 19
  98.                 echo "                ";
  99.                 $context["headerReturnLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_trainings", ["channelId" => twig_get_attribute($this->env$this->source, (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'19$this->source); })()), "id", [], "any"falsefalsefalse19)]);
  100.                 // line 20
  101.                 echo "            ";
  102.             }
  103.             // line 21
  104.             echo "
  105.             <div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
  106.             <div style=\"font-weight: bold\"><a href=\"";
  107.             // line 23
  108.             echo twig_escape_filter($this->env, (isset($context["headerReturnLink"]) || array_key_exists("headerReturnLink"$context) ? $context["headerReturnLink"] : (function () { throw new RuntimeError('Variable "headerReturnLink" does not exist.'23$this->source); })()), "html"nulltrue);
  109.             echo "\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
  110.         </div>
  111.     ";
  112.         }
  113.         
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  115.         
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  117.     }
  118.     // line 28
  119.     public function block_title($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  126.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'28$this->source); })()), "name", [], "any"falsefalsefalse28), "html"nulltrue);
  127.         echo " - ";
  128.         $this->displayParentBlock("title"$context$blocks);
  129.         
  130.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  131.         
  132.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  133.     }
  134.     // line 29
  135.     public function block_content($context, array $blocks = [])
  136.     {
  137.         $macros $this->macros;
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  140.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  142.         // line 30
  143.         echo "    ";
  144.         $context["advice_avg"] = $this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->adviceAvgByTraining((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'30$this->source); })()));
  145.         // line 31
  146.         echo "    ";
  147.         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.'31$this->source); })()), "user", [], "any"falsefalsefalse31)) {
  148.             // line 32
  149.             echo "        ";
  150. $props $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->embeddedContext("ChannelUserData:CursusLockout"twig_to_array(["cursus" => (($context["cursus"]) ?? (null))]), $context);
  151.             $this->loadTemplate("Front/Scholar/Training/show.html.twig""Front/Scholar/Training/show.html.twig"32"1768536394")->display($props);
  152.             // line 33
  153.             echo "    ";
  154.         }
  155.         // line 34
  156.         echo "
  157.     <div class=\"jumbotron-v2 mb-4\">
  158.         <div class=\"container\">
  159.             <h2 class=\"v2-title-big\">";
  160.         // line 38
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.title.label", ["%name%" => twig_get_attribute($this->env$this->source,         // line 39
  162. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'39$this->source); })()), "name", [], "any"falsefalsefalse39)]), "html"nulltrue);
  163.         // line 41
  164.         echo "</h2>
  165.             <div class=\"md-none\">
  166.                 <div class=\"info-content mt-4 ";
  167.         // line 44
  168.         if (((isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'44$this->source); })()) === null)) {
  169.             echo " info-without-advice ";
  170.         }
  171.         echo "\">
  172.                     <div>
  173.                         <i class=\"fas fa-users\"></i>
  174.                         <p>";
  175.         // line 47
  176.         echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->countCursusForTraining((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'47$this->source); })())), "html"nulltrue);
  177.         echo "</p>
  178.                     </div>
  179.                     ";
  180.         // line 49
  181.         if ( !((isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'49$this->source); })()) === null)) {
  182.             // line 50
  183.             echo "                        <div>
  184.                             <i class=\"fas fa-star\"></i>
  185.                             <p>";
  186.             // line 52
  187.             echo twig_escape_filter($this->env, (isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'52$this->source); })()), "html"nulltrue);
  188.             echo " (";
  189.             echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->getCountAdviceTraining((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'52$this->source); })())), "html"nulltrue);
  190.             echo ")</p>
  191.                         </div>
  192.                     ";
  193.         }
  194.         // line 55
  195.         echo "                    <div class=\"dot-div\"></div>
  196.                     <div>
  197.                         ";
  198.         // line 57
  199.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'57$this->source); })()), "updatedAt", [], "any"falsefalsefalse57))) {
  200.             // line 58
  201.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source,             // line 59
  202. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'59$this->source); })()), "updatedAt", [], "any"falsefalsefalse59), "long""medium"""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.'59$this->source); })()), "request", [], "any"falsefalsefalse59), "locale", [], "any"falsefalsefalse59))]);
  203.         } else {
  204.             // line 62
  205.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source,             // line 63
  206. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'63$this->source); })()), "createdAt", [], "any"falsefalsefalse63), "long""medium"""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.'63$this->source); })()), "request", [], "any"falsefalsefalse63), "locale", [], "any"falsefalsefalse63))]);
  207.         }
  208.         // line 66
  209.         echo "                    </div>
  210.                 </div>
  211.             </div>
  212.             <div class=\"md-set\">
  213.                 <div class=\"info-content mt-4\">
  214.                     <div>
  215.                         <div>
  216.                             <i class=\"fas fa-users\"></i>
  217.                             <p>";
  218.         // line 76
  219.         echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->countCursusForTraining((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'76$this->source); })())), "html"nulltrue);
  220.         echo "</p>
  221.                         </div>
  222.                         ";
  223.         // line 78
  224.         if ( !((isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'78$this->source); })()) === null)) {
  225.             // line 79
  226.             echo "                            <div class=\"info-content-stars\">
  227.                                 <i class=\"fas fa-star\"></i>
  228.                                 <p>";
  229.             // line 81
  230.             echo twig_escape_filter($this->env, (isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'81$this->source); })()), "html"nulltrue);
  231.             echo " (";
  232.             echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->getCountAdviceTraining((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'81$this->source); })())), "html"nulltrue);
  233.             echo ")</p>
  234.                             </div>
  235.                         ";
  236.         }
  237.         // line 84
  238.         echo "                    </div>
  239.                     <div class=\"mt-2\">
  240.                         <div class=\"dot-div\">
  241.                             <i class=\"fas fa-circle\"></i>
  242.                         </div>
  243.                         <div>
  244.                             ";
  245.         // line 90
  246.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'90$this->source); })()), "updatedAt", [], "any"falsefalsefalse90))) {
  247.             // line 91
  248.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source,             // line 92
  249. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'92$this->source); })()), "updatedAt", [], "any"falsefalsefalse92), "long""medium"""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.'92$this->source); })()), "request", [], "any"falsefalsefalse92), "locale", [], "any"falsefalsefalse92))]);
  250.         } else {
  251.             // line 95
  252.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source,             // line 96
  253. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'96$this->source); })()), "createdAt", [], "any"falsefalsefalse96), "long""medium"""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.'96$this->source); })()), "request", [], "any"falsefalsefalse96), "locale", [], "any"falsefalsefalse96))]);
  254.         }
  255.         // line 99
  256.         echo "                        </div>
  257.                     </div>
  258.                 </div>
  259.             </div>
  260.             <div class=\"description mt-4\">
  261.                 <p>";
  262.         // line 107
  263.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'107$this->source); })()), "description", [], "any"falsefalsefalse107), "html"nulltrue);
  264.         echo "</p>
  265.             </div>
  266.         </div>
  267.     </div>
  268.     ";
  269.         // line 112
  270.         $this->displayParentBlock("content"$context$blocks);
  271.         echo "
  272. ";
  273.         
  274.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  275.         
  276.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  277.     }
  278.     // line 115
  279.     public function block_inner_content($context, array $blocks = [])
  280.     {
  281.         $macros $this->macros;
  282.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  283.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  284.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  285.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  286.         // line 116
  287.         echo "    <div class=\"row\">
  288.         <div class=\"col-lg-9 col-md-8 mb-3\">
  289.             <h2 class=\"v2-title-small mt-5\">";
  290.         // line 118
  291.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.programm.label"), "html"nulltrue);
  292.         echo "</h2>
  293.             <div id=\"accordion\" class=\"accordion-nellapp mt-5\">
  294.                 ";
  295.         // line 120
  296.         $context['_parent'] = $context;
  297.         $context['_seq'] = twig_ensure_traversable((isset($context["firstModules"]) || array_key_exists("firstModules"$context) ? $context["firstModules"] : (function () { throw new RuntimeError('Variable "firstModules" does not exist.'120$this->source); })()));
  298.         $context['loop'] = [
  299.           'parent' => $context['_parent'],
  300.           'index0' => 0,
  301.           'index'  => 1,
  302.           'first'  => true,
  303.         ];
  304.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  305.             $length count($context['_seq']);
  306.             $context['loop']['revindex0'] = $length 1;
  307.             $context['loop']['revindex'] = $length;
  308.             $context['loop']['length'] = $length;
  309.             $context['loop']['last'] = === $length;
  310.         }
  311.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  312.             // line 121
  313.             echo "                    ";
  314.             $this->loadTemplate("Front/Scholar/Training/Partial/accordion-item.html.twig""Front/Scholar/Training/show.html.twig"121)->display(twig_array_merge($context, ["module" => $context["module"], "loop" => $context["loop"], "training" => (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'121$this->source); })())]));
  315.             // line 122
  316.             echo "                ";
  317.             ++$context['loop']['index0'];
  318.             ++$context['loop']['index'];
  319.             $context['loop']['first'] = false;
  320.             if (isset($context['loop']['length'])) {
  321.                 --$context['loop']['revindex0'];
  322.                 --$context['loop']['revindex'];
  323.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  324.             }
  325.         }
  326.         $_parent $context['_parent'];
  327.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  328.         $context array_intersect_key($context$_parent) + $_parent;
  329.         // line 123
  330.         echo "                ";
  331.         if (twig_length_filter($this->env, (isset($context["lastModules"]) || array_key_exists("lastModules"$context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.'123$this->source); })()))) {
  332.             // line 124
  333.             echo "                    <div class=\"more-module\" style=\"display: none\">
  334.                         ";
  335.             // line 125
  336.             $context['_parent'] = $context;
  337.             $context['_seq'] = twig_ensure_traversable((isset($context["lastModules"]) || array_key_exists("lastModules"$context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.'125$this->source); })()));
  338.             $context['loop'] = [
  339.               'parent' => $context['_parent'],
  340.               'index0' => 0,
  341.               'index'  => 1,
  342.               'first'  => true,
  343.             ];
  344.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  345.                 $length count($context['_seq']);
  346.                 $context['loop']['revindex0'] = $length 1;
  347.                 $context['loop']['revindex'] = $length;
  348.                 $context['loop']['length'] = $length;
  349.                 $context['loop']['last'] = === $length;
  350.             }
  351.             foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  352.                 // line 126
  353.                 echo "                            ";
  354.                 $this->loadTemplate("Front/Scholar/Training/Partial/accordion-item.html.twig""Front/Scholar/Training/show.html.twig"126)->display(twig_array_merge($context, ["module" => $context["module"], "loop" => $context["loop"], "training" => (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'126$this->source); })())]));
  355.                 // line 127
  356.                 echo "                        ";
  357.                 ++$context['loop']['index0'];
  358.                 ++$context['loop']['index'];
  359.                 $context['loop']['first'] = false;
  360.                 if (isset($context['loop']['length'])) {
  361.                     --$context['loop']['revindex0'];
  362.                     --$context['loop']['revindex'];
  363.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  364.                 }
  365.             }
  366.             $_parent $context['_parent'];
  367.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  368.             $context array_intersect_key($context$_parent) + $_parent;
  369.             // line 128
  370.             echo "                    </div>
  371.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
  372.                         <button class=\"btn-see-more-v2\"
  373.                                 data-btn-more-module=\"true\">
  374.                             ";
  375.             // line 132
  376.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_more.label"), "html"nulltrue);
  377.             echo "
  378.                             5/";
  379.             // line 133
  380.             echo twig_escape_filter($this->env, (twig_length_filter($this->env, (isset($context["lastModules"]) || array_key_exists("lastModules"$context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.'133$this->source); })()))), "html"nulltrue);
  381.             echo "
  382.                         </button>
  383.                     </div>
  384.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
  385.                         <button class=\"btn-see-more-v2\"
  386.                                 data-btn-less-module=\"true\">
  387.                             ";
  388.             // line 139
  389.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_less.label"), "html"nulltrue);
  390.             echo "
  391.                         </button>
  392.                     </div>
  393.                 ";
  394.         }
  395.         // line 143
  396.         echo "            </div>
  397.         </div>
  398.         <div class=\"col-lg-3 col-md-4 order-first order-md-last\">
  399.             <div class=\"card-elevation-training\">
  400.                 <div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
  401.                     <img class=\"img-top-card\" src=\"";
  402.         // line 149
  403.         echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->getTrainingImgUrl((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'149$this->source); })())), "html"nulltrue);
  404.         echo "\">
  405.                 </div>
  406.                 <div class=\"card-body\">
  407.                     <div class=\"channel-name d-flex\">
  408.                         <div>
  409.                             <div class=\"img-logo-rounded\">
  410.                                 ";
  411.         // line 156
  412.         $this->loadTemplate("Front/Channel/Image/_image_main_avatar.html.twig""Front/Scholar/Training/show.html.twig"156)->display(twig_array_merge($context, ["channel" => twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'156$this->source); })()), "ownerChannel", [], "any"falsefalsefalse156)]));
  413.         // line 157
  414.         echo "                            </div>
  415.                         </div>
  416.                         <div class=\"channel-description\">
  417.                             <a href=\"";
  418.         // line 161
  419.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_show", ["channelId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'161$this->source); })()), "ownerChannel", [], "any"falsefalsefalse161), "id", [], "any"falsefalsefalse161)]), "html"nulltrue);
  420.         echo "\"
  421.                                class=\"font-weight-bold\">";
  422.         // line 162
  423.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'162$this->source); })()), "ownerChannel", [], "any"falsefalsefalse162), "name", [], "any"falsefalsefalse162), "html"nulltrue);
  424.         echo "</a>
  425.                             ";
  426.         // line 163
  427.         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'163$this->source); })()), "ownerChannel", [], "any"falsefalsefalse163), "slogan", [], "any"falsefalsefalse163))) {
  428.             // line 164
  429.             echo "                                <p class=\"small\">
  430.                                     ";
  431.             // line 165
  432.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'165$this->source); })()), "ownerChannel", [], "any"falsefalsefalse165), "slogan", [], "any"falsefalsefalse165), "html"nulltrue);
  433.             echo "
  434.                                 </p>
  435.                             ";
  436.         }
  437.         // line 168
  438.         echo "                        </div>
  439.                     </div>
  440.                     <div class=\"training-stats mt-4\">
  441.                         ";
  442.         // line 171
  443.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'171$this->source); })()), "trainingType", [], "any"falsefalsefalse171))) {
  444.             // line 172
  445.             echo "                            <div class=\"row mt-3\">
  446.                                 <div class=\"col-12 content-stat\">
  447.                                     <div>
  448.                                         <i class=\"fas fa-book-open\"></i>
  449.                                     </div>
  450.                                     <p>";
  451.             // line 177
  452.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingTypeRuntime')->getTrainingTypeKey((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'177$this->source); })()))), "html"nulltrue);
  453.             echo "</p>
  454.                                 </div>
  455.                             </div>
  456.                         ";
  457.         }
  458.         // line 181
  459.         echo "
  460.                         ";
  461.         // line 182
  462.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'182$this->source); })()), "totalHourDescription", [], "any"falsefalsefalse182))) {
  463.             // line 183
  464.             echo "                            <div class=\"row mt-3\">
  465.                                 <div class=\"col-12 content-stat\">
  466.                                     <div>
  467.                                         <i class=\"fas fa-stopwatch\"></i>
  468.                                     </div>
  469.                                     <p>";
  470.             // line 188
  471.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'188$this->source); })()), "totalHourDescription", [], "any"falsefalsefalse188), "html"nulltrue);
  472.             echo " ";
  473.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.total_hour.label"), "html"nulltrue);
  474.             echo "</p>
  475.                                 </div>
  476.                             </div>
  477.                         ";
  478.         }
  479.         // line 192
  480.         echo "                        ";
  481.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'192$this->source); })()), "videoDescription", [], "any"falsefalsefalse192))) {
  482.             // line 193
  483.             echo "                            <div class=\"row mt-3\">
  484.                                 <div class=\"col-12 content-stat\">
  485.                                     <div>
  486.                                         <i class=\"fas fa-file-video\"></i>
  487.                                     </div>
  488.                                     <p>";
  489.             // line 198
  490.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'198$this->source); })()), "videoDescription", [], "any"falsefalsefalse198), "html"nulltrue);
  491.             echo " ";
  492.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.video_time.label"), "html"nulltrue);
  493.             echo "</p>
  494.                                 </div>
  495.                             </div>
  496.                         ";
  497.         }
  498.         // line 202
  499.         echo "                        ";
  500.         $context["count_exercises"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->countExercisesByTraining((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'202$this->source); })()));
  501.         // line 203
  502.         echo "                        ";
  503.         if (((isset($context["count_exercises"]) || array_key_exists("count_exercises"$context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.'203$this->source); })()) != 0)) {
  504.             // line 204
  505.             echo "                            <div class=\"row mt-3\">
  506.                                 <div class=\"col-12 content-stat\">
  507.                                     <div>
  508.                                         <i class=\"far fa-list-alt\"></i>
  509.                                     </div>
  510.                                     <p>";
  511.             // line 210
  512.             echo twig_escape_filter($this->env, (isset($context["count_exercises"]) || array_key_exists("count_exercises"$context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.'210$this->source); })()), "html"nulltrue);
  513.             echo " ";
  514.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.use_case.label"), "html"nulltrue);
  515.             echo "</p>
  516.                                 </div>
  517.                             </div>
  518.                         ";
  519.         }
  520.         // line 214
  521.         echo "                        ";
  522.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'214$this->source); })()), "diplomaDescription", [], "any"falsefalsefalse214))) {
  523.             // line 215
  524.             echo "                            <div class=\"row mt-3\">
  525.                                 <div class=\"col-12 content-stat\">
  526.                                     <div>
  527.                                         <i class=\"fas fa-graduation-cap\"></i>
  528.                                     </div>
  529.                                     <p>";
  530.             // line 220
  531.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'220$this->source); })()), "diplomaDescription", [], "any"falsefalsefalse220), "html"nulltrue);
  532.             echo "</p>
  533.                                 </div>
  534.                             </div>
  535.                         ";
  536.         }
  537.         // line 224
  538.         echo "                    </div>
  539.                     ";
  540.         // line 226
  541.         if (( !(null === twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'226$this->source); })()), "trainingProduct", [], "any"falsefalsefalse226)) &&  !(isset($context["has_front_access"]) || array_key_exists("has_front_access"$context) ? $context["has_front_access"] : (function () { throw new RuntimeError('Variable "has_front_access" does not exist.'226$this->source); })()))) {
  542.             // line 227
  543.             echo "                        <div class=\"mt-4 w100-flex-center-x\">
  544.                             ";
  545.             // line 228
  546.             $context["value"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'228$this->source); })()), "trainingProduct", [], "any"falsefalsefalse228), "price", [], "any"falsefalsefalse228) * 1);
  547.             // line 229
  548.             echo "                            <p class=\"price-card-training\">";
  549.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.price.label", ["%price%" => (isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'229$this->source); })())]), "html"nulltrue);
  550.             echo "
  551.                                 *</p>
  552.                         </div>
  553.                         <div class=\"mt-2 w100-flex-center-x\">
  554.                             <p class=\"price-note-card-training\">";
  555.             // line 233
  556.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.price.note", ["%funding_contact_path%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_payment_funding_contact", ["training_id" => twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'233$this->source); })()), "id", [], "any"falsefalsefalse233)])]);
  557.             echo "</p>
  558.                         </div>
  559.                     ";
  560.         }
  561.         // line 236
  562.         echo "
  563.                     ";
  564.         // line 237
  565.         if (( !twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'237$this->source); })()), "public", [], "any"falsefalsefalse237) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'237$this->source); })()) == "front_channel_training_show"))) {
  566.             // line 238
  567.             echo "                        <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
  568.                             ";
  569.             // line 239
  570.             if ((isset($context["has_front_access"]) || array_key_exists("has_front_access"$context) ? $context["has_front_access"] : (function () { throw new RuntimeError('Variable "has_front_access" does not exist.'239$this->source); })())) {
  571.                 // line 240
  572.                 echo "                                <div class=\"w100-flex-center-x\">
  573.                                     <div class=\"progress-circle\">
  574.                                         <div class=\"c100 p";
  575.                 // line 242
  576.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trainingProgression"]) || array_key_exists("trainingProgression"$context) ? $context["trainingProgression"] : (function () { throw new RuntimeError('Variable "trainingProgression" does not exist.'242$this->source); })()), "progression", [], "any"falsefalsefalse242), "html"nulltrue);
  577.                 echo " blue light-green-fill medium\">
  578.                                             <div class=\"slice\">
  579.                                                 <div class=\"bar\"></div>
  580.                                                 <div class=\"fill\"></div>
  581.                                             </div>
  582.                                         </div>
  583.                                     </div>
  584.                                 </div>
  585.                                 <div class=\"mb-2 training-progress-percent\">
  586.                                     ";
  587.                 // line 251
  588.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trainingProgression"]) || array_key_exists("trainingProgression"$context) ? $context["trainingProgression"] : (function () { throw new RuntimeError('Variable "trainingProgression" does not exist.'251$this->source); })()), "progression", [], "any"falsefalsefalse251), "html"nulltrue);
  589.                 echo " %
  590.                                 </div>
  591.                                 ";
  592.                 // line 254
  593.                 if ((($this->env->getRuntime('Nellapp\Bundle\SDKBundle\Routing\Twig\Runtime\UrlGeneratorRuntime')->exist("core""app_account_show_cursus") && array_key_exists("cursus"$context)) &&  !(null === (isset($context["cursus"]) || array_key_exists("cursus"$context) ? $context["cursus"] : (function () { throw new RuntimeError('Variable "cursus" does not exist.'254$this->source); })())))) {
  594.                     // line 255
  595.                     echo "                                    <a href=\"";
  596.                     echo twig_escape_filter($this->env$this->env->getRuntime('Nellapp\Bundle\SDKBundle\Routing\Twig\Runtime\UrlGeneratorRuntime')->generate("core""app_account_show_cursus", ["cursusId" => twig_get_attribute($this->env$this->source,                     // line 256
  597. (isset($context["cursus"]) || array_key_exists("cursus"$context) ? $context["cursus"] : (function () { throw new RuntimeError('Variable "cursus" does not exist.'256$this->source); })()), "id", [], "any"falsefalsefalse256)]), "html"nulltrue);
  598.                     // line 257
  599.                     echo "\"
  600.                                        class=\"see-training-progress-link\">";
  601.                     // line 258
  602.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.progression.link.label"), "html"nulltrue);
  603.                     echo "
  604.                                     </a>
  605.                                 ";
  606.                 }
  607.                 // line 261
  608.                 echo "
  609.                                 ";
  610.                 // line 262
  611.                 $context["lastChapterAchieved"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->getLastAchievedChapter((isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'262$this->source); })()));
  612.                 // line 263
  613.                 echo "                                ";
  614.                 if ( !(null === (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'263$this->source); })()))) {
  615.                     // line 264
  616.                     echo "                                    <a href=\"";
  617.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_chapter_show", ["trainingId" => twig_get_attribute($this->env$this->source,                     // line 265
  618. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'265$this->source); })()), "trainingId", [], "array"falsefalsefalse265), "moduleId" => twig_get_attribute($this->env$this->source,                     // line 266
  619. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'266$this->source); })()), "moduleId", [], "array"falsefalsefalse266), "lessonId" => twig_get_attribute($this->env$this->source,                     // line 267
  620. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'267$this->source); })()), "lessonId", [], "array"falsefalsefalse267), "chapterId" => twig_get_attribute($this->env$this->source,                     // line 268
  621. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'268$this->source); })()), "chapterId", [], "array"falsefalsefalse268)]), "html"nulltrue);
  622.                     // line 269
  623.                     echo "\"
  624.                                        class=\"btn-nellapp-v2 mt-3 d-inline-block\">
  625.                                         ";
  626.                     // line 271
  627.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.continue_btn.label"), "html"nulltrue);
  628.                     echo "
  629.                                     </a>
  630.                                 ";
  631.                 }
  632.                 // line 274
  633.                 echo "                            ";
  634.             } else {
  635.                 // line 275
  636.                 echo "                                <a href=\"";
  637.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_payment_funding_contact", ["training_id" => twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'275$this->source); })()), "id", [], "any"falsefalsefalse275)]), "html"nulltrue);
  638.                 echo "\"
  639.                                    class=\"btn btn-nellapp-v2\">
  640.                                     ";
  641.                 // line 277
  642.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.follow.label"), "html"nulltrue);
  643.                 echo "
  644.                                 </a>
  645.                             ";
  646.             }
  647.             // line 280
  648.             echo "                        </div>
  649.                     ";
  650.         }
  651.         // line 282
  652.         echo "                </div>
  653.             </div>
  654.         </div>
  655.     </div>
  656.     ";
  657.         // line 287
  658.         if ((twig_length_filter($this->env, (isset($context["training_descriptions"]) || array_key_exists("training_descriptions"$context) ? $context["training_descriptions"] : (function () { throw new RuntimeError('Variable "training_descriptions" does not exist.'287$this->source); })())) > 0)) {
  659.             // line 288
  660.             echo "        <div class=\"row\">
  661.             <div class=\"col-12\">
  662.                 <h2 class=\"v2-title-small mt-5 mb-2\">";
  663.             // line 290
  664.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.plus.label"), "html"nulltrue);
  665.             echo "</h2>
  666.             </div>
  667.             <div class=\"col-lg-9 col-md-8\">
  668.                 <div class=\"row\">
  669.                     ";
  670.             // line 294
  671.             $context['_parent'] = $context;
  672.             $context['_seq'] = twig_ensure_traversable((isset($context["training_descriptions"]) || array_key_exists("training_descriptions"$context) ? $context["training_descriptions"] : (function () { throw new RuntimeError('Variable "training_descriptions" does not exist.'294$this->source); })()));
  673.             $context['loop'] = [
  674.               'parent' => $context['_parent'],
  675.               'index0' => 0,
  676.               'index'  => 1,
  677.               'first'  => true,
  678.             ];
  679.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  680.                 $length count($context['_seq']);
  681.                 $context['loop']['revindex0'] = $length 1;
  682.                 $context['loop']['revindex'] = $length;
  683.                 $context['loop']['length'] = $length;
  684.                 $context['loop']['last'] = === $length;
  685.             }
  686.             foreach ($context['_seq'] as $context["_key"] => $context["description"]) {
  687.                 // line 295
  688.                 echo "                        <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
  689.                             ";
  690.                 // line 296
  691.                 $this->loadTemplate("Front/Scholar/Card/training-description.html.twig""Front/Scholar/Training/show.html.twig"296)->display(twig_array_merge($context, ["description" => $context["description"]]));
  692.                 // line 297
  693.                 echo "                        </div>
  694.                     ";
  695.                 ++$context['loop']['index0'];
  696.                 ++$context['loop']['index'];
  697.                 $context['loop']['first'] = false;
  698.                 if (isset($context['loop']['length'])) {
  699.                     --$context['loop']['revindex0'];
  700.                     --$context['loop']['revindex'];
  701.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  702.                 }
  703.             }
  704.             $_parent $context['_parent'];
  705.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['description'], $context['_parent'], $context['loop']);
  706.             $context array_intersect_key($context$_parent) + $_parent;
  707.             // line 299
  708.             echo "                </div>
  709.             </div>
  710.         </div>
  711.     ";
  712.         }
  713.         // line 303
  714.         echo "
  715.     <div class=\"row mt-3\">
  716.         <div class=\"col-12\">
  717.             <h2 class=\"v2-title-small mt-5 mb-2\">";
  718.         // line 306
  719.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.channel.label"), "html"nulltrue);
  720.         echo "</h2>
  721.         </div>
  722.         <div class=\"col-lg-9 col-md-8\">
  723.             <div class=\"row\">
  724.                 <div class=\"col-12\">
  725.                     <div class=\"mt-3\">
  726.                         ";
  727.         // line 312
  728.         $this->loadTemplate("Front/Scholar/Card/channel.html.twig""Front/Scholar/Training/show.html.twig"312)->display(twig_array_merge($context, ["channel" => twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'312$this->source); })()), "ownerChannel", [], "any"falsefalsefalse312)]));
  729.         // line 313
  730.         echo "                    </div>
  731.                 </div>
  732.             </div>
  733.         </div>
  734.     </div>
  735.     ";
  736.         // line 319
  737.         if ((twig_length_filter($this->env, (isset($context["teacher_entities"]) || array_key_exists("teacher_entities"$context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.'319$this->source); })())) > 0)) {
  738.             // line 320
  739.             echo "        <div class=\"row mt-3\">
  740.             <div class=\"col-12\">
  741.                 <h2 class=\"v2-title-small mt-5 mb-2\">";
  742.             // line 322
  743.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.teacher.label"), "html"nulltrue);
  744.             echo "
  745.                     (";
  746.             // line 323
  747.             echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["teacher_entities"]) || array_key_exists("teacher_entities"$context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.'323$this->source); })())), "html"nulltrue);
  748.             echo ")</h2>
  749.             </div>
  750.         </div>
  751.         ";
  752.             // line 326
  753.             $context['_parent'] = $context;
  754.             $context['_seq'] = twig_ensure_traversable((isset($context["teacher_entities"]) || array_key_exists("teacher_entities"$context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.'326$this->source); })()));
  755.             $context['loop'] = [
  756.               'parent' => $context['_parent'],
  757.               'index0' => 0,
  758.               'index'  => 1,
  759.               'first'  => true,
  760.             ];
  761.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  762.                 $length count($context['_seq']);
  763.                 $context['loop']['revindex0'] = $length 1;
  764.                 $context['loop']['revindex'] = $length;
  765.                 $context['loop']['length'] = $length;
  766.                 $context['loop']['last'] = === $length;
  767.             }
  768.             foreach ($context['_seq'] as $context["_key"] => $context["teacher"]) {
  769.                 // line 327
  770.                 echo "            <div class=\"col-lg-9 col-md-8\">
  771.                 <div class=\"row\">
  772.                     <div class=\"col-12\">
  773.                         <div class=\"mt-3\">
  774.                             ";
  775.                 // line 331
  776.                 $this->loadTemplate("Front/Scholar/Card/teacher.html.twig""Front/Scholar/Training/show.html.twig"331)->display(twig_array_merge($context, ["teacher" => $context["teacher"]]));
  777.                 // line 332
  778.                 echo "                        </div>
  779.                     </div>
  780.                 </div>
  781.             </div>
  782.         ";
  783.                 ++$context['loop']['index0'];
  784.                 ++$context['loop']['index'];
  785.                 $context['loop']['first'] = false;
  786.                 if (isset($context['loop']['length'])) {
  787.                     --$context['loop']['revindex0'];
  788.                     --$context['loop']['revindex'];
  789.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  790.                 }
  791.             }
  792.             $_parent $context['_parent'];
  793.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teacher'], $context['_parent'], $context['loop']);
  794.             $context array_intersect_key($context$_parent) + $_parent;
  795.             // line 337
  796.             echo "    ";
  797.         }
  798.         // line 338
  799.         echo "
  800.     ";
  801.         // line 339
  802.         if ((array_key_exists("training_advices"$context) && (twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'339$this->source); })())) > 0))) {
  803.             // line 340
  804.             echo "        <div class=\"row mt-3 mb-5\">
  805.             <div class=\"col-lg-9 col-md-8\">
  806.                 <div class=\"row\">
  807.                     <div class=\"col-12\">
  808.                         <div class=\"div-title-between mt-5 mb-2\">
  809.                             <h2 class=\"v2-title-small\">";
  810.             // line 345
  811.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.label"), "html"nulltrue);
  812.             echo "
  813.                                 (";
  814.             // line 346
  815.             echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'346$this->source); })())), "html"nulltrue);
  816.             echo ")</h2>
  817.                             <p class=\"\"><i class=\"far fa-star\"></i> ";
  818.             // line 347
  819.             echo twig_escape_filter($this->env, (isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'347$this->source); })()), "html"nulltrue);
  820.             echo "</p>
  821.                         </div>
  822.                     </div>
  823.                     <div class=\"col-12\">
  824.                         <div class=\"mt-3\">
  825.                             ";
  826.             // line 352
  827.             $context["adviceCount"] = 1;
  828.             // line 353
  829.             echo "                            ";
  830.             $context["break"] = false;
  831.             // line 354
  832.             echo "                            ";
  833.             $context['_parent'] = $context;
  834.             $context['_seq'] = twig_ensure_traversable((isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'354$this->source); })()));
  835.             $context['loop'] = [
  836.               'parent' => $context['_parent'],
  837.               'index0' => 0,
  838.               'index'  => 1,
  839.               'first'  => true,
  840.             ];
  841.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  842.                 $length count($context['_seq']);
  843.                 $context['loop']['revindex0'] = $length 1;
  844.                 $context['loop']['revindex'] = $length;
  845.                 $context['loop']['length'] = $length;
  846.                 $context['loop']['last'] = === $length;
  847.             }
  848.             foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
  849.                 // line 355
  850.                 echo "                                ";
  851.                 if ( !(isset($context["break"]) || array_key_exists("break"$context) ? $context["break"] : (function () { throw new RuntimeError('Variable "break" does not exist.'355$this->source); })())) {
  852.                     // line 356
  853.                     echo "                                    ";
  854.                     $this->loadTemplate("Front/Scholar/Card/advice.html.twig""Front/Scholar/Training/show.html.twig"356)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
  855.                     // line 357
  856.                     echo "                                    ";
  857.                     $context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'357$this->source); })()) + 1);
  858.                     // line 358
  859.                     echo "                                    ";
  860.                     if (((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'358$this->source); })()) == 6)) {
  861.                         // line 359
  862.                         echo "                                        ";
  863.                         $context["break"] = true;
  864.                         // line 360
  865.                         echo "                                    ";
  866.                     }
  867.                     // line 361
  868.                     echo "                                ";
  869.                 }
  870.                 // line 362
  871.                 echo "                            ";
  872.                 ++$context['loop']['index0'];
  873.                 ++$context['loop']['index'];
  874.                 $context['loop']['first'] = false;
  875.                 if (isset($context['loop']['length'])) {
  876.                     --$context['loop']['revindex0'];
  877.                     --$context['loop']['revindex'];
  878.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  879.                 }
  880.             }
  881.             $_parent $context['_parent'];
  882.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
  883.             $context array_intersect_key($context$_parent) + $_parent;
  884.             // line 363
  885.             echo "
  886.                             ";
  887.             // line 364
  888.             $context["adviceCount"] = 1;
  889.             // line 365
  890.             echo "                            ";
  891.             if ((twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'365$this->source); })())) > 5)) {
  892.                 // line 366
  893.                 echo "                                <div class=\"div-more-advice\">
  894.                                     ";
  895.                 // line 367
  896.                 $context['_parent'] = $context;
  897.                 $context['_seq'] = twig_ensure_traversable((isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'367$this->source); })()));
  898.                 $context['loop'] = [
  899.                   'parent' => $context['_parent'],
  900.                   'index0' => 0,
  901.                   'index'  => 1,
  902.                   'first'  => true,
  903.                 ];
  904.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  905.                     $length count($context['_seq']);
  906.                     $context['loop']['revindex0'] = $length 1;
  907.                     $context['loop']['revindex'] = $length;
  908.                     $context['loop']['length'] = $length;
  909.                     $context['loop']['last'] = === $length;
  910.                 }
  911.                 foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
  912.                     // line 368
  913.                     echo "                                        ";
  914.                     $context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'368$this->source); })()) + 1);
  915.                     // line 369
  916.                     echo "                                        ";
  917.                     if (((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'369$this->source); })()) > 6)) {
  918.                         // line 370
  919.                         echo "                                            ";
  920.                         $this->loadTemplate("Front/Scholar/Card/advice.html.twig""Front/Scholar/Training/show.html.twig"370)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
  921.                         // line 371
  922.                         echo "                                        ";
  923.                     }
  924.                     // line 372
  925.                     echo "                                    ";
  926.                     ++$context['loop']['index0'];
  927.                     ++$context['loop']['index'];
  928.                     $context['loop']['first'] = false;
  929.                     if (isset($context['loop']['length'])) {
  930.                         --$context['loop']['revindex0'];
  931.                         --$context['loop']['revindex'];
  932.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  933.                     }
  934.                 }
  935.                 $_parent $context['_parent'];
  936.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
  937.                 $context array_intersect_key($context$_parent) + $_parent;
  938.                 // line 373
  939.                 echo "                                </div>
  940.                             ";
  941.             }
  942.             // line 375
  943.             echo "                        </div>
  944.                     </div>
  945.                 </div>
  946.             </div>
  947.         </div>
  948.     ";
  949.         }
  950.         // line 381
  951.         echo "    ";
  952.         if ((array_key_exists("form"$context) && 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.'381$this->source); })()), "user", [], "any"falsefalsefalse381))) {
  953.             // line 382
  954.             echo "        <div class=\"row\">
  955.             <div class=\"col-lg-9 col-md-8\">
  956.                 <p class=\"small-description\">";
  957.             // line 384
  958.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.sentence.enter_key.label"), "html"nulltrue);
  959.             echo "</p>
  960.             </div>
  961.         </div>
  962.         <div class=\"row\" ";
  963.             // line 387
  964.             if ((array_key_exists("advice_user"$context) &&  !(null === (isset($context["advice_user"]) || array_key_exists("advice_user"$context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.'387$this->source); })())))) {
  965.                 echo " ";
  966.                 if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["advice_user"]) || array_key_exists("advice_user"$context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.'387$this->source); })()), "note", [], "any"falsefalsefalse387))) {
  967.                     echo "data-advice-current-note=\"";
  968.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["advice_user"]) || array_key_exists("advice_user"$context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.'387$this->source); })()), "note", [], "any"falsefalsefalse387), "html"nulltrue);
  969.                     echo "\"";
  970.                 }
  971.             }
  972.             echo ">
  973.             <div class=\"col-lg-9 col-md-8 mt-1\">
  974.                 <div class=\"form-advice-content\">
  975.                     <div class=\"avatar-rounded\">";
  976.             // line 390
  977.             echo $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\UserRunTime')->displayAvatar($this->envtwig_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.'390$this->source); })()), "user", [], "any"falsefalsefalse390));
  978.             echo "</div>
  979.                     <div class=\"form-advice-bg-gray\">
  980.                         ";
  981.             // line 392
  982.             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.'392$this->source); })()), 'form_start');
  983.             echo "
  984.                         <div style=\"display: none\">
  985.                             ";
  986.             // line 394
  987.             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.'394$this->source); })()), "note", [], "any"falsefalsefalse394), 'widget');
  988.             echo "
  989.                         </div>
  990.                         ";
  991.             // line 396
  992.             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.'396$this->source); })()), "comment", [], "any"falsefalsefalse396), 'widget');
  993.             echo "
  994.                         ";
  995.             // line 397
  996.             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.'397$this->source); })()), "comment", [], "any"falsefalsefalse397), 'errors');
  997.             echo "
  998.                         ";
  999.             // line 398
  1000.             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.'398$this->source); })()), 'form_end');
  1001.             echo "
  1002.                         <div class=\"stars-rating\">
  1003.                             <i class=\"far fa-star\" data-rating=\"1\"></i>
  1004.                             <i class=\"far fa-star\" data-rating=\"2\"></i>
  1005.                             <i class=\"far fa-star\" data-rating=\"3\"></i>
  1006.                             <i class=\"far fa-star\" data-rating=\"4\"></i>
  1007.                             <i class=\"far fa-star\" data-rating=\"5\"></i>
  1008.                         </div>
  1009.                         <div class=\"center-y ml-2\">
  1010.                             <span id=\"span-nb-note-advice\">0</span>
  1011.                         </div>
  1012.                     </div>
  1013.                 </div>
  1014.             </div>
  1015.         </div>
  1016.         ";
  1017.             // line 413
  1018.             if ( !(null === (isset($context["advice_user"]) || array_key_exists("advice_user"$context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.'413$this->source); })()))) {
  1019.                 // line 414
  1020.                 echo "            ";
  1021.                 if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["advice_user"]) || array_key_exists("advice_user"$context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.'414$this->source); })()), "id", [], "any"falsefalsefalse414))) {
  1022.                     // line 415
  1023.                     echo "                <div class=\"row\">
  1024.                     <div class=\"col-lg-9 col-md-8 mt-1\">
  1025.                         <div class=\"w100-flex-end-x\">
  1026.                             <a class=\"delete-btn-advice\"
  1027.                                href=\"";
  1028.                     // line 419
  1029.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_training_advice_delete", ["id" => twig_get_attribute($this->env$this->source, (isset($context["advice_user"]) || array_key_exists("advice_user"$context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.'419$this->source); })()), "id", [], "any"falsefalsefalse419)]), "html"nulltrue);
  1030.                     echo "\">";
  1031.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.action.delete.label"), "html"nulltrue);
  1032.                     echo "</a>
  1033.                         </div>
  1034.                     </div>
  1035.                 </div>
  1036.             ";
  1037.                 }
  1038.                 // line 424
  1039.                 echo "        ";
  1040.             }
  1041.             // line 425
  1042.             echo "    ";
  1043.         }
  1044.         // line 426
  1045.         echo "
  1046.     ";
  1047.         // line 430
  1048.         if ((array_key_exists("training_advices"$context) && (twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'430$this->source); })())) > 5))) {
  1049.             // line 431
  1050.             echo "        <div class=\"row\">
  1051.             <div class=\"col-lg-9 col-md-8 mt-5\">
  1052.                 <div class=\"w100-flex-center-x\">
  1053.                     <button class=\"see-more-btn\"
  1054.                             id=\"training-advice-see-more\">";
  1055.             // line 435
  1056.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.advice.see_more.label", ["%count%" => twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices"$context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.'435$this->source); })()))]), "html"nulltrue);
  1057.             echo "</button>
  1058.                 </div>
  1059.             </div>
  1060.         </div>
  1061.     ";
  1062.         }
  1063.         // line 440
  1064.         echo "    <div class=\"empty-div-bottom\"></div>
  1065. ";
  1066.         
  1067.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1068.         
  1069.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1070.     }
  1071.     // line 443
  1072.     public function block_body($context, array $blocks = [])
  1073.     {
  1074.         $macros $this->macros;
  1075.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1076.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  1077.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1078.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  1079.         // line 444
  1080.         echo "    ";
  1081.         $this->displayParentBlock("body"$context$blocks);
  1082.         echo "
  1083.     ";
  1084.         // line 445
  1085.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("CHANNEL_USER_PERM_TRAINING_SHOW", (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'445$this->source); })()))) {
  1086.             // line 446
  1087.             echo "        <div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
  1088.              aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
  1089.             <div class=\"modal-dialog\" role=\"document\">
  1090.                 <div class=\"modal-content\">
  1091.                     <div class=\"modal-header\">
  1092.                         <h5 class=\"modal-title\" id=\"delete-modal-label\">
  1093.                             ";
  1094.             // line 452
  1095.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.title.label", ["%name%" => twig_get_attribute($this->env$this->source,             // line 453
  1096. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'453$this->source); })()), "name", [], "any"falsefalsefalse453)]);
  1097.             // line 454
  1098.             echo "
  1099.                         </h5>
  1100.                     </div>
  1101.                     <div class=\"modal-body\">
  1102.                         ";
  1103.             // line 459
  1104.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.body.label", ["%name%" => twig_get_attribute($this->env$this->source,             // line 460
  1105. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'460$this->source); })()), "name", [], "any"falsefalsefalse460)]);
  1106.             // line 461
  1107.             echo "
  1108.                     </div>
  1109.                     <div class=\"modal-footer\">
  1110.                         <button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
  1111.                             ";
  1112.             // line 466
  1113.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.cancel.label"), "html"nulltrue);
  1114.             echo "
  1115.                         </button>
  1116.                         <a href=\"";
  1117.             // line 469
  1118.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_delete", ["id" => twig_get_attribute($this->env$this->source, (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'469$this->source); })()), "id", [], "any"falsefalsefalse469), "channelId" => twig_get_attribute($this->env$this->source, (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'469$this->source); })()), "id", [], "any"falsefalsefalse469)]), "html"nulltrue);
  1119.             echo "\"
  1120.                            class=\"btn btn-danger btn-raised\">
  1121.                             ";
  1122.             // line 471
  1123.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.delete.label"), "html"nulltrue);
  1124.             echo "
  1125.                         </a>
  1126.                     </div>
  1127.                 </div>
  1128.             </div>
  1129.         </div>
  1130.     ";
  1131.         }
  1132.         
  1133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1134.         
  1135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1136.     }
  1137.     public function getTemplateName()
  1138.     {
  1139.         return "Front/Scholar/Training/show.html.twig";
  1140.     }
  1141.     public function isTraitable()
  1142.     {
  1143.         return false;
  1144.     }
  1145.     public function getDebugInfo()
  1146.     {
  1147.         return array (  1184 => 471,  1179 => 469,  1173 => 466,  1166 => 461,  1164 => 460,  1163 => 459,  1156 => 454,  1154 => 453,  1153 => 452,  1145 => 446,  1143 => 445,  1138 => 444,  1128 => 443,  1117 => 440,  1109 => 435,  1103 => 431,  1101 => 430,  1095 => 426,  1092 => 425,  1089 => 424,  1079 => 419,  1073 => 415,  1070 => 414,  1068 => 413,  1050 => 398,  1046 => 397,  1042 => 396,  1037 => 394,  1032 => 392,  1027 => 390,  1014 => 387,  1008 => 384,  1004 => 382,  1001 => 381,  993 => 375,  989 => 373,  975 => 372,  972 => 371,  969 => 370,  966 => 369,  963 => 368,  946 => 367,  943 => 366,  940 => 365,  938 => 364,  935 => 363,  921 => 362,  918 => 361,  915 => 360,  912 => 359,  909 => 358,  906 => 357,  903 => 356,  900 => 355,  882 => 354,  879 => 353,  877 => 352,  869 => 347,  865 => 346,  861 => 345,  854 => 340,  852 => 339,  849 => 338,  846 => 337,  828 => 332,  826 => 331,  820 => 327,  803 => 326,  797 => 323,  793 => 322,  789 => 320,  787 => 319,  779 => 313,  777 => 312,  768 => 306,  763 => 303,  757 => 299,  742 => 297,  740 => 296,  737 => 295,  720 => 294,  713 => 290,  709 => 288,  707 => 287,  700 => 282,  696 => 280,  690 => 277,  684 => 275,  681 => 274,  675 => 271,  671 => 269,  669 => 268,  668 => 267,  667 => 266,  666 => 265,  664 => 264,  661 => 263,  659 => 262,  656 => 261,  650 => 258,  647 => 257,  645 => 256,  643 => 255,  641 => 254,  635 => 251,  623 => 242,  619 => 240,  617 => 239,  614 => 238,  612 => 237,  609 => 236,  603 => 233,  595 => 229,  593 => 228,  590 => 227,  588 => 226,  584 => 224,  577 => 220,  570 => 215,  567 => 214,  558 => 210,  550 => 204,  547 => 203,  544 => 202,  535 => 198,  528 => 193,  525 => 192,  516 => 188,  509 => 183,  507 => 182,  504 => 181,  497 => 177,  490 => 172,  488 => 171,  483 => 168,  477 => 165,  474 => 164,  472 => 163,  468 => 162,  464 => 161,  458 => 157,  456 => 156,  446 => 149,  438 => 143,  431 => 139,  422 => 133,  418 => 132,  412 => 128,  398 => 127,  395 => 126,  378 => 125,  375 => 124,  372 => 123,  358 => 122,  355 => 121,  338 => 120,  333 => 118,  329 => 116,  319 => 115,  307 => 112,  299 => 107,  289 => 99,  286 => 96,  285 => 95,  282 => 92,  281 => 91,  279 => 90,  271 => 84,  263 => 81,  259 => 79,  257 => 78,  252 => 76,  240 => 66,  237 => 63,  236 => 62,  233 => 59,  232 => 58,  230 => 57,  226 => 55,  218 => 52,  214 => 50,  212 => 49,  207 => 47,  199 => 44,  194 => 41,  192 => 39,  191 => 38,  186 => 34,  183 => 33,  179 => 32,  176 => 31,  173 => 30,  163 => 29,  142 => 28,  128 => 23,  124 => 21,  121 => 20,  118 => 19,  115 => 18,  113 => 17,  109 => 15,  106 => 14,  96 => 13,  84 => 10,  79 => 9,  69 => 8,  58 => 1,  56 => 5,  55 => 4,  53 => 3,  40 => 1,);
  1148.     }
  1149.     public function getSourceContext()
  1150.     {
  1151.         return new Source("{% extends 'base.html.twig' %}
  1152. {% set currentRoute = app.request.attributes.get('_route') %}
  1153. {% set has_front_access = is_granted('FRONT_ACCESS', {
  1154.     'training': sub,
  1155. }) %}
  1156. {% block stylesheets %}
  1157.     {{ parent() }}
  1158.     {{ encore_entry_link_tags('styles', 'core', 'core') }}
  1159. {% endblock %}
  1160. {% block before_navbar %}
  1161.     {% if currentRoute == 'manager_channel_training_show' %}
  1162.         <div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
  1163.             {% set headerReturnLink = null %}
  1164.             {% if currentRoute == 'manager_channel_training_show' %}
  1165.                 {% set headerReturnLink = path('manager_channel_trainings', {'channelId': channel.id}) %}
  1166.             {% endif %}
  1167.             <div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
  1168.             <div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
  1169.         </div>
  1170.     {% endif %}
  1171. {% endblock before_navbar %}
  1172. {% block title %}{{ sub.name }} - {{ parent() }}{% endblock %}
  1173. {% block content %}
  1174.     {% set advice_avg = sub|advice_avg_by_training %}
  1175.     {% if app.user %}
  1176.         {% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
  1177.     {% endif %}
  1178.     <div class=\"jumbotron-v2 mb-4\">
  1179.         <div class=\"container\">
  1180.             <h2 class=\"v2-title-big\">
  1181.                 {{- 'front.scholar.training.show.title.label'|trans({
  1182.                     '%name%': sub.name,
  1183.                 }) -}}
  1184.             </h2>
  1185.             <div class=\"md-none\">
  1186.                 <div class=\"info-content mt-4 {% if advice_avg is same as null %} info-without-advice {% endif %}\">
  1187.                     <div>
  1188.                         <i class=\"fas fa-users\"></i>
  1189.                         <p>{{ sub|countCursusForTraining }}</p>
  1190.                     </div>
  1191.                     {% if advice_avg is not same as null %}
  1192.                         <div>
  1193.                             <i class=\"fas fa-star\"></i>
  1194.                             <p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
  1195.                         </div>
  1196.                     {% endif %}
  1197.                     <div class=\"dot-div\"></div>
  1198.                     <div>
  1199.                         {% if sub.updatedAt is not null %}
  1200.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1201.                                 '%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
  1202.                             })|raw -}}
  1203.                         {% else %}
  1204.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1205.                                 '%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
  1206.                             })|raw -}}
  1207.                         {% endif %}
  1208.                     </div>
  1209.                 </div>
  1210.             </div>
  1211.             <div class=\"md-set\">
  1212.                 <div class=\"info-content mt-4\">
  1213.                     <div>
  1214.                         <div>
  1215.                             <i class=\"fas fa-users\"></i>
  1216.                             <p>{{ sub|countCursusForTraining }}</p>
  1217.                         </div>
  1218.                         {% if advice_avg is not same as null %}
  1219.                             <div class=\"info-content-stars\">
  1220.                                 <i class=\"fas fa-star\"></i>
  1221.                                 <p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
  1222.                             </div>
  1223.                         {% endif %}
  1224.                     </div>
  1225.                     <div class=\"mt-2\">
  1226.                         <div class=\"dot-div\">
  1227.                             <i class=\"fas fa-circle\"></i>
  1228.                         </div>
  1229.                         <div>
  1230.                             {% if sub.updatedAt is not null %}
  1231.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  1232.                                     '%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
  1233.                                 })|raw -}}
  1234.                             {% else %}
  1235.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  1236.                                     '%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
  1237.                                 })|raw -}}
  1238.                             {% endif %}
  1239.                         </div>
  1240.                     </div>
  1241.                 </div>
  1242.             </div>
  1243.             <div class=\"description mt-4\">
  1244.                 <p>{{ sub.description }}</p>
  1245.             </div>
  1246.         </div>
  1247.     </div>
  1248.     {{ parent() }}
  1249. {% endblock content %}
  1250. {% block inner_content %}
  1251.     <div class=\"row\">
  1252.         <div class=\"col-lg-9 col-md-8 mb-3\">
  1253.             <h2 class=\"v2-title-small mt-5\">{{ 'front.scholar.training.show.sub_title.programm.label'|trans }}</h2>
  1254.             <div id=\"accordion\" class=\"accordion-nellapp mt-5\">
  1255.                 {% for module in firstModules %}
  1256.                     {% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training' : sub} %}
  1257.                 {% endfor %}
  1258.                 {% if lastModules|length %}
  1259.                     <div class=\"more-module\" style=\"display: none\">
  1260.                         {% for module in lastModules %}
  1261.                             {% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training': sub} %}
  1262.                         {% endfor %}
  1263.                     </div>
  1264.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
  1265.                         <button class=\"btn-see-more-v2\"
  1266.                                 data-btn-more-module=\"true\">
  1267.                             {{ 'front.scholar.training.list.button.see_more.label'|trans }}
  1268.                             5/{{ 5 + lastModules|length }}
  1269.                         </button>
  1270.                     </div>
  1271.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
  1272.                         <button class=\"btn-see-more-v2\"
  1273.                                 data-btn-less-module=\"true\">
  1274.                             {{ 'front.scholar.training.list.button.see_less.label'|trans }}
  1275.                         </button>
  1276.                     </div>
  1277.                 {% endif %}
  1278.             </div>
  1279.         </div>
  1280.         <div class=\"col-lg-3 col-md-4 order-first order-md-last\">
  1281.             <div class=\"card-elevation-training\">
  1282.                 <div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
  1283.                     <img class=\"img-top-card\" src=\"{{ sub|get_training_img_url }}\">
  1284.                 </div>
  1285.                 <div class=\"card-body\">
  1286.                     <div class=\"channel-name d-flex\">
  1287.                         <div>
  1288.                             <div class=\"img-logo-rounded\">
  1289.                                 {% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': sub.ownerChannel} %}
  1290.                             </div>
  1291.                         </div>
  1292.                         <div class=\"channel-description\">
  1293.                             <a href=\"{{ path('front_channel_show', {'channelId' : sub.ownerChannel.id }) }}\"
  1294.                                class=\"font-weight-bold\">{{ sub.ownerChannel.name }}</a>
  1295.                             {% if sub.ownerChannel.slogan is not empty %}
  1296.                                 <p class=\"small\">
  1297.                                     {{ sub.ownerChannel.slogan }}
  1298.                                 </p>
  1299.                             {% endif %}
  1300.                         </div>
  1301.                     </div>
  1302.                     <div class=\"training-stats mt-4\">
  1303.                         {% if sub.trainingType is not null %}
  1304.                             <div class=\"row mt-3\">
  1305.                                 <div class=\"col-12 content-stat\">
  1306.                                     <div>
  1307.                                         <i class=\"fas fa-book-open\"></i>
  1308.                                     </div>
  1309.                                     <p>{{ sub | get_training_type_key | trans }}</p>
  1310.                                 </div>
  1311.                             </div>
  1312.                         {% endif %}
  1313.                         {% if sub.totalHourDescription is not null %}
  1314.                             <div class=\"row mt-3\">
  1315.                                 <div class=\"col-12 content-stat\">
  1316.                                     <div>
  1317.                                         <i class=\"fas fa-stopwatch\"></i>
  1318.                                     </div>
  1319.                                     <p>{{ sub.totalHourDescription }} {{ 'front.scholar.training.show.card.total_hour.label'|trans }}</p>
  1320.                                 </div>
  1321.                             </div>
  1322.                         {% endif %}
  1323.                         {% if sub.videoDescription is not null %}
  1324.                             <div class=\"row mt-3\">
  1325.                                 <div class=\"col-12 content-stat\">
  1326.                                     <div>
  1327.                                         <i class=\"fas fa-file-video\"></i>
  1328.                                     </div>
  1329.                                     <p>{{ sub.videoDescription }} {{ 'front.scholar.training.show.card.video_time.label'|trans }}</p>
  1330.                                 </div>
  1331.                             </div>
  1332.                         {% endif %}
  1333.                         {% set count_exercises = sub|count_exercises_by_training %}
  1334.                         {% if count_exercises != 0 %}
  1335.                             <div class=\"row mt-3\">
  1336.                                 <div class=\"col-12 content-stat\">
  1337.                                     <div>
  1338.                                         <i class=\"far fa-list-alt\"></i>
  1339.                                     </div>
  1340.                                     <p>{{ count_exercises }} {{ 'front.scholar.training.show.card.use_case.label'|trans }}</p>
  1341.                                 </div>
  1342.                             </div>
  1343.                         {% endif %}
  1344.                         {% if sub.diplomaDescription is not null %}
  1345.                             <div class=\"row mt-3\">
  1346.                                 <div class=\"col-12 content-stat\">
  1347.                                     <div>
  1348.                                         <i class=\"fas fa-graduation-cap\"></i>
  1349.                                     </div>
  1350.                                     <p>{{ sub.diplomaDescription }}</p>
  1351.                                 </div>
  1352.                             </div>
  1353.                         {% endif %}
  1354.                     </div>
  1355.                     {% if sub.trainingProduct is not null and not has_front_access %}
  1356.                         <div class=\"mt-4 w100-flex-center-x\">
  1357.                             {% set value = sub.trainingProduct.price * 1 %}
  1358.                             <p class=\"price-card-training\">{{ 'front.scholar.training.show.card.price.label'|trans({'%price%' : value}) }}
  1359.                                 *</p>
  1360.                         </div>
  1361.                         <div class=\"mt-2 w100-flex-center-x\">
  1362.                             <p class=\"price-note-card-training\">{{ 'front.scholar.training.show.card.price.note'|trans({'%funding_contact_path%' : path('front_channel_training_payment_funding_contact', {'training_id': sub.id})}) | raw }}</p>
  1363.                         </div>
  1364.                     {% endif %}
  1365.                     {% if not sub.public and currentRoute == 'front_channel_training_show' %}
  1366.                         <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
  1367.                             {% if has_front_access %}
  1368.                                 <div class=\"w100-flex-center-x\">
  1369.                                     <div class=\"progress-circle\">
  1370.                                         <div class=\"c100 p{{ trainingProgression.progression }} blue light-green-fill medium\">
  1371.                                             <div class=\"slice\">
  1372.                                                 <div class=\"bar\"></div>
  1373.                                                 <div class=\"fill\"></div>
  1374.                                             </div>
  1375.                                         </div>
  1376.                                     </div>
  1377.                                 </div>
  1378.                                 <div class=\"mb-2 training-progress-percent\">
  1379.                                     {{ trainingProgression.progression }} %
  1380.                                 </div>
  1381.                                 {% if nellapp_url_exist('core', 'app_account_show_cursus') and cursus is defined and cursus is not null %}
  1382.                                     <a href=\"{{ nellapp_url('core', 'app_account_show_cursus', {
  1383.                                         'cursusId': cursus.id
  1384.                                     }) }}\"
  1385.                                        class=\"see-training-progress-link\">{{ 'front.scholar.training.show.card.progression.link.label' | trans }}
  1386.                                     </a>
  1387.                                 {% endif %}
  1388.                                 {% set lastChapterAchieved = getLastAchievedChapter(sub) %}
  1389.                                 {% if lastChapterAchieved is not null %}
  1390.                                     <a href=\"{{ path('front_channel_chapter_show', {
  1391.                                         'trainingId': lastChapterAchieved['trainingId'],
  1392.                                         'moduleId': lastChapterAchieved['moduleId'],
  1393.                                         'lessonId': lastChapterAchieved['lessonId'],
  1394.                                         'chapterId': lastChapterAchieved['chapterId'],
  1395.                                     }) }}\"
  1396.                                        class=\"btn-nellapp-v2 mt-3 d-inline-block\">
  1397.                                         {{ 'front.scholar.training.show.card.continue_btn.label' | trans }}
  1398.                                     </a>
  1399.                                 {% endif %}
  1400.                             {% else %}
  1401.                                 <a href=\"{{ path('front_channel_training_payment_funding_contact', {'training_id': sub.id}) }}\"
  1402.                                    class=\"btn btn-nellapp-v2\">
  1403.                                     {{ 'front.scholar.training.show.actions.follow.label'|trans }}
  1404.                                 </a>
  1405.                             {% endif %}
  1406.                         </div>
  1407.                     {% endif %}
  1408.                 </div>
  1409.             </div>
  1410.         </div>
  1411.     </div>
  1412.     {% if training_descriptions|length > 0 %}
  1413.         <div class=\"row\">
  1414.             <div class=\"col-12\">
  1415.                 <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.plus.label'|trans }}</h2>
  1416.             </div>
  1417.             <div class=\"col-lg-9 col-md-8\">
  1418.                 <div class=\"row\">
  1419.                     {% for description in training_descriptions %}
  1420.                         <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
  1421.                             {% include 'Front/Scholar/Card/training-description.html.twig' with {'description' : description} %}
  1422.                         </div>
  1423.                     {% endfor %}
  1424.                 </div>
  1425.             </div>
  1426.         </div>
  1427.     {% endif %}
  1428.     <div class=\"row mt-3\">
  1429.         <div class=\"col-12\">
  1430.             <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.channel.label'|trans }}</h2>
  1431.         </div>
  1432.         <div class=\"col-lg-9 col-md-8\">
  1433.             <div class=\"row\">
  1434.                 <div class=\"col-12\">
  1435.                     <div class=\"mt-3\">
  1436.                         {% include 'Front/Scholar/Card/channel.html.twig' with {'channel' : sub.ownerChannel} %}
  1437.                     </div>
  1438.                 </div>
  1439.             </div>
  1440.         </div>
  1441.     </div>
  1442.     {% if teacher_entities|length > 0 %}
  1443.         <div class=\"row mt-3\">
  1444.             <div class=\"col-12\">
  1445.                 <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}
  1446.                     ({{ teacher_entities|length }})</h2>
  1447.             </div>
  1448.         </div>
  1449.         {% for teacher in teacher_entities %}
  1450.             <div class=\"col-lg-9 col-md-8\">
  1451.                 <div class=\"row\">
  1452.                     <div class=\"col-12\">
  1453.                         <div class=\"mt-3\">
  1454.                             {% include 'Front/Scholar/Card/teacher.html.twig' with {'teacher' : teacher} %}
  1455.                         </div>
  1456.                     </div>
  1457.                 </div>
  1458.             </div>
  1459.         {% endfor %}
  1460.     {% endif %}
  1461.     {% if training_advices is defined and training_advices|length > 0 %}
  1462.         <div class=\"row mt-3 mb-5\">
  1463.             <div class=\"col-lg-9 col-md-8\">
  1464.                 <div class=\"row\">
  1465.                     <div class=\"col-12\">
  1466.                         <div class=\"div-title-between mt-5 mb-2\">
  1467.                             <h2 class=\"v2-title-small\">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}
  1468.                                 ({{ training_advices|length }})</h2>
  1469.                             <p class=\"\"><i class=\"far fa-star\"></i> {{ advice_avg }}</p>
  1470.                         </div>
  1471.                     </div>
  1472.                     <div class=\"col-12\">
  1473.                         <div class=\"mt-3\">
  1474.                             {% set adviceCount = 1 %}
  1475.                             {% set break = false %}
  1476.                             {% for advice in training_advices %}
  1477.                                 {% if not break %}
  1478.                                     {% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
  1479.                                     {% set adviceCount = adviceCount + 1 %}
  1480.                                     {% if adviceCount == 6 %}
  1481.                                         {% set break = true %}
  1482.                                     {% endif %}
  1483.                                 {% endif %}
  1484.                             {% endfor %}
  1485.                             {% set adviceCount = 1 %}
  1486.                             {% if training_advices|length > 5 %}
  1487.                                 <div class=\"div-more-advice\">
  1488.                                     {% for advice in training_advices %}
  1489.                                         {% set adviceCount = adviceCount + 1 %}
  1490.                                         {% if adviceCount > 6 %}
  1491.                                             {% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
  1492.                                         {% endif %}
  1493.                                     {% endfor %}
  1494.                                 </div>
  1495.                             {% endif %}
  1496.                         </div>
  1497.                     </div>
  1498.                 </div>
  1499.             </div>
  1500.         </div>
  1501.     {% endif %}
  1502.     {% if form is defined and app.user %}
  1503.         <div class=\"row\">
  1504.             <div class=\"col-lg-9 col-md-8\">
  1505.                 <p class=\"small-description\">{{ 'front.scholar.training.show.sub_title.advice.sentence.enter_key.label'|trans }}</p>
  1506.             </div>
  1507.         </div>
  1508.         <div class=\"row\" {% if advice_user is defined and advice_user is not null %} {% if advice_user.note is not null %}data-advice-current-note=\"{{ advice_user.note }}\"{% endif %}{% endif %}>
  1509.             <div class=\"col-lg-9 col-md-8 mt-1\">
  1510.                 <div class=\"form-advice-content\">
  1511.                     <div class=\"avatar-rounded\">{{ app.user|user_avatar }}</div>
  1512.                     <div class=\"form-advice-bg-gray\">
  1513.                         {{ form_start(form) }}
  1514.                         <div style=\"display: none\">
  1515.                             {{ form_widget(form.note) }}
  1516.                         </div>
  1517.                         {{ form_widget(form.comment) }}
  1518.                         {{ form_errors(form.comment) }}
  1519.                         {{ form_end(form) }}
  1520.                         <div class=\"stars-rating\">
  1521.                             <i class=\"far fa-star\" data-rating=\"1\"></i>
  1522.                             <i class=\"far fa-star\" data-rating=\"2\"></i>
  1523.                             <i class=\"far fa-star\" data-rating=\"3\"></i>
  1524.                             <i class=\"far fa-star\" data-rating=\"4\"></i>
  1525.                             <i class=\"far fa-star\" data-rating=\"5\"></i>
  1526.                         </div>
  1527.                         <div class=\"center-y ml-2\">
  1528.                             <span id=\"span-nb-note-advice\">0</span>
  1529.                         </div>
  1530.                     </div>
  1531.                 </div>
  1532.             </div>
  1533.         </div>
  1534.         {% if advice_user is not null %}
  1535.             {% if advice_user.id is not null %}
  1536.                 <div class=\"row\">
  1537.                     <div class=\"col-lg-9 col-md-8 mt-1\">
  1538.                         <div class=\"w100-flex-end-x\">
  1539.                             <a class=\"delete-btn-advice\"
  1540.                                href=\"{{ path('front_training_advice_delete', {'id' : advice_user.id}) }}\">{{ 'front.scholar.training.show.sub_title.advice.action.delete.label'|trans }}</a>
  1541.                         </div>
  1542.                     </div>
  1543.                 </div>
  1544.             {% endif %}
  1545.         {% endif %}
  1546.     {% endif %}
  1547.     {% if training_advices is defined and training_advices|length > 5 %}
  1548.         <div class=\"row\">
  1549.             <div class=\"col-lg-9 col-md-8 mt-5\">
  1550.                 <div class=\"w100-flex-center-x\">
  1551.                     <button class=\"see-more-btn\"
  1552.                             id=\"training-advice-see-more\">{{ 'front.scholar.training.advice.see_more.label'|trans({'%count%': training_advices|length}) }}</button>
  1553.                 </div>
  1554.             </div>
  1555.         </div>
  1556.     {% endif %}
  1557.     <div class=\"empty-div-bottom\"></div>
  1558. {% endblock inner_content %}
  1559. {% block body %}
  1560.     {{ parent() }}
  1561.     {% if is_granted('CHANNEL_USER_PERM_TRAINING_SHOW', sub) %}
  1562.         <div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
  1563.              aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
  1564.             <div class=\"modal-dialog\" role=\"document\">
  1565.                 <div class=\"modal-content\">
  1566.                     <div class=\"modal-header\">
  1567.                         <h5 class=\"modal-title\" id=\"delete-modal-label\">
  1568.                             {{ 'front.scholar.training.show.actions.delete.modal.title.label'|trans({
  1569.                                 '%name%': sub.name,
  1570.                             })|raw }}
  1571.                         </h5>
  1572.                     </div>
  1573.                     <div class=\"modal-body\">
  1574.                         {{ 'front.scholar.training.show.actions.delete.modal.body.label'|trans({
  1575.                             '%name%': sub.name,
  1576.                         })|raw }}
  1577.                     </div>
  1578.                     <div class=\"modal-footer\">
  1579.                         <button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
  1580.                             {{ 'front.scholar.training.show.actions.delete.modal.cancel.label'|trans }}
  1581.                         </button>
  1582.                         <a href=\"{{ path('front_channel_training_delete', {'id': sub.id, 'channelId': channel.id}) }}\"
  1583.                            class=\"btn btn-danger btn-raised\">
  1584.                             {{ 'front.scholar.training.show.actions.delete.modal.delete.label'|trans }}
  1585.                         </a>
  1586.                     </div>
  1587.                 </div>
  1588.             </div>
  1589.         </div>
  1590.     {% endif %}
  1591. {% endblock body %}
  1592. ""Front/Scholar/Training/show.html.twig""/var/www/html/templates/Front/Scholar/Training/show.html.twig");
  1593.     }
  1594. }
  1595. /* Front/Scholar/Training/show.html.twig */
  1596. class __TwigTemplate_463832754a223d6b82c017c3faf085b84c0c59653fbbbd2dca2cbfdbbe4119ca___1768536394 extends Template
  1597. {
  1598.     private $source;
  1599.     private $macros = [];
  1600.     public function __construct(Environment $env)
  1601.     {
  1602.         parent::__construct($env);
  1603.         $this->source $this->getSourceContext();
  1604.         $this->blocks = [
  1605.         ];
  1606.     }
  1607.     protected function doGetParent(array $context)
  1608.     {
  1609.         // line 32
  1610.         return "@NellappSDK/Components/channelUserData/cursus_lockout.html.twig";
  1611.     }
  1612.     protected function doDisplay(array $context, array $blocks = [])
  1613.     {
  1614.         $macros $this->macros;
  1615.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1616.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Training/show.html.twig"));
  1617.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1618.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Training/show.html.twig"));
  1619.         $this->parent $this->loadTemplate("@NellappSDK/Components/channelUserData/cursus_lockout.html.twig""Front/Scholar/Training/show.html.twig"32);
  1620.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  1621.         
  1622.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1623.         
  1624.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1625.     }
  1626.     public function getTemplateName()
  1627.     {
  1628.         return "Front/Scholar/Training/show.html.twig";
  1629.     }
  1630.     public function isTraitable()
  1631.     {
  1632.         return false;
  1633.     }
  1634.     public function getDebugInfo()
  1635.     {
  1636.         return array (  1722 => 32,  1184 => 471,  1179 => 469,  1173 => 466,  1166 => 461,  1164 => 460,  1163 => 459,  1156 => 454,  1154 => 453,  1153 => 452,  1145 => 446,  1143 => 445,  1138 => 444,  1128 => 443,  1117 => 440,  1109 => 435,  1103 => 431,  1101 => 430,  1095 => 426,  1092 => 425,  1089 => 424,  1079 => 419,  1073 => 415,  1070 => 414,  1068 => 413,  1050 => 398,  1046 => 397,  1042 => 396,  1037 => 394,  1032 => 392,  1027 => 390,  1014 => 387,  1008 => 384,  1004 => 382,  1001 => 381,  993 => 375,  989 => 373,  975 => 372,  972 => 371,  969 => 370,  966 => 369,  963 => 368,  946 => 367,  943 => 366,  940 => 365,  938 => 364,  935 => 363,  921 => 362,  918 => 361,  915 => 360,  912 => 359,  909 => 358,  906 => 357,  903 => 356,  900 => 355,  882 => 354,  879 => 353,  877 => 352,  869 => 347,  865 => 346,  861 => 345,  854 => 340,  852 => 339,  849 => 338,  846 => 337,  828 => 332,  826 => 331,  820 => 327,  803 => 326,  797 => 323,  793 => 322,  789 => 320,  787 => 319,  779 => 313,  777 => 312,  768 => 306,  763 => 303,  757 => 299,  742 => 297,  740 => 296,  737 => 295,  720 => 294,  713 => 290,  709 => 288,  707 => 287,  700 => 282,  696 => 280,  690 => 277,  684 => 275,  681 => 274,  675 => 271,  671 => 269,  669 => 268,  668 => 267,  667 => 266,  666 => 265,  664 => 264,  661 => 263,  659 => 262,  656 => 261,  650 => 258,  647 => 257,  645 => 256,  643 => 255,  641 => 254,  635 => 251,  623 => 242,  619 => 240,  617 => 239,  614 => 238,  612 => 237,  609 => 236,  603 => 233,  595 => 229,  593 => 228,  590 => 227,  588 => 226,  584 => 224,  577 => 220,  570 => 215,  567 => 214,  558 => 210,  550 => 204,  547 => 203,  544 => 202,  535 => 198,  528 => 193,  525 => 192,  516 => 188,  509 => 183,  507 => 182,  504 => 181,  497 => 177,  490 => 172,  488 => 171,  483 => 168,  477 => 165,  474 => 164,  472 => 163,  468 => 162,  464 => 161,  458 => 157,  456 => 156,  446 => 149,  438 => 143,  431 => 139,  422 => 133,  418 => 132,  412 => 128,  398 => 127,  395 => 126,  378 => 125,  375 => 124,  372 => 123,  358 => 122,  355 => 121,  338 => 120,  333 => 118,  329 => 116,  319 => 115,  307 => 112,  299 => 107,  289 => 99,  286 => 96,  285 => 95,  282 => 92,  281 => 91,  279 => 90,  271 => 84,  263 => 81,  259 => 79,  257 => 78,  252 => 76,  240 => 66,  237 => 63,  236 => 62,  233 => 59,  232 => 58,  230 => 57,  226 => 55,  218 => 52,  214 => 50,  212 => 49,  207 => 47,  199 => 44,  194 => 41,  192 => 39,  191 => 38,  186 => 34,  183 => 33,  179 => 32,  176 => 31,  173 => 30,  163 => 29,  142 => 28,  128 => 23,  124 => 21,  121 => 20,  118 => 19,  115 => 18,  113 => 17,  109 => 15,  106 => 14,  96 => 13,  84 => 10,  79 => 9,  69 => 8,  58 => 1,  56 => 5,  55 => 4,  53 => 3,  40 => 1,);
  1637.     }
  1638.     public function getSourceContext()
  1639.     {
  1640.         return new Source("{% extends 'base.html.twig' %}
  1641. {% set currentRoute = app.request.attributes.get('_route') %}
  1642. {% set has_front_access = is_granted('FRONT_ACCESS', {
  1643.     'training': sub,
  1644. }) %}
  1645. {% block stylesheets %}
  1646.     {{ parent() }}
  1647.     {{ encore_entry_link_tags('styles', 'core', 'core') }}
  1648. {% endblock %}
  1649. {% block before_navbar %}
  1650.     {% if currentRoute == 'manager_channel_training_show' %}
  1651.         <div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
  1652.             {% set headerReturnLink = null %}
  1653.             {% if currentRoute == 'manager_channel_training_show' %}
  1654.                 {% set headerReturnLink = path('manager_channel_trainings', {'channelId': channel.id}) %}
  1655.             {% endif %}
  1656.             <div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
  1657.             <div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
  1658.         </div>
  1659.     {% endif %}
  1660. {% endblock before_navbar %}
  1661. {% block title %}{{ sub.name }} - {{ parent() }}{% endblock %}
  1662. {% block content %}
  1663.     {% set advice_avg = sub|advice_avg_by_training %}
  1664.     {% if app.user %}
  1665.         {% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
  1666.     {% endif %}
  1667.     <div class=\"jumbotron-v2 mb-4\">
  1668.         <div class=\"container\">
  1669.             <h2 class=\"v2-title-big\">
  1670.                 {{- 'front.scholar.training.show.title.label'|trans({
  1671.                     '%name%': sub.name,
  1672.                 }) -}}
  1673.             </h2>
  1674.             <div class=\"md-none\">
  1675.                 <div class=\"info-content mt-4 {% if advice_avg is same as null %} info-without-advice {% endif %}\">
  1676.                     <div>
  1677.                         <i class=\"fas fa-users\"></i>
  1678.                         <p>{{ sub|countCursusForTraining }}</p>
  1679.                     </div>
  1680.                     {% if advice_avg is not same as null %}
  1681.                         <div>
  1682.                             <i class=\"fas fa-star\"></i>
  1683.                             <p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
  1684.                         </div>
  1685.                     {% endif %}
  1686.                     <div class=\"dot-div\"></div>
  1687.                     <div>
  1688.                         {% if sub.updatedAt is not null %}
  1689.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1690.                                 '%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
  1691.                             })|raw -}}
  1692.                         {% else %}
  1693.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1694.                                 '%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
  1695.                             })|raw -}}
  1696.                         {% endif %}
  1697.                     </div>
  1698.                 </div>
  1699.             </div>
  1700.             <div class=\"md-set\">
  1701.                 <div class=\"info-content mt-4\">
  1702.                     <div>
  1703.                         <div>
  1704.                             <i class=\"fas fa-users\"></i>
  1705.                             <p>{{ sub|countCursusForTraining }}</p>
  1706.                         </div>
  1707.                         {% if advice_avg is not same as null %}
  1708.                             <div class=\"info-content-stars\">
  1709.                                 <i class=\"fas fa-star\"></i>
  1710.                                 <p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
  1711.                             </div>
  1712.                         {% endif %}
  1713.                     </div>
  1714.                     <div class=\"mt-2\">
  1715.                         <div class=\"dot-div\">
  1716.                             <i class=\"fas fa-circle\"></i>
  1717.                         </div>
  1718.                         <div>
  1719.                             {% if sub.updatedAt is not null %}
  1720.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  1721.                                     '%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
  1722.                                 })|raw -}}
  1723.                             {% else %}
  1724.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  1725.                                     '%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
  1726.                                 })|raw -}}
  1727.                             {% endif %}
  1728.                         </div>
  1729.                     </div>
  1730.                 </div>
  1731.             </div>
  1732.             <div class=\"description mt-4\">
  1733.                 <p>{{ sub.description }}</p>
  1734.             </div>
  1735.         </div>
  1736.     </div>
  1737.     {{ parent() }}
  1738. {% endblock content %}
  1739. {% block inner_content %}
  1740.     <div class=\"row\">
  1741.         <div class=\"col-lg-9 col-md-8 mb-3\">
  1742.             <h2 class=\"v2-title-small mt-5\">{{ 'front.scholar.training.show.sub_title.programm.label'|trans }}</h2>
  1743.             <div id=\"accordion\" class=\"accordion-nellapp mt-5\">
  1744.                 {% for module in firstModules %}
  1745.                     {% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training' : sub} %}
  1746.                 {% endfor %}
  1747.                 {% if lastModules|length %}
  1748.                     <div class=\"more-module\" style=\"display: none\">
  1749.                         {% for module in lastModules %}
  1750.                             {% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training': sub} %}
  1751.                         {% endfor %}
  1752.                     </div>
  1753.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
  1754.                         <button class=\"btn-see-more-v2\"
  1755.                                 data-btn-more-module=\"true\">
  1756.                             {{ 'front.scholar.training.list.button.see_more.label'|trans }}
  1757.                             5/{{ 5 + lastModules|length }}
  1758.                         </button>
  1759.                     </div>
  1760.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
  1761.                         <button class=\"btn-see-more-v2\"
  1762.                                 data-btn-less-module=\"true\">
  1763.                             {{ 'front.scholar.training.list.button.see_less.label'|trans }}
  1764.                         </button>
  1765.                     </div>
  1766.                 {% endif %}
  1767.             </div>
  1768.         </div>
  1769.         <div class=\"col-lg-3 col-md-4 order-first order-md-last\">
  1770.             <div class=\"card-elevation-training\">
  1771.                 <div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
  1772.                     <img class=\"img-top-card\" src=\"{{ sub|get_training_img_url }}\">
  1773.                 </div>
  1774.                 <div class=\"card-body\">
  1775.                     <div class=\"channel-name d-flex\">
  1776.                         <div>
  1777.                             <div class=\"img-logo-rounded\">
  1778.                                 {% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': sub.ownerChannel} %}
  1779.                             </div>
  1780.                         </div>
  1781.                         <div class=\"channel-description\">
  1782.                             <a href=\"{{ path('front_channel_show', {'channelId' : sub.ownerChannel.id }) }}\"
  1783.                                class=\"font-weight-bold\">{{ sub.ownerChannel.name }}</a>
  1784.                             {% if sub.ownerChannel.slogan is not empty %}
  1785.                                 <p class=\"small\">
  1786.                                     {{ sub.ownerChannel.slogan }}
  1787.                                 </p>
  1788.                             {% endif %}
  1789.                         </div>
  1790.                     </div>
  1791.                     <div class=\"training-stats mt-4\">
  1792.                         {% if sub.trainingType is not null %}
  1793.                             <div class=\"row mt-3\">
  1794.                                 <div class=\"col-12 content-stat\">
  1795.                                     <div>
  1796.                                         <i class=\"fas fa-book-open\"></i>
  1797.                                     </div>
  1798.                                     <p>{{ sub | get_training_type_key | trans }}</p>
  1799.                                 </div>
  1800.                             </div>
  1801.                         {% endif %}
  1802.                         {% if sub.totalHourDescription is not null %}
  1803.                             <div class=\"row mt-3\">
  1804.                                 <div class=\"col-12 content-stat\">
  1805.                                     <div>
  1806.                                         <i class=\"fas fa-stopwatch\"></i>
  1807.                                     </div>
  1808.                                     <p>{{ sub.totalHourDescription }} {{ 'front.scholar.training.show.card.total_hour.label'|trans }}</p>
  1809.                                 </div>
  1810.                             </div>
  1811.                         {% endif %}
  1812.                         {% if sub.videoDescription is not null %}
  1813.                             <div class=\"row mt-3\">
  1814.                                 <div class=\"col-12 content-stat\">
  1815.                                     <div>
  1816.                                         <i class=\"fas fa-file-video\"></i>
  1817.                                     </div>
  1818.                                     <p>{{ sub.videoDescription }} {{ 'front.scholar.training.show.card.video_time.label'|trans }}</p>
  1819.                                 </div>
  1820.                             </div>
  1821.                         {% endif %}
  1822.                         {% set count_exercises = sub|count_exercises_by_training %}
  1823.                         {% if count_exercises != 0 %}
  1824.                             <div class=\"row mt-3\">
  1825.                                 <div class=\"col-12 content-stat\">
  1826.                                     <div>
  1827.                                         <i class=\"far fa-list-alt\"></i>
  1828.                                     </div>
  1829.                                     <p>{{ count_exercises }} {{ 'front.scholar.training.show.card.use_case.label'|trans }}</p>
  1830.                                 </div>
  1831.                             </div>
  1832.                         {% endif %}
  1833.                         {% if sub.diplomaDescription is not null %}
  1834.                             <div class=\"row mt-3\">
  1835.                                 <div class=\"col-12 content-stat\">
  1836.                                     <div>
  1837.                                         <i class=\"fas fa-graduation-cap\"></i>
  1838.                                     </div>
  1839.                                     <p>{{ sub.diplomaDescription }}</p>
  1840.                                 </div>
  1841.                             </div>
  1842.                         {% endif %}
  1843.                     </div>
  1844.                     {% if sub.trainingProduct is not null and not has_front_access %}
  1845.                         <div class=\"mt-4 w100-flex-center-x\">
  1846.                             {% set value = sub.trainingProduct.price * 1 %}
  1847.                             <p class=\"price-card-training\">{{ 'front.scholar.training.show.card.price.label'|trans({'%price%' : value}) }}
  1848.                                 *</p>
  1849.                         </div>
  1850.                         <div class=\"mt-2 w100-flex-center-x\">
  1851.                             <p class=\"price-note-card-training\">{{ 'front.scholar.training.show.card.price.note'|trans({'%funding_contact_path%' : path('front_channel_training_payment_funding_contact', {'training_id': sub.id})}) | raw }}</p>
  1852.                         </div>
  1853.                     {% endif %}
  1854.                     {% if not sub.public and currentRoute == 'front_channel_training_show' %}
  1855.                         <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
  1856.                             {% if has_front_access %}
  1857.                                 <div class=\"w100-flex-center-x\">
  1858.                                     <div class=\"progress-circle\">
  1859.                                         <div class=\"c100 p{{ trainingProgression.progression }} blue light-green-fill medium\">
  1860.                                             <div class=\"slice\">
  1861.                                                 <div class=\"bar\"></div>
  1862.                                                 <div class=\"fill\"></div>
  1863.                                             </div>
  1864.                                         </div>
  1865.                                     </div>
  1866.                                 </div>
  1867.                                 <div class=\"mb-2 training-progress-percent\">
  1868.                                     {{ trainingProgression.progression }} %
  1869.                                 </div>
  1870.                                 {% if nellapp_url_exist('core', 'app_account_show_cursus') and cursus is defined and cursus is not null %}
  1871.                                     <a href=\"{{ nellapp_url('core', 'app_account_show_cursus', {
  1872.                                         'cursusId': cursus.id
  1873.                                     }) }}\"
  1874.                                        class=\"see-training-progress-link\">{{ 'front.scholar.training.show.card.progression.link.label' | trans }}
  1875.                                     </a>
  1876.                                 {% endif %}
  1877.                                 {% set lastChapterAchieved = getLastAchievedChapter(sub) %}
  1878.                                 {% if lastChapterAchieved is not null %}
  1879.                                     <a href=\"{{ path('front_channel_chapter_show', {
  1880.                                         'trainingId': lastChapterAchieved['trainingId'],
  1881.                                         'moduleId': lastChapterAchieved['moduleId'],
  1882.                                         'lessonId': lastChapterAchieved['lessonId'],
  1883.                                         'chapterId': lastChapterAchieved['chapterId'],
  1884.                                     }) }}\"
  1885.                                        class=\"btn-nellapp-v2 mt-3 d-inline-block\">
  1886.                                         {{ 'front.scholar.training.show.card.continue_btn.label' | trans }}
  1887.                                     </a>
  1888.                                 {% endif %}
  1889.                             {% else %}
  1890.                                 <a href=\"{{ path('front_channel_training_payment_funding_contact', {'training_id': sub.id}) }}\"
  1891.                                    class=\"btn btn-nellapp-v2\">
  1892.                                     {{ 'front.scholar.training.show.actions.follow.label'|trans }}
  1893.                                 </a>
  1894.                             {% endif %}
  1895.                         </div>
  1896.                     {% endif %}
  1897.                 </div>
  1898.             </div>
  1899.         </div>
  1900.     </div>
  1901.     {% if training_descriptions|length > 0 %}
  1902.         <div class=\"row\">
  1903.             <div class=\"col-12\">
  1904.                 <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.plus.label'|trans }}</h2>
  1905.             </div>
  1906.             <div class=\"col-lg-9 col-md-8\">
  1907.                 <div class=\"row\">
  1908.                     {% for description in training_descriptions %}
  1909.                         <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
  1910.                             {% include 'Front/Scholar/Card/training-description.html.twig' with {'description' : description} %}
  1911.                         </div>
  1912.                     {% endfor %}
  1913.                 </div>
  1914.             </div>
  1915.         </div>
  1916.     {% endif %}
  1917.     <div class=\"row mt-3\">
  1918.         <div class=\"col-12\">
  1919.             <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.channel.label'|trans }}</h2>
  1920.         </div>
  1921.         <div class=\"col-lg-9 col-md-8\">
  1922.             <div class=\"row\">
  1923.                 <div class=\"col-12\">
  1924.                     <div class=\"mt-3\">
  1925.                         {% include 'Front/Scholar/Card/channel.html.twig' with {'channel' : sub.ownerChannel} %}
  1926.                     </div>
  1927.                 </div>
  1928.             </div>
  1929.         </div>
  1930.     </div>
  1931.     {% if teacher_entities|length > 0 %}
  1932.         <div class=\"row mt-3\">
  1933.             <div class=\"col-12\">
  1934.                 <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}
  1935.                     ({{ teacher_entities|length }})</h2>
  1936.             </div>
  1937.         </div>
  1938.         {% for teacher in teacher_entities %}
  1939.             <div class=\"col-lg-9 col-md-8\">
  1940.                 <div class=\"row\">
  1941.                     <div class=\"col-12\">
  1942.                         <div class=\"mt-3\">
  1943.                             {% include 'Front/Scholar/Card/teacher.html.twig' with {'teacher' : teacher} %}
  1944.                         </div>
  1945.                     </div>
  1946.                 </div>
  1947.             </div>
  1948.         {% endfor %}
  1949.     {% endif %}
  1950.     {% if training_advices is defined and training_advices|length > 0 %}
  1951.         <div class=\"row mt-3 mb-5\">
  1952.             <div class=\"col-lg-9 col-md-8\">
  1953.                 <div class=\"row\">
  1954.                     <div class=\"col-12\">
  1955.                         <div class=\"div-title-between mt-5 mb-2\">
  1956.                             <h2 class=\"v2-title-small\">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}
  1957.                                 ({{ training_advices|length }})</h2>
  1958.                             <p class=\"\"><i class=\"far fa-star\"></i> {{ advice_avg }}</p>
  1959.                         </div>
  1960.                     </div>
  1961.                     <div class=\"col-12\">
  1962.                         <div class=\"mt-3\">
  1963.                             {% set adviceCount = 1 %}
  1964.                             {% set break = false %}
  1965.                             {% for advice in training_advices %}
  1966.                                 {% if not break %}
  1967.                                     {% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
  1968.                                     {% set adviceCount = adviceCount + 1 %}
  1969.                                     {% if adviceCount == 6 %}
  1970.                                         {% set break = true %}
  1971.                                     {% endif %}
  1972.                                 {% endif %}
  1973.                             {% endfor %}
  1974.                             {% set adviceCount = 1 %}
  1975.                             {% if training_advices|length > 5 %}
  1976.                                 <div class=\"div-more-advice\">
  1977.                                     {% for advice in training_advices %}
  1978.                                         {% set adviceCount = adviceCount + 1 %}
  1979.                                         {% if adviceCount > 6 %}
  1980.                                             {% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
  1981.                                         {% endif %}
  1982.                                     {% endfor %}
  1983.                                 </div>
  1984.                             {% endif %}
  1985.                         </div>
  1986.                     </div>
  1987.                 </div>
  1988.             </div>
  1989.         </div>
  1990.     {% endif %}
  1991.     {% if form is defined and app.user %}
  1992.         <div class=\"row\">
  1993.             <div class=\"col-lg-9 col-md-8\">
  1994.                 <p class=\"small-description\">{{ 'front.scholar.training.show.sub_title.advice.sentence.enter_key.label'|trans }}</p>
  1995.             </div>
  1996.         </div>
  1997.         <div class=\"row\" {% if advice_user is defined and advice_user is not null %} {% if advice_user.note is not null %}data-advice-current-note=\"{{ advice_user.note }}\"{% endif %}{% endif %}>
  1998.             <div class=\"col-lg-9 col-md-8 mt-1\">
  1999.                 <div class=\"form-advice-content\">
  2000.                     <div class=\"avatar-rounded\">{{ app.user|user_avatar }}</div>
  2001.                     <div class=\"form-advice-bg-gray\">
  2002.                         {{ form_start(form) }}
  2003.                         <div style=\"display: none\">
  2004.                             {{ form_widget(form.note) }}
  2005.                         </div>
  2006.                         {{ form_widget(form.comment) }}
  2007.                         {{ form_errors(form.comment) }}
  2008.                         {{ form_end(form) }}
  2009.                         <div class=\"stars-rating\">
  2010.                             <i class=\"far fa-star\" data-rating=\"1\"></i>
  2011.                             <i class=\"far fa-star\" data-rating=\"2\"></i>
  2012.                             <i class=\"far fa-star\" data-rating=\"3\"></i>
  2013.                             <i class=\"far fa-star\" data-rating=\"4\"></i>
  2014.                             <i class=\"far fa-star\" data-rating=\"5\"></i>
  2015.                         </div>
  2016.                         <div class=\"center-y ml-2\">
  2017.                             <span id=\"span-nb-note-advice\">0</span>
  2018.                         </div>
  2019.                     </div>
  2020.                 </div>
  2021.             </div>
  2022.         </div>
  2023.         {% if advice_user is not null %}
  2024.             {% if advice_user.id is not null %}
  2025.                 <div class=\"row\">
  2026.                     <div class=\"col-lg-9 col-md-8 mt-1\">
  2027.                         <div class=\"w100-flex-end-x\">
  2028.                             <a class=\"delete-btn-advice\"
  2029.                                href=\"{{ path('front_training_advice_delete', {'id' : advice_user.id}) }}\">{{ 'front.scholar.training.show.sub_title.advice.action.delete.label'|trans }}</a>
  2030.                         </div>
  2031.                     </div>
  2032.                 </div>
  2033.             {% endif %}
  2034.         {% endif %}
  2035.     {% endif %}
  2036.     {% if training_advices is defined and training_advices|length > 5 %}
  2037.         <div class=\"row\">
  2038.             <div class=\"col-lg-9 col-md-8 mt-5\">
  2039.                 <div class=\"w100-flex-center-x\">
  2040.                     <button class=\"see-more-btn\"
  2041.                             id=\"training-advice-see-more\">{{ 'front.scholar.training.advice.see_more.label'|trans({'%count%': training_advices|length}) }}</button>
  2042.                 </div>
  2043.             </div>
  2044.         </div>
  2045.     {% endif %}
  2046.     <div class=\"empty-div-bottom\"></div>
  2047. {% endblock inner_content %}
  2048. {% block body %}
  2049.     {{ parent() }}
  2050.     {% if is_granted('CHANNEL_USER_PERM_TRAINING_SHOW', sub) %}
  2051.         <div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
  2052.              aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
  2053.             <div class=\"modal-dialog\" role=\"document\">
  2054.                 <div class=\"modal-content\">
  2055.                     <div class=\"modal-header\">
  2056.                         <h5 class=\"modal-title\" id=\"delete-modal-label\">
  2057.                             {{ 'front.scholar.training.show.actions.delete.modal.title.label'|trans({
  2058.                                 '%name%': sub.name,
  2059.                             })|raw }}
  2060.                         </h5>
  2061.                     </div>
  2062.                     <div class=\"modal-body\">
  2063.                         {{ 'front.scholar.training.show.actions.delete.modal.body.label'|trans({
  2064.                             '%name%': sub.name,
  2065.                         })|raw }}
  2066.                     </div>
  2067.                     <div class=\"modal-footer\">
  2068.                         <button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
  2069.                             {{ 'front.scholar.training.show.actions.delete.modal.cancel.label'|trans }}
  2070.                         </button>
  2071.                         <a href=\"{{ path('front_channel_training_delete', {'id': sub.id, 'channelId': channel.id}) }}\"
  2072.                            class=\"btn btn-danger btn-raised\">
  2073.                             {{ 'front.scholar.training.show.actions.delete.modal.delete.label'|trans }}
  2074.                         </a>
  2075.                     </div>
  2076.                 </div>
  2077.             </div>
  2078.         </div>
  2079.     {% endif %}
  2080. {% endblock body %}
  2081. ""Front/Scholar/Training/show.html.twig""/var/www/html/templates/Front/Scholar/Training/show.html.twig");
  2082.     }
  2083. }