<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* reporting/actions.html.twig */
class __TwigTemplate_e7a164994da8e230dc4426a5d120833f6d6468a68a4580bbac756bc5d8eb289b extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
    }

    // line 1
    public function macro_reporting(...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 2
            echo "    ";
            $macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "reporting/actions.html.twig", 2)->unwrap();
            // line 3
            echo "    ";
            $context["actions"] = [];
            // line 4
            echo "    ";
            $context["children"] = [];
            // line 5
            echo "    ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\ReportingExtension']->getAvailableReports(twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, false, false, 5)));
            foreach ($context['_seq'] as $context["id"] => $context["report"]) {
                // line 6
                echo "        ";
                $context["children"] = twig_array_merge(($context["children"] ?? null), [twig_get_attribute($this->env, $this->source, $context["report"], "id", [], "any", false, false, false, 6) => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["report"], "label", [], "any", false, false, false, 6), [], "reporting"), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, $context["report"], "route", [], "any", false, false, false, 6)), "class" => ("toolbar-action report-" . twig_get_attribute($this->env, $this->source, $context["report"], "id", [], "any", false, false, false, 6))]]);
                // line 7
                echo "    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['id'], $context['report'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 8
            echo "    ";
            $context["actions"] = twig_array_merge(($context["actions"] ?? null), ["reporting" => ["children" => ($context["children"] ?? null)]]);
            // line 9
            echo "    ";
            $context["actions"] = twig_array_merge(($context["actions"] ?? null), ["help" => ["url" => $this->extensions['App\Twig\Extensions']->documentationLink("reporting.html"), "target" => "_blank"]]);
            // line 10
            echo "    ";
            $context["event"] = $this->env->getRuntime('App\Twig\Runtime\ThemeEventExtension')->trigger("actions.reporting", ["actions" => ($context["actions"] ?? null)]);
            // line 11
            echo "    ";
            echo twig_call_macro($macros["widgets"], "macro_page_actions", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "payload", [], "any", false, false, false, 11), "actions", [], "any", false, false, false, 11)], 11, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    public function getTemplateName()
    {
        return "reporting/actions.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  83 => 11,  80 => 10,  77 => 9,  74 => 8,  68 => 7,  65 => 6,  60 => 5,  57 => 4,  54 => 3,  51 => 2,  39 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "reporting/actions.html.twig", "/var/www/html/kimai2/templates/reporting/actions.html.twig");
    }
}
