<?php

/* @UVDeskCore/Templates/panel-sidebar.html.twig */
class __TwigTemplate_21be44d913fb6a02a7a7a3499e5968a4b7c412488bf435178b91b2a4c017d531 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", "@UVDeskCore/Templates/panel-sidebar.html.twig"));

        // line 1
        echo "<div class=\"uv-aside\" ";
        if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", []), "cookies", []) && 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", []), "cookies", []), "get", [0 => "uv-asideView"], "method"))) {
            echo "style=\"display: none;\"";
        }
        echo ">
    ";
        // line 2
        $context["navigationPanel"] = twig_get_attribute($this->env, $this->source, ($context["uvdesk_service"] ?? null), "getPanelSidebarRoutes", [], "method");
        // line 3
        echo "    
    ";
        // line 4
        if ((twig_get_attribute($this->env, $this->source, ($context["navigationPanel"] ?? null), "routes", [], "any", true, true) &&  !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["navigationPanel"] ?? null), "routes", [])))) {
            // line 5
            echo "        <div class=\"uv-aside-head\">
            <div class=\"uv-aside-title\"><h6>";
            // line 6
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["navigationPanel"] ?? null), "name", []), "html", null, true);
            echo "</h6></div>
            <div class=\"uv-aside-back\">
                <span onclick=\"history.length > 1 ? history.go(-1) : window.location = '";
            // line 8
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_dashboard");
            echo "';\"> ";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back"), "html", null, true);
            echo "</span>
            </div>
        </div>

        <div class=\"uv-aside-nav\">
            <ul>
                ";
            // line 14
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["navigationPanel"] ?? null), "routes", []));
            foreach ($context['_seq'] as $context["_key"] => $context["route"]) {
                // line 15
                echo "                    ";
                if ((((twig_get_attribute($this->env, $this->source, $context["route"], "isEnabled", []) &&  !twig_get_attribute($this->env, $this->source, $context["route"], "permission", [], "any", true, true)) || twig_test_empty(twig_get_attribute($this->env, $this->source, $context["route"], "permission", []))) || twig_get_attribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", [0 => twig_get_attribute($this->env, $this->source, $context["route"], "permission", [])], "method"))) {
                    // line 16
                    echo "                        <li>
                            <a ";
                    // line 17
                    echo ((twig_get_attribute($this->env, $this->source, $context["route"], "isActive", [])) ? ("class=\"uv-aside-nav-active\"") : (""));
                    echo " ";
                    echo twig_escape_filter($this->env, (( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["route"], "link", []))) ? ((("href=" . twig_get_attribute($this->env, $this->source, $context["route"], "link", [])) . "")) : ("")), "html", null, true);
                    echo ">";
                    echo twig_get_attribute($this->env, $this->source, $context["route"], "name", []);
                    echo "</a>
                        </li>
                    ";
                }
                // line 20
                echo "                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['route'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 21
            echo "            </ul>
        </div>
    ";
        }
        // line 24
        echo "</div>";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "@UVDeskCore/Templates/panel-sidebar.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  90 => 24,  85 => 21,  79 => 20,  69 => 17,  66 => 16,  63 => 15,  59 => 14,  48 => 8,  43 => 6,  40 => 5,  38 => 4,  35 => 3,  33 => 2,  26 => 1,);
    }

    public function getSourceContext()
    {
        return new Twig_Source("<div class=\"uv-aside\" {% if app.request.cookies and app.request.cookies.get('uv-asideView') %}style=\"display: none;\"{% endif %}>
    {% set navigationPanel = uvdesk_service.getPanelSidebarRoutes() %}
    
    {% if navigationPanel.routes is defined and navigationPanel.routes is not empty %}
        <div class=\"uv-aside-head\">
            <div class=\"uv-aside-title\"><h6>{{ navigationPanel.name }}</h6></div>
            <div class=\"uv-aside-back\">
                <span onclick=\"history.length > 1 ? history.go(-1) : window.location = '{{ path(\"helpdesk_member_dashboard\") }}';\"> {{ 'Back'|trans }}</span>
            </div>
        </div>

        <div class=\"uv-aside-nav\">
            <ul>
                {% for route in navigationPanel.routes %}
                    {% if route.isEnabled and route.permission is not defined or route.permission is empty or user_service.isAccessAuthorized(route.permission) %}
                        <li>
                            <a {{ route.isActive ? 'class=\"uv-aside-nav-active\"' : '' }} {{ route.link is not empty ? 'href=' ~ route.link ~ '' : '' }}>{{ route.name|raw }}</a>
                        </li>
                    {% endif %}
                {% endfor %}
            </ul>
        </div>
    {% endif %}
</div>", "@UVDeskCore/Templates/panel-sidebar.html.twig", "/home/users/akshay.kumar/Workstation/apps/uvdesk/releases/uvdesk_community_01_development_php_72/vendor/uvdesk/core-framework/Resources/views/Templates/panel-sidebar.html.twig");
    }
}
