<?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; 
 
/* @MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig */ 
class __TwigTemplate_5ccc37726415b3279e3994c6e4c6eefc extends \Twig\Template 
{ 
    private $source; 
    private $macros = []; 
 
    public function __construct(Environment $env) 
    { 
        parent::__construct($env); 
 
        $this->source = $this->getSourceContext(); 
 
        $this->parent = false; 
 
        $this->blocks = [ 
        ]; 
    } 
 
    protected function doDisplay(array $context, array $blocks = []) 
    { 
        $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", "@MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig")); 
 
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; 
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig")); 
 
        // line 1 
        $context["route_page"] = 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.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "attributes", [], "any", false, false, false, 1), "get", [0 => "_route"], "method", false, false, false, 1); 
        // line 2 
        echo " 
    "; 
        // line 3 
        if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["result"]) || array_key_exists("result", $context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.', 3, $this->source); })()), "filters", [], "any", false, false, false, 3)) == 0)) { 
            // line 4 
            echo "        <div class=\"item hide-taxon-page\"> 
            "; 
            // line 5 
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("monsieurbiz_searchplugin.filters.no_filter"), "html", null, true); 
            echo " 
        </div> 
    "; 
        } else { 
            // line 8 
            echo "        "; 
            $context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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", [0 => "_route"], "method", false, false, false, 8), 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", [0 => "_route_params"], "method", false, false, false, 8)); 
            // line 9 
            echo "        <form name=\"filters-form\" method=\"get\" action=\""; 
            echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 9, $this->source); })()), "html", null, true); 
            echo "\"> 
            "; 
            // line 10 
            $context['_parent'] = $context; 
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["result"]) || array_key_exists("result", $context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.', 10, $this->source); })()), "filters", [], "any", false, false, false, 10)); 
            $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["filter"]) { 
                // line 11 
                echo "                "; 
                $this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Search/_filter.html.twig", "@MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig", 11)->display(twig_array_merge($context, ["filter" => $context["filter"]])); 
                // line 12 
                echo "            "; 
                ++$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['filter'], $context['_parent'], $context['loop']); 
            $context = array_intersect_key($context, $_parent) + $_parent; 
            // line 13 
            echo "            "; 
            // line 14 
            echo "            "; 
            $context["sorting"] = 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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "query", [], "any", false, false, false, 14), "get", [0 => "sorting"], "method", false, false, false, 14); 
            // line 15 
            echo "            "; 
            if ( !twig_test_empty((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 15, $this->source); })()))) { 
                // line 16 
                echo "                "; 
                $context['_parent'] = $context; 
                $context['_seq'] = twig_ensure_traversable((isset($context["sorting"]) || array_key_exists("sorting", $context) ? $context["sorting"] : (function () { throw new RuntimeError('Variable "sorting" does not exist.', 16, $this->source); })())); 
                foreach ($context['_seq'] as $context["sort"] => $context["order"]) { 
                    // line 17 
                    echo "                    <input type=\"hidden\" name=\"sorting["; 
                    echo twig_escape_filter($this->env, $context["sort"], "html", null, true); 
                    echo "]\" value=\""; 
                    echo twig_escape_filter($this->env, $context["order"], "html", null, true); 
                    echo "\" /> 
                "; 
                } 
                $_parent = $context['_parent']; 
                unset($context['_seq'], $context['_iterated'], $context['sort'], $context['order'], $context['_parent'], $context['loop']); 
                $context = array_intersect_key($context, $_parent) + $_parent; 
                // line 19 
                echo "            "; 
            } 
            // line 20 
            echo " 
            "; 
            // line 22 
            echo "            "; 
            $context["limit"] = 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.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "query", [], "any", false, false, false, 22), "get", [0 => "limit"], "method", false, false, false, 22); 
            // line 23 
            echo "            "; 
            if ( !twig_test_empty((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 23, $this->source); })()))) { 
                // line 24 
                echo "                <input type=\"hidden\" name=\"limit\" value=\""; 
                echo twig_escape_filter($this->env, (isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 24, $this->source); })()), "html", null, true); 
                echo "\" /> 
            "; 
            } 
            // line 26 
            echo " 
            <div class=\"item hide-taxon-page ml-2 pt-md-0 pt-3\"> 
                <button type=\"\" class=\"btn-link py-1 bg-grey-dark\"> 
                    <i class=\"search icon\"></i> "; 
            // line 29 
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("monsieurbiz_searchplugin.filters.apply_filters"), "html", null, true); 
            echo " 
                </button> 
            </div> 
 
        </form> 
    "; 
        } 
        // line 35 
        echo " 
 
"; 
         
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); 
 
         
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); 
 
    } 
 
    public function getTemplateName() 
    { 
        return "@MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig"; 
    } 
 
    public function isTraitable() 
    { 
        return false; 
    } 
 
    public function getDebugInfo() 
    { 
        return array (  157 => 35,  148 => 29,  143 => 26,  137 => 24,  134 => 23,  131 => 22,  128 => 20,  125 => 19,  114 => 17,  109 => 16,  106 => 15,  103 => 14,  101 => 13,  87 => 12,  84 => 11,  67 => 10,  62 => 9,  59 => 8,  53 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,); 
    } 
 
    public function getSourceContext() 
    { 
        return new Source("{% set route_page = app.request.attributes.get('_route') %} 
 
    {% if result.filters|length == 0 %} 
        <div class=\"item hide-taxon-page\"> 
            {{ 'monsieurbiz_searchplugin.filters.no_filter'|trans }} 
        </div> 
    {% else %} 
        {% set path = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} 
        <form name=\"filters-form\" method=\"get\" action=\"{{ path }}\"> 
            {% for filter in result.filters %} 
                {% include '@MonsieurBizSyliusSearchPlugin/Search/_filter.html.twig' with {'filter': filter} %} 
            {% endfor %} 
            {# Don't loose current sorting #} 
            {% set sorting = app.request.query.get('sorting') %} 
            {% if sorting is not empty %} 
                {% for sort, order in sorting %} 
                    <input type=\"hidden\" name=\"sorting[{{ sort }}]\" value=\"{{ order }}\" /> 
                {% endfor %} 
            {% endif %} 
 
            {# Don't loose current limit #} 
            {% set limit = app.request.query.get('limit') %} 
            {% if limit is not empty %} 
                <input type=\"hidden\" name=\"limit\" value=\"{{ limit }}\" /> 
            {% endif %} 
 
            <div class=\"item hide-taxon-page ml-2 pt-md-0 pt-3\"> 
                <button type=\"\" class=\"btn-link py-1 bg-grey-dark\"> 
                    <i class=\"search icon\"></i> {{ 'monsieurbiz_searchplugin.filters.apply_filters' | trans }} 
                </button> 
            </div> 
 
        </form> 
    {% endif %} 
 
 
", "@MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig", "/var/www/html/themes/BootstrapTheme/templates/bundles/MonsieurBizSyliusSearchPlugin/Search/_filters.html.twig"); 
    } 
}