<?php

/* @UVDeskSupportCenter/Knowledgebase/categoryListing.html.twig */
class __TwigTemplate_1f314bb1dc238266f27588a29696747bd9919d0ba997478d907ccfed694ec7bf extends Twig_Template
{
    private $source;

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

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

        // line 1
        $this->parent = $this->loadTemplate("@UVDeskSupportCenter/Templates/layout.html.twig", "@UVDeskSupportCenter/Knowledgebase/categoryListing.html.twig", 1);
        $this->blocks = [
            'title' => [$this, 'block_title'],
            'ogtitle' => [$this, 'block_ogtitle'],
            'twtitle' => [$this, 'block_twtitle'],
            'body' => [$this, 'block_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return "@UVDeskSupportCenter/Templates/layout.html.twig";
    }

    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/Knowledgebase/categoryListing.html.twig"));

        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 2
    public function block_title($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));

        echo "Categories";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_ogtitle($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "ogtitle"));

        echo "Categories";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 4
    public function block_twtitle($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "twtitle"));

        echo "Categories";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 6
    public function block_body($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));

        // line 7
        echo "\t<div class=\"uv-paper-article\">
\t\t<div class=\"uv-paper-section\">
\t\t\t<section>
\t\t\t\t<h1 class=\"uv-folder-title\" data-count=\"";
        // line 10
        echo twig_escape_filter($this->env, ($context["categoryCount"] ?? null), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Categories"), "html", null, true);
        echo "\">";
        echo "Categories";
        echo "</h1>
\t\t\t\t<p>";
        // line 11
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Browse articles by categories"), "html", null, true);
        echo "</p>
\t\t\t</section>
\t\t\t<section class=\"uv-margin-top-30\">
\t\t\t\t<!-- <h4>";
        // line 14
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CATEGORIES"), "html", null, true);
        echo "</h4> -->

\t\t\t\t";
        // line 16
        if (((isset($context["categories"]) || array_key_exists("categories", $context)) &&  !twig_test_empty(($context["categories"] ?? null)))) {
            // line 17
            echo "\t\t\t\t\t<ul>
\t\t\t\t\t\t";
            // line 18
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["categories"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
                // line 19
                echo "\t\t\t\t\t\t\t<li>
                                <a href=\"";
                // line 20
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_knowledgebase_category", ["category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [])]), "html", null, true);
                echo "\">
                                    ";
                // line 21
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", []), "html", null, true);
                echo "
                                </a>
                            </li>
\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 25
            echo "\t\t\t\t\t</ul>
\t\t\t\t";
        } else {
            // line 27
            echo "\t\t\t\t\t<p>";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No Categories Found!"), "html", null, true);
            echo "</p>
\t\t\t\t";
        }
        // line 29
        echo "\t\t\t</section>
\t\t</div>

\t\t";
        // line 34
        echo "\t</div>
\t";
        // line 35
        $this->displayParentBlock("body", $context, $blocks);
        echo "
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  151 => 35,  148 => 34,  143 => 29,  137 => 27,  133 => 25,  123 => 21,  119 => 20,  116 => 19,  112 => 18,  109 => 17,  107 => 16,  102 => 14,  96 => 11,  88 => 10,  83 => 7,  77 => 6,  65 => 4,  53 => 3,  41 => 2,  15 => 1,);
    }

    public function getSourceContext()
    {
        return new Twig_Source("{% extends \"@UVDeskSupportCenter/Templates/layout.html.twig\" %}
{% block title %}Categories{% endblock %}
{% block ogtitle %}Categories{% endblock %}
{% block twtitle %}Categories{% endblock %}

{% block body %}
\t<div class=\"uv-paper-article\">
\t\t<div class=\"uv-paper-section\">
\t\t\t<section>
\t\t\t\t<h1 class=\"uv-folder-title\" data-count=\"{{ categoryCount }} {{\"Categories\"|trans}}\">{{ 'Categories' }}</h1>
\t\t\t\t<p>{{ 'Browse articles by categories'|trans }}</p>
\t\t\t</section>
\t\t\t<section class=\"uv-margin-top-30\">
\t\t\t\t<!-- <h4>{{ 'CATEGORIES'|trans }}</h4> -->

\t\t\t\t{% if categories is defined and categories is not empty %}
\t\t\t\t\t<ul>
\t\t\t\t\t\t{% for category in categories %}
\t\t\t\t\t\t\t<li>
                                <a href=\"{{ path('helpdesk_knowledgebase_category', {'category': category.id}) }}\">
                                    {{ category.name }}
                                </a>
                            </li>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ul>
\t\t\t\t{% else %}
\t\t\t\t\t<p>{{ \"No Categories Found!\"|trans }}</p>
\t\t\t\t{% endif %}
\t\t\t</section>
\t\t</div>

\t\t{# TODO: Implement popular articles }
\t\t{# {% include \"WebkulDefaultBundle:Front:popularArticle.html.twig\" %} #}
\t</div>
\t{{parent()}}
{% endblock %}
", "@UVDeskSupportCenter/Knowledgebase/categoryListing.html.twig", "/home/users/akshay.kumar/Workstation/apps/uvdesk/releases/uvdesk_community_01_development_php_72/vendor/uvdesk/support-center-bundle/Resources/views/Knowledgebase/categoryListing.html.twig");
    }
}
