var/cache/dev/twig/33/33d1c96f276d6efb58c140a7b1ac82f6047a4528261cdeca79dbc6b68da11816.php line 58

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_8f1f2bd0a5100175e783d35c4ae402ca5e29c7cbc398f6a148c34ae55ac6bfd1 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.             'before_navbar' => [$this'block_before_navbar'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.             'inner_content' => [$this'block_inner_content'],
  27.             'body' => [$this'block_body'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Training/show.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Scholar/Training/show.html.twig"));
  42.         // line 3
  43.         $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);
  44.         // line 4
  45.         $context["has_front_access"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("FRONT_ACCESS", ["training" =>         // line 5
  46. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'5$this->source); })())]);
  47.         // line 1
  48.         $this->parent $this->loadTemplate("base.html.twig""Front/Scholar/Training/show.html.twig"1);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     // line 8
  56.     public function block_before_navbar($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""before_navbar"));
  63.         // line 9
  64.         echo "    ";
  65.         if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'9$this->source); })()) == "manager_channel_training_show")) {
  66.             // line 10
  67.             echo "        <div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
  68.             ";
  69.             // line 12
  70.             $context["headerReturnLink"] = null;
  71.             // line 13
  72.             echo "            ";
  73.             if (((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'13$this->source); })()) == "manager_channel_training_show")) {
  74.                 // line 14
  75.                 echo "                ";
  76.                 $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.'14$this->source); })()), "id", [], "any"falsefalsefalse14)]);
  77.                 // line 15
  78.                 echo "            ";
  79.             }
  80.             // line 16
  81.             echo "
  82.             <div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
  83.             <div style=\"font-weight: bold\"><a href=\"";
  84.             // line 18
  85.             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.'18$this->source); })()), "html"nulltrue);
  86.             echo "\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
  87.         </div>
  88.     ";
  89.         }
  90.         
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  92.         
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  94.     }
  95.     // line 23
  96.     public function block_title($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  103.         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.'23$this->source); })()), "name", [], "any"falsefalsefalse23), "html"nulltrue);
  104.         echo " - ";
  105.         $this->displayParentBlock("title"$context$blocks);
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     // line 24
  112.     public function block_content($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  119.         // line 25
  120.         echo "    ";
  121.         $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.'25$this->source); })()));
  122.         // line 26
  123.         echo "    <div class=\"jumbotron-v2 mb-4\">
  124.         <div class=\"container\">
  125.             <h2 class=\"v2-title-big\">";
  126.         // line 29
  127.         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 30
  128. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'30$this->source); })()), "name", [], "any"falsefalsefalse30)]), "html"nulltrue);
  129.         // line 32
  130.         echo "</h2>
  131.             <div class=\"md-none\">
  132.                 <div class=\"info-content mt-4 ";
  133.         // line 35
  134.         if (((isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'35$this->source); })()) === null)) {
  135.             echo " info-without-advice ";
  136.         }
  137.         echo "\">
  138.                     <div>
  139.                         <i class=\"fas fa-users\"></i>
  140.                         <p>";
  141.         // line 38
  142.         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.'38$this->source); })())), "html"nulltrue);
  143.         echo "</p>
  144.                     </div>
  145.                     ";
  146.         // line 40
  147.         if ( !((isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'40$this->source); })()) === null)) {
  148.             // line 41
  149.             echo "                        <div>
  150.                             <i class=\"fas fa-star\"></i>
  151.                             <p>";
  152.             // line 43
  153.             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.'43$this->source); })()), "html"nulltrue);
  154.             echo " (";
  155.             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.'43$this->source); })())), "html"nulltrue);
  156.             echo ")</p>
  157.                         </div>
  158.                     ";
  159.         }
  160.         // line 46
  161.         echo "                    <div class=\"dot-div\"></div>
  162.                     <div>
  163.                         ";
  164.         // line 48
  165.         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.'48$this->source); })()), "updatedAt", [], "any"falsefalsefalse48))) {
  166.             // line 49
  167.             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 50
  168. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'50$this->source); })()), "updatedAt", [], "any"falsefalsefalse50), "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.'50$this->source); })()), "request", [], "any"falsefalsefalse50), "locale", [], "any"falsefalsefalse50))]);
  169.         } else {
  170.             // line 53
  171.             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 54
  172. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'54$this->source); })()), "createdAt", [], "any"falsefalsefalse54), "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.'54$this->source); })()), "request", [], "any"falsefalsefalse54), "locale", [], "any"falsefalsefalse54))]);
  173.         }
  174.         // line 57
  175.         echo "                    </div>
  176.                 </div>
  177.             </div>
  178.             <div class=\"md-set\">
  179.                 <div class=\"info-content mt-4\">
  180.                     <div>
  181.                         <div>
  182.                             <i class=\"fas fa-users\"></i>
  183.                             <p>";
  184.         // line 67
  185.         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.'67$this->source); })())), "html"nulltrue);
  186.         echo "</p>
  187.                         </div>
  188.                         ";
  189.         // line 69
  190.         if ( !((isset($context["advice_avg"]) || array_key_exists("advice_avg"$context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.'69$this->source); })()) === null)) {
  191.             // line 70
  192.             echo "                            <div class=\"info-content-stars\">
  193.                                 <i class=\"fas fa-star\"></i>
  194.                                 <p>";
  195.             // line 72
  196.             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.'72$this->source); })()), "html"nulltrue);
  197.             echo " (";
  198.             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.'72$this->source); })())), "html"nulltrue);
  199.             echo ")</p>
  200.                             </div>
  201.                         ";
  202.         }
  203.         // line 75
  204.         echo "                    </div>
  205.                     <div class=\"mt-2\">
  206.                         <div class=\"dot-div\">
  207.                             <i class=\"fas fa-circle\"></i>
  208.                         </div>
  209.                         <div>
  210.                             ";
  211.         // line 81
  212.         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.'81$this->source); })()), "updatedAt", [], "any"falsefalsefalse81))) {
  213.             // line 82
  214.             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 83
  215. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'83$this->source); })()), "updatedAt", [], "any"falsefalsefalse83), "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.'83$this->source); })()), "request", [], "any"falsefalsefalse83), "locale", [], "any"falsefalsefalse83))]);
  216.         } else {
  217.             // line 86
  218.             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 87
  219. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'87$this->source); })()), "createdAt", [], "any"falsefalsefalse87), "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.'87$this->source); })()), "request", [], "any"falsefalsefalse87), "locale", [], "any"falsefalsefalse87))]);
  220.         }
  221.         // line 90
  222.         echo "                        </div>
  223.                     </div>
  224.                 </div>
  225.             </div>
  226.             <div class=\"description mt-4\">
  227.                 <p>";
  228.         // line 98
  229.         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.'98$this->source); })()), "description", [], "any"falsefalsefalse98), "html"nulltrue);
  230.         echo "</p>
  231.             </div>
  232.         </div>
  233.     </div>
  234.     ";
  235.         // line 103
  236.         $this->displayParentBlock("content"$context$blocks);
  237.         echo "
  238. ";
  239.         
  240.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  241.         
  242.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  243.     }
  244.     // line 106
  245.     public function block_inner_content($context, array $blocks = [])
  246.     {
  247.         $macros $this->macros;
  248.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  249.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  250.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  251.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  252.         // line 107
  253.         echo "    <div class=\"row\">
  254.         <div class=\"col-lg-9 col-md-8 mb-3\">
  255.             <h2 class=\"v2-title-small mt-5\">";
  256.         // line 109
  257.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.programm.label"), "html"nulltrue);
  258.         echo "</h2>
  259.             <div id=\"accordion\" class=\"accordion-nellapp mt-5\">
  260.                 ";
  261.         // line 111
  262.         $context['_parent'] = $context;
  263.         $context['_seq'] = twig_ensure_traversable((isset($context["firstModules"]) || array_key_exists("firstModules"$context) ? $context["firstModules"] : (function () { throw new RuntimeError('Variable "firstModules" does not exist.'111$this->source); })()));
  264.         $context['loop'] = [
  265.           'parent' => $context['_parent'],
  266.           'index0' => 0,
  267.           'index'  => 1,
  268.           'first'  => true,
  269.         ];
  270.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  271.             $length count($context['_seq']);
  272.             $context['loop']['revindex0'] = $length 1;
  273.             $context['loop']['revindex'] = $length;
  274.             $context['loop']['length'] = $length;
  275.             $context['loop']['last'] = === $length;
  276.         }
  277.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  278.             // line 112
  279.             echo "                    ";
  280.             $this->loadTemplate("Front/Scholar/Training/Partial/accordion-item.html.twig""Front/Scholar/Training/show.html.twig"112)->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.'112$this->source); })())]));
  281.             // line 113
  282.             echo "                ";
  283.             ++$context['loop']['index0'];
  284.             ++$context['loop']['index'];
  285.             $context['loop']['first'] = false;
  286.             if (isset($context['loop']['length'])) {
  287.                 --$context['loop']['revindex0'];
  288.                 --$context['loop']['revindex'];
  289.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  290.             }
  291.         }
  292.         $_parent $context['_parent'];
  293.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  294.         $context array_intersect_key($context$_parent) + $_parent;
  295.         // line 114
  296.         echo "                ";
  297.         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.'114$this->source); })()))) {
  298.             // line 115
  299.             echo "                    <div class=\"more-module\" style=\"display: none\">
  300.                         ";
  301.             // line 116
  302.             $context['_parent'] = $context;
  303.             $context['_seq'] = twig_ensure_traversable((isset($context["lastModules"]) || array_key_exists("lastModules"$context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.'116$this->source); })()));
  304.             $context['loop'] = [
  305.               'parent' => $context['_parent'],
  306.               'index0' => 0,
  307.               'index'  => 1,
  308.               'first'  => true,
  309.             ];
  310.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  311.                 $length count($context['_seq']);
  312.                 $context['loop']['revindex0'] = $length 1;
  313.                 $context['loop']['revindex'] = $length;
  314.                 $context['loop']['length'] = $length;
  315.                 $context['loop']['last'] = === $length;
  316.             }
  317.             foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  318.                 // line 117
  319.                 echo "                            ";
  320.                 $this->loadTemplate("Front/Scholar/Training/Partial/accordion-item.html.twig""Front/Scholar/Training/show.html.twig"117)->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.'117$this->source); })())]));
  321.                 // line 118
  322.                 echo "                        ";
  323.                 ++$context['loop']['index0'];
  324.                 ++$context['loop']['index'];
  325.                 $context['loop']['first'] = false;
  326.                 if (isset($context['loop']['length'])) {
  327.                     --$context['loop']['revindex0'];
  328.                     --$context['loop']['revindex'];
  329.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  330.                 }
  331.             }
  332.             $_parent $context['_parent'];
  333.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  334.             $context array_intersect_key($context$_parent) + $_parent;
  335.             // line 119
  336.             echo "                    </div>
  337.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
  338.                         <button class=\"btn-see-more-v2\"
  339.                                 data-btn-more-module=\"true\">
  340.                             ";
  341.             // line 123
  342.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_more.label"), "html"nulltrue);
  343.             echo "
  344.                             5/";
  345.             // line 124
  346.             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.'124$this->source); })()))), "html"nulltrue);
  347.             echo "
  348.                         </button>
  349.                     </div>
  350.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
  351.                         <button class=\"btn-see-more-v2\"
  352.                                 data-btn-less-module=\"true\">
  353.                             ";
  354.             // line 130
  355.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_less.label"), "html"nulltrue);
  356.             echo "
  357.                         </button>
  358.                     </div>
  359.                 ";
  360.         }
  361.         // line 134
  362.         echo "            </div>
  363.         </div>
  364.         <div class=\"col-lg-3 col-md-4 order-first order-md-last\">
  365.             <div class=\"card-elevation-training\">
  366.                 <div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
  367.                     <img class=\"img-top-card\" src=\"";
  368.         // line 140
  369.         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.'140$this->source); })())), "html"nulltrue);
  370.         echo "\">
  371.                 </div>
  372.                 <div class=\"card-body\">
  373.                     <div class=\"channel-name d-flex\">
  374.                         <div>
  375.                             <div class=\"img-logo-rounded\">
  376.                                 ";
  377.         // line 147
  378.         $this->loadTemplate("Front/Channel/Image/_image_main_avatar.html.twig""Front/Scholar/Training/show.html.twig"147)->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.'147$this->source); })()), "ownerChannel", [], "any"falsefalsefalse147)]));
  379.         // line 148
  380.         echo "                            </div>
  381.                         </div>
  382.                         <div class=\"channel-description\">
  383.                             <a href=\"";
  384.         // line 152
  385.         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.'152$this->source); })()), "ownerChannel", [], "any"falsefalsefalse152), "id", [], "any"falsefalsefalse152)]), "html"nulltrue);
  386.         echo "\"
  387.                                class=\"font-weight-bold\">";
  388.         // line 153
  389.         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.'153$this->source); })()), "ownerChannel", [], "any"falsefalsefalse153), "name", [], "any"falsefalsefalse153), "html"nulltrue);
  390.         echo "</a>
  391.                             ";
  392.         // line 154
  393.         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.'154$this->source); })()), "ownerChannel", [], "any"falsefalsefalse154), "slogan", [], "any"falsefalsefalse154))) {
  394.             // line 155
  395.             echo "                                <p class=\"small\">
  396.                                     ";
  397.             // line 156
  398.             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.'156$this->source); })()), "ownerChannel", [], "any"falsefalsefalse156), "slogan", [], "any"falsefalsefalse156), "html"nulltrue);
  399.             echo "
  400.                                 </p>
  401.                             ";
  402.         }
  403.         // line 159
  404.         echo "                        </div>
  405.                     </div>
  406.                     <div class=\"training-stats mt-4\">
  407.                         ";
  408.         // line 162
  409.         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.'162$this->source); })()), "trainingType", [], "any"falsefalsefalse162))) {
  410.             // line 163
  411.             echo "                            <div class=\"row mt-3\">
  412.                                 <div class=\"col-12 content-stat\">
  413.                                     <div>
  414.                                         <i class=\"fas fa-book-open\"></i>
  415.                                     </div>
  416.                                     <p>";
  417.             // line 168
  418.             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.'168$this->source); })()))), "html"nulltrue);
  419.             echo "</p>
  420.                                 </div>
  421.                             </div>
  422.                         ";
  423.         }
  424.         // line 172
  425.         echo "
  426.                         ";
  427.         // line 173
  428.         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.'173$this->source); })()), "totalHourDescription", [], "any"falsefalsefalse173))) {
  429.             // line 174
  430.             echo "                            <div class=\"row mt-3\">
  431.                                 <div class=\"col-12 content-stat\">
  432.                                     <div>
  433.                                         <i class=\"fas fa-stopwatch\"></i>
  434.                                     </div>
  435.                                     <p>";
  436.             // line 179
  437.             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.'179$this->source); })()), "totalHourDescription", [], "any"falsefalsefalse179), "html"nulltrue);
  438.             echo " ";
  439.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.total_hour.label"), "html"nulltrue);
  440.             echo "</p>
  441.                                 </div>
  442.                             </div>
  443.                         ";
  444.         }
  445.         // line 183
  446.         echo "                        ";
  447.         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.'183$this->source); })()), "videoDescription", [], "any"falsefalsefalse183))) {
  448.             // line 184
  449.             echo "                            <div class=\"row mt-3\">
  450.                                 <div class=\"col-12 content-stat\">
  451.                                     <div>
  452.                                         <i class=\"fas fa-file-video\"></i>
  453.                                     </div>
  454.                                     <p>";
  455.             // line 189
  456.             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.'189$this->source); })()), "videoDescription", [], "any"falsefalsefalse189), "html"nulltrue);
  457.             echo " ";
  458.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.video_time.label"), "html"nulltrue);
  459.             echo "</p>
  460.                                 </div>
  461.                             </div>
  462.                         ";
  463.         }
  464.         // line 193
  465.         echo "                        ";
  466.         $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.'193$this->source); })()));
  467.         // line 194
  468.         echo "                        ";
  469.         if (((isset($context["count_exercises"]) || array_key_exists("count_exercises"$context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.'194$this->source); })()) != 0)) {
  470.             // line 195
  471.             echo "                            <div class=\"row mt-3\">
  472.                                 <div class=\"col-12 content-stat\">
  473.                                     <div>
  474.                                         <i class=\"far fa-list-alt\"></i>
  475.                                     </div>
  476.                                     <p>";
  477.             // line 201
  478.             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.'201$this->source); })()), "html"nulltrue);
  479.             echo " ";
  480.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.use_case.label"), "html"nulltrue);
  481.             echo "</p>
  482.                                 </div>
  483.                             </div>
  484.                         ";
  485.         }
  486.         // line 205
  487.         echo "                        ";
  488.         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.'205$this->source); })()), "diplomaDescription", [], "any"falsefalsefalse205))) {
  489.             // line 206
  490.             echo "                            <div class=\"row mt-3\">
  491.                                 <div class=\"col-12 content-stat\">
  492.                                     <div>
  493.                                         <i class=\"fas fa-graduation-cap\"></i>
  494.                                     </div>
  495.                                     <p>";
  496.             // line 211
  497.             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.'211$this->source); })()), "diplomaDescription", [], "any"falsefalsefalse211), "html"nulltrue);
  498.             echo "</p>
  499.                                 </div>
  500.                             </div>
  501.                         ";
  502.         }
  503.         // line 215
  504.         echo "                    </div>
  505.                     ";
  506.         // line 217
  507.         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.'217$this->source); })()), "trainingProduct", [], "any"falsefalsefalse217)) &&  !(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.'217$this->source); })()))) {
  508.             // line 218
  509.             echo "                        <div class=\"mt-4 w100-flex-center-x\">
  510.                             ";
  511.             // line 219
  512.             $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.'219$this->source); })()), "trainingProduct", [], "any"falsefalsefalse219), "price", [], "any"falsefalsefalse219) * 1);
  513.             // line 220
  514.             echo "                            <p class=\"price-card-training\">";
  515.             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.'220$this->source); })())]), "html"nulltrue);
  516.             echo "
  517.                                 *</p>
  518.                         </div>
  519.                         <div class=\"mt-2 w100-flex-center-x\">
  520.                             <p class=\"price-note-card-training\">";
  521.             // line 224
  522.             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.'224$this->source); })()), "id", [], "any"falsefalsefalse224)])]);
  523.             echo "</p>
  524.                         </div>
  525.                     ";
  526.         }
  527.         // line 227
  528.         echo "
  529.                     ";
  530.         // line 228
  531.         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.'228$this->source); })()), "public", [], "any"falsefalsefalse228) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute"$context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.'228$this->source); })()) == "front_channel_training_show"))) {
  532.             // line 229
  533.             echo "                        <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
  534.                             ";
  535.             // line 230
  536.             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.'230$this->source); })())) {
  537.                 // line 231
  538.                 echo "                                <div class=\"w100-flex-center-x\">
  539.                                     <div class=\"progress-circle\">
  540.                                         <div class=\"c100 p";
  541.                 // line 233
  542.                 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.'233$this->source); })()), "progression", [], "any"falsefalsefalse233), "html"nulltrue);
  543.                 echo " blue light-green-fill medium\">
  544.                                             <div class=\"slice\">
  545.                                                 <div class=\"bar\"></div>
  546.                                                 <div class=\"fill\"></div>
  547.                                             </div>
  548.                                         </div>
  549.                                     </div>
  550.                                 </div>
  551.                                 <div class=\"mb-2 training-progress-percent\">
  552.                                     ";
  553.                 // line 242
  554.                 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);
  555.                 echo " %
  556.                                 </div>
  557.                                 ";
  558.                 // line 245
  559.                 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.'245$this->source); })())))) {
  560.                     // line 246
  561.                     echo "                                    <a href=\"";
  562.                     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 247
  563. (isset($context["cursus"]) || array_key_exists("cursus"$context) ? $context["cursus"] : (function () { throw new RuntimeError('Variable "cursus" does not exist.'247$this->source); })()), "id", [], "any"falsefalsefalse247)]), "html"nulltrue);
  564.                     // line 248
  565.                     echo "\"
  566.                                        class=\"see-training-progress-link\">";
  567.                     // line 249
  568.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.progression.link.label"), "html"nulltrue);
  569.                     echo "
  570.                                     </a>
  571.                                 ";
  572.                 }
  573.                 // line 252
  574.                 echo "
  575.                                 ";
  576.                 // line 253
  577.                 $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.'253$this->source); })()));
  578.                 // line 254
  579.                 echo "                                ";
  580.                 if ( !(null === (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'254$this->source); })()))) {
  581.                     // line 255
  582.                     echo "                                    <a href=\"";
  583.                     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 256
  584. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'256$this->source); })()), "trainingId", [], "array"falsefalsefalse256), "moduleId" => twig_get_attribute($this->env$this->source,                     // line 257
  585. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'257$this->source); })()), "moduleId", [], "array"falsefalsefalse257), "lessonId" => twig_get_attribute($this->env$this->source,                     // line 258
  586. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'258$this->source); })()), "lessonId", [], "array"falsefalsefalse258), "chapterId" => twig_get_attribute($this->env$this->source,                     // line 259
  587. (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved"$context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.'259$this->source); })()), "chapterId", [], "array"falsefalsefalse259)]), "html"nulltrue);
  588.                     // line 260
  589.                     echo "\"
  590.                                        class=\"btn-nellapp-v2 mt-3 d-inline-block\">
  591.                                         ";
  592.                     // line 262
  593.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.continue_btn.label"), "html"nulltrue);
  594.                     echo "
  595.                                     </a>
  596.                                 ";
  597.                 }
  598.                 // line 265
  599.                 echo "                            ";
  600.             } else {
  601.                 // line 266
  602.                 echo "                                <a href=\"";
  603.                 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.'266$this->source); })()), "id", [], "any"falsefalsefalse266)]), "html"nulltrue);
  604.                 echo "\"
  605.                                    class=\"btn btn-nellapp-v2\">
  606.                                     ";
  607.                 // line 268
  608.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.follow.label"), "html"nulltrue);
  609.                 echo "
  610.                                 </a>
  611.                             ";
  612.             }
  613.             // line 271
  614.             echo "                        </div>
  615.                     ";
  616.         }
  617.         // line 273
  618.         echo "                </div>
  619.             </div>
  620.         </div>
  621.     </div>
  622.     ";
  623.         // line 278
  624.         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.'278$this->source); })())) > 0)) {
  625.             // line 279
  626.             echo "        <div class=\"row\">
  627.             <div class=\"col-12\">
  628.                 <h2 class=\"v2-title-small mt-5 mb-2\">";
  629.             // line 281
  630.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.plus.label"), "html"nulltrue);
  631.             echo "</h2>
  632.             </div>
  633.             <div class=\"col-lg-9 col-md-8\">
  634.                 <div class=\"row\">
  635.                     ";
  636.             // line 285
  637.             $context['_parent'] = $context;
  638.             $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.'285$this->source); })()));
  639.             $context['loop'] = [
  640.               'parent' => $context['_parent'],
  641.               'index0' => 0,
  642.               'index'  => 1,
  643.               'first'  => true,
  644.             ];
  645.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  646.                 $length count($context['_seq']);
  647.                 $context['loop']['revindex0'] = $length 1;
  648.                 $context['loop']['revindex'] = $length;
  649.                 $context['loop']['length'] = $length;
  650.                 $context['loop']['last'] = === $length;
  651.             }
  652.             foreach ($context['_seq'] as $context["_key"] => $context["description"]) {
  653.                 // line 286
  654.                 echo "                        <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
  655.                             ";
  656.                 // line 287
  657.                 $this->loadTemplate("Front/Scholar/Card/training-description.html.twig""Front/Scholar/Training/show.html.twig"287)->display(twig_array_merge($context, ["description" => $context["description"]]));
  658.                 // line 288
  659.                 echo "                        </div>
  660.                     ";
  661.                 ++$context['loop']['index0'];
  662.                 ++$context['loop']['index'];
  663.                 $context['loop']['first'] = false;
  664.                 if (isset($context['loop']['length'])) {
  665.                     --$context['loop']['revindex0'];
  666.                     --$context['loop']['revindex'];
  667.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  668.                 }
  669.             }
  670.             $_parent $context['_parent'];
  671.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['description'], $context['_parent'], $context['loop']);
  672.             $context array_intersect_key($context$_parent) + $_parent;
  673.             // line 290
  674.             echo "                </div>
  675.             </div>
  676.         </div>
  677.     ";
  678.         }
  679.         // line 294
  680.         echo "
  681.     <div class=\"row mt-3\">
  682.         <div class=\"col-12\">
  683.             <h2 class=\"v2-title-small mt-5 mb-2\">";
  684.         // line 297
  685.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.channel.label"), "html"nulltrue);
  686.         echo "</h2>
  687.         </div>
  688.         <div class=\"col-lg-9 col-md-8\">
  689.             <div class=\"row\">
  690.                 <div class=\"col-12\">
  691.                     <div class=\"mt-3\">
  692.                         ";
  693.         // line 303
  694.         $this->loadTemplate("Front/Scholar/Card/channel.html.twig""Front/Scholar/Training/show.html.twig"303)->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.'303$this->source); })()), "ownerChannel", [], "any"falsefalsefalse303)]));
  695.         // line 304
  696.         echo "                    </div>
  697.                 </div>
  698.             </div>
  699.         </div>
  700.     </div>
  701.     ";
  702.         // line 310
  703.         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.'310$this->source); })())) > 0)) {
  704.             // line 311
  705.             echo "        <div class=\"row mt-3\">
  706.             <div class=\"col-12\">
  707.                 <h2 class=\"v2-title-small mt-5 mb-2\">";
  708.             // line 313
  709.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.teacher.label"), "html"nulltrue);
  710.             echo "
  711.                     (";
  712.             // line 314
  713.             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.'314$this->source); })())), "html"nulltrue);
  714.             echo ")</h2>
  715.             </div>
  716.         </div>
  717.         ";
  718.             // line 317
  719.             $context['_parent'] = $context;
  720.             $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.'317$this->source); })()));
  721.             $context['loop'] = [
  722.               'parent' => $context['_parent'],
  723.               'index0' => 0,
  724.               'index'  => 1,
  725.               'first'  => true,
  726.             ];
  727.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  728.                 $length count($context['_seq']);
  729.                 $context['loop']['revindex0'] = $length 1;
  730.                 $context['loop']['revindex'] = $length;
  731.                 $context['loop']['length'] = $length;
  732.                 $context['loop']['last'] = === $length;
  733.             }
  734.             foreach ($context['_seq'] as $context["_key"] => $context["teacher"]) {
  735.                 // line 318
  736.                 echo "            <div class=\"col-lg-9 col-md-8\">
  737.                 <div class=\"row\">
  738.                     <div class=\"col-12\">
  739.                         <div class=\"mt-3\">
  740.                             ";
  741.                 // line 322
  742.                 $this->loadTemplate("Front/Scholar/Card/teacher.html.twig""Front/Scholar/Training/show.html.twig"322)->display(twig_array_merge($context, ["teacher" => $context["teacher"]]));
  743.                 // line 323
  744.                 echo "                        </div>
  745.                     </div>
  746.                 </div>
  747.             </div>
  748.         ";
  749.                 ++$context['loop']['index0'];
  750.                 ++$context['loop']['index'];
  751.                 $context['loop']['first'] = false;
  752.                 if (isset($context['loop']['length'])) {
  753.                     --$context['loop']['revindex0'];
  754.                     --$context['loop']['revindex'];
  755.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  756.                 }
  757.             }
  758.             $_parent $context['_parent'];
  759.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teacher'], $context['_parent'], $context['loop']);
  760.             $context array_intersect_key($context$_parent) + $_parent;
  761.             // line 328
  762.             echo "    ";
  763.         }
  764.         // line 329
  765.         echo "
  766.     ";
  767.         // line 330
  768.         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.'330$this->source); })())) > 0))) {
  769.             // line 331
  770.             echo "        <div class=\"row mt-3 mb-5\">
  771.             <div class=\"col-lg-9 col-md-8\">
  772.                 <div class=\"row\">
  773.                     <div class=\"col-12\">
  774.                         <div class=\"div-title-between mt-5 mb-2\">
  775.                             <h2 class=\"v2-title-small\">";
  776.             // line 336
  777.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.label"), "html"nulltrue);
  778.             echo "
  779.                                 (";
  780.             // line 337
  781.             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.'337$this->source); })())), "html"nulltrue);
  782.             echo ")</h2>
  783.                             <p class=\"\"><i class=\"far fa-star\"></i> ";
  784.             // line 338
  785.             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.'338$this->source); })()), "html"nulltrue);
  786.             echo "</p>
  787.                         </div>
  788.                     </div>
  789.                     <div class=\"col-12\">
  790.                         <div class=\"mt-3\">
  791.                             ";
  792.             // line 343
  793.             $context["adviceCount"] = 1;
  794.             // line 344
  795.             echo "                            ";
  796.             $context["break"] = false;
  797.             // line 345
  798.             echo "                            ";
  799.             $context['_parent'] = $context;
  800.             $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.'345$this->source); })()));
  801.             $context['loop'] = [
  802.               'parent' => $context['_parent'],
  803.               'index0' => 0,
  804.               'index'  => 1,
  805.               'first'  => true,
  806.             ];
  807.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  808.                 $length count($context['_seq']);
  809.                 $context['loop']['revindex0'] = $length 1;
  810.                 $context['loop']['revindex'] = $length;
  811.                 $context['loop']['length'] = $length;
  812.                 $context['loop']['last'] = === $length;
  813.             }
  814.             foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
  815.                 // line 346
  816.                 echo "                                ";
  817.                 if ( !(isset($context["break"]) || array_key_exists("break"$context) ? $context["break"] : (function () { throw new RuntimeError('Variable "break" does not exist.'346$this->source); })())) {
  818.                     // line 347
  819.                     echo "                                    ";
  820.                     $this->loadTemplate("Front/Scholar/Card/advice.html.twig""Front/Scholar/Training/show.html.twig"347)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
  821.                     // line 348
  822.                     echo "                                    ";
  823.                     $context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'348$this->source); })()) + 1);
  824.                     // line 349
  825.                     echo "                                    ";
  826.                     if (((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'349$this->source); })()) == 6)) {
  827.                         // line 350
  828.                         echo "                                        ";
  829.                         $context["break"] = true;
  830.                         // line 351
  831.                         echo "                                    ";
  832.                     }
  833.                     // line 352
  834.                     echo "                                ";
  835.                 }
  836.                 // line 353
  837.                 echo "                            ";
  838.                 ++$context['loop']['index0'];
  839.                 ++$context['loop']['index'];
  840.                 $context['loop']['first'] = false;
  841.                 if (isset($context['loop']['length'])) {
  842.                     --$context['loop']['revindex0'];
  843.                     --$context['loop']['revindex'];
  844.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  845.                 }
  846.             }
  847.             $_parent $context['_parent'];
  848.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
  849.             $context array_intersect_key($context$_parent) + $_parent;
  850.             // line 354
  851.             echo "
  852.                             ";
  853.             // line 355
  854.             $context["adviceCount"] = 1;
  855.             // line 356
  856.             echo "                            ";
  857.             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.'356$this->source); })())) > 5)) {
  858.                 // line 357
  859.                 echo "                                <div class=\"div-more-advice\">
  860.                                     ";
  861.                 // line 358
  862.                 $context['_parent'] = $context;
  863.                 $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.'358$this->source); })()));
  864.                 $context['loop'] = [
  865.                   'parent' => $context['_parent'],
  866.                   'index0' => 0,
  867.                   'index'  => 1,
  868.                   'first'  => true,
  869.                 ];
  870.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  871.                     $length count($context['_seq']);
  872.                     $context['loop']['revindex0'] = $length 1;
  873.                     $context['loop']['revindex'] = $length;
  874.                     $context['loop']['length'] = $length;
  875.                     $context['loop']['last'] = === $length;
  876.                 }
  877.                 foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
  878.                     // line 359
  879.                     echo "                                        ";
  880.                     $context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'359$this->source); })()) + 1);
  881.                     // line 360
  882.                     echo "                                        ";
  883.                     if (((isset($context["adviceCount"]) || array_key_exists("adviceCount"$context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.'360$this->source); })()) > 6)) {
  884.                         // line 361
  885.                         echo "                                            ";
  886.                         $this->loadTemplate("Front/Scholar/Card/advice.html.twig""Front/Scholar/Training/show.html.twig"361)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
  887.                         // line 362
  888.                         echo "                                        ";
  889.                     }
  890.                     // line 363
  891.                     echo "                                    ";
  892.                     ++$context['loop']['index0'];
  893.                     ++$context['loop']['index'];
  894.                     $context['loop']['first'] = false;
  895.                     if (isset($context['loop']['length'])) {
  896.                         --$context['loop']['revindex0'];
  897.                         --$context['loop']['revindex'];
  898.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  899.                     }
  900.                 }
  901.                 $_parent $context['_parent'];
  902.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
  903.                 $context array_intersect_key($context$_parent) + $_parent;
  904.                 // line 364
  905.                 echo "                                </div>
  906.                             ";
  907.             }
  908.             // line 366
  909.             echo "                        </div>
  910.                     </div>
  911.                 </div>
  912.             </div>
  913.         </div>
  914.     ";
  915.         }
  916.         // line 372
  917.         echo "    ";
  918.         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.'372$this->source); })()), "user", [], "any"falsefalsefalse372))) {
  919.             // line 373
  920.             echo "        <div class=\"row\">
  921.             <div class=\"col-lg-9 col-md-8\">
  922.                 <p class=\"small-description\">";
  923.             // line 375
  924.             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);
  925.             echo "</p>
  926.             </div>
  927.         </div>
  928.         <div class=\"row\" ";
  929.             // line 378
  930.             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.'378$this->source); })())))) {
  931.                 echo " ";
  932.                 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.'378$this->source); })()), "note", [], "any"falsefalsefalse378))) {
  933.                     echo "data-advice-current-note=\"";
  934.                     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.'378$this->source); })()), "note", [], "any"falsefalsefalse378), "html"nulltrue);
  935.                     echo "\"";
  936.                 }
  937.             }
  938.             echo ">
  939.             <div class=\"col-lg-9 col-md-8 mt-1\">
  940.                 <div class=\"form-advice-content\">
  941.                     <div class=\"avatar-rounded\">";
  942.             // line 381
  943.             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.'381$this->source); })()), "user", [], "any"falsefalsefalse381));
  944.             echo "</div>
  945.                     <div class=\"form-advice-bg-gray\">
  946.                         ";
  947.             // line 383
  948.             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.'383$this->source); })()), 'form_start');
  949.             echo "
  950.                         <div style=\"display: none\">
  951.                             ";
  952.             // line 385
  953.             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.'385$this->source); })()), "note", [], "any"falsefalsefalse385), 'widget');
  954.             echo "
  955.                         </div>
  956.                         ";
  957.             // line 387
  958.             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.'387$this->source); })()), "comment", [], "any"falsefalsefalse387), 'widget');
  959.             echo "
  960.                         ";
  961.             // line 388
  962.             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.'388$this->source); })()), "comment", [], "any"falsefalsefalse388), 'errors');
  963.             echo "
  964.                         ";
  965.             // line 389
  966.             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.'389$this->source); })()), 'form_end');
  967.             echo "
  968.                         <div class=\"stars-rating\">
  969.                             <i class=\"far fa-star\" data-rating=\"1\"></i>
  970.                             <i class=\"far fa-star\" data-rating=\"2\"></i>
  971.                             <i class=\"far fa-star\" data-rating=\"3\"></i>
  972.                             <i class=\"far fa-star\" data-rating=\"4\"></i>
  973.                             <i class=\"far fa-star\" data-rating=\"5\"></i>
  974.                         </div>
  975.                         <div class=\"center-y ml-2\">
  976.                             <span id=\"span-nb-note-advice\">0</span>
  977.                         </div>
  978.                     </div>
  979.                 </div>
  980.             </div>
  981.         </div>
  982.         ";
  983.             // line 404
  984.             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.'404$this->source); })()))) {
  985.                 // line 405
  986.                 echo "            ";
  987.                 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.'405$this->source); })()), "id", [], "any"falsefalsefalse405))) {
  988.                     // line 406
  989.                     echo "                <div class=\"row\">
  990.                     <div class=\"col-lg-9 col-md-8 mt-1\">
  991.                         <div class=\"w100-flex-end-x\">
  992.                             <a class=\"delete-btn-advice\"
  993.                                href=\"";
  994.                     // line 410
  995.                     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.'410$this->source); })()), "id", [], "any"falsefalsefalse410)]), "html"nulltrue);
  996.                     echo "\">";
  997.                     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);
  998.                     echo "</a>
  999.                         </div>
  1000.                     </div>
  1001.                 </div>
  1002.             ";
  1003.                 }
  1004.                 // line 415
  1005.                 echo "        ";
  1006.             }
  1007.             // line 416
  1008.             echo "    ";
  1009.         }
  1010.         // line 417
  1011.         echo "
  1012.     ";
  1013.         // line 421
  1014.         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.'421$this->source); })())) > 5))) {
  1015.             // line 422
  1016.             echo "        <div class=\"row\">
  1017.             <div class=\"col-lg-9 col-md-8 mt-5\">
  1018.                 <div class=\"w100-flex-center-x\">
  1019.                     <button class=\"see-more-btn\"
  1020.                             id=\"training-advice-see-more\">";
  1021.             // line 426
  1022.             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.'426$this->source); })()))]), "html"nulltrue);
  1023.             echo "</button>
  1024.                 </div>
  1025.             </div>
  1026.         </div>
  1027.     ";
  1028.         }
  1029.         // line 431
  1030.         echo "    <div class=\"empty-div-bottom\"></div>
  1031. ";
  1032.         
  1033.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1034.         
  1035.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1036.     }
  1037.     // line 434
  1038.     public function block_body($context, array $blocks = [])
  1039.     {
  1040.         $macros $this->macros;
  1041.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1042.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  1043.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1044.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  1045.         // line 435
  1046.         echo "    ";
  1047.         $this->displayParentBlock("body"$context$blocks);
  1048.         echo "
  1049.     ";
  1050.         // line 436
  1051.         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.'436$this->source); })()))) {
  1052.             // line 437
  1053.             echo "        <div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
  1054.              aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
  1055.             <div class=\"modal-dialog\" role=\"document\">
  1056.                 <div class=\"modal-content\">
  1057.                     <div class=\"modal-header\">
  1058.                         <h5 class=\"modal-title\" id=\"delete-modal-label\">
  1059.                             ";
  1060.             // line 443
  1061.             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 444
  1062. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'444$this->source); })()), "name", [], "any"falsefalsefalse444)]);
  1063.             // line 445
  1064.             echo "
  1065.                         </h5>
  1066.                     </div>
  1067.                     <div class=\"modal-body\">
  1068.                         ";
  1069.             // line 450
  1070.             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 451
  1071. (isset($context["sub"]) || array_key_exists("sub"$context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.'451$this->source); })()), "name", [], "any"falsefalsefalse451)]);
  1072.             // line 452
  1073.             echo "
  1074.                     </div>
  1075.                     <div class=\"modal-footer\">
  1076.                         <button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
  1077.                             ";
  1078.             // line 457
  1079.             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);
  1080.             echo "
  1081.                         </button>
  1082.                         <a href=\"";
  1083.             // line 460
  1084.             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.'460$this->source); })()), "id", [], "any"falsefalsefalse460), "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.'460$this->source); })()), "id", [], "any"falsefalsefalse460)]), "html"nulltrue);
  1085.             echo "\"
  1086.                            class=\"btn btn-danger btn-raised\">
  1087.                             ";
  1088.             // line 462
  1089.             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);
  1090.             echo "
  1091.                         </a>
  1092.                     </div>
  1093.                 </div>
  1094.             </div>
  1095.         </div>
  1096.     ";
  1097.         }
  1098.         
  1099.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1100.         
  1101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1102.     }
  1103.     public function getTemplateName()
  1104.     {
  1105.         return "Front/Scholar/Training/show.html.twig";
  1106.     }
  1107.     public function isTraitable()
  1108.     {
  1109.         return false;
  1110.     }
  1111.     public function getDebugInfo()
  1112.     {
  1113.         return array (  1145 => 462,  1140 => 460,  1134 => 457,  1127 => 452,  1125 => 451,  1124 => 450,  1117 => 445,  1115 => 444,  1114 => 443,  1106 => 437,  1104 => 436,  1099 => 435,  1089 => 434,  1078 => 431,  1070 => 426,  1064 => 422,  1062 => 421,  1056 => 417,  1053 => 416,  1050 => 415,  1040 => 410,  1034 => 406,  1031 => 405,  1029 => 404,  1011 => 389,  1007 => 388,  1003 => 387,  998 => 385,  993 => 383,  988 => 381,  975 => 378,  969 => 375,  965 => 373,  962 => 372,  954 => 366,  950 => 364,  936 => 363,  933 => 362,  930 => 361,  927 => 360,  924 => 359,  907 => 358,  904 => 357,  901 => 356,  899 => 355,  896 => 354,  882 => 353,  879 => 352,  876 => 351,  873 => 350,  870 => 349,  867 => 348,  864 => 347,  861 => 346,  843 => 345,  840 => 344,  838 => 343,  830 => 338,  826 => 337,  822 => 336,  815 => 331,  813 => 330,  810 => 329,  807 => 328,  789 => 323,  787 => 322,  781 => 318,  764 => 317,  758 => 314,  754 => 313,  750 => 311,  748 => 310,  740 => 304,  738 => 303,  729 => 297,  724 => 294,  718 => 290,  703 => 288,  701 => 287,  698 => 286,  681 => 285,  674 => 281,  670 => 279,  668 => 278,  661 => 273,  657 => 271,  651 => 268,  645 => 266,  642 => 265,  636 => 262,  632 => 260,  630 => 259,  629 => 258,  628 => 257,  627 => 256,  625 => 255,  622 => 254,  620 => 253,  617 => 252,  611 => 249,  608 => 248,  606 => 247,  604 => 246,  602 => 245,  596 => 242,  584 => 233,  580 => 231,  578 => 230,  575 => 229,  573 => 228,  570 => 227,  564 => 224,  556 => 220,  554 => 219,  551 => 218,  549 => 217,  545 => 215,  538 => 211,  531 => 206,  528 => 205,  519 => 201,  511 => 195,  508 => 194,  505 => 193,  496 => 189,  489 => 184,  486 => 183,  477 => 179,  470 => 174,  468 => 173,  465 => 172,  458 => 168,  451 => 163,  449 => 162,  444 => 159,  438 => 156,  435 => 155,  433 => 154,  429 => 153,  425 => 152,  419 => 148,  417 => 147,  407 => 140,  399 => 134,  392 => 130,  383 => 124,  379 => 123,  373 => 119,  359 => 118,  356 => 117,  339 => 116,  336 => 115,  333 => 114,  319 => 113,  316 => 112,  299 => 111,  294 => 109,  290 => 107,  280 => 106,  268 => 103,  260 => 98,  250 => 90,  247 => 87,  246 => 86,  243 => 83,  242 => 82,  240 => 81,  232 => 75,  224 => 72,  220 => 70,  218 => 69,  213 => 67,  201 => 57,  198 => 54,  197 => 53,  194 => 50,  193 => 49,  191 => 48,  187 => 46,  179 => 43,  175 => 41,  173 => 40,  168 => 38,  160 => 35,  155 => 32,  153 => 30,  152 => 29,  148 => 26,  145 => 25,  135 => 24,  114 => 23,  100 => 18,  96 => 16,  93 => 15,  90 => 14,  87 => 13,  85 => 12,  81 => 10,  78 => 9,  68 => 8,  57 => 1,  55 => 5,  54 => 4,  52 => 3,  39 => 1,);
  1114.     }
  1115.     public function getSourceContext()
  1116.     {
  1117.         return new Source("{% extends 'base.html.twig' %}
  1118. {% set currentRoute = app.request.attributes.get('_route') %}
  1119. {% set has_front_access = is_granted('FRONT_ACCESS', {
  1120.     'training': sub,
  1121. }) %}
  1122. {% block before_navbar %}
  1123.     {% if currentRoute == 'manager_channel_training_show' %}
  1124.         <div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
  1125.             {% set headerReturnLink = null %}
  1126.             {% if currentRoute == 'manager_channel_training_show' %}
  1127.                 {% set headerReturnLink = path('manager_channel_trainings', {'channelId': channel.id}) %}
  1128.             {% endif %}
  1129.             <div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
  1130.             <div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
  1131.         </div>
  1132.     {% endif %}
  1133. {% endblock before_navbar %}
  1134. {% block title %}{{ sub.name }} - {{ parent() }}{% endblock %}
  1135. {% block content %}
  1136.     {% set advice_avg = sub|advice_avg_by_training %}
  1137.     <div class=\"jumbotron-v2 mb-4\">
  1138.         <div class=\"container\">
  1139.             <h2 class=\"v2-title-big\">
  1140.                 {{- 'front.scholar.training.show.title.label'|trans({
  1141.                     '%name%': sub.name,
  1142.                 }) -}}
  1143.             </h2>
  1144.             <div class=\"md-none\">
  1145.                 <div class=\"info-content mt-4 {% if advice_avg is same as null %} info-without-advice {% endif %}\">
  1146.                     <div>
  1147.                         <i class=\"fas fa-users\"></i>
  1148.                         <p>{{ sub|countCursusForTraining }}</p>
  1149.                     </div>
  1150.                     {% if advice_avg is not same as null %}
  1151.                         <div>
  1152.                             <i class=\"fas fa-star\"></i>
  1153.                             <p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
  1154.                         </div>
  1155.                     {% endif %}
  1156.                     <div class=\"dot-div\"></div>
  1157.                     <div>
  1158.                         {% if sub.updatedAt is not null %}
  1159.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1160.                                 '%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
  1161.                             })|raw -}}
  1162.                         {% else %}
  1163.                             {{- 'front.scholar.training.show.createdAt.label'|trans({
  1164.                                 '%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
  1165.                             })|raw -}}
  1166.                         {% endif %}
  1167.                     </div>
  1168.                 </div>
  1169.             </div>
  1170.             <div class=\"md-set\">
  1171.                 <div class=\"info-content mt-4\">
  1172.                     <div>
  1173.                         <div>
  1174.                             <i class=\"fas fa-users\"></i>
  1175.                             <p>{{ sub|countCursusForTraining }}</p>
  1176.                         </div>
  1177.                         {% if advice_avg is not same as null %}
  1178.                             <div class=\"info-content-stars\">
  1179.                                 <i class=\"fas fa-star\"></i>
  1180.                                 <p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
  1181.                             </div>
  1182.                         {% endif %}
  1183.                     </div>
  1184.                     <div class=\"mt-2\">
  1185.                         <div class=\"dot-div\">
  1186.                             <i class=\"fas fa-circle\"></i>
  1187.                         </div>
  1188.                         <div>
  1189.                             {% if sub.updatedAt is not null %}
  1190.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  1191.                                     '%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
  1192.                                 })|raw -}}
  1193.                             {% else %}
  1194.                                 {{- 'front.scholar.training.show.createdAt.label'|trans({
  1195.                                     '%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
  1196.                                 })|raw -}}
  1197.                             {% endif %}
  1198.                         </div>
  1199.                     </div>
  1200.                 </div>
  1201.             </div>
  1202.             <div class=\"description mt-4\">
  1203.                 <p>{{ sub.description }}</p>
  1204.             </div>
  1205.         </div>
  1206.     </div>
  1207.     {{ parent() }}
  1208. {% endblock content %}
  1209. {% block inner_content %}
  1210.     <div class=\"row\">
  1211.         <div class=\"col-lg-9 col-md-8 mb-3\">
  1212.             <h2 class=\"v2-title-small mt-5\">{{ 'front.scholar.training.show.sub_title.programm.label'|trans }}</h2>
  1213.             <div id=\"accordion\" class=\"accordion-nellapp mt-5\">
  1214.                 {% for module in firstModules %}
  1215.                     {% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training' : sub} %}
  1216.                 {% endfor %}
  1217.                 {% if lastModules|length %}
  1218.                     <div class=\"more-module\" style=\"display: none\">
  1219.                         {% for module in lastModules %}
  1220.                             {% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training': sub} %}
  1221.                         {% endfor %}
  1222.                     </div>
  1223.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
  1224.                         <button class=\"btn-see-more-v2\"
  1225.                                 data-btn-more-module=\"true\">
  1226.                             {{ 'front.scholar.training.list.button.see_more.label'|trans }}
  1227.                             5/{{ 5 + lastModules|length }}
  1228.                         </button>
  1229.                     </div>
  1230.                     <div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
  1231.                         <button class=\"btn-see-more-v2\"
  1232.                                 data-btn-less-module=\"true\">
  1233.                             {{ 'front.scholar.training.list.button.see_less.label'|trans }}
  1234.                         </button>
  1235.                     </div>
  1236.                 {% endif %}
  1237.             </div>
  1238.         </div>
  1239.         <div class=\"col-lg-3 col-md-4 order-first order-md-last\">
  1240.             <div class=\"card-elevation-training\">
  1241.                 <div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
  1242.                     <img class=\"img-top-card\" src=\"{{ sub|get_training_img_url }}\">
  1243.                 </div>
  1244.                 <div class=\"card-body\">
  1245.                     <div class=\"channel-name d-flex\">
  1246.                         <div>
  1247.                             <div class=\"img-logo-rounded\">
  1248.                                 {% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': sub.ownerChannel} %}
  1249.                             </div>
  1250.                         </div>
  1251.                         <div class=\"channel-description\">
  1252.                             <a href=\"{{ path('front_channel_show', {'channelId' : sub.ownerChannel.id }) }}\"
  1253.                                class=\"font-weight-bold\">{{ sub.ownerChannel.name }}</a>
  1254.                             {% if sub.ownerChannel.slogan is not empty %}
  1255.                                 <p class=\"small\">
  1256.                                     {{ sub.ownerChannel.slogan }}
  1257.                                 </p>
  1258.                             {% endif %}
  1259.                         </div>
  1260.                     </div>
  1261.                     <div class=\"training-stats mt-4\">
  1262.                         {% if sub.trainingType is not null %}
  1263.                             <div class=\"row mt-3\">
  1264.                                 <div class=\"col-12 content-stat\">
  1265.                                     <div>
  1266.                                         <i class=\"fas fa-book-open\"></i>
  1267.                                     </div>
  1268.                                     <p>{{ sub | get_training_type_key | trans }}</p>
  1269.                                 </div>
  1270.                             </div>
  1271.                         {% endif %}
  1272.                         {% if sub.totalHourDescription is not null %}
  1273.                             <div class=\"row mt-3\">
  1274.                                 <div class=\"col-12 content-stat\">
  1275.                                     <div>
  1276.                                         <i class=\"fas fa-stopwatch\"></i>
  1277.                                     </div>
  1278.                                     <p>{{ sub.totalHourDescription }} {{ 'front.scholar.training.show.card.total_hour.label'|trans }}</p>
  1279.                                 </div>
  1280.                             </div>
  1281.                         {% endif %}
  1282.                         {% if sub.videoDescription is not null %}
  1283.                             <div class=\"row mt-3\">
  1284.                                 <div class=\"col-12 content-stat\">
  1285.                                     <div>
  1286.                                         <i class=\"fas fa-file-video\"></i>
  1287.                                     </div>
  1288.                                     <p>{{ sub.videoDescription }} {{ 'front.scholar.training.show.card.video_time.label'|trans }}</p>
  1289.                                 </div>
  1290.                             </div>
  1291.                         {% endif %}
  1292.                         {% set count_exercises = sub|count_exercises_by_training %}
  1293.                         {% if count_exercises != 0 %}
  1294.                             <div class=\"row mt-3\">
  1295.                                 <div class=\"col-12 content-stat\">
  1296.                                     <div>
  1297.                                         <i class=\"far fa-list-alt\"></i>
  1298.                                     </div>
  1299.                                     <p>{{ count_exercises }} {{ 'front.scholar.training.show.card.use_case.label'|trans }}</p>
  1300.                                 </div>
  1301.                             </div>
  1302.                         {% endif %}
  1303.                         {% if sub.diplomaDescription is not null %}
  1304.                             <div class=\"row mt-3\">
  1305.                                 <div class=\"col-12 content-stat\">
  1306.                                     <div>
  1307.                                         <i class=\"fas fa-graduation-cap\"></i>
  1308.                                     </div>
  1309.                                     <p>{{ sub.diplomaDescription }}</p>
  1310.                                 </div>
  1311.                             </div>
  1312.                         {% endif %}
  1313.                     </div>
  1314.                     {% if sub.trainingProduct is not null and not has_front_access %}
  1315.                         <div class=\"mt-4 w100-flex-center-x\">
  1316.                             {% set value = sub.trainingProduct.price * 1 %}
  1317.                             <p class=\"price-card-training\">{{ 'front.scholar.training.show.card.price.label'|trans({'%price%' : value}) }}
  1318.                                 *</p>
  1319.                         </div>
  1320.                         <div class=\"mt-2 w100-flex-center-x\">
  1321.                             <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>
  1322.                         </div>
  1323.                     {% endif %}
  1324.                     {% if not sub.public and currentRoute == 'front_channel_training_show' %}
  1325.                         <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
  1326.                             {% if has_front_access %}
  1327.                                 <div class=\"w100-flex-center-x\">
  1328.                                     <div class=\"progress-circle\">
  1329.                                         <div class=\"c100 p{{ trainingProgression.progression }} blue light-green-fill medium\">
  1330.                                             <div class=\"slice\">
  1331.                                                 <div class=\"bar\"></div>
  1332.                                                 <div class=\"fill\"></div>
  1333.                                             </div>
  1334.                                         </div>
  1335.                                     </div>
  1336.                                 </div>
  1337.                                 <div class=\"mb-2 training-progress-percent\">
  1338.                                     {{ trainingProgression.progression }} %
  1339.                                 </div>
  1340.                                 {% if nellapp_url_exist('core', 'app_account_show_cursus') and cursus is defined and cursus is not null %}
  1341.                                     <a href=\"{{ nellapp_url('core', 'app_account_show_cursus', {
  1342.                                         'cursusId': cursus.id
  1343.                                     }) }}\"
  1344.                                        class=\"see-training-progress-link\">{{ 'front.scholar.training.show.card.progression.link.label' | trans }}
  1345.                                     </a>
  1346.                                 {% endif %}
  1347.                                 {% set lastChapterAchieved = getLastAchievedChapter(sub) %}
  1348.                                 {% if lastChapterAchieved is not null %}
  1349.                                     <a href=\"{{ path('front_channel_chapter_show', {
  1350.                                         'trainingId': lastChapterAchieved['trainingId'],
  1351.                                         'moduleId': lastChapterAchieved['moduleId'],
  1352.                                         'lessonId': lastChapterAchieved['lessonId'],
  1353.                                         'chapterId': lastChapterAchieved['chapterId'],
  1354.                                     }) }}\"
  1355.                                        class=\"btn-nellapp-v2 mt-3 d-inline-block\">
  1356.                                         {{ 'front.scholar.training.show.card.continue_btn.label' | trans }}
  1357.                                     </a>
  1358.                                 {% endif %}
  1359.                             {% else %}
  1360.                                 <a href=\"{{ path('front_channel_training_payment_funding_contact', {'training_id': sub.id}) }}\"
  1361.                                    class=\"btn btn-nellapp-v2\">
  1362.                                     {{ 'front.scholar.training.show.actions.follow.label'|trans }}
  1363.                                 </a>
  1364.                             {% endif %}
  1365.                         </div>
  1366.                     {% endif %}
  1367.                 </div>
  1368.             </div>
  1369.         </div>
  1370.     </div>
  1371.     {% if training_descriptions|length > 0 %}
  1372.         <div class=\"row\">
  1373.             <div class=\"col-12\">
  1374.                 <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.plus.label'|trans }}</h2>
  1375.             </div>
  1376.             <div class=\"col-lg-9 col-md-8\">
  1377.                 <div class=\"row\">
  1378.                     {% for description in training_descriptions %}
  1379.                         <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
  1380.                             {% include 'Front/Scholar/Card/training-description.html.twig' with {'description' : description} %}
  1381.                         </div>
  1382.                     {% endfor %}
  1383.                 </div>
  1384.             </div>
  1385.         </div>
  1386.     {% endif %}
  1387.     <div class=\"row mt-3\">
  1388.         <div class=\"col-12\">
  1389.             <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.channel.label'|trans }}</h2>
  1390.         </div>
  1391.         <div class=\"col-lg-9 col-md-8\">
  1392.             <div class=\"row\">
  1393.                 <div class=\"col-12\">
  1394.                     <div class=\"mt-3\">
  1395.                         {% include 'Front/Scholar/Card/channel.html.twig' with {'channel' : sub.ownerChannel} %}
  1396.                     </div>
  1397.                 </div>
  1398.             </div>
  1399.         </div>
  1400.     </div>
  1401.     {% if teacher_entities|length > 0 %}
  1402.         <div class=\"row mt-3\">
  1403.             <div class=\"col-12\">
  1404.                 <h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}
  1405.                     ({{ teacher_entities|length }})</h2>
  1406.             </div>
  1407.         </div>
  1408.         {% for teacher in teacher_entities %}
  1409.             <div class=\"col-lg-9 col-md-8\">
  1410.                 <div class=\"row\">
  1411.                     <div class=\"col-12\">
  1412.                         <div class=\"mt-3\">
  1413.                             {% include 'Front/Scholar/Card/teacher.html.twig' with {'teacher' : teacher} %}
  1414.                         </div>
  1415.                     </div>
  1416.                 </div>
  1417.             </div>
  1418.         {% endfor %}
  1419.     {% endif %}
  1420.     {% if training_advices is defined and training_advices|length > 0 %}
  1421.         <div class=\"row mt-3 mb-5\">
  1422.             <div class=\"col-lg-9 col-md-8\">
  1423.                 <div class=\"row\">
  1424.                     <div class=\"col-12\">
  1425.                         <div class=\"div-title-between mt-5 mb-2\">
  1426.                             <h2 class=\"v2-title-small\">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}
  1427.                                 ({{ training_advices|length }})</h2>
  1428.                             <p class=\"\"><i class=\"far fa-star\"></i> {{ advice_avg }}</p>
  1429.                         </div>
  1430.                     </div>
  1431.                     <div class=\"col-12\">
  1432.                         <div class=\"mt-3\">
  1433.                             {% set adviceCount = 1 %}
  1434.                             {% set break = false %}
  1435.                             {% for advice in training_advices %}
  1436.                                 {% if not break %}
  1437.                                     {% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
  1438.                                     {% set adviceCount = adviceCount + 1 %}
  1439.                                     {% if adviceCount == 6 %}
  1440.                                         {% set break = true %}
  1441.                                     {% endif %}
  1442.                                 {% endif %}
  1443.                             {% endfor %}
  1444.                             {% set adviceCount = 1 %}
  1445.                             {% if training_advices|length > 5 %}
  1446.                                 <div class=\"div-more-advice\">
  1447.                                     {% for advice in training_advices %}
  1448.                                         {% set adviceCount = adviceCount + 1 %}
  1449.                                         {% if adviceCount > 6 %}
  1450.                                             {% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
  1451.                                         {% endif %}
  1452.                                     {% endfor %}
  1453.                                 </div>
  1454.                             {% endif %}
  1455.                         </div>
  1456.                     </div>
  1457.                 </div>
  1458.             </div>
  1459.         </div>
  1460.     {% endif %}
  1461.     {% if form is defined and app.user %}
  1462.         <div class=\"row\">
  1463.             <div class=\"col-lg-9 col-md-8\">
  1464.                 <p class=\"small-description\">{{ 'front.scholar.training.show.sub_title.advice.sentence.enter_key.label'|trans }}</p>
  1465.             </div>
  1466.         </div>
  1467.         <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 %}>
  1468.             <div class=\"col-lg-9 col-md-8 mt-1\">
  1469.                 <div class=\"form-advice-content\">
  1470.                     <div class=\"avatar-rounded\">{{ app.user|user_avatar }}</div>
  1471.                     <div class=\"form-advice-bg-gray\">
  1472.                         {{ form_start(form) }}
  1473.                         <div style=\"display: none\">
  1474.                             {{ form_widget(form.note) }}
  1475.                         </div>
  1476.                         {{ form_widget(form.comment) }}
  1477.                         {{ form_errors(form.comment) }}
  1478.                         {{ form_end(form) }}
  1479.                         <div class=\"stars-rating\">
  1480.                             <i class=\"far fa-star\" data-rating=\"1\"></i>
  1481.                             <i class=\"far fa-star\" data-rating=\"2\"></i>
  1482.                             <i class=\"far fa-star\" data-rating=\"3\"></i>
  1483.                             <i class=\"far fa-star\" data-rating=\"4\"></i>
  1484.                             <i class=\"far fa-star\" data-rating=\"5\"></i>
  1485.                         </div>
  1486.                         <div class=\"center-y ml-2\">
  1487.                             <span id=\"span-nb-note-advice\">0</span>
  1488.                         </div>
  1489.                     </div>
  1490.                 </div>
  1491.             </div>
  1492.         </div>
  1493.         {% if advice_user is not null %}
  1494.             {% if advice_user.id is not null %}
  1495.                 <div class=\"row\">
  1496.                     <div class=\"col-lg-9 col-md-8 mt-1\">
  1497.                         <div class=\"w100-flex-end-x\">
  1498.                             <a class=\"delete-btn-advice\"
  1499.                                href=\"{{ path('front_training_advice_delete', {'id' : advice_user.id}) }}\">{{ 'front.scholar.training.show.sub_title.advice.action.delete.label'|trans }}</a>
  1500.                         </div>
  1501.                     </div>
  1502.                 </div>
  1503.             {% endif %}
  1504.         {% endif %}
  1505.     {% endif %}
  1506.     {% if training_advices is defined and training_advices|length > 5 %}
  1507.         <div class=\"row\">
  1508.             <div class=\"col-lg-9 col-md-8 mt-5\">
  1509.                 <div class=\"w100-flex-center-x\">
  1510.                     <button class=\"see-more-btn\"
  1511.                             id=\"training-advice-see-more\">{{ 'front.scholar.training.advice.see_more.label'|trans({'%count%': training_advices|length}) }}</button>
  1512.                 </div>
  1513.             </div>
  1514.         </div>
  1515.     {% endif %}
  1516.     <div class=\"empty-div-bottom\"></div>
  1517. {% endblock inner_content %}
  1518. {% block body %}
  1519.     {{ parent() }}
  1520.     {% if is_granted('CHANNEL_USER_PERM_TRAINING_SHOW', sub) %}
  1521.         <div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
  1522.              aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
  1523.             <div class=\"modal-dialog\" role=\"document\">
  1524.                 <div class=\"modal-content\">
  1525.                     <div class=\"modal-header\">
  1526.                         <h5 class=\"modal-title\" id=\"delete-modal-label\">
  1527.                             {{ 'front.scholar.training.show.actions.delete.modal.title.label'|trans({
  1528.                                 '%name%': sub.name,
  1529.                             })|raw }}
  1530.                         </h5>
  1531.                     </div>
  1532.                     <div class=\"modal-body\">
  1533.                         {{ 'front.scholar.training.show.actions.delete.modal.body.label'|trans({
  1534.                             '%name%': sub.name,
  1535.                         })|raw }}
  1536.                     </div>
  1537.                     <div class=\"modal-footer\">
  1538.                         <button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
  1539.                             {{ 'front.scholar.training.show.actions.delete.modal.cancel.label'|trans }}
  1540.                         </button>
  1541.                         <a href=\"{{ path('front_channel_training_delete', {'id': sub.id, 'channelId': channel.id}) }}\"
  1542.                            class=\"btn btn-danger btn-raised\">
  1543.                             {{ 'front.scholar.training.show.actions.delete.modal.delete.label'|trans }}
  1544.                         </a>
  1545.                     </div>
  1546.                 </div>
  1547.             </div>
  1548.         </div>
  1549.     {% endif %}
  1550. {% endblock body %}
  1551. ""Front/Scholar/Training/show.html.twig""/var/www/html/templates/Front/Scholar/Training/show.html.twig");
  1552.     }
  1553. }