<?php

/* @UVDeskSupportCenter/Templates/sidepanel.html.twig */
class __TwigTemplate_e5031367c89cd4e6a05460a42a9eaad9f897dc77e6c3fa00b28e370bf6fdd95e 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/sidepanel.html.twig"));

        // line 1
        echo "<div class=\"uv-paper-aside\">
    ";
        // line 2
        if (((isset($context["popArticles"]) || array_key_exists("popArticles", $context)) && ($context["popArticles"] ?? null))) {
            // line 3
            echo "        <aside>
            <h3>";
            // line 4
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Popular Articles"), "html", null, true);
            echo "</h3>
            <ul>
                ";
            // line 6
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["popArticles"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["popArticle"]) {
                // line 7
                echo "                    <li><a href=\"";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_knowledgebase_read_slug_article", ["slug" => twig_get_attribute($this->env, $this->source, $context["popArticle"], "slug", [])]), "html", null, true);
                echo "\"> ";
                if (twig_get_attribute($this->env, $this->source, $context["popArticle"], "stared", [])) {
                    echo "<span class=\"uv-icon-star uv-pre\"></span>";
                }
                echo " ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["popArticle"], "name", []), "html", null, true);
                echo "</a></li>
                    ";
                // line 9
                echo "                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['popArticle'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 10
            echo "            </ul>
        </aside>
    ";
        }
        // line 13
        echo "    
    ";
        // line 14
        if (((isset($context["relatedArticles"]) || array_key_exists("relatedArticles", $context)) && ($context["relatedArticles"] ?? null))) {
            // line 15
            echo "        <aside class=\"uv-margin-top-30\">
            <h3>";
            // line 16
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Related Articles"), "html", null, true);
            echo "</h3>
            <ul>
                ";
            // line 18
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["relatedArticles"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["relatedArticle"]) {
                // line 19
                echo "                    <li><a href=\"";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_knowledgebase_read_slug_article", ["slug" => twig_get_attribute($this->env, $this->source, $context["relatedArticle"], "slug", [])]), "html", null, true);
                echo "\"> ";
                if (twig_get_attribute($this->env, $this->source, $context["relatedArticle"], "stared", [])) {
                    echo "<span class=\"uv-icon-star uv-pre\"></span>";
                }
                echo " ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["relatedArticle"], "name", []), "html", null, true);
                echo "</a></li>
                    ";
                // line 21
                echo "                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['relatedArticle'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 22
            echo "            </ul>
        </aside>
    ";
        }
        // line 25
        echo "

    ";
        // line 27
        if (((isset($context["articleTags"]) || array_key_exists("articleTags", $context)) && ($context["articleTags"] ?? null))) {
            // line 28
            echo "        <aside class=\"uv-margin-top-30\">
            <h3>";
            // line 29
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tags"), "html", null, true);
            echo "</h3>
            <div class=\"uv-tags\">
                ";
            // line 31
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["articleTags"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
                // line 32
                echo "                    <span><a href=\"";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_knowledgebase_tag", ["tag" => twig_get_attribute($this->env, $this->source, $context["tag"], "id", []), "name" => twig_get_attribute($this->env, $this->source, $context["tag"], "name", [])]), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", []), "html", null, true);
                echo "</a></span>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 34
            echo "            </div>
        </aside>
    ";
        }
        // line 37
        echo "</div>";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  138 => 37,  133 => 34,  122 => 32,  118 => 31,  113 => 29,  110 => 28,  108 => 27,  104 => 25,  99 => 22,  93 => 21,  82 => 19,  78 => 18,  73 => 16,  70 => 15,  68 => 14,  65 => 13,  60 => 10,  54 => 9,  43 => 7,  39 => 6,  34 => 4,  31 => 3,  29 => 2,  26 => 1,);
    }

    public function getSourceContext()
    {
        return new Twig_Source("<div class=\"uv-paper-aside\">
    {% if popArticles is defined and popArticles %}
        <aside>
            <h3>{{'Popular Articles'|trans}}</h3>
            <ul>
                {% for popArticle in popArticles %}
                    <li><a href=\"{{path('helpdesk_knowledgebase_read_slug_article', {'slug': popArticle.slug})}}\"> {% if popArticle.stared %}<span class=\"uv-icon-star uv-pre\"></span>{% endif %} {{ popArticle.name }}</a></li>
                    {#<li><a href=\"{{path('helpdesk_knowledgebase_read_article', {'article': popArticle.id})}}\"> {% if popArticle.stared %}<span class=\"uv-icon-star uv-pre\"></span>{% endif %} {{popArticle.name}}</a></li>#}
                {% endfor %}
            </ul>
        </aside>
    {% endif %}
    
    {% if relatedArticles is defined and relatedArticles %}
        <aside class=\"uv-margin-top-30\">
            <h3>{{'Related Articles'|trans}}</h3>
            <ul>
                {% for relatedArticle in relatedArticles %}
                    <li><a href=\"{{path('helpdesk_knowledgebase_read_slug_article', {'slug': relatedArticle.slug})}}\"> {% if relatedArticle.stared %}<span class=\"uv-icon-star uv-pre\"></span>{% endif %} {{ relatedArticle.name }}</a></li>
                    {#<li><a href=\"{{path('helpdesk_knowledgebase_read_article', {'article': relatedArticle.articleId})}}\"> {% if relatedArticle.stared %}<span class=\"uv-icon-star uv-pre\"></span>{% endif %} {{relatedArticle.name}}</a></li>#}
                {% endfor %}
            </ul>
        </aside>
    {% endif %}


    {% if articleTags is defined and articleTags %}
        <aside class=\"uv-margin-top-30\">
            <h3>{{'Tags'|trans}}</h3>
            <div class=\"uv-tags\">
                {% for tag in articleTags %}
                    <span><a href=\"{{path('helpdesk_knowledgebase_tag', {'tag': tag.id, 'name': tag.name})}}\">{{tag.name}}</a></span>
                {% endfor %}
            </div>
        </aside>
    {% endif %}
</div>", "@UVDeskSupportCenter/Templates/sidepanel.html.twig", "/home/users/akshay.kumar/Workstation/apps/uvdesk/releases/uvdesk_community_01_development_php_72/vendor/uvdesk/support-center-bundle/Resources/views/Templates/sidepanel.html.twig");
    }
}
