<?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;
/* DistrictList/list.html.twig */
class __TwigTemplate_fcce3a5daf672543daddd497c6f8447f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'bodyClasses' => [$this, 'block_bodyClasses'],
'specialPageClass' => [$this, 'block_specialPageClass'],
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "DistrictList/list.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "DistrictList/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "DistrictList/list.html.twig"));
// line 3
$context["linkLangSupport"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3) == "en")) ? ("/en") : (""));
// line 8
$context["city"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "attributes", [], "any", false, false, false, 8), "get", ["city"], "method", false, false, false, 8);
// line 1
$this->parent = $this->loadTemplate("grid.html.twig", "DistrictList/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_bodyClasses($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClasses"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClasses"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClasses"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 6
public function block_specialPageClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "specialPageClass"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "specialPageClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "specialPageClass"));
echo " full-width-page";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 10
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__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"));
// line 11
echo "\t";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 13
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 14
echo "\t<meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 17
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 18
echo "\t<h1 role=\"heading\" class=\"border-line\">";
echo $this->extensions['App\Twig\SeoExtension']->pageHeading();
echo "</h1>
\t<div class=\"city-block\">
\t\t";
// line 21
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 21, $this->source); })()), "counties", [], "any", false, false, false, 21)) > 0)) {
// line 22
echo "\t\t\t";
$context["sorted_stations"] = twig_sort_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 22, $this->source); })()), "counties", [], "any", false, false, false, 22), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 22, $this->source); })()), "name", [], "any", false, false, false, 22)) <=> twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 22, $this->source); })()), "name", [], "any", false, false, false, 22))); });
// line 23
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sorted_stations"]) || array_key_exists("sorted_stations", $context) ? $context["sorted_stations"] : (function () { throw new RuntimeError('Variable "sorted_stations" does not exist.', 23, $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["county"]) {
// line 24
echo "\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 24) == ((twig_get_attribute($this->env, $this->source, $context["loop"], "length", [], "any", false, false, false, 24) / 2) + 1)) || (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 24) == 1))) {
// line 25
echo "\t\t\t\t\t<div class=\"column\">
\t\t\t\t";
}
// line 27
echo "
\t\t\t\t<div class=\"title\">
\t\t\t\t\t<a href=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_county", ["city" => twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 29, $this->source); })()), "uriIdentity", [], "any", false, false, false, 29), "county" => twig_get_attribute($this->env, $this->source, $context["county"], "uriIdentity", [], "any", false, false, false, 29)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["county"], "name", [], "any", false, false, false, 29)), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<ul>
\t\t\t\t\t";
// line 32
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_get_attribute($this->env, $this->source, $context["county"], "districts", [], "any", false, false, false, 32), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 32, $this->source); })()), "name", [], "any", false, false, false, 32))) <=> twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 32, $this->source); })()), "name", [], "any", false, false, false, 32)))); }));
foreach ($context['_seq'] as $context["_key"] => $context["district"]) {
// line 33
echo "\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"";
// line 34
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_district", ["city" => twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 34, $this->source); })()), "uriIdentity", [], "any", false, false, false, 34), "district" => twig_get_attribute($this->env, $this->source, $context["district"], "uriIdentity", [], "any", false, false, false, 34)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["district"], "name", [], "any", false, false, false, 34)), "html", null, true);
echo "</a><br>
\t\t\t\t\t\t</li>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['district'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo "\t\t\t\t</ul>
\t\t\t\t";
// line 39
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 39) == (twig_get_attribute($this->env, $this->source, $context["loop"], "length", [], "any", false, false, false, 39) / 2)) || (twig_get_attribute($this->env, $this->source, $context["loop"], "revindex", [], "any", false, false, false, 39) == 1))) {
// line 40
echo "\t\t\t\t\t</div>
\t\t\t\t";
}
// line 42
echo "\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['county'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
echo "\t\t";
} else {
// line 44
echo "\t\t\t<ul class=\"list-unstyled\">
\t\t\t\t";
// line 45
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 45, $this->source); })()), "districts", [], "any", false, false, false, 45), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 45, $this->source); })()), "name", [], "any", false, false, false, 45))) <=> twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 45, $this->source); })()), "name", [], "any", false, false, false, 45)))); }));
foreach ($context['_seq'] as $context["_key"] => $context["district"]) {
// line 46
echo "\t\t\t\t\t";
$context["profilesCount"] = (((twig_get_attribute($this->env, $this->source, ($context["count_by_districts"] ?? null), twig_get_attribute($this->env, $this->source, $context["district"], "id", [], "any", false, false, false, 46), [], "array", true, true, false, 46) && !(null === twig_get_attribute($this->env, $this->source, ($context["count_by_districts"] ?? null), twig_get_attribute($this->env, $this->source, $context["district"], "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46)))) ? (twig_get_attribute($this->env, $this->source, ($context["count_by_districts"] ?? null), twig_get_attribute($this->env, $this->source, $context["district"], "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46)) : (0));
// line 47
echo "\t\t\t\t\t<li><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_district", ["city" => twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 47, $this->source); })()), "uriIdentity", [], "any", false, false, false, 47), "district" => twig_get_attribute($this->env, $this->source, $context["district"], "uriIdentity", [], "any", false, false, false, 47)]), "html", null, true);
echo "\"><span class=\"link\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["district"], "name", [], "any", false, false, false, 47), "html", null, true);
echo "</span> <span class=\"count\">";
echo twig_escape_filter($this->env, (isset($context["profilesCount"]) || array_key_exists("profilesCount", $context) ? $context["profilesCount"] : (function () { throw new RuntimeError('Variable "profilesCount" does not exist.', 47, $this->source); })()), "html", null, true);
echo "</span></a></li>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['district'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo "\t\t\t</ul>
\t\t";
}
// line 51
echo "\t</div>
\t";
// line 54
echo "\t";
echo twig_include($this->env, $context, "components/seo.partial.twig", ["type" => "top"]);
echo "
\t";
// line 55
echo twig_include($this->env, $context, "components/seo.partial.twig", ["type" => "bottom"]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "DistrictList/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 323 => 55, 318 => 54, 314 => 51, 310 => 49, 297 => 47, 294 => 46, 290 => 45, 287 => 44, 284 => 43, 270 => 42, 266 => 40, 264 => 39, 260 => 37, 249 => 34, 246 => 33, 242 => 32, 234 => 29, 230 => 27, 226 => 25, 223 => 24, 205 => 23, 202 => 22, 200 => 21, 193 => 18, 180 => 17, 164 => 14, 151 => 13, 135 => 11, 122 => 10, 97 => 6, 73 => 5, 59 => 1, 57 => 8, 55 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'grid.html.twig' %}
{% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
{% block bodyClasses %}{% endblock %}
{% block specialPageClass %} full-width-page{% endblock %}
{% set city = app.request.attributes.get('city') %}
{% block title %}
\t{{ seo_title() }}
{% endblock %}
{% block metaDescription %}
\t<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endblock %}
{% block mainContainer %}
\t<h1 role=\"heading\" class=\"border-line\">{{ seo_heading() }}</h1>
\t<div class=\"city-block\">
\t\t{% if city.counties|length > 0 %}
\t\t\t{% set sorted_stations = city.counties|sort((a, b) => a.name|upper <=> b.name|upper) %}
\t\t\t{% for county in sorted_stations %}
\t\t\t\t{% if loop.index == (loop.length/2+1) or loop.index == 1 %}
\t\t\t\t\t<div class=\"column\">
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"title\">
\t\t\t\t\t<a href=\"{{ path('profile_list.list_by_county', {'city': city.uriIdentity, 'county': county.uriIdentity}) }}\">{{ county.name|trans }}</a>
\t\t\t\t</div>
\t\t\t\t<ul>
\t\t\t\t\t{% for district in county.districts|sort((a, b) => a.name|trans|upper <=> b.name|trans|upper) %}
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"{{ path('profile_list.list_by_district', {'city': city.uriIdentity, 'district': district.uriIdentity}) }}\">{{ district.name|trans }}</a><br>
\t\t\t\t\t\t</li>
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>
\t\t\t\t{% if loop.index == (loop.length/2) or loop.revindex == 1 %}
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t{% else %}
\t\t\t<ul class=\"list-unstyled\">
\t\t\t\t{% for district in city.districts|sort((a, b) => a.name|trans|upper <=> b.name|trans|upper) %}
\t\t\t\t\t{% set profilesCount = count_by_districts[district.id] ?? 0 %}
\t\t\t\t\t<li><a href=\"{{ path('profile_list.list_by_district', {'city': city.uriIdentity, 'district': district.uriIdentity}) }}\"><span class=\"link\">{{ district.name }}</span> <span class=\"count\">{{ profilesCount }}</span></a></li>
\t\t\t\t{% endfor %}
\t\t\t</ul>
\t\t{% endif %}
\t</div>
\t{# {{ include('components/big_footer.html.twig', { 'type': 'main' }) }} #}
\t{{ include('components/seo.partial.twig', {type: 'top'}) }}
\t{{ include('components/seo.partial.twig', {type: 'bottom'}) }}
{% endblock %}
", "DistrictList/list.html.twig", "/app/templates/DistrictList/list.html.twig");
}
}