<?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/Channel/showTrainingList.html.twig */
class __TwigTemplate_8d79ba727d8b2e6b859f53ddebb90801 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 = [
'inner_content' => [$this, 'block_inner_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("Front/Channel/show.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/Channel/showTrainingList.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/Channel/showTrainingList.html.twig"));
$this->parent = $this->load("Front/Channel/show.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 3
/**
* @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 4
yield "
";
// line 5
$context["arrayBreadcrumb"] = [["label" => CoreExtension::getAttribute($this->env, $this->source, // line 7
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_show", ["channelId" => CoreExtension::getAttribute($this->env, $this->source, // line 8
(isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 8, $this->source); })()), "id", [], "any", false, false, false, 8)])], ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.breadcrumb.trainings")]];
// line 14
yield "
<div class=\"mt-5\">
";
// line 16
yield from $this->load("Partial/Breadcrumb/breadcrumb.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["arrayBreadcrumb" => (isset($context["arrayBreadcrumb"]) || array_key_exists("arrayBreadcrumb", $context) ? $context["arrayBreadcrumb"] : (function () { throw new RuntimeError('Variable "arrayBreadcrumb" does not exist.', 16, $this->source); })())]));
// line 17
yield " </div>
<div class=\"row\" id=\"our-trainings\">
<div class=\"mt-2 col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
<div class=\"section-title-type-formation\">
<h2 class=\"ml-0\">
";
// line 23
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.tabs.home.subtitles.trainings.label", ["%count%" => (isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 23, $this->source); })())]), "html", null, true);
yield "
</h2>
</div>
</div>
</div>
<div class=\"row font-poppins\">
<div class=\"col-12\">
";
// line 31
yield from $this->load("Front/Channel/search_type.html.twig", 31)->unwrap()->yield($context);
// line 32
yield " </div>
";
// line 34
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 34, $this->source); })()))) {
// line 35
yield " <div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
";
// line 36
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.search_result", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 36, $this->source); })())]), "html", null, true);
yield "
</div>
";
// line 39
if (((isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 39, $this->source); })()) == 0)) {
// line 40
yield " <div class=\"col-12 mt-4 text-center\">
<div>
<img src=\"";
// line 42
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/search-no-result.svg", "common"), "html", null, true);
yield "\" alt=\"No result\"/>
</div>
<div class=\"mt-4\">
";
// line 45
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.no_result", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 45, $this->source); })())]), "html", null, true);
yield "
</div>
<div>
";
// line 48
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.try_new_search", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 48, $this->source); })())]), "html", null, true);
yield "
</div>
</div>
";
}
// line 52
yield " ";
}
// line 53
yield " </div>
<div class=\"row mt-4\">
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["trainings"]) || array_key_exists("trainings", $context) ? $context["trainings"] : (function () { throw new RuntimeError('Variable "trainings" does not exist.', 56, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["training"]) {
// line 57
yield " <div class=\"col-12 col-md-6 col-lg-4 mb-4\">
";
// line 58
yield (string) $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("TrainingCard", ["training" => $context["training"]]);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['training'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 61
yield " </div>
<div class=\"pagination mb-5\">
";
// line 63
yield (string) $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["trainings"]) || array_key_exists("trainings", $context) ? $context["trainings"] : (function () { throw new RuntimeError('Variable "trainings" does not exist.', 63, $this->source); })()));
yield "
</div>
";
// line 66
yield from $this->load("Front/Channel/find-us-contact-us.html.twig", 66)->unwrap()->yield(CoreExtension::merge($context, ["channel" => (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 66, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Front/Channel/showTrainingList.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 190 => 66, 184 => 63, 180 => 61, 170 => 58, 167 => 57, 163 => 56, 158 => 53, 155 => 52, 148 => 48, 142 => 45, 136 => 42, 132 => 40, 130 => 39, 124 => 36, 121 => 35, 119 => 34, 115 => 32, 113 => 31, 102 => 23, 94 => 17, 92 => 16, 88 => 14, 86 => 8, 85 => 7, 84 => 5, 81 => 4, 68 => 3, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27Front/Channel/show.html.twig\x27 %}
{% block inner_content %}
{% set arrayBreadcrumb = [
{
\x27label\x27: channel.name,
\x27path\x27: path(\x27front_channel_show\x27, {\x27channelId\x27: channel.id})
},
{
\x27label\x27 : \x27front.channel.show.breadcrumb.trainings\x27|trans,
}
] %}
<div class=\"mt-5\">
{% include \x27Partial/Breadcrumb/breadcrumb.html.twig\x27 with {\x27arrayBreadcrumb\x27 : arrayBreadcrumb } %}
</div>
<div class=\"row\" id=\"our-trainings\">
<div class=\"mt-2 col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
<div class=\"section-title-type-formation\">
<h2 class=\"ml-0\">
{{ \x27front.channel.show.tabs.home.subtitles.trainings.label\x27|trans({\x27%count%\x27: count_trainings}) }}
</h2>
</div>
</div>
</div>
<div class=\"row font-poppins\">
<div class=\"col-12\">
{% include \x27Front/Channel/search_type.html.twig\x27 %}
</div>
{% if searchInput is not empty %}
<div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
{{ \x27front.channel.show.search.search_result\x27|trans({\x27%input%\x27: searchInput}) }}
</div>
{% if count_trainings == 0 %}
<div class=\"col-12 mt-4 text-center\">
<div>
<img src=\"{{ asset(\x27build/common/search-no-result.svg\x27, \x27common\x27) }}\" alt=\"No result\"/>
</div>
<div class=\"mt-4\">
{{ \x27front.channel.show.search.no_result\x27|trans({\x27%input%\x27: searchInput}) }}
</div>
<div>
{{ \x27front.channel.show.search.try_new_search\x27|trans({\x27%input%\x27: searchInput}) }}
</div>
</div>
{% endif %}
{% endif %}
</div>
<div class=\"row mt-4\">
{% for training in trainings %}
<div class=\"col-12 col-md-6 col-lg-4 mb-4\">
{{ component(\x27TrainingCard\x27, { training: training }) }}
</div>
{% endfor %}
</div>
<div class=\"pagination mb-5\">
{{ knp_pagination_render(trainings) }}
</div>
{% include \x27Front/Channel/find-us-contact-us.html.twig\x27 with {\x27channel\x27 : channel} %}
{% endblock inner_content %}", "Front/Channel/showTrainingList.html.twig", "/var/www/html/templates/Front/Channel/showTrainingList.html.twig");
}
}