<?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;
/* SaloonList/list.html.twig */
class __TwigTemplate_7baac6302ffef406500bd87a50b9e3f4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'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", "SaloonList/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", "SaloonList/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", "SaloonList/list.html.twig"));
$this->parent = $this->loadTemplate("grid.html.twig", "SaloonList/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 3
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 4
echo "
<div
id=\"saloon-list\"
class=\"row mb-3\"
data-recommendations-fill-applied=\"";
// line 8
echo ((((array_key_exists("recommendations_fill_applied", $context)) ? (_twig_default_filter((isset($context["recommendations_fill_applied"]) || array_key_exists("recommendations_fill_applied", $context) ? $context["recommendations_fill_applied"] : (function () { throw new RuntimeError('Variable "recommendations_fill_applied" does not exist.', 8, $this->source); })()), false)) : (false))) ? (1) : (0));
echo "\"
data-recommendations-fill-original-count=\"";
// line 9
echo twig_escape_filter($this->env, ((array_key_exists("recommendations_fill_original_count", $context)) ? (_twig_default_filter((isset($context["recommendations_fill_original_count"]) || array_key_exists("recommendations_fill_original_count", $context) ? $context["recommendations_fill_original_count"] : (function () { throw new RuntimeError('Variable "recommendations_fill_original_count" does not exist.', 9, $this->source); })()), ((twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", true, true, false, 9)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", false, false, false, 9), 0)) : (0)))) : (((twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", true, true, false, 9)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", false, false, false, 9), 0)) : (0)))), "html", null, true);
echo "\"
>
";
// line 11
$this->loadTemplate("SaloonList/list.saloons.html.twig", "SaloonList/list.html.twig", 11)->display($context);
// line 12
echo " </div>
";
// line 13
if ((array_key_exists("ssr_recommended_profiles", $context) && !twig_test_empty((isset($context["ssr_recommended_profiles"]) || array_key_exists("ssr_recommended_profiles", $context) ? $context["ssr_recommended_profiles"] : (function () { throw new RuntimeError('Variable "ssr_recommended_profiles" does not exist.', 13, $this->source); })())))) {
// line 14
echo " <h4>Рекоммендуемые</h4>
<div class=\"row mb-3\">
";
// line 16
$this->loadTemplate("ProfileList/list.profiles.html.twig", "SaloonList/list.html.twig", 16)->display(twig_array_merge($context, ["profiles" => // line 17
(isset($context["ssr_recommended_profiles"]) || array_key_exists("ssr_recommended_profiles", $context) ? $context["ssr_recommended_profiles"] : (function () { throw new RuntimeError('Variable "ssr_recommended_profiles" does not exist.', 17, $this->source); })()), "show_total_count" => false]));
// line 20
echo " </div>
";
}
// line 22
echo " ";
$this->loadTemplate("SaloonList/_show_more.saloons.html.twig", "SaloonList/list.html.twig", 22)->display($context);
// line 23
echo " ";
echo $this->extensions['Porpaginas\Twig\PorpaginasExtension']->renderPagination($this->env, (isset($context["saloons"]) || array_key_exists("saloons", $context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.', 23, $this->source); })()));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "SaloonList/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 113 => 23, 110 => 22, 106 => 20, 104 => 17, 103 => 16, 99 => 14, 97 => 13, 94 => 12, 92 => 11, 87 => 9, 83 => 8, 77 => 4, 64 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'grid.html.twig' %}
{% block mainContainer %}
<div
id=\"saloon-list\"
class=\"row mb-3\"
data-recommendations-fill-applied=\"{{ recommendations_fill_applied|default(false) ? 1 : 0 }}\"
data-recommendations-fill-original-count=\"{{ recommendations_fill_original_count|default(saloons.totalCount|default(0)) }}\"
>
{% include 'SaloonList/list.saloons.html.twig' %}
</div>
{% if ssr_recommended_profiles is defined and ssr_recommended_profiles is not empty %}
<h4>Рекоммендуемые</h4>
<div class=\"row mb-3\">
{% include 'ProfileList/list.profiles.html.twig' with {
profiles: ssr_recommended_profiles,
show_total_count: false
} %}
</div>
{% endif %}
{% include 'SaloonList/_show_more.saloons.html.twig' %}
{{ porpaginas_render(saloons) }}
{% endblock %}
", "SaloonList/list.html.twig", "/app/templates/SaloonList/list.html.twig");
}
}