*/ private array $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 = []): iterable { $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", "partials/document/document-category-list.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/document/document-category-list.html.twig")); // line 1 yield "

"; // line 5 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 5, $this->source); })()), "category_name", [], "any", false, false, false, 5), "html", null, true); yield "

"; // line 9 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 9), "ROLE_SUPERADMIN", [], "any", true, true, false, 9) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, false, 9) == "Documents"))) { // line 10 yield " "; } // line 26 yield "
"; // line 38 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 38, $this->source); })()), "documents", [], "any", false, false, false, 38)) > 0)) { // line 39 yield " "; // line 54 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 54, $this->source); })()), "documents", [], "any", false, false, false, 54)); foreach ($context['_seq'] as $context["key"] => $context["document"]) { // line 55 yield " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['key'], $context['document'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 70 yield " "; } else { // line 72 yield " "; } // line 81 yield "
Title Uploaded
"; // line 57 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "title", [], "any", false, false, false, 57), "html", null, true); yield " "; // line 60 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "upload_date", [], "any", false, false, false, 60), "d-m-Y"), "html", null, true); yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "filename", [], "any", false, false, false, 63), "html", null, true); yield "\">View env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "filename", [], "any", false, false, false, 66), "html", null, true); yield "\" target=\"_blank\">Download
No documents
"; // line 85 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 85, $this->source); })()), "documents", [], "any", false, false, false, 85)) > 0)) { // line 86 yield "
Showing "; // line 88 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 88, $this->source); })()), "max_results", [], "any", false, false, false, 88), "html", null, true); yield " of "; // line 89 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 89, $this->source); })()), "documents", [], "any", false, false, false, 89)), "html", null, true); yield " Results
"; } else { // line 112 yield "
"; } // line 117 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/document/document-category-list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 220 => 117, 213 => 112, 187 => 89, 183 => 88, 179 => 86, 177 => 85, 171 => 81, 160 => 72, 156 => 70, 146 => 66, 140 => 63, 134 => 60, 128 => 57, 124 => 55, 120 => 54, 103 => 39, 101 => 38, 87 => 26, 78 => 20, 70 => 15, 63 => 10, 61 => 9, 54 => 5, 48 => 1,); } public function getSourceContext(): Source { return new Source("

{{ documentCategory.category_name }}

{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} {% endif %}
{% if documentCategory.documents|length > 0 %} {% for key, document in documentCategory.documents %} {% endfor %} {% else %} {% endif %}
Title Uploaded
{{ document.title }} {{ document.upload_date|date('d-m-Y') }} View Download
No documents
{% if documentCategory.documents|length > 0 %}
Showing {{ pagination.max_results }} of {{ documentCategory.documents|length }} Results
{% else %}
{% endif %}
", "partials/document/document-category-list.html.twig", "/var/www/cds-intranet/app/templates/partials/document/document-category-list.html.twig"); } }