<?php

/* @UVDeskSupportCenter/Templates/breadcrumbs.html.twig */
class __TwigTemplate_07f58ded919bdebb848c10354f23de3223fb5edcbc4801cbd5e83fbe9f81a4e0 extends Twig_Template
{
    private $source;

    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@UVDeskSupportCenter/Templates/breadcrumbs.html.twig"));

        // line 1
        if ((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs", $context))) {
            // line 2
            echo "    <form method=\"get\" action=\"";
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_knowledgebase_search");
            echo "\">
        <div class=\"uv-nav-bar\">
            <div class=\"uv-container\">
                <div class=\"uv-nav-bar-lt\">
                    <ul>
                        ";
            // line 7
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["breadcrumb"]) {
                // line 8
                echo "                            ";
                if (($context["key"] == (twig_length_filter($this->env, ($context["breadcrumbs"] ?? null)) - 1))) {
                    // line 9
                    echo "                                ";
                    if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", []), "headers", []), "get", [0 => "referer"], "method") && twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", []), "headers", []), "get", [0 => "host"], "method"), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", []), "headers", []), "get", [0 => "referer"], "method")))) {
                        // line 10
                        echo "                                    <li><a href=\"";
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", []), "headers", []), "get", [0 => "referer"], "method"), "html", null, true);
                        echo "\">";
                        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Prev"), "html", null, true);
                        echo "</a></li>
                                ";
                    }
                    // line 12
                    echo "                            ";
                }
                // line 13
                echo "                            <li><a href=\"";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "url", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "label", []), "html", null, true);
                echo "</a></li>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 15
            echo "                    </ul>  
                </div>
                <div class=\"uv-nav-bar-rt\">
                    <input class=\"uv-nav-search\" name=\"s\" type=\"text\" placeholder=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search KnowledgeBase"), "html", null, true);
            echo "\" value=\"";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", []), "query", []), "get", [0 => "s"], "method"), "html", null, true);
            echo "\"> 
                </div>
            </div>
        </div>
    </form>
";
        }
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "@UVDeskSupportCenter/Templates/breadcrumbs.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  74 => 18,  69 => 15,  58 => 13,  55 => 12,  47 => 10,  44 => 9,  41 => 8,  37 => 7,  28 => 2,  26 => 1,);
    }

    public function getSourceContext()
    {
        return new Twig_Source("{% if breadcrumbs is defined %}
    <form method=\"get\" action=\"{{ path('helpdesk_knowledgebase_search') }}\">
        <div class=\"uv-nav-bar\">
            <div class=\"uv-container\">
                <div class=\"uv-nav-bar-lt\">
                    <ul>
                        {% for key, breadcrumb in breadcrumbs %}
                            {% if key == (breadcrumbs|length - 1) %}
                                {% if app.request.headers.get('referer') and app.request.headers.get('host') in app.request.headers.get('referer') %}
                                    <li><a href=\"{{ app.request.headers.get('referer') }}\">{{ \"Prev\"|trans }}</a></li>
                                {% endif %}
                            {% endif %}
                            <li><a href=\"{{ breadcrumb.url }}\">{{ breadcrumb.label }}</a></li>
                        {% endfor %}
                    </ul>  
                </div>
                <div class=\"uv-nav-bar-rt\">
                    <input class=\"uv-nav-search\" name=\"s\" type=\"text\" placeholder=\"{{ \"Search KnowledgeBase\"|trans }}\" value=\"{{ app.request.query.get('s') }}\"> 
                </div>
            </div>
        </div>
    </form>
{% endif %}", "@UVDeskSupportCenter/Templates/breadcrumbs.html.twig", "/home/users/akshay.kumar/Workstation/apps/uvdesk/releases/uvdesk_community_01_development_php_72/vendor/uvdesk/support-center-bundle/Resources/views/Templates/breadcrumbs.html.twig");
    }
}
