<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Front/Channel/showTrainingList.html.twig */
class __TwigTemplate_4821dcf2950a78fceef897cc90d142c9a4089c5f791ba82cba8d22d14ae5bde8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'inner_content' => [$this, 'block_inner_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Front/Channel/show.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Channel/showTrainingList.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Channel/showTrainingList.html.twig"));
$this->parent = $this->loadTemplate("Front/Channel/show.html.twig", "Front/Channel/showTrainingList.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_inner_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 4
echo "
";
// line 5
$context["arrayBreadcrumb"] = [0 => ["label" => twig_get_attribute($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" => twig_get_attribute($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)])], 1 => ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.breadcrumb.trainings")]];
// line 14
echo "
<div class=\"mt-5\">
";
// line 16
$this->loadTemplate("Partial/Breadcrumb/breadcrumb.html.twig", "Front/Channel/showTrainingList.html.twig", 16)->display(twig_array_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
echo " </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
echo twig_escape_filter($this->env, $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);
echo "
</h2>
</div>
</div>
</div>
<div class=\"row font-poppins\">
<div class=\"col-12\">
";
// line 31
$this->loadTemplate("Front/Channel/search_type.html.twig", "Front/Channel/showTrainingList.html.twig", 31)->display($context);
// line 32
echo " </div>
";
// line 34
if ( !twig_test_empty((isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 34, $this->source); })()))) {
// line 35
echo " <div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
";
// line 36
echo twig_escape_filter($this->env, $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);
echo "
</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
echo " <div class=\"col-12 mt-4 text-center\">
<div>
<img src=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/search-no-result.svg", "common"), "html", null, true);
echo "\" alt=\"No result\"/>
</div>
<div class=\"mt-4\">
";
// line 45
echo twig_escape_filter($this->env, $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);
echo "
</div>
<div>
";
// line 48
echo twig_escape_filter($this->env, $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);
echo "
</div>
</div>
";
}
// line 52
echo " ";
}
// line 53
echo " </div>
<div class=\"row mt-4\">
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((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
echo " <div class=\"col-12 col-md-6 col-lg-4 mb-4\">
";
// line 58
echo $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("TrainingCard", ["training" => $context["training"]]);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['training'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </div>
<div class=\"pagination mb-5\">
";
// line 63
echo $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); })()));
echo "
</div>
";
// line 66
$this->loadTemplate("Front/Channel/find-us-contact-us.html.twig", "Front/Channel/showTrainingList.html.twig", 66)->display(twig_array_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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Front/Channel/showTrainingList.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 176 => 66, 170 => 63, 166 => 61, 157 => 58, 154 => 57, 150 => 56, 145 => 53, 142 => 52, 135 => 48, 129 => 45, 123 => 42, 119 => 40, 117 => 39, 111 => 36, 108 => 35, 106 => 34, 102 => 32, 100 => 31, 89 => 23, 81 => 17, 79 => 16, 75 => 14, 73 => 8, 72 => 7, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Front/Channel/show.html.twig' %}
{% block inner_content %}
{% set arrayBreadcrumb = [
{
'label': channel.name,
'path': path('front_channel_show', {'channelId': channel.id})
},
{
'label' : 'front.channel.show.breadcrumb.trainings'|trans,
}
] %}
<div class=\"mt-5\">
{% include 'Partial/Breadcrumb/breadcrumb.html.twig' with {'arrayBreadcrumb' : 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\">
{{ 'front.channel.show.tabs.home.subtitles.trainings.label'|trans({'%count%': count_trainings}) }}
</h2>
</div>
</div>
</div>
<div class=\"row font-poppins\">
<div class=\"col-12\">
{% include 'Front/Channel/search_type.html.twig' %}
</div>
{% if searchInput is not empty %}
<div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
{{ 'front.channel.show.search.search_result'|trans({'%input%': searchInput}) }}
</div>
{% if count_trainings == 0 %}
<div class=\"col-12 mt-4 text-center\">
<div>
<img src=\"{{ asset('build/common/search-no-result.svg', 'common') }}\" alt=\"No result\"/>
</div>
<div class=\"mt-4\">
{{ 'front.channel.show.search.no_result'|trans({'%input%': searchInput}) }}
</div>
<div>
{{ 'front.channel.show.search.try_new_search'|trans({'%input%': 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('TrainingCard', { training: training }) }}
</div>
{% endfor %}
</div>
<div class=\"pagination mb-5\">
{{ knp_pagination_render(trainings) }}
</div>
{% include 'Front/Channel/find-us-contact-us.html.twig' with {'channel' : channel} %}
{% endblock inner_content %}", "Front/Channel/showTrainingList.html.twig", "/var/www/html/templates/Front/Channel/showTrainingList.html.twig");
}
}