<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Front/Scholar/Training/show.html.twig */
class __TwigTemplate_463832754a223d6b82c017c3faf085b84c0c59653fbbbd2dca2cbfdbbe4119ca extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'before_navbar' => [$this, 'block_before_navbar'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'inner_content' => [$this, 'block_inner_content'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
// line 3
$context["currentRoute"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "attributes", [], "any", false, false, false, 3), "get", [0 => "_route"], "method", false, false, false, 3);
// line 4
$context["has_front_access"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("FRONT_ACCESS", ["training" => // line 5
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 5, $this->source); })())]);
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "Front/Scholar/Training/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 9
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 10
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles", "core", "core");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_before_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
// line 14
echo " ";
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 14, $this->source); })()) == "manager_channel_training_show")) {
// line 15
echo " <div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
";
// line 17
$context["headerReturnLink"] = null;
// line 18
echo " ";
if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 18, $this->source); })()) == "manager_channel_training_show")) {
// line 19
echo " ";
$context["headerReturnLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_trainings", ["channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 19, $this->source); })()), "id", [], "any", false, false, false, 19)]);
// line 20
echo " ";
}
// line 21
echo "
<div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
<div style=\"font-weight: bold\"><a href=\"";
// line 23
echo twig_escape_filter($this->env, (isset($context["headerReturnLink"]) || array_key_exists("headerReturnLink", $context) ? $context["headerReturnLink"] : (function () { throw new RuntimeError('Variable "headerReturnLink" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 28
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 28, $this->source); })()), "name", [], "any", false, false, false, 28), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 29
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 30
echo " ";
$context["advice_avg"] = $this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->adviceAvgByTraining((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 30, $this->source); })()));
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 31, $this->source); })()), "user", [], "any", false, false, false, 31)) {
// line 32
echo " ";
$props = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->embeddedContext("ChannelUserData:CursusLockout", twig_to_array(["cursus" => (($context["cursus"]) ?? (null))]), $context);
$this->loadTemplate("Front/Scholar/Training/show.html.twig", "Front/Scholar/Training/show.html.twig", 32, "1768536394")->display($props);
// line 33
echo " ";
}
// line 34
echo "
<div class=\"jumbotron-v2 mb-4\">
<div class=\"container\">
<h2 class=\"v2-title-big\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.title.label", ["%name%" => twig_get_attribute($this->env, $this->source, // line 39
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 39, $this->source); })()), "name", [], "any", false, false, false, 39)]), "html", null, true);
// line 41
echo "</h2>
<div class=\"md-none\">
<div class=\"info-content mt-4 ";
// line 44
if (((isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 44, $this->source); })()) === null)) {
echo " info-without-advice ";
}
echo "\">
<div>
<i class=\"fas fa-users\"></i>
<p>";
// line 47
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->countCursusForTraining((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 47, $this->source); })())), "html", null, true);
echo "</p>
</div>
";
// line 49
if ( !((isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 49, $this->source); })()) === null)) {
// line 50
echo " <div>
<i class=\"fas fa-star\"></i>
<p>";
// line 52
echo twig_escape_filter($this->env, (isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 52, $this->source); })()), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->getCountAdviceTraining((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 52, $this->source); })())), "html", null, true);
echo ")</p>
</div>
";
}
// line 55
echo " <div class=\"dot-div\"></div>
<div>
";
// line 57
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 57, $this->source); })()), "updatedAt", [], "any", false, false, false, 57))) {
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, // line 59
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 59, $this->source); })()), "updatedAt", [], "any", false, false, false, 59), "long", "medium", "", null, "gregorian", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 59, $this->source); })()), "request", [], "any", false, false, false, 59), "locale", [], "any", false, false, false, 59))]);
} else {
// line 62
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, // line 63
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 63, $this->source); })()), "createdAt", [], "any", false, false, false, 63), "long", "medium", "", null, "gregorian", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 63, $this->source); })()), "request", [], "any", false, false, false, 63), "locale", [], "any", false, false, false, 63))]);
}
// line 66
echo " </div>
</div>
</div>
<div class=\"md-set\">
<div class=\"info-content mt-4\">
<div>
<div>
<i class=\"fas fa-users\"></i>
<p>";
// line 76
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->countCursusForTraining((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 76, $this->source); })())), "html", null, true);
echo "</p>
</div>
";
// line 78
if ( !((isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 78, $this->source); })()) === null)) {
// line 79
echo " <div class=\"info-content-stars\">
<i class=\"fas fa-star\"></i>
<p>";
// line 81
echo twig_escape_filter($this->env, (isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 81, $this->source); })()), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->getCountAdviceTraining((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 81, $this->source); })())), "html", null, true);
echo ")</p>
</div>
";
}
// line 84
echo " </div>
<div class=\"mt-2\">
<div class=\"dot-div\">
<i class=\"fas fa-circle\"></i>
</div>
<div>
";
// line 90
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 90, $this->source); })()), "updatedAt", [], "any", false, false, false, 90))) {
// line 91
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, // line 92
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 92, $this->source); })()), "updatedAt", [], "any", false, false, false, 92), "long", "medium", "", null, "gregorian", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 92, $this->source); })()), "request", [], "any", false, false, false, 92), "locale", [], "any", false, false, false, 92))]);
} else {
// line 95
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, // line 96
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 96, $this->source); })()), "createdAt", [], "any", false, false, false, 96), "long", "medium", "", null, "gregorian", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 96, $this->source); })()), "request", [], "any", false, false, false, 96), "locale", [], "any", false, false, false, 96))]);
}
// line 99
echo " </div>
</div>
</div>
</div>
<div class=\"description mt-4\">
<p>";
// line 107
echo twig_escape_filter($this->env, 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.', 107, $this->source); })()), "description", [], "any", false, false, false, 107), "html", null, true);
echo "</p>
</div>
</div>
</div>
";
// line 112
$this->displayParentBlock("content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 115
public function block_inner_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 116
echo " <div class=\"row\">
<div class=\"col-lg-9 col-md-8 mb-3\">
<h2 class=\"v2-title-small mt-5\">";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.programm.label"), "html", null, true);
echo "</h2>
<div id=\"accordion\" class=\"accordion-nellapp mt-5\">
";
// line 120
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["firstModules"]) || array_key_exists("firstModules", $context) ? $context["firstModules"] : (function () { throw new RuntimeError('Variable "firstModules" does not exist.', 120, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 121
echo " ";
$this->loadTemplate("Front/Scholar/Training/Partial/accordion-item.html.twig", "Front/Scholar/Training/show.html.twig", 121)->display(twig_array_merge($context, ["module" => $context["module"], "loop" => $context["loop"], "training" => (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 121, $this->source); })())]));
// line 122
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
echo " ";
if (twig_length_filter($this->env, (isset($context["lastModules"]) || array_key_exists("lastModules", $context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.', 123, $this->source); })()))) {
// line 124
echo " <div class=\"more-module\" style=\"display: none\">
";
// line 125
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lastModules"]) || array_key_exists("lastModules", $context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.', 125, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 126
echo " ";
$this->loadTemplate("Front/Scholar/Training/Partial/accordion-item.html.twig", "Front/Scholar/Training/show.html.twig", 126)->display(twig_array_merge($context, ["module" => $context["module"], "loop" => $context["loop"], "training" => (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 126, $this->source); })())]));
// line 127
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
echo " </div>
<div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
<button class=\"btn-see-more-v2\"
data-btn-more-module=\"true\">
";
// line 132
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_more.label"), "html", null, true);
echo "
5/";
// line 133
echo twig_escape_filter($this->env, (5 + twig_length_filter($this->env, (isset($context["lastModules"]) || array_key_exists("lastModules", $context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.', 133, $this->source); })()))), "html", null, true);
echo "
</button>
</div>
<div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
<button class=\"btn-see-more-v2\"
data-btn-less-module=\"true\">
";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_less.label"), "html", null, true);
echo "
</button>
</div>
";
}
// line 143
echo " </div>
</div>
<div class=\"col-lg-3 col-md-4 order-first order-md-last\">
<div class=\"card-elevation-training\">
<div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
<img class=\"img-top-card\" src=\"";
// line 149
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->getTrainingImgUrl((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 149, $this->source); })())), "html", null, true);
echo "\">
</div>
<div class=\"card-body\">
<div class=\"channel-name d-flex\">
<div>
<div class=\"img-logo-rounded\">
";
// line 156
$this->loadTemplate("Front/Channel/Image/_image_main_avatar.html.twig", "Front/Scholar/Training/show.html.twig", 156)->display(twig_array_merge($context, ["channel" => twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 156, $this->source); })()), "ownerChannel", [], "any", false, false, false, 156)]));
// line 157
echo " </div>
</div>
<div class=\"channel-description\">
<a href=\"";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_show", ["channelId" => twig_get_attribute($this->env, $this->source, 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.', 161, $this->source); })()), "ownerChannel", [], "any", false, false, false, 161), "id", [], "any", false, false, false, 161)]), "html", null, true);
echo "\"
class=\"font-weight-bold\">";
// line 162
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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); })()), "ownerChannel", [], "any", false, false, false, 162), "name", [], "any", false, false, false, 162), "html", null, true);
echo "</a>
";
// line 163
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, 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.', 163, $this->source); })()), "ownerChannel", [], "any", false, false, false, 163), "slogan", [], "any", false, false, false, 163))) {
// line 164
echo " <p class=\"small\">
";
// line 165
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 165, $this->source); })()), "ownerChannel", [], "any", false, false, false, 165), "slogan", [], "any", false, false, false, 165), "html", null, true);
echo "
</p>
";
}
// line 168
echo " </div>
</div>
<div class=\"training-stats mt-4\">
";
// line 171
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 171, $this->source); })()), "trainingType", [], "any", false, false, false, 171))) {
// line 172
echo " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-book-open\"></i>
</div>
<p>";
// line 177
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingTypeRuntime')->getTrainingTypeKey((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 177, $this->source); })()))), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 181
echo "
";
// line 182
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 182, $this->source); })()), "totalHourDescription", [], "any", false, false, false, 182))) {
// line 183
echo " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-stopwatch\"></i>
</div>
<p>";
// line 188
echo twig_escape_filter($this->env, 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.', 188, $this->source); })()), "totalHourDescription", [], "any", false, false, false, 188), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.total_hour.label"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 192
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 192, $this->source); })()), "videoDescription", [], "any", false, false, false, 192))) {
// line 193
echo " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-file-video\"></i>
</div>
<p>";
// line 198
echo twig_escape_filter($this->env, 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.', 198, $this->source); })()), "videoDescription", [], "any", false, false, false, 198), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.video_time.label"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 202
echo " ";
$context["count_exercises"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->countExercisesByTraining((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 202, $this->source); })()));
// line 203
echo " ";
if (((isset($context["count_exercises"]) || array_key_exists("count_exercises", $context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.', 203, $this->source); })()) != 0)) {
// line 204
echo " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"far fa-list-alt\"></i>
</div>
<p>";
// line 210
echo twig_escape_filter($this->env, (isset($context["count_exercises"]) || array_key_exists("count_exercises", $context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.', 210, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.use_case.label"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 214
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 214, $this->source); })()), "diplomaDescription", [], "any", false, false, false, 214))) {
// line 215
echo " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-graduation-cap\"></i>
</div>
<p>";
// line 220
echo twig_escape_filter($this->env, 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.', 220, $this->source); })()), "diplomaDescription", [], "any", false, false, false, 220), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 224
echo " </div>
";
// line 226
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 226, $this->source); })()), "trainingProduct", [], "any", false, false, false, 226)) && !(isset($context["has_front_access"]) || array_key_exists("has_front_access", $context) ? $context["has_front_access"] : (function () { throw new RuntimeError('Variable "has_front_access" does not exist.', 226, $this->source); })()))) {
// line 227
echo " <div class=\"mt-4 w100-flex-center-x\">
";
// line 228
$context["value"] = (twig_get_attribute($this->env, $this->source, 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); })()), "trainingProduct", [], "any", false, false, false, 228), "price", [], "any", false, false, false, 228) * 1);
// line 229
echo " <p class=\"price-card-training\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.price.label", ["%price%" => (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 229, $this->source); })())]), "html", null, true);
echo "
*</p>
</div>
<div class=\"mt-2 w100-flex-center-x\">
<p class=\"price-note-card-training\">";
// line 233
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.price.note", ["%funding_contact_path%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_payment_funding_contact", ["training_id" => twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 233, $this->source); })()), "id", [], "any", false, false, false, 233)])]);
echo "</p>
</div>
";
}
// line 236
echo "
";
// line 237
if (( !twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 237, $this->source); })()), "public", [], "any", false, false, false, 237) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 237, $this->source); })()) == "front_channel_training_show"))) {
// line 238
echo " <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
";
// line 239
if ((isset($context["has_front_access"]) || array_key_exists("has_front_access", $context) ? $context["has_front_access"] : (function () { throw new RuntimeError('Variable "has_front_access" does not exist.', 239, $this->source); })())) {
// line 240
echo " <div class=\"w100-flex-center-x\">
<div class=\"progress-circle\">
<div class=\"c100 p";
// line 242
echo twig_escape_filter($this->env, twig_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", false, false, false, 242), "html", null, true);
echo " blue light-green-fill medium\">
<div class=\"slice\">
<div class=\"bar\"></div>
<div class=\"fill\"></div>
</div>
</div>
</div>
</div>
<div class=\"mb-2 training-progress-percent\">
";
// line 251
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["trainingProgression"]) || array_key_exists("trainingProgression", $context) ? $context["trainingProgression"] : (function () { throw new RuntimeError('Variable "trainingProgression" does not exist.', 251, $this->source); })()), "progression", [], "any", false, false, false, 251), "html", null, true);
echo " %
</div>
";
// line 254
if ((($this->env->getRuntime('Nellapp\Bundle\SDKBundle\Routing\Twig\Runtime\UrlGeneratorRuntime')->exist("core", "app_account_show_cursus") && array_key_exists("cursus", $context)) && !(null === (isset($context["cursus"]) || array_key_exists("cursus", $context) ? $context["cursus"] : (function () { throw new RuntimeError('Variable "cursus" does not exist.', 254, $this->source); })())))) {
// line 255
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Routing\Twig\Runtime\UrlGeneratorRuntime')->generate("core", "app_account_show_cursus", ["cursusId" => twig_get_attribute($this->env, $this->source, // line 256
(isset($context["cursus"]) || array_key_exists("cursus", $context) ? $context["cursus"] : (function () { throw new RuntimeError('Variable "cursus" does not exist.', 256, $this->source); })()), "id", [], "any", false, false, false, 256)]), "html", null, true);
// line 257
echo "\"
class=\"see-training-progress-link\">";
// line 258
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.progression.link.label"), "html", null, true);
echo "
</a>
";
}
// line 261
echo "
";
// line 262
$context["lastChapterAchieved"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarTrainingRuntime')->getLastAchievedChapter((isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 262, $this->source); })()));
// line 263
echo " ";
if ( !(null === (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 263, $this->source); })()))) {
// line 264
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_chapter_show", ["trainingId" => twig_get_attribute($this->env, $this->source, // line 265
(isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 265, $this->source); })()), "trainingId", [], "array", false, false, false, 265), "moduleId" => twig_get_attribute($this->env, $this->source, // line 266
(isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 266, $this->source); })()), "moduleId", [], "array", false, false, false, 266), "lessonId" => twig_get_attribute($this->env, $this->source, // line 267
(isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 267, $this->source); })()), "lessonId", [], "array", false, false, false, 267), "chapterId" => twig_get_attribute($this->env, $this->source, // line 268
(isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 268, $this->source); })()), "chapterId", [], "array", false, false, false, 268)]), "html", null, true);
// line 269
echo "\"
class=\"btn-nellapp-v2 mt-3 d-inline-block\">
";
// line 271
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.continue_btn.label"), "html", null, true);
echo "
</a>
";
}
// line 274
echo " ";
} else {
// line 275
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_payment_funding_contact", ["training_id" => twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 275, $this->source); })()), "id", [], "any", false, false, false, 275)]), "html", null, true);
echo "\"
class=\"btn btn-nellapp-v2\">
";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.follow.label"), "html", null, true);
echo "
</a>
";
}
// line 280
echo " </div>
";
}
// line 282
echo " </div>
</div>
</div>
</div>
";
// line 287
if ((twig_length_filter($this->env, (isset($context["training_descriptions"]) || array_key_exists("training_descriptions", $context) ? $context["training_descriptions"] : (function () { throw new RuntimeError('Variable "training_descriptions" does not exist.', 287, $this->source); })())) > 0)) {
// line 288
echo " <div class=\"row\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 290
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.plus.label"), "html", null, true);
echo "</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
";
// line 294
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["training_descriptions"]) || array_key_exists("training_descriptions", $context) ? $context["training_descriptions"] : (function () { throw new RuntimeError('Variable "training_descriptions" does not exist.', 294, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["description"]) {
// line 295
echo " <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
";
// line 296
$this->loadTemplate("Front/Scholar/Card/training-description.html.twig", "Front/Scholar/Training/show.html.twig", 296)->display(twig_array_merge($context, ["description" => $context["description"]]));
// line 297
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['description'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 299
echo " </div>
</div>
</div>
";
}
// line 303
echo "
<div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 306
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.channel.label"), "html", null, true);
echo "</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 312
$this->loadTemplate("Front/Scholar/Card/channel.html.twig", "Front/Scholar/Training/show.html.twig", 312)->display(twig_array_merge($context, ["channel" => twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 312, $this->source); })()), "ownerChannel", [], "any", false, false, false, 312)]));
// line 313
echo " </div>
</div>
</div>
</div>
</div>
";
// line 319
if ((twig_length_filter($this->env, (isset($context["teacher_entities"]) || array_key_exists("teacher_entities", $context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.', 319, $this->source); })())) > 0)) {
// line 320
echo " <div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 322
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.teacher.label"), "html", null, true);
echo "
(";
// line 323
echo twig_escape_filter($this->env, 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.', 323, $this->source); })())), "html", null, true);
echo ")</h2>
</div>
</div>
";
// line 326
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["teacher_entities"]) || array_key_exists("teacher_entities", $context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.', 326, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["teacher"]) {
// line 327
echo " <div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 331
$this->loadTemplate("Front/Scholar/Card/teacher.html.twig", "Front/Scholar/Training/show.html.twig", 331)->display(twig_array_merge($context, ["teacher" => $context["teacher"]]));
// line 332
echo " </div>
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teacher'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 337
echo " ";
}
// line 338
echo "
";
// line 339
if ((array_key_exists("training_advices", $context) && (twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 339, $this->source); })())) > 0))) {
// line 340
echo " <div class=\"row mt-3 mb-5\">
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"div-title-between mt-5 mb-2\">
<h2 class=\"v2-title-small\">";
// line 345
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.label"), "html", null, true);
echo "
(";
// line 346
echo twig_escape_filter($this->env, 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.', 346, $this->source); })())), "html", null, true);
echo ")</h2>
<p class=\"\"><i class=\"far fa-star\"></i> ";
// line 347
echo twig_escape_filter($this->env, (isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 347, $this->source); })()), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 352
$context["adviceCount"] = 1;
// line 353
echo " ";
$context["break"] = false;
// line 354
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 354, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
// line 355
echo " ";
if ( !(isset($context["break"]) || array_key_exists("break", $context) ? $context["break"] : (function () { throw new RuntimeError('Variable "break" does not exist.', 355, $this->source); })())) {
// line 356
echo " ";
$this->loadTemplate("Front/Scholar/Card/advice.html.twig", "Front/Scholar/Training/show.html.twig", 356)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
// line 357
echo " ";
$context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 357, $this->source); })()) + 1);
// line 358
echo " ";
if (((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 358, $this->source); })()) == 6)) {
// line 359
echo " ";
$context["break"] = true;
// line 360
echo " ";
}
// line 361
echo " ";
}
// line 362
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 363
echo "
";
// line 364
$context["adviceCount"] = 1;
// line 365
echo " ";
if ((twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 365, $this->source); })())) > 5)) {
// line 366
echo " <div class=\"div-more-advice\">
";
// line 367
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 367, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
// line 368
echo " ";
$context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 368, $this->source); })()) + 1);
// line 369
echo " ";
if (((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 369, $this->source); })()) > 6)) {
// line 370
echo " ";
$this->loadTemplate("Front/Scholar/Card/advice.html.twig", "Front/Scholar/Training/show.html.twig", 370)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
// line 371
echo " ";
}
// line 372
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 373
echo " </div>
";
}
// line 375
echo " </div>
</div>
</div>
</div>
</div>
";
}
// line 381
echo " ";
if ((array_key_exists("form", $context) && twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 381, $this->source); })()), "user", [], "any", false, false, false, 381))) {
// line 382
echo " <div class=\"row\">
<div class=\"col-lg-9 col-md-8\">
<p class=\"small-description\">";
// line 384
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", null, true);
echo "</p>
</div>
</div>
<div class=\"row\" ";
// line 387
if ((array_key_exists("advice_user", $context) && !(null === (isset($context["advice_user"]) || array_key_exists("advice_user", $context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.', 387, $this->source); })())))) {
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["advice_user"]) || array_key_exists("advice_user", $context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.', 387, $this->source); })()), "note", [], "any", false, false, false, 387))) {
echo "data-advice-current-note=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["advice_user"]) || array_key_exists("advice_user", $context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.', 387, $this->source); })()), "note", [], "any", false, false, false, 387), "html", null, true);
echo "\"";
}
}
echo ">
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"form-advice-content\">
<div class=\"avatar-rounded\">";
// line 390
echo $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\UserRunTime')->displayAvatar($this->env, 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.', 390, $this->source); })()), "user", [], "any", false, false, false, 390));
echo "</div>
<div class=\"form-advice-bg-gray\">
";
// line 392
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 392, $this->source); })()), 'form_start');
echo "
<div style=\"display: none\">
";
// line 394
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 394, $this->source); })()), "note", [], "any", false, false, false, 394), 'widget');
echo "
</div>
";
// line 396
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 396, $this->source); })()), "comment", [], "any", false, false, false, 396), 'widget');
echo "
";
// line 397
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 397, $this->source); })()), "comment", [], "any", false, false, false, 397), 'errors');
echo "
";
// line 398
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 398, $this->source); })()), 'form_end');
echo "
<div class=\"stars-rating\">
<i class=\"far fa-star\" data-rating=\"1\"></i>
<i class=\"far fa-star\" data-rating=\"2\"></i>
<i class=\"far fa-star\" data-rating=\"3\"></i>
<i class=\"far fa-star\" data-rating=\"4\"></i>
<i class=\"far fa-star\" data-rating=\"5\"></i>
</div>
<div class=\"center-y ml-2\">
<span id=\"span-nb-note-advice\">0</span>
</div>
</div>
</div>
</div>
</div>
";
// line 413
if ( !(null === (isset($context["advice_user"]) || array_key_exists("advice_user", $context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.', 413, $this->source); })()))) {
// line 414
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["advice_user"]) || array_key_exists("advice_user", $context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.', 414, $this->source); })()), "id", [], "any", false, false, false, 414))) {
// line 415
echo " <div class=\"row\">
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"w100-flex-end-x\">
<a class=\"delete-btn-advice\"
href=\"";
// line 419
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_training_advice_delete", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["advice_user"]) || array_key_exists("advice_user", $context) ? $context["advice_user"] : (function () { throw new RuntimeError('Variable "advice_user" does not exist.', 419, $this->source); })()), "id", [], "any", false, false, false, 419)]), "html", null, true);
echo "\">";
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", null, true);
echo "</a>
</div>
</div>
</div>
";
}
// line 424
echo " ";
}
// line 425
echo " ";
}
// line 426
echo "
";
// line 430
if ((array_key_exists("training_advices", $context) && (twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 430, $this->source); })())) > 5))) {
// line 431
echo " <div class=\"row\">
<div class=\"col-lg-9 col-md-8 mt-5\">
<div class=\"w100-flex-center-x\">
<button class=\"see-more-btn\"
id=\"training-advice-see-more\">";
// line 435
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.advice.see_more.label", ["%count%" => twig_length_filter($this->env, (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 435, $this->source); })()))]), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
}
// line 440
echo " <div class=\"empty-div-bottom\"></div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 443
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 444
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
";
// line 445
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("CHANNEL_USER_PERM_TRAINING_SHOW", (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 445, $this->source); })()))) {
// line 446
echo " <div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"delete-modal-label\">
";
// line 452
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.title.label", ["%name%" => twig_get_attribute($this->env, $this->source, // line 453
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 453, $this->source); })()), "name", [], "any", false, false, false, 453)]);
// line 454
echo "
</h5>
</div>
<div class=\"modal-body\">
";
// line 459
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.body.label", ["%name%" => twig_get_attribute($this->env, $this->source, // line 460
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 460, $this->source); })()), "name", [], "any", false, false, false, 460)]);
// line 461
echo "
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
";
// line 466
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.cancel.label"), "html", null, true);
echo "
</button>
<a href=\"";
// line 469
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_delete", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 469, $this->source); })()), "id", [], "any", false, false, false, 469), "channelId" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 469, $this->source); })()), "id", [], "any", false, false, false, 469)]), "html", null, true);
echo "\"
class=\"btn btn-danger btn-raised\">
";
// line 471
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.delete.label"), "html", null, true);
echo "
</a>
</div>
</div>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Front/Scholar/Training/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1184 => 471, 1179 => 469, 1173 => 466, 1166 => 461, 1164 => 460, 1163 => 459, 1156 => 454, 1154 => 453, 1153 => 452, 1145 => 446, 1143 => 445, 1138 => 444, 1128 => 443, 1117 => 440, 1109 => 435, 1103 => 431, 1101 => 430, 1095 => 426, 1092 => 425, 1089 => 424, 1079 => 419, 1073 => 415, 1070 => 414, 1068 => 413, 1050 => 398, 1046 => 397, 1042 => 396, 1037 => 394, 1032 => 392, 1027 => 390, 1014 => 387, 1008 => 384, 1004 => 382, 1001 => 381, 993 => 375, 989 => 373, 975 => 372, 972 => 371, 969 => 370, 966 => 369, 963 => 368, 946 => 367, 943 => 366, 940 => 365, 938 => 364, 935 => 363, 921 => 362, 918 => 361, 915 => 360, 912 => 359, 909 => 358, 906 => 357, 903 => 356, 900 => 355, 882 => 354, 879 => 353, 877 => 352, 869 => 347, 865 => 346, 861 => 345, 854 => 340, 852 => 339, 849 => 338, 846 => 337, 828 => 332, 826 => 331, 820 => 327, 803 => 326, 797 => 323, 793 => 322, 789 => 320, 787 => 319, 779 => 313, 777 => 312, 768 => 306, 763 => 303, 757 => 299, 742 => 297, 740 => 296, 737 => 295, 720 => 294, 713 => 290, 709 => 288, 707 => 287, 700 => 282, 696 => 280, 690 => 277, 684 => 275, 681 => 274, 675 => 271, 671 => 269, 669 => 268, 668 => 267, 667 => 266, 666 => 265, 664 => 264, 661 => 263, 659 => 262, 656 => 261, 650 => 258, 647 => 257, 645 => 256, 643 => 255, 641 => 254, 635 => 251, 623 => 242, 619 => 240, 617 => 239, 614 => 238, 612 => 237, 609 => 236, 603 => 233, 595 => 229, 593 => 228, 590 => 227, 588 => 226, 584 => 224, 577 => 220, 570 => 215, 567 => 214, 558 => 210, 550 => 204, 547 => 203, 544 => 202, 535 => 198, 528 => 193, 525 => 192, 516 => 188, 509 => 183, 507 => 182, 504 => 181, 497 => 177, 490 => 172, 488 => 171, 483 => 168, 477 => 165, 474 => 164, 472 => 163, 468 => 162, 464 => 161, 458 => 157, 456 => 156, 446 => 149, 438 => 143, 431 => 139, 422 => 133, 418 => 132, 412 => 128, 398 => 127, 395 => 126, 378 => 125, 375 => 124, 372 => 123, 358 => 122, 355 => 121, 338 => 120, 333 => 118, 329 => 116, 319 => 115, 307 => 112, 299 => 107, 289 => 99, 286 => 96, 285 => 95, 282 => 92, 281 => 91, 279 => 90, 271 => 84, 263 => 81, 259 => 79, 257 => 78, 252 => 76, 240 => 66, 237 => 63, 236 => 62, 233 => 59, 232 => 58, 230 => 57, 226 => 55, 218 => 52, 214 => 50, 212 => 49, 207 => 47, 199 => 44, 194 => 41, 192 => 39, 191 => 38, 186 => 34, 183 => 33, 179 => 32, 176 => 31, 173 => 30, 163 => 29, 142 => 28, 128 => 23, 124 => 21, 121 => 20, 118 => 19, 115 => 18, 113 => 17, 109 => 15, 106 => 14, 96 => 13, 84 => 10, 79 => 9, 69 => 8, 58 => 1, 56 => 5, 55 => 4, 53 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% set has_front_access = is_granted('FRONT_ACCESS', {
'training': sub,
}) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('styles', 'core', 'core') }}
{% endblock %}
{% block before_navbar %}
{% if currentRoute == 'manager_channel_training_show' %}
<div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
{% set headerReturnLink = null %}
{% if currentRoute == 'manager_channel_training_show' %}
{% set headerReturnLink = path('manager_channel_trainings', {'channelId': channel.id}) %}
{% endif %}
<div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
<div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
</div>
{% endif %}
{% endblock before_navbar %}
{% block title %}{{ sub.name }} - {{ parent() }}{% endblock %}
{% block content %}
{% set advice_avg = sub|advice_avg_by_training %}
{% if app.user %}
{% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
<div class=\"jumbotron-v2 mb-4\">
<div class=\"container\">
<h2 class=\"v2-title-big\">
{{- 'front.scholar.training.show.title.label'|trans({
'%name%': sub.name,
}) -}}
</h2>
<div class=\"md-none\">
<div class=\"info-content mt-4 {% if advice_avg is same as null %} info-without-advice {% endif %}\">
<div>
<i class=\"fas fa-users\"></i>
<p>{{ sub|countCursusForTraining }}</p>
</div>
{% if advice_avg is not same as null %}
<div>
<i class=\"fas fa-star\"></i>
<p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
</div>
{% endif %}
<div class=\"dot-div\"></div>
<div>
{% if sub.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
</div>
<div class=\"md-set\">
<div class=\"info-content mt-4\">
<div>
<div>
<i class=\"fas fa-users\"></i>
<p>{{ sub|countCursusForTraining }}</p>
</div>
{% if advice_avg is not same as null %}
<div class=\"info-content-stars\">
<i class=\"fas fa-star\"></i>
<p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
</div>
{% endif %}
</div>
<div class=\"mt-2\">
<div class=\"dot-div\">
<i class=\"fas fa-circle\"></i>
</div>
<div>
{% if sub.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"description mt-4\">
<p>{{ sub.description }}</p>
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8 mb-3\">
<h2 class=\"v2-title-small mt-5\">{{ 'front.scholar.training.show.sub_title.programm.label'|trans }}</h2>
<div id=\"accordion\" class=\"accordion-nellapp mt-5\">
{% for module in firstModules %}
{% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training' : sub} %}
{% endfor %}
{% if lastModules|length %}
<div class=\"more-module\" style=\"display: none\">
{% for module in lastModules %}
{% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training': sub} %}
{% endfor %}
</div>
<div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
<button class=\"btn-see-more-v2\"
data-btn-more-module=\"true\">
{{ 'front.scholar.training.list.button.see_more.label'|trans }}
5/{{ 5 + lastModules|length }}
</button>
</div>
<div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
<button class=\"btn-see-more-v2\"
data-btn-less-module=\"true\">
{{ 'front.scholar.training.list.button.see_less.label'|trans }}
</button>
</div>
{% endif %}
</div>
</div>
<div class=\"col-lg-3 col-md-4 order-first order-md-last\">
<div class=\"card-elevation-training\">
<div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
<img class=\"img-top-card\" src=\"{{ sub|get_training_img_url }}\">
</div>
<div class=\"card-body\">
<div class=\"channel-name d-flex\">
<div>
<div class=\"img-logo-rounded\">
{% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': sub.ownerChannel} %}
</div>
</div>
<div class=\"channel-description\">
<a href=\"{{ path('front_channel_show', {'channelId' : sub.ownerChannel.id }) }}\"
class=\"font-weight-bold\">{{ sub.ownerChannel.name }}</a>
{% if sub.ownerChannel.slogan is not empty %}
<p class=\"small\">
{{ sub.ownerChannel.slogan }}
</p>
{% endif %}
</div>
</div>
<div class=\"training-stats mt-4\">
{% if sub.trainingType is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-book-open\"></i>
</div>
<p>{{ sub | get_training_type_key | trans }}</p>
</div>
</div>
{% endif %}
{% if sub.totalHourDescription is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-stopwatch\"></i>
</div>
<p>{{ sub.totalHourDescription }} {{ 'front.scholar.training.show.card.total_hour.label'|trans }}</p>
</div>
</div>
{% endif %}
{% if sub.videoDescription is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-file-video\"></i>
</div>
<p>{{ sub.videoDescription }} {{ 'front.scholar.training.show.card.video_time.label'|trans }}</p>
</div>
</div>
{% endif %}
{% set count_exercises = sub|count_exercises_by_training %}
{% if count_exercises != 0 %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"far fa-list-alt\"></i>
</div>
<p>{{ count_exercises }} {{ 'front.scholar.training.show.card.use_case.label'|trans }}</p>
</div>
</div>
{% endif %}
{% if sub.diplomaDescription is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-graduation-cap\"></i>
</div>
<p>{{ sub.diplomaDescription }}</p>
</div>
</div>
{% endif %}
</div>
{% if sub.trainingProduct is not null and not has_front_access %}
<div class=\"mt-4 w100-flex-center-x\">
{% set value = sub.trainingProduct.price * 1 %}
<p class=\"price-card-training\">{{ 'front.scholar.training.show.card.price.label'|trans({'%price%' : value}) }}
*</p>
</div>
<div class=\"mt-2 w100-flex-center-x\">
<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>
</div>
{% endif %}
{% if not sub.public and currentRoute == 'front_channel_training_show' %}
<div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
{% if has_front_access %}
<div class=\"w100-flex-center-x\">
<div class=\"progress-circle\">
<div class=\"c100 p{{ trainingProgression.progression }} blue light-green-fill medium\">
<div class=\"slice\">
<div class=\"bar\"></div>
<div class=\"fill\"></div>
</div>
</div>
</div>
</div>
<div class=\"mb-2 training-progress-percent\">
{{ trainingProgression.progression }} %
</div>
{% if nellapp_url_exist('core', 'app_account_show_cursus') and cursus is defined and cursus is not null %}
<a href=\"{{ nellapp_url('core', 'app_account_show_cursus', {
'cursusId': cursus.id
}) }}\"
class=\"see-training-progress-link\">{{ 'front.scholar.training.show.card.progression.link.label' | trans }}
</a>
{% endif %}
{% set lastChapterAchieved = getLastAchievedChapter(sub) %}
{% if lastChapterAchieved is not null %}
<a href=\"{{ path('front_channel_chapter_show', {
'trainingId': lastChapterAchieved['trainingId'],
'moduleId': lastChapterAchieved['moduleId'],
'lessonId': lastChapterAchieved['lessonId'],
'chapterId': lastChapterAchieved['chapterId'],
}) }}\"
class=\"btn-nellapp-v2 mt-3 d-inline-block\">
{{ 'front.scholar.training.show.card.continue_btn.label' | trans }}
</a>
{% endif %}
{% else %}
<a href=\"{{ path('front_channel_training_payment_funding_contact', {'training_id': sub.id}) }}\"
class=\"btn btn-nellapp-v2\">
{{ 'front.scholar.training.show.actions.follow.label'|trans }}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if training_descriptions|length > 0 %}
<div class=\"row\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.plus.label'|trans }}</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
{% for description in training_descriptions %}
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
{% include 'Front/Scholar/Card/training-description.html.twig' with {'description' : description} %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.channel.label'|trans }}</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
{% include 'Front/Scholar/Card/channel.html.twig' with {'channel' : sub.ownerChannel} %}
</div>
</div>
</div>
</div>
</div>
{% if teacher_entities|length > 0 %}
<div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}
({{ teacher_entities|length }})</h2>
</div>
</div>
{% for teacher in teacher_entities %}
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
{% include 'Front/Scholar/Card/teacher.html.twig' with {'teacher' : teacher} %}
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
{% if training_advices is defined and training_advices|length > 0 %}
<div class=\"row mt-3 mb-5\">
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"div-title-between mt-5 mb-2\">
<h2 class=\"v2-title-small\">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}
({{ training_advices|length }})</h2>
<p class=\"\"><i class=\"far fa-star\"></i> {{ advice_avg }}</p>
</div>
</div>
<div class=\"col-12\">
<div class=\"mt-3\">
{% set adviceCount = 1 %}
{% set break = false %}
{% for advice in training_advices %}
{% if not break %}
{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
{% set adviceCount = adviceCount + 1 %}
{% if adviceCount == 6 %}
{% set break = true %}
{% endif %}
{% endif %}
{% endfor %}
{% set adviceCount = 1 %}
{% if training_advices|length > 5 %}
<div class=\"div-more-advice\">
{% for advice in training_advices %}
{% set adviceCount = adviceCount + 1 %}
{% if adviceCount > 6 %}
{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if form is defined and app.user %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8\">
<p class=\"small-description\">{{ 'front.scholar.training.show.sub_title.advice.sentence.enter_key.label'|trans }}</p>
</div>
</div>
<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 %}>
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"form-advice-content\">
<div class=\"avatar-rounded\">{{ app.user|user_avatar }}</div>
<div class=\"form-advice-bg-gray\">
{{ form_start(form) }}
<div style=\"display: none\">
{{ form_widget(form.note) }}
</div>
{{ form_widget(form.comment) }}
{{ form_errors(form.comment) }}
{{ form_end(form) }}
<div class=\"stars-rating\">
<i class=\"far fa-star\" data-rating=\"1\"></i>
<i class=\"far fa-star\" data-rating=\"2\"></i>
<i class=\"far fa-star\" data-rating=\"3\"></i>
<i class=\"far fa-star\" data-rating=\"4\"></i>
<i class=\"far fa-star\" data-rating=\"5\"></i>
</div>
<div class=\"center-y ml-2\">
<span id=\"span-nb-note-advice\">0</span>
</div>
</div>
</div>
</div>
</div>
{% if advice_user is not null %}
{% if advice_user.id is not null %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"w100-flex-end-x\">
<a class=\"delete-btn-advice\"
href=\"{{ path('front_training_advice_delete', {'id' : advice_user.id}) }}\">{{ 'front.scholar.training.show.sub_title.advice.action.delete.label'|trans }}</a>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
{% if training_advices is defined and training_advices|length > 5 %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8 mt-5\">
<div class=\"w100-flex-center-x\">
<button class=\"see-more-btn\"
id=\"training-advice-see-more\">{{ 'front.scholar.training.advice.see_more.label'|trans({'%count%': training_advices|length}) }}</button>
</div>
</div>
</div>
{% endif %}
<div class=\"empty-div-bottom\"></div>
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% if is_granted('CHANNEL_USER_PERM_TRAINING_SHOW', sub) %}
<div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"delete-modal-label\">
{{ 'front.scholar.training.show.actions.delete.modal.title.label'|trans({
'%name%': sub.name,
})|raw }}
</h5>
</div>
<div class=\"modal-body\">
{{ 'front.scholar.training.show.actions.delete.modal.body.label'|trans({
'%name%': sub.name,
})|raw }}
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
{{ 'front.scholar.training.show.actions.delete.modal.cancel.label'|trans }}
</button>
<a href=\"{{ path('front_channel_training_delete', {'id': sub.id, 'channelId': channel.id}) }}\"
class=\"btn btn-danger btn-raised\">
{{ 'front.scholar.training.show.actions.delete.modal.delete.label'|trans }}
</a>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock body %}
", "Front/Scholar/Training/show.html.twig", "/var/www/html/templates/Front/Scholar/Training/show.html.twig");
}
}
/* Front/Scholar/Training/show.html.twig */
class __TwigTemplate_463832754a223d6b82c017c3faf085b84c0c59653fbbbd2dca2cbfdbbe4119ca___1768536394 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 32
return "@NellappSDK/Components/channelUserData/cursus_lockout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
$this->parent = $this->loadTemplate("@NellappSDK/Components/channelUserData/cursus_lockout.html.twig", "Front/Scholar/Training/show.html.twig", 32);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Front/Scholar/Training/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1722 => 32, 1184 => 471, 1179 => 469, 1173 => 466, 1166 => 461, 1164 => 460, 1163 => 459, 1156 => 454, 1154 => 453, 1153 => 452, 1145 => 446, 1143 => 445, 1138 => 444, 1128 => 443, 1117 => 440, 1109 => 435, 1103 => 431, 1101 => 430, 1095 => 426, 1092 => 425, 1089 => 424, 1079 => 419, 1073 => 415, 1070 => 414, 1068 => 413, 1050 => 398, 1046 => 397, 1042 => 396, 1037 => 394, 1032 => 392, 1027 => 390, 1014 => 387, 1008 => 384, 1004 => 382, 1001 => 381, 993 => 375, 989 => 373, 975 => 372, 972 => 371, 969 => 370, 966 => 369, 963 => 368, 946 => 367, 943 => 366, 940 => 365, 938 => 364, 935 => 363, 921 => 362, 918 => 361, 915 => 360, 912 => 359, 909 => 358, 906 => 357, 903 => 356, 900 => 355, 882 => 354, 879 => 353, 877 => 352, 869 => 347, 865 => 346, 861 => 345, 854 => 340, 852 => 339, 849 => 338, 846 => 337, 828 => 332, 826 => 331, 820 => 327, 803 => 326, 797 => 323, 793 => 322, 789 => 320, 787 => 319, 779 => 313, 777 => 312, 768 => 306, 763 => 303, 757 => 299, 742 => 297, 740 => 296, 737 => 295, 720 => 294, 713 => 290, 709 => 288, 707 => 287, 700 => 282, 696 => 280, 690 => 277, 684 => 275, 681 => 274, 675 => 271, 671 => 269, 669 => 268, 668 => 267, 667 => 266, 666 => 265, 664 => 264, 661 => 263, 659 => 262, 656 => 261, 650 => 258, 647 => 257, 645 => 256, 643 => 255, 641 => 254, 635 => 251, 623 => 242, 619 => 240, 617 => 239, 614 => 238, 612 => 237, 609 => 236, 603 => 233, 595 => 229, 593 => 228, 590 => 227, 588 => 226, 584 => 224, 577 => 220, 570 => 215, 567 => 214, 558 => 210, 550 => 204, 547 => 203, 544 => 202, 535 => 198, 528 => 193, 525 => 192, 516 => 188, 509 => 183, 507 => 182, 504 => 181, 497 => 177, 490 => 172, 488 => 171, 483 => 168, 477 => 165, 474 => 164, 472 => 163, 468 => 162, 464 => 161, 458 => 157, 456 => 156, 446 => 149, 438 => 143, 431 => 139, 422 => 133, 418 => 132, 412 => 128, 398 => 127, 395 => 126, 378 => 125, 375 => 124, 372 => 123, 358 => 122, 355 => 121, 338 => 120, 333 => 118, 329 => 116, 319 => 115, 307 => 112, 299 => 107, 289 => 99, 286 => 96, 285 => 95, 282 => 92, 281 => 91, 279 => 90, 271 => 84, 263 => 81, 259 => 79, 257 => 78, 252 => 76, 240 => 66, 237 => 63, 236 => 62, 233 => 59, 232 => 58, 230 => 57, 226 => 55, 218 => 52, 214 => 50, 212 => 49, 207 => 47, 199 => 44, 194 => 41, 192 => 39, 191 => 38, 186 => 34, 183 => 33, 179 => 32, 176 => 31, 173 => 30, 163 => 29, 142 => 28, 128 => 23, 124 => 21, 121 => 20, 118 => 19, 115 => 18, 113 => 17, 109 => 15, 106 => 14, 96 => 13, 84 => 10, 79 => 9, 69 => 8, 58 => 1, 56 => 5, 55 => 4, 53 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% set has_front_access = is_granted('FRONT_ACCESS', {
'training': sub,
}) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('styles', 'core', 'core') }}
{% endblock %}
{% block before_navbar %}
{% if currentRoute == 'manager_channel_training_show' %}
<div style=\"background-color: #E9F8F8;\" class=\"p-2 justify-content-center align-items-center d-flex flex-column flex-md-row text-center\">
{% set headerReturnLink = null %}
{% if currentRoute == 'manager_channel_training_show' %}
{% set headerReturnLink = path('manager_channel_trainings', {'channelId': channel.id}) %}
{% endif %}
<div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l'interface pour les administrateurs.</div>
<div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d'administration</a></div>
</div>
{% endif %}
{% endblock before_navbar %}
{% block title %}{{ sub.name }} - {{ parent() }}{% endblock %}
{% block content %}
{% set advice_avg = sub|advice_avg_by_training %}
{% if app.user %}
{% component 'ChannelUserData:CursusLockout' with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
<div class=\"jumbotron-v2 mb-4\">
<div class=\"container\">
<h2 class=\"v2-title-big\">
{{- 'front.scholar.training.show.title.label'|trans({
'%name%': sub.name,
}) -}}
</h2>
<div class=\"md-none\">
<div class=\"info-content mt-4 {% if advice_avg is same as null %} info-without-advice {% endif %}\">
<div>
<i class=\"fas fa-users\"></i>
<p>{{ sub|countCursusForTraining }}</p>
</div>
{% if advice_avg is not same as null %}
<div>
<i class=\"fas fa-star\"></i>
<p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
</div>
{% endif %}
<div class=\"dot-div\"></div>
<div>
{% if sub.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
</div>
<div class=\"md-set\">
<div class=\"info-content mt-4\">
<div>
<div>
<i class=\"fas fa-users\"></i>
<p>{{ sub|countCursusForTraining }}</p>
</div>
{% if advice_avg is not same as null %}
<div class=\"info-content-stars\">
<i class=\"fas fa-star\"></i>
<p>{{ advice_avg }} ({{ sub|get_count_advice_training }})</p>
</div>
{% endif %}
</div>
<div class=\"mt-2\">
<div class=\"dot-div\">
<i class=\"fas fa-circle\"></i>
</div>
<div>
{% if sub.updatedAt is not null %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.updatedAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% else %}
{{- 'front.scholar.training.show.createdAt.label'|trans({
'%date%': sub.createdAt|format_datetime('long', locale=app.request.locale),
})|raw -}}
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"description mt-4\">
<p>{{ sub.description }}</p>
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8 mb-3\">
<h2 class=\"v2-title-small mt-5\">{{ 'front.scholar.training.show.sub_title.programm.label'|trans }}</h2>
<div id=\"accordion\" class=\"accordion-nellapp mt-5\">
{% for module in firstModules %}
{% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training' : sub} %}
{% endfor %}
{% if lastModules|length %}
<div class=\"more-module\" style=\"display: none\">
{% for module in lastModules %}
{% include 'Front/Scholar/Training/Partial/accordion-item.html.twig' with {'module' : module, 'loop': loop, 'training': sub} %}
{% endfor %}
</div>
<div class=\"w100-flex-center-x mt-3 div-btn-see-more\">
<button class=\"btn-see-more-v2\"
data-btn-more-module=\"true\">
{{ 'front.scholar.training.list.button.see_more.label'|trans }}
5/{{ 5 + lastModules|length }}
</button>
</div>
<div class=\"w100-flex-center-x mt-3 div-btn-see-less\" style=\"display: none\">
<button class=\"btn-see-more-v2\"
data-btn-less-module=\"true\">
{{ 'front.scholar.training.list.button.see_less.label'|trans }}
</button>
</div>
{% endif %}
</div>
</div>
<div class=\"col-lg-3 col-md-4 order-first order-md-last\">
<div class=\"card-elevation-training\">
<div class=\"\" style=\"background-color: #f0f8f8;border-radius: 6px;text-align: center;\">
<img class=\"img-top-card\" src=\"{{ sub|get_training_img_url }}\">
</div>
<div class=\"card-body\">
<div class=\"channel-name d-flex\">
<div>
<div class=\"img-logo-rounded\">
{% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': sub.ownerChannel} %}
</div>
</div>
<div class=\"channel-description\">
<a href=\"{{ path('front_channel_show', {'channelId' : sub.ownerChannel.id }) }}\"
class=\"font-weight-bold\">{{ sub.ownerChannel.name }}</a>
{% if sub.ownerChannel.slogan is not empty %}
<p class=\"small\">
{{ sub.ownerChannel.slogan }}
</p>
{% endif %}
</div>
</div>
<div class=\"training-stats mt-4\">
{% if sub.trainingType is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-book-open\"></i>
</div>
<p>{{ sub | get_training_type_key | trans }}</p>
</div>
</div>
{% endif %}
{% if sub.totalHourDescription is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-stopwatch\"></i>
</div>
<p>{{ sub.totalHourDescription }} {{ 'front.scholar.training.show.card.total_hour.label'|trans }}</p>
</div>
</div>
{% endif %}
{% if sub.videoDescription is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-file-video\"></i>
</div>
<p>{{ sub.videoDescription }} {{ 'front.scholar.training.show.card.video_time.label'|trans }}</p>
</div>
</div>
{% endif %}
{% set count_exercises = sub|count_exercises_by_training %}
{% if count_exercises != 0 %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"far fa-list-alt\"></i>
</div>
<p>{{ count_exercises }} {{ 'front.scholar.training.show.card.use_case.label'|trans }}</p>
</div>
</div>
{% endif %}
{% if sub.diplomaDescription is not null %}
<div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-graduation-cap\"></i>
</div>
<p>{{ sub.diplomaDescription }}</p>
</div>
</div>
{% endif %}
</div>
{% if sub.trainingProduct is not null and not has_front_access %}
<div class=\"mt-4 w100-flex-center-x\">
{% set value = sub.trainingProduct.price * 1 %}
<p class=\"price-card-training\">{{ 'front.scholar.training.show.card.price.label'|trans({'%price%' : value}) }}
*</p>
</div>
<div class=\"mt-2 w100-flex-center-x\">
<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>
</div>
{% endif %}
{% if not sub.public and currentRoute == 'front_channel_training_show' %}
<div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
{% if has_front_access %}
<div class=\"w100-flex-center-x\">
<div class=\"progress-circle\">
<div class=\"c100 p{{ trainingProgression.progression }} blue light-green-fill medium\">
<div class=\"slice\">
<div class=\"bar\"></div>
<div class=\"fill\"></div>
</div>
</div>
</div>
</div>
<div class=\"mb-2 training-progress-percent\">
{{ trainingProgression.progression }} %
</div>
{% if nellapp_url_exist('core', 'app_account_show_cursus') and cursus is defined and cursus is not null %}
<a href=\"{{ nellapp_url('core', 'app_account_show_cursus', {
'cursusId': cursus.id
}) }}\"
class=\"see-training-progress-link\">{{ 'front.scholar.training.show.card.progression.link.label' | trans }}
</a>
{% endif %}
{% set lastChapterAchieved = getLastAchievedChapter(sub) %}
{% if lastChapterAchieved is not null %}
<a href=\"{{ path('front_channel_chapter_show', {
'trainingId': lastChapterAchieved['trainingId'],
'moduleId': lastChapterAchieved['moduleId'],
'lessonId': lastChapterAchieved['lessonId'],
'chapterId': lastChapterAchieved['chapterId'],
}) }}\"
class=\"btn-nellapp-v2 mt-3 d-inline-block\">
{{ 'front.scholar.training.show.card.continue_btn.label' | trans }}
</a>
{% endif %}
{% else %}
<a href=\"{{ path('front_channel_training_payment_funding_contact', {'training_id': sub.id}) }}\"
class=\"btn btn-nellapp-v2\">
{{ 'front.scholar.training.show.actions.follow.label'|trans }}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if training_descriptions|length > 0 %}
<div class=\"row\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.plus.label'|trans }}</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
{% for description in training_descriptions %}
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
{% include 'Front/Scholar/Card/training-description.html.twig' with {'description' : description} %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.channel.label'|trans }}</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
{% include 'Front/Scholar/Card/channel.html.twig' with {'channel' : sub.ownerChannel} %}
</div>
</div>
</div>
</div>
</div>
{% if teacher_entities|length > 0 %}
<div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}
({{ teacher_entities|length }})</h2>
</div>
</div>
{% for teacher in teacher_entities %}
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
{% include 'Front/Scholar/Card/teacher.html.twig' with {'teacher' : teacher} %}
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
{% if training_advices is defined and training_advices|length > 0 %}
<div class=\"row mt-3 mb-5\">
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"div-title-between mt-5 mb-2\">
<h2 class=\"v2-title-small\">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}
({{ training_advices|length }})</h2>
<p class=\"\"><i class=\"far fa-star\"></i> {{ advice_avg }}</p>
</div>
</div>
<div class=\"col-12\">
<div class=\"mt-3\">
{% set adviceCount = 1 %}
{% set break = false %}
{% for advice in training_advices %}
{% if not break %}
{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
{% set adviceCount = adviceCount + 1 %}
{% if adviceCount == 6 %}
{% set break = true %}
{% endif %}
{% endif %}
{% endfor %}
{% set adviceCount = 1 %}
{% if training_advices|length > 5 %}
<div class=\"div-more-advice\">
{% for advice in training_advices %}
{% set adviceCount = adviceCount + 1 %}
{% if adviceCount > 6 %}
{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if form is defined and app.user %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8\">
<p class=\"small-description\">{{ 'front.scholar.training.show.sub_title.advice.sentence.enter_key.label'|trans }}</p>
</div>
</div>
<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 %}>
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"form-advice-content\">
<div class=\"avatar-rounded\">{{ app.user|user_avatar }}</div>
<div class=\"form-advice-bg-gray\">
{{ form_start(form) }}
<div style=\"display: none\">
{{ form_widget(form.note) }}
</div>
{{ form_widget(form.comment) }}
{{ form_errors(form.comment) }}
{{ form_end(form) }}
<div class=\"stars-rating\">
<i class=\"far fa-star\" data-rating=\"1\"></i>
<i class=\"far fa-star\" data-rating=\"2\"></i>
<i class=\"far fa-star\" data-rating=\"3\"></i>
<i class=\"far fa-star\" data-rating=\"4\"></i>
<i class=\"far fa-star\" data-rating=\"5\"></i>
</div>
<div class=\"center-y ml-2\">
<span id=\"span-nb-note-advice\">0</span>
</div>
</div>
</div>
</div>
</div>
{% if advice_user is not null %}
{% if advice_user.id is not null %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"w100-flex-end-x\">
<a class=\"delete-btn-advice\"
href=\"{{ path('front_training_advice_delete', {'id' : advice_user.id}) }}\">{{ 'front.scholar.training.show.sub_title.advice.action.delete.label'|trans }}</a>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
{% if training_advices is defined and training_advices|length > 5 %}
<div class=\"row\">
<div class=\"col-lg-9 col-md-8 mt-5\">
<div class=\"w100-flex-center-x\">
<button class=\"see-more-btn\"
id=\"training-advice-see-more\">{{ 'front.scholar.training.advice.see_more.label'|trans({'%count%': training_advices|length}) }}</button>
</div>
</div>
</div>
{% endif %}
<div class=\"empty-div-bottom\"></div>
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% if is_granted('CHANNEL_USER_PERM_TRAINING_SHOW', sub) %}
<div class=\"modal fade\" id=\"delete-modal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"delete-modal-label\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"delete-modal-label\">
{{ 'front.scholar.training.show.actions.delete.modal.title.label'|trans({
'%name%': sub.name,
})|raw }}
</h5>
</div>
<div class=\"modal-body\">
{{ 'front.scholar.training.show.actions.delete.modal.body.label'|trans({
'%name%': sub.name,
})|raw }}
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
{{ 'front.scholar.training.show.actions.delete.modal.cancel.label'|trans }}
</button>
<a href=\"{{ path('front_channel_training_delete', {'id': sub.id, 'channelId': channel.id}) }}\"
class=\"btn btn-danger btn-raised\">
{{ 'front.scholar.training.show.actions.delete.modal.delete.label'|trans }}
</a>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock body %}
", "Front/Scholar/Training/show.html.twig", "/var/www/html/templates/Front/Scholar/Training/show.html.twig");
}
}