<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* Front/Scholar/Training/show.html.twig */
class __TwigTemplate_81fd3dad2aa9547dede2dff19e8383fc extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$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): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("base.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
// line 3
$context["currentRoute"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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", ["_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->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 9
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 10
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles", "core", "core");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 13
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_before_navbar(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
// line 14
yield " ";
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
yield " <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
yield " ";
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
yield " ";
$context["headerReturnLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manager_channel_trainings", ["channelId" => CoreExtension::getAttribute($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
yield " ";
}
// line 21
yield "
<div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l\x27interface pour les administrateurs.</div>
<div style=\"font-weight: bold\"><a href=\"";
// line 23
yield (string) $this->escaper->escape((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);
yield "\" style=\"text-decoration: underline\">Revenir à la page d\x27administration</a></div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 28
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield (string) $this->escaper->escape(CoreExtension::getAttribute($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);
yield " - ";
yield from $this->yieldParentBlock("title", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 29
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 30
yield " ";
$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
yield " ";
if ((($tmp = CoreExtension::getAttribute($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)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 32
yield " ";
$preRendered = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->extensionPreCreateForRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]));
if (null !== $preRendered) {
echo $preRendered;
} else {
$preRenderEvent = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->startEmbeddedComponentRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]), $context, "Front/Scholar/Training/show.html.twig", 35689168741);
$embeddedContext = $preRenderEvent->getVariables();
$embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
if (!isset($embeddedContext["outerBlocks"])) {
$embeddedContext["outerBlocks"] = new \Symfony\UX\TwigComponent\BlockStack();
}
$embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 35689168741);
$this->loadTemplate("Front/Scholar/Training/show.html.twig", "Front/Scholar/Training/show.html.twig", 32, "35689168741")->display($embeddedContext, $embeddedBlocks);
$this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->finishEmbeddedComponentRender();
}
// line 33
yield " ";
}
// line 34
yield "
<div class=\"jumbotron-v2 mb-4\">
<div class=\"container\">
<h2 class=\"v2-title-big\">";
// line 38
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.title.label", ["%name%" => CoreExtension::getAttribute($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
yield "</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)) {
yield " info-without-advice ";
}
yield "\">
<div>
<i class=\"fas fa-users\"></i>
<p>";
// line 47
yield (string) $this->escaper->escape($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);
yield "</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
yield " <div>
<i class=\"fas fa-star\"></i>
<p>";
// line 52
yield (string) $this->escaper->escape((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);
yield " (";
yield (string) $this->escaper->escape($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);
yield ")</p>
</div>
";
}
// line 55
yield " <div class=\"dot-div\"></div>
<div>
";
// line 57
if ( !(null === CoreExtension::getAttribute($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
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($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", null, "", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($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", null, "", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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
yield " </div>
</div>
</div>
<div class=\"md-set\">
<div class=\"info-content mt-4\">
<div>
<div>
<i class=\"fas fa-users\"></i>
<p>";
// line 76
yield (string) $this->escaper->escape($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);
yield "</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
yield " <div class=\"info-content-stars\">
<i class=\"fas fa-star\"></i>
<p>";
// line 81
yield (string) $this->escaper->escape((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);
yield " (";
yield (string) $this->escaper->escape($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);
yield ")</p>
</div>
";
}
// line 84
yield " </div>
<div class=\"mt-2\">
<div class=\"dot-div\">
<i class=\"fas fa-circle\"></i>
</div>
<div>
";
// line 90
if ( !(null === CoreExtension::getAttribute($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
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($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", null, "", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($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", null, "", null, null, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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
yield " </div>
</div>
</div>
</div>
<div class=\"description mt-4\">
<p>";
// line 107
yield (string) $this->escaper->escape(CoreExtension::getAttribute($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);
yield "</p>
</div>
</div>
</div>
";
// line 112
yield from $this->yieldParentBlock("content", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 115
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_inner_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 116
yield " <div class=\"row\">
<div class=\"col-lg-9 col-md-8 mb-3\">
<h2 class=\"v2-title-small mt-5\">";
// line 118
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.programm.label"), "html", null, true);
yield "</h2>
<div id=\"accordion\" class=\"accordion-nellapp mt-5\">
";
// line 120
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((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
yield " ";
yield from $this->load("Front/Scholar/Training/Partial/accordion-item.html.twig", 121)->unwrap()->yield(CoreExtension::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
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 123
yield " ";
if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["lastModules"]) || array_key_exists("lastModules", $context) ? $context["lastModules"] : (function () { throw new RuntimeError('Variable "lastModules" does not exist.', 123, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 124
yield " <div class=\"more-module\" style=\"display: none\">
";
// line 125
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((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
yield " ";
yield from $this->load("Front/Scholar/Training/Partial/accordion-item.html.twig", 126)->unwrap()->yield(CoreExtension::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
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 128
yield " </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
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_more.label"), "html", null, true);
yield "
5/";
// line 133
yield (string) $this->escaper->escape((5 + Twig\Extension\CoreExtension::length($this->env->getCharset(), (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);
yield "
</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
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.list.button.see_less.label"), "html", null, true);
yield "
</button>
</div>
";
}
// line 143
yield " </div>
</div>
<div class=\"col-lg-3 col-md-4 order-first order-md-last\">
<div class=\"card-elevation-training\">
<div class=\"card-img-top\">
<img class=\"img-top-card img-responsive\" src=\"";
// line 150
yield (string) $this->escaper->escape($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.', 150, $this->source); })())), "html", null, true);
yield "\" alt=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 150, $this->source); })()), "name", [], "any", false, false, false, 150), "html", null, true);
yield "\">
</div>
<div class=\"card-body\">
<div class=\"channel-name d-flex\">
<div>
<div class=\"img-logo-rounded\">
";
// line 157
yield from $this->load("Front/Channel/Image/_image_main_avatar.html.twig", 157)->unwrap()->yield(CoreExtension::merge($context, ["channel" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 157, $this->source); })()), "ownerChannel", [], "any", false, false, false, 157)]));
// line 158
yield " </div>
</div>
<div class=\"channel-description\">
<a href=\"";
// line 162
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_show", ["channelId" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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), "id", [], "any", false, false, false, 162)]), "html", null, true);
yield "\"
class=\"font-weight-bold\">";
// line 163
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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), "name", [], "any", false, false, false, 163), "html", null, true);
yield "</a>
";
// line 164
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 164, $this->source); })()), "ownerChannel", [], "any", false, false, false, 164), "slogan", [], "any", false, false, false, 164))) {
// line 165
yield " <p class=\"small\">
";
// line 166
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 166, $this->source); })()), "ownerChannel", [], "any", false, false, false, 166), "slogan", [], "any", false, false, false, 166), "html", null, true);
yield "
</p>
";
}
// line 169
yield " </div>
</div>
<div class=\"training-stats mt-4\">
";
// line 172
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 172, $this->source); })()), "trainingType", [], "any", false, false, false, 172))) {
// line 173
yield " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-book-open\"></i>
</div>
<p>";
// line 178
yield (string) $this->escaper->escape($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.', 178, $this->source); })()))), "html", null, true);
yield "</p>
</div>
</div>
";
}
// line 182
yield "
";
// line 183
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 183, $this->source); })()), "totalHourDescription", [], "any", false, false, false, 183))) {
// line 184
yield " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-stopwatch\"></i>
</div>
<p>";
// line 189
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 189, $this->source); })()), "totalHourDescription", [], "any", false, false, false, 189), "html", null, true);
yield " ";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.total_hour.label"), "html", null, true);
yield "</p>
</div>
</div>
";
}
// line 193
yield " ";
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 193, $this->source); })()), "videoDescription", [], "any", false, false, false, 193))) {
// line 194
yield " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-file-video\"></i>
</div>
<p>";
// line 199
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 199, $this->source); })()), "videoDescription", [], "any", false, false, false, 199), "html", null, true);
yield " ";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.video_time.label"), "html", null, true);
yield "</p>
</div>
</div>
";
}
// line 203
yield " ";
$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.', 203, $this->source); })()));
// line 204
yield " ";
if (((isset($context["count_exercises"]) || array_key_exists("count_exercises", $context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.', 204, $this->source); })()) != 0)) {
// line 205
yield " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"far fa-list-alt\"></i>
</div>
<p>";
// line 211
yield (string) $this->escaper->escape((isset($context["count_exercises"]) || array_key_exists("count_exercises", $context) ? $context["count_exercises"] : (function () { throw new RuntimeError('Variable "count_exercises" does not exist.', 211, $this->source); })()), "html", null, true);
yield " ";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.use_case.label"), "html", null, true);
yield "</p>
</div>
</div>
";
}
// line 215
yield " ";
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 215, $this->source); })()), "diplomaDescription", [], "any", false, false, false, 215))) {
// line 216
yield " <div class=\"row mt-3\">
<div class=\"col-12 content-stat\">
<div>
<i class=\"fas fa-graduation-cap\"></i>
</div>
<p>";
// line 221
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 221, $this->source); })()), "diplomaDescription", [], "any", false, false, false, 221), "html", null, true);
yield "</p>
</div>
</div>
";
}
// line 225
yield " </div>
";
// line 227
if (( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 227, $this->source); })()), "trainingProduct", [], "any", false, false, false, 227)) && !(($tmp = (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.', 227, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 228
yield " <div class=\"mt-4 w100-flex-center-x\">
";
// line 229
$context["value"] = (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 229, $this->source); })()), "trainingProduct", [], "any", false, false, false, 229), "price", [], "any", false, false, false, 229) * 1);
// line 230
yield " <p class=\"price-card-training\">";
yield (string) $this->escaper->escape($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.', 230, $this->source); })())]), "html", null, true);
yield "
*</p>
</div>
<div class=\"mt-2 w100-flex-center-x\">
<p class=\"price-note-card-training\">";
// line 234
yield (string) $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" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 234, $this->source); })()), "id", [], "any", false, false, false, 234)])]);
yield "</p>
</div>
";
}
// line 237
yield "
";
// line 238
if (( !(($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 238, $this->source); })()), "public", [], "any", false, false, false, 238)) && $tmp instanceof Markup ? (string) $tmp : $tmp) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 238, $this->source); })()) == "front_channel_training_show"))) {
// line 239
yield " <div class=\"text-center mt-4 div-btn-card-show-training d-flex flex-column\">
";
// line 240
if ((($tmp = (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.', 240, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 241
yield " <div class=\"w100-flex-center-x\">
<div class=\"progress-circle\">
<div class=\"c100 p";
// line 243
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["trainingProgression"]) || array_key_exists("trainingProgression", $context) ? $context["trainingProgression"] : (function () { throw new RuntimeError('Variable "trainingProgression" does not exist.', 243, $this->source); })()), "progression", [], "any", false, false, false, 243), "html", null, true);
yield " 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 252
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["trainingProgression"]) || array_key_exists("trainingProgression", $context) ? $context["trainingProgression"] : (function () { throw new RuntimeError('Variable "trainingProgression" does not exist.', 252, $this->source); })()), "progression", [], "any", false, false, false, 252), "html", null, true);
yield " %
</div>
";
// line 255
if ((((($tmp = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Routing\Twig\Runtime\UrlGeneratorRuntime')->exist("core", "app_account_show_cursus")) && $tmp instanceof Markup ? (string) $tmp : $tmp) && 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.', 255, $this->source); })())))) {
// line 256
yield " <a href=\"";
yield (string) $this->escaper->escape($this->env->getRuntime('Nellapp\Bundle\SDKBundle\Routing\Twig\Runtime\UrlGeneratorRuntime')->generate("core", "app_account_show_cursus", ["cursusId" => CoreExtension::getAttribute($this->env, $this->source, // line 257
(isset($context["cursus"]) || array_key_exists("cursus", $context) ? $context["cursus"] : (function () { throw new RuntimeError('Variable "cursus" does not exist.', 257, $this->source); })()), "id", [], "any", false, false, false, 257)]), "html", null, true);
// line 258
yield "\"
class=\"see-training-progress-link\">";
// line 259
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.progression.link.label"), "html", null, true);
yield "
</a>
";
}
// line 262
yield "
";
// line 263
$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.', 263, $this->source); })()));
// line 264
yield " ";
if ( !(null === (isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 264, $this->source); })()))) {
// line 265
yield " <a href=\"";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_chapter_show", ["trainingId" => CoreExtension::getAttribute($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); })()), "trainingId", [], "array", false, false, false, 266), "moduleId" => CoreExtension::getAttribute($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); })()), "moduleId", [], "array", false, false, false, 267), "lessonId" => CoreExtension::getAttribute($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); })()), "lessonId", [], "array", false, false, false, 268), "chapterId" => CoreExtension::getAttribute($this->env, $this->source, // line 269
(isset($context["lastChapterAchieved"]) || array_key_exists("lastChapterAchieved", $context) ? $context["lastChapterAchieved"] : (function () { throw new RuntimeError('Variable "lastChapterAchieved" does not exist.', 269, $this->source); })()), "chapterId", [], "array", false, false, false, 269)]), "html", null, true);
// line 270
yield "\"
class=\"btn-nellapp-v2 mt-3 d-inline-block\">
";
// line 272
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.card.continue_btn.label"), "html", null, true);
yield "
</a>
";
}
// line 275
yield " ";
} else {
// line 276
yield " <a href=\"";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_payment_funding_contact", ["training_id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 276, $this->source); })()), "id", [], "any", false, false, false, 276)]), "html", null, true);
yield "\"
class=\"btn btn-nellapp-v2\">
";
// line 278
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.follow.label"), "html", null, true);
yield "
</a>
";
}
// line 281
yield " </div>
";
}
// line 283
yield " </div>
</div>
";
// line 286
yield from $this->load("Front/Scholar/Partial/_back_to_dashboard.html.twig", 286)->unwrap()->yield(CoreExtension::merge($context, ["wrapper_class" => "mt-3 d-flex justify-content-center", "button_class" => "nellapp-outline-btn text-decoration-none"]));
// line 290
yield " </div>
</div>
";
// line 293
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["training_descriptions"]) || array_key_exists("training_descriptions", $context) ? $context["training_descriptions"] : (function () { throw new RuntimeError('Variable "training_descriptions" does not exist.', 293, $this->source); })())) > 0)) {
// line 294
yield " <div class=\"row\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 296
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.plus.label"), "html", null, true);
yield "</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
";
// line 300
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["training_descriptions"]) || array_key_exists("training_descriptions", $context) ? $context["training_descriptions"] : (function () { throw new RuntimeError('Variable "training_descriptions" does not exist.', 300, $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 301
yield " <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
";
// line 302
yield from $this->load("Front/Scholar/Card/training-description.html.twig", 302)->unwrap()->yield(CoreExtension::merge($context, ["description" => $context["description"]]));
// line 303
yield " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['description'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 305
yield " </div>
</div>
</div>
";
}
// line 309
yield "
<div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 312
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.channel.label"), "html", null, true);
yield "</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 318
yield from $this->load("Front/Scholar/Card/channel.html.twig", 318)->unwrap()->yield(CoreExtension::merge($context, ["channel" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 318, $this->source); })()), "ownerChannel", [], "any", false, false, false, 318)]));
// line 319
yield " </div>
</div>
</div>
</div>
</div>
";
// line 325
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["teacher_entities"]) || array_key_exists("teacher_entities", $context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.', 325, $this->source); })())) > 0)) {
// line 326
yield " <div class=\"row mt-3\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 328
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.teacher.label"), "html", null, true);
yield "
(";
// line 329
yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["teacher_entities"]) || array_key_exists("teacher_entities", $context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.', 329, $this->source); })())), "html", null, true);
yield ")</h2>
</div>
</div>
";
// line 332
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["teacher_entities"]) || array_key_exists("teacher_entities", $context) ? $context["teacher_entities"] : (function () { throw new RuntimeError('Variable "teacher_entities" does not exist.', 332, $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 333
yield " <div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 337
yield from $this->load("Front/Scholar/Card/teacher.html.twig", 337)->unwrap()->yield(CoreExtension::merge($context, ["teacher" => $context["teacher"]]));
// line 338
yield " </div>
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['teacher'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 343
yield " ";
}
// line 344
yield "
";
// line 345
if ((array_key_exists("training_advices", $context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 345, $this->source); })())) > 0))) {
// line 346
yield " <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 351
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.label"), "html", null, true);
yield "
(";
// line 352
yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 352, $this->source); })())), "html", null, true);
yield ")</h2>
<p class=\"\"><i class=\"far fa-star\"></i> ";
// line 353
yield (string) $this->escaper->escape((isset($context["advice_avg"]) || array_key_exists("advice_avg", $context) ? $context["advice_avg"] : (function () { throw new RuntimeError('Variable "advice_avg" does not exist.', 353, $this->source); })()), "html", null, true);
yield "</p>
</div>
</div>
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 358
$context["adviceCount"] = 1;
// line 359
yield " ";
$context["break"] = false;
// line 360
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 360, $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 361
yield " ";
if ( !(($tmp = (isset($context["break"]) || array_key_exists("break", $context) ? $context["break"] : (function () { throw new RuntimeError('Variable "break" does not exist.', 361, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 362
yield " ";
yield from $this->load("Front/Scholar/Card/advice.html.twig", 362)->unwrap()->yield(CoreExtension::merge($context, ["advice" => $context["advice"]]));
// line 363
yield " ";
$context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 363, $this->source); })()) + 1);
// line 364
yield " ";
if (((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 364, $this->source); })()) == 6)) {
// line 365
yield " ";
$context["break"] = true;
// line 366
yield " ";
}
// line 367
yield " ";
}
// line 368
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 369
yield "
";
// line 370
$context["adviceCount"] = 1;
// line 371
yield " ";
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 371, $this->source); })())) > 5)) {
// line 372
yield " <div class=\"div-more-advice\">
";
// line 373
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 373, $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 374
yield " ";
$context["adviceCount"] = ((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 374, $this->source); })()) + 1);
// line 375
yield " ";
if (((isset($context["adviceCount"]) || array_key_exists("adviceCount", $context) ? $context["adviceCount"] : (function () { throw new RuntimeError('Variable "adviceCount" does not exist.', 375, $this->source); })()) > 6)) {
// line 376
yield " ";
yield from $this->load("Front/Scholar/Card/advice.html.twig", 376)->unwrap()->yield(CoreExtension::merge($context, ["advice" => $context["advice"]]));
// line 377
yield " ";
}
// line 378
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 379
yield " </div>
";
}
// line 381
yield " </div>
</div>
</div>
</div>
</div>
";
}
// line 387
yield " ";
if ((array_key_exists("form", $context) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 387, $this->source); })()), "user", [], "any", false, false, false, 387)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 388
yield " <div class=\"row\">
<div class=\"col-lg-9 col-md-8\">
<p class=\"small-description\">";
// line 390
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.sentence.enter_key.label"), "html", null, true);
yield "</p>
</div>
</div>
<div class=\"row\" ";
// line 393
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.', 393, $this->source); })())))) {
yield " ";
if ( !(null === CoreExtension::getAttribute($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.', 393, $this->source); })()), "note", [], "any", false, false, false, 393))) {
yield "data-advice-current-note=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($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.', 393, $this->source); })()), "note", [], "any", false, false, false, 393), "html", null, true);
yield "\"";
}
}
yield ">
<div class=\"col-lg-9 col-md-8 mt-1\">
<div class=\"form-advice-content\">
<div class=\"avatar-rounded\">";
// line 396
yield (string) $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\UserRunTime')->displayAvatar($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 396, $this->source); })()), "user", [], "any", false, false, false, 396));
yield "</div>
<div class=\"form-advice-bg-gray\">
";
// line 398
yield (string) $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_start');
yield "
<div style=\"display: none\">
";
// line 400
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 400, $this->source); })()), "note", [], "any", false, false, false, 400), 'widget');
yield "
</div>
";
// line 402
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 402, $this->source); })()), "comment", [], "any", false, false, false, 402), 'widget');
yield "
";
// line 403
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 403, $this->source); })()), "comment", [], "any", false, false, false, 403), 'errors');
yield "
";
// line 404
yield (string) $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.', 404, $this->source); })()), 'form_end');
yield "
<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 419
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.', 419, $this->source); })()))) {
// line 420
yield " ";
if ( !(null === CoreExtension::getAttribute($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.', 420, $this->source); })()), "id", [], "any", false, false, false, 420))) {
// line 421
yield " <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 425
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_training_advice_delete", ["id" => CoreExtension::getAttribute($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.', 425, $this->source); })()), "id", [], "any", false, false, false, 425)]), "html", null, true);
yield "\">";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.action.delete.label"), "html", null, true);
yield "</a>
</div>
</div>
</div>
";
}
// line 430
yield " ";
}
// line 431
yield " ";
}
// line 432
yield "
";
// line 436
if ((array_key_exists("training_advices", $context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 436, $this->source); })())) > 5))) {
// line 437
yield " <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 441
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.advice.see_more.label", ["%count%" => Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["training_advices"]) || array_key_exists("training_advices", $context) ? $context["training_advices"] : (function () { throw new RuntimeError('Variable "training_advices" does not exist.', 441, $this->source); })()))]), "html", null, true);
yield "</button>
</div>
</div>
</div>
";
}
// line 446
yield " <div class=\"empty-div-bottom\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 449
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 450
yield " ";
yield from $this->yieldParentBlock("body", $context, $blocks);
yield "
";
// line 451
if ((($tmp = $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.', 451, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 452
yield " <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 458
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.title.label", ["%name%" => CoreExtension::getAttribute($this->env, $this->source, // line 459
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 459, $this->source); })()), "name", [], "any", false, false, false, 459)]);
// line 460
yield "
</h5>
</div>
<div class=\"modal-body\">
";
// line 465
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.body.label", ["%name%" => CoreExtension::getAttribute($this->env, $this->source, // line 466
(isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 466, $this->source); })()), "name", [], "any", false, false, false, 466)]);
// line 467
yield "
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
";
// line 472
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.cancel.label"), "html", null, true);
yield "
</button>
<a href=\"";
// line 475
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_delete", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["sub"]) || array_key_exists("sub", $context) ? $context["sub"] : (function () { throw new RuntimeError('Variable "sub" does not exist.', 475, $this->source); })()), "id", [], "any", false, false, false, 475), "channelId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 475, $this->source); })()), "id", [], "any", false, false, false, 475)]), "html", null, true);
yield "\"
class=\"btn btn-danger btn-raised\">
";
// line 477
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.actions.delete.modal.delete.label"), "html", null, true);
yield "
</a>
</div>
</div>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Front/Scholar/Training/show.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1243 => 477, 1238 => 475, 1232 => 472, 1225 => 467, 1223 => 466, 1222 => 465, 1215 => 460, 1213 => 459, 1212 => 458, 1204 => 452, 1202 => 451, 1197 => 450, 1184 => 449, 1172 => 446, 1164 => 441, 1158 => 437, 1156 => 436, 1150 => 432, 1147 => 431, 1144 => 430, 1134 => 425, 1128 => 421, 1125 => 420, 1123 => 419, 1105 => 404, 1101 => 403, 1097 => 402, 1092 => 400, 1087 => 398, 1082 => 396, 1069 => 393, 1063 => 390, 1059 => 388, 1056 => 387, 1048 => 381, 1044 => 379, 1029 => 378, 1026 => 377, 1023 => 376, 1020 => 375, 1017 => 374, 1000 => 373, 997 => 372, 994 => 371, 992 => 370, 989 => 369, 974 => 368, 971 => 367, 968 => 366, 965 => 365, 962 => 364, 959 => 363, 956 => 362, 953 => 361, 935 => 360, 932 => 359, 930 => 358, 922 => 353, 918 => 352, 914 => 351, 907 => 346, 905 => 345, 902 => 344, 899 => 343, 880 => 338, 878 => 337, 872 => 333, 855 => 332, 849 => 329, 845 => 328, 841 => 326, 839 => 325, 831 => 319, 829 => 318, 820 => 312, 815 => 309, 809 => 305, 793 => 303, 791 => 302, 788 => 301, 771 => 300, 764 => 296, 760 => 294, 758 => 293, 753 => 290, 751 => 286, 746 => 283, 742 => 281, 736 => 278, 730 => 276, 727 => 275, 721 => 272, 717 => 270, 715 => 269, 714 => 268, 713 => 267, 712 => 266, 710 => 265, 707 => 264, 705 => 263, 702 => 262, 696 => 259, 693 => 258, 691 => 257, 689 => 256, 687 => 255, 681 => 252, 669 => 243, 665 => 241, 663 => 240, 660 => 239, 658 => 238, 655 => 237, 649 => 234, 641 => 230, 639 => 229, 636 => 228, 634 => 227, 630 => 225, 623 => 221, 616 => 216, 613 => 215, 604 => 211, 596 => 205, 593 => 204, 590 => 203, 581 => 199, 574 => 194, 571 => 193, 562 => 189, 555 => 184, 553 => 183, 550 => 182, 543 => 178, 536 => 173, 534 => 172, 529 => 169, 523 => 166, 520 => 165, 518 => 164, 514 => 163, 510 => 162, 504 => 158, 502 => 157, 490 => 150, 481 => 143, 474 => 139, 465 => 133, 461 => 132, 455 => 128, 440 => 127, 437 => 126, 420 => 125, 417 => 124, 414 => 123, 399 => 122, 396 => 121, 379 => 120, 374 => 118, 370 => 116, 357 => 115, 344 => 112, 336 => 107, 326 => 99, 323 => 96, 322 => 95, 319 => 92, 318 => 91, 316 => 90, 308 => 84, 300 => 81, 296 => 79, 294 => 78, 289 => 76, 277 => 66, 274 => 63, 273 => 62, 270 => 59, 269 => 58, 267 => 57, 263 => 55, 255 => 52, 251 => 50, 249 => 49, 244 => 47, 236 => 44, 231 => 41, 229 => 39, 228 => 38, 223 => 34, 220 => 33, 204 => 32, 201 => 31, 198 => 30, 185 => 29, 160 => 28, 145 => 23, 141 => 21, 138 => 20, 135 => 19, 132 => 18, 130 => 17, 126 => 15, 123 => 14, 110 => 13, 97 => 10, 92 => 9, 79 => 8, 68 => 1, 66 => 5, 65 => 4, 63 => 3, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% set currentRoute = app.request.attributes.get(\x27_route\x27) %}
{% set has_front_access = is_granted(\x27FRONT_ACCESS\x27, {
\x27training\x27: sub,
}) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags(\x27styles\x27, \x27core\x27, \x27core\x27) }}
{% endblock %}
{% block before_navbar %}
{% if currentRoute == \x27manager_channel_training_show\x27 %}
<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 == \x27manager_channel_training_show\x27 %}
{% set headerReturnLink = path(\x27manager_channel_trainings\x27, {\x27channelId\x27: channel.id}) %}
{% endif %}
<div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l\x27interface pour les administrateurs.</div>
<div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d\x27administration</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 \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
<div class=\"jumbotron-v2 mb-4\">
<div class=\"container\">
<h2 class=\"v2-title-big\">
{{- \x27front.scholar.training.show.title.label\x27|trans({
\x27%name%\x27: 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 %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.updatedAt|format_datetime(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% else %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.createdAt|format_datetime(\x27long\x27, 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 %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.updatedAt|format_datetime(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% else %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.createdAt|format_datetime(\x27long\x27, 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\">{{ \x27front.scholar.training.show.sub_title.programm.label\x27|trans }}</h2>
<div id=\"accordion\" class=\"accordion-nellapp mt-5\">
{% for module in firstModules %}
{% include \x27Front/Scholar/Training/Partial/accordion-item.html.twig\x27 with {\x27module\x27 : module, \x27loop\x27: loop, \x27training\x27 : sub} %}
{% endfor %}
{% if lastModules|length %}
<div class=\"more-module\" style=\"display: none\">
{% for module in lastModules %}
{% include \x27Front/Scholar/Training/Partial/accordion-item.html.twig\x27 with {\x27module\x27 : module, \x27loop\x27: loop, \x27training\x27: 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\">
{{ \x27front.scholar.training.list.button.see_more.label\x27|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\">
{{ \x27front.scholar.training.list.button.see_less.label\x27|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=\"card-img-top\">
<img class=\"img-top-card img-responsive\" src=\"{{ sub|get_training_img_url }}\" alt=\"{{ sub.name }}\">
</div>
<div class=\"card-body\">
<div class=\"channel-name d-flex\">
<div>
<div class=\"img-logo-rounded\">
{% include \x27Front/Channel/Image/_image_main_avatar.html.twig\x27 with {\x27channel\x27: sub.ownerChannel} %}
</div>
</div>
<div class=\"channel-description\">
<a href=\"{{ path(\x27front_channel_show\x27, {\x27channelId\x27 : 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 }} {{ \x27front.scholar.training.show.card.total_hour.label\x27|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 }} {{ \x27front.scholar.training.show.card.video_time.label\x27|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 }} {{ \x27front.scholar.training.show.card.use_case.label\x27|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\">{{ \x27front.scholar.training.show.card.price.label\x27|trans({\x27%price%\x27 : value}) }}
*</p>
</div>
<div class=\"mt-2 w100-flex-center-x\">
<p class=\"price-note-card-training\">{{ \x27front.scholar.training.show.card.price.note\x27|trans({\x27%funding_contact_path%\x27 : path(\x27front_channel_training_payment_funding_contact\x27, {\x27training_id\x27: sub.id})}) | raw }}</p>
</div>
{% endif %}
{% if not sub.public and currentRoute == \x27front_channel_training_show\x27 %}
<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(\x27core\x27, \x27app_account_show_cursus\x27) and cursus is defined and cursus is not null %}
<a href=\"{{ nellapp_url(\x27core\x27, \x27app_account_show_cursus\x27, {
\x27cursusId\x27: cursus.id
}) }}\"
class=\"see-training-progress-link\">{{ \x27front.scholar.training.show.card.progression.link.label\x27 | trans }}
</a>
{% endif %}
{% set lastChapterAchieved = getLastAchievedChapter(sub) %}
{% if lastChapterAchieved is not null %}
<a href=\"{{ path(\x27front_channel_chapter_show\x27, {
\x27trainingId\x27: lastChapterAchieved[\x27trainingId\x27],
\x27moduleId\x27: lastChapterAchieved[\x27moduleId\x27],
\x27lessonId\x27: lastChapterAchieved[\x27lessonId\x27],
\x27chapterId\x27: lastChapterAchieved[\x27chapterId\x27],
}) }}\"
class=\"btn-nellapp-v2 mt-3 d-inline-block\">
{{ \x27front.scholar.training.show.card.continue_btn.label\x27 | trans }}
</a>
{% endif %}
{% else %}
<a href=\"{{ path(\x27front_channel_training_payment_funding_contact\x27, {\x27training_id\x27: sub.id}) }}\"
class=\"btn btn-nellapp-v2\">
{{ \x27front.scholar.training.show.actions.follow.label\x27|trans }}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 with {
\x27wrapper_class\x27: \x27mt-3 d-flex justify-content-center\x27,
\x27button_class\x27: \x27nellapp-outline-btn text-decoration-none\x27,
} %}
</div>
</div>
{% if training_descriptions|length > 0 %}
<div class=\"row\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ \x27front.scholar.training.show.sub_title.plus.label\x27|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 \x27Front/Scholar/Card/training-description.html.twig\x27 with {\x27description\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.channel.label\x27|trans }}</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
{% include \x27Front/Scholar/Card/channel.html.twig\x27 with {\x27channel\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.teacher.label\x27|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 \x27Front/Scholar/Card/teacher.html.twig\x27 with {\x27teacher\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.advice.label\x27|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 \x27Front/Scholar/Card/advice.html.twig\x27 with {\x27advice\x27 : 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 \x27Front/Scholar/Card/advice.html.twig\x27 with {\x27advice\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.advice.sentence.enter_key.label\x27|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(\x27front_training_advice_delete\x27, {\x27id\x27 : advice_user.id}) }}\">{{ \x27front.scholar.training.show.sub_title.advice.action.delete.label\x27|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\">{{ \x27front.scholar.training.advice.see_more.label\x27|trans({\x27%count%\x27: training_advices|length}) }}</button>
</div>
</div>
</div>
{% endif %}
<div class=\"empty-div-bottom\"></div>
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% if is_granted(\x27CHANNEL_USER_PERM_TRAINING_SHOW\x27, 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\">
{{ \x27front.scholar.training.show.actions.delete.modal.title.label\x27|trans({
\x27%name%\x27: sub.name,
})|raw }}
</h5>
</div>
<div class=\"modal-body\">
{{ \x27front.scholar.training.show.actions.delete.modal.body.label\x27|trans({
\x27%name%\x27: sub.name,
})|raw }}
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
{{ \x27front.scholar.training.show.actions.delete.modal.cancel.label\x27|trans }}
</button>
<a href=\"{{ path(\x27front_channel_training_delete\x27, {\x27id\x27: sub.id, \x27channelId\x27: channel.id}) }}\"
class=\"btn btn-danger btn-raised\">
{{ \x27front.scholar.training.show.actions.delete.modal.delete.label\x27|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_81fd3dad2aa9547dede2dff19e8383fc___35689168741 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 32
return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 32, $this->source); })()), 32);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Training/show.html.twig"));
yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_outer__block_fallback(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Front/Scholar/Training/show.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1808 => 32, 1243 => 477, 1238 => 475, 1232 => 472, 1225 => 467, 1223 => 466, 1222 => 465, 1215 => 460, 1213 => 459, 1212 => 458, 1204 => 452, 1202 => 451, 1197 => 450, 1184 => 449, 1172 => 446, 1164 => 441, 1158 => 437, 1156 => 436, 1150 => 432, 1147 => 431, 1144 => 430, 1134 => 425, 1128 => 421, 1125 => 420, 1123 => 419, 1105 => 404, 1101 => 403, 1097 => 402, 1092 => 400, 1087 => 398, 1082 => 396, 1069 => 393, 1063 => 390, 1059 => 388, 1056 => 387, 1048 => 381, 1044 => 379, 1029 => 378, 1026 => 377, 1023 => 376, 1020 => 375, 1017 => 374, 1000 => 373, 997 => 372, 994 => 371, 992 => 370, 989 => 369, 974 => 368, 971 => 367, 968 => 366, 965 => 365, 962 => 364, 959 => 363, 956 => 362, 953 => 361, 935 => 360, 932 => 359, 930 => 358, 922 => 353, 918 => 352, 914 => 351, 907 => 346, 905 => 345, 902 => 344, 899 => 343, 880 => 338, 878 => 337, 872 => 333, 855 => 332, 849 => 329, 845 => 328, 841 => 326, 839 => 325, 831 => 319, 829 => 318, 820 => 312, 815 => 309, 809 => 305, 793 => 303, 791 => 302, 788 => 301, 771 => 300, 764 => 296, 760 => 294, 758 => 293, 753 => 290, 751 => 286, 746 => 283, 742 => 281, 736 => 278, 730 => 276, 727 => 275, 721 => 272, 717 => 270, 715 => 269, 714 => 268, 713 => 267, 712 => 266, 710 => 265, 707 => 264, 705 => 263, 702 => 262, 696 => 259, 693 => 258, 691 => 257, 689 => 256, 687 => 255, 681 => 252, 669 => 243, 665 => 241, 663 => 240, 660 => 239, 658 => 238, 655 => 237, 649 => 234, 641 => 230, 639 => 229, 636 => 228, 634 => 227, 630 => 225, 623 => 221, 616 => 216, 613 => 215, 604 => 211, 596 => 205, 593 => 204, 590 => 203, 581 => 199, 574 => 194, 571 => 193, 562 => 189, 555 => 184, 553 => 183, 550 => 182, 543 => 178, 536 => 173, 534 => 172, 529 => 169, 523 => 166, 520 => 165, 518 => 164, 514 => 163, 510 => 162, 504 => 158, 502 => 157, 490 => 150, 481 => 143, 474 => 139, 465 => 133, 461 => 132, 455 => 128, 440 => 127, 437 => 126, 420 => 125, 417 => 124, 414 => 123, 399 => 122, 396 => 121, 379 => 120, 374 => 118, 370 => 116, 357 => 115, 344 => 112, 336 => 107, 326 => 99, 323 => 96, 322 => 95, 319 => 92, 318 => 91, 316 => 90, 308 => 84, 300 => 81, 296 => 79, 294 => 78, 289 => 76, 277 => 66, 274 => 63, 273 => 62, 270 => 59, 269 => 58, 267 => 57, 263 => 55, 255 => 52, 251 => 50, 249 => 49, 244 => 47, 236 => 44, 231 => 41, 229 => 39, 228 => 38, 223 => 34, 220 => 33, 204 => 32, 201 => 31, 198 => 30, 185 => 29, 160 => 28, 145 => 23, 141 => 21, 138 => 20, 135 => 19, 132 => 18, 130 => 17, 126 => 15, 123 => 14, 110 => 13, 97 => 10, 92 => 9, 79 => 8, 68 => 1, 66 => 5, 65 => 4, 63 => 3, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% set currentRoute = app.request.attributes.get(\x27_route\x27) %}
{% set has_front_access = is_granted(\x27FRONT_ACCESS\x27, {
\x27training\x27: sub,
}) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags(\x27styles\x27, \x27core\x27, \x27core\x27) }}
{% endblock %}
{% block before_navbar %}
{% if currentRoute == \x27manager_channel_training_show\x27 %}
<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 == \x27manager_channel_training_show\x27 %}
{% set headerReturnLink = path(\x27manager_channel_trainings\x27, {\x27channelId\x27: channel.id}) %}
{% endif %}
<div style=\"font-weight: bold; color: #212B7A\" class=\"mx-1\">Vous êtes en mode visualisation de l\x27interface pour les administrateurs.</div>
<div style=\"font-weight: bold\"><a href=\"{{- headerReturnLink -}}\" style=\"text-decoration: underline\">Revenir à la page d\x27administration</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 \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
{% endif %}
<div class=\"jumbotron-v2 mb-4\">
<div class=\"container\">
<h2 class=\"v2-title-big\">
{{- \x27front.scholar.training.show.title.label\x27|trans({
\x27%name%\x27: 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 %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.updatedAt|format_datetime(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% else %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.createdAt|format_datetime(\x27long\x27, 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 %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.updatedAt|format_datetime(\x27long\x27, locale=app.request.locale),
})|raw -}}
{% else %}
{{- \x27front.scholar.training.show.createdAt.label\x27|trans({
\x27%date%\x27: sub.createdAt|format_datetime(\x27long\x27, 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\">{{ \x27front.scholar.training.show.sub_title.programm.label\x27|trans }}</h2>
<div id=\"accordion\" class=\"accordion-nellapp mt-5\">
{% for module in firstModules %}
{% include \x27Front/Scholar/Training/Partial/accordion-item.html.twig\x27 with {\x27module\x27 : module, \x27loop\x27: loop, \x27training\x27 : sub} %}
{% endfor %}
{% if lastModules|length %}
<div class=\"more-module\" style=\"display: none\">
{% for module in lastModules %}
{% include \x27Front/Scholar/Training/Partial/accordion-item.html.twig\x27 with {\x27module\x27 : module, \x27loop\x27: loop, \x27training\x27: 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\">
{{ \x27front.scholar.training.list.button.see_more.label\x27|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\">
{{ \x27front.scholar.training.list.button.see_less.label\x27|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=\"card-img-top\">
<img class=\"img-top-card img-responsive\" src=\"{{ sub|get_training_img_url }}\" alt=\"{{ sub.name }}\">
</div>
<div class=\"card-body\">
<div class=\"channel-name d-flex\">
<div>
<div class=\"img-logo-rounded\">
{% include \x27Front/Channel/Image/_image_main_avatar.html.twig\x27 with {\x27channel\x27: sub.ownerChannel} %}
</div>
</div>
<div class=\"channel-description\">
<a href=\"{{ path(\x27front_channel_show\x27, {\x27channelId\x27 : 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 }} {{ \x27front.scholar.training.show.card.total_hour.label\x27|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 }} {{ \x27front.scholar.training.show.card.video_time.label\x27|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 }} {{ \x27front.scholar.training.show.card.use_case.label\x27|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\">{{ \x27front.scholar.training.show.card.price.label\x27|trans({\x27%price%\x27 : value}) }}
*</p>
</div>
<div class=\"mt-2 w100-flex-center-x\">
<p class=\"price-note-card-training\">{{ \x27front.scholar.training.show.card.price.note\x27|trans({\x27%funding_contact_path%\x27 : path(\x27front_channel_training_payment_funding_contact\x27, {\x27training_id\x27: sub.id})}) | raw }}</p>
</div>
{% endif %}
{% if not sub.public and currentRoute == \x27front_channel_training_show\x27 %}
<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(\x27core\x27, \x27app_account_show_cursus\x27) and cursus is defined and cursus is not null %}
<a href=\"{{ nellapp_url(\x27core\x27, \x27app_account_show_cursus\x27, {
\x27cursusId\x27: cursus.id
}) }}\"
class=\"see-training-progress-link\">{{ \x27front.scholar.training.show.card.progression.link.label\x27 | trans }}
</a>
{% endif %}
{% set lastChapterAchieved = getLastAchievedChapter(sub) %}
{% if lastChapterAchieved is not null %}
<a href=\"{{ path(\x27front_channel_chapter_show\x27, {
\x27trainingId\x27: lastChapterAchieved[\x27trainingId\x27],
\x27moduleId\x27: lastChapterAchieved[\x27moduleId\x27],
\x27lessonId\x27: lastChapterAchieved[\x27lessonId\x27],
\x27chapterId\x27: lastChapterAchieved[\x27chapterId\x27],
}) }}\"
class=\"btn-nellapp-v2 mt-3 d-inline-block\">
{{ \x27front.scholar.training.show.card.continue_btn.label\x27 | trans }}
</a>
{% endif %}
{% else %}
<a href=\"{{ path(\x27front_channel_training_payment_funding_contact\x27, {\x27training_id\x27: sub.id}) }}\"
class=\"btn btn-nellapp-v2\">
{{ \x27front.scholar.training.show.actions.follow.label\x27|trans }}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 with {
\x27wrapper_class\x27: \x27mt-3 d-flex justify-content-center\x27,
\x27button_class\x27: \x27nellapp-outline-btn text-decoration-none\x27,
} %}
</div>
</div>
{% if training_descriptions|length > 0 %}
<div class=\"row\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ \x27front.scholar.training.show.sub_title.plus.label\x27|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 \x27Front/Scholar/Card/training-description.html.twig\x27 with {\x27description\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.channel.label\x27|trans }}</h2>
</div>
<div class=\"col-lg-9 col-md-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"mt-3\">
{% include \x27Front/Scholar/Card/channel.html.twig\x27 with {\x27channel\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.teacher.label\x27|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 \x27Front/Scholar/Card/teacher.html.twig\x27 with {\x27teacher\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.advice.label\x27|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 \x27Front/Scholar/Card/advice.html.twig\x27 with {\x27advice\x27 : 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 \x27Front/Scholar/Card/advice.html.twig\x27 with {\x27advice\x27 : 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\">{{ \x27front.scholar.training.show.sub_title.advice.sentence.enter_key.label\x27|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(\x27front_training_advice_delete\x27, {\x27id\x27 : advice_user.id}) }}\">{{ \x27front.scholar.training.show.sub_title.advice.action.delete.label\x27|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\">{{ \x27front.scholar.training.advice.see_more.label\x27|trans({\x27%count%\x27: training_advices|length}) }}</button>
</div>
</div>
</div>
{% endif %}
<div class=\"empty-div-bottom\"></div>
{% endblock inner_content %}
{% block body %}
{{ parent() }}
{% if is_granted(\x27CHANNEL_USER_PERM_TRAINING_SHOW\x27, 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\">
{{ \x27front.scholar.training.show.actions.delete.modal.title.label\x27|trans({
\x27%name%\x27: sub.name,
})|raw }}
</h5>
</div>
<div class=\"modal-body\">
{{ \x27front.scholar.training.show.actions.delete.modal.body.label\x27|trans({
\x27%name%\x27: sub.name,
})|raw }}
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-link\" data-dismiss=\"modal\">
{{ \x27front.scholar.training.show.actions.delete.modal.cancel.label\x27|trans }}
</button>
<a href=\"{{ path(\x27front_channel_training_delete\x27, {\x27id\x27: sub.id, \x27channelId\x27: channel.id}) }}\"
class=\"btn btn-danger btn-raised\">
{{ \x27front.scholar.training.show.actions.delete.modal.delete.label\x27|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");
}
}