<?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;

/* plugin/actions.html.twig */
class __TwigTemplate_fe4f5f2ae21d538f3f82ecbc36dda8ffd23d3a4aa0bfeb7f35613de2abb53ad5 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 10
        echo "
";
    }

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

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 2
            echo "    ";
            $macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "plugin/actions.html.twig", 2)->unwrap();
            // line 3
            echo "
    ";
            // line 4
            $context["actions"] = ["shop" => ["url" => (twig_constant("App\\Constants::HOMEPAGE") . "/store/"), "target" => "_blank"]];
            // line 5
            echo "    ";
            $context["actions"] = twig_array_merge(($context["actions"] ?? null), ["help" => ["url" => $this->extensions['App\Twig\Extensions']->documentationLink("plugins.html"), "target" => "_blank"]]);
            // line 6
            echo "
    ";
            // line 7
            $context["event"] = $this->env->getRuntime('App\Twig\Runtime\ThemeEventExtension')->trigger("actions.plugins", ["actions" => ($context["actions"] ?? null), "view" => ($context["view"] ?? null)]);
            // line 8
            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, 8), "actions", [], "any", false, false, false, 8)], 8, $context, $this->getSourceContext());
            echo "
";

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

    // line 11
    public function macro_plugin($__plugin__ = null, $__view__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "plugin" => $__plugin__,
            "view" => $__view__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 12
            echo "    ";
            $macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "plugin/actions.html.twig", 12)->unwrap();
            // line 13
            echo "
    ";
            // line 14
            $context["actions"] = ["home" => ["url" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["plugin"] ?? null), "metadata", [], "any", false, false, false, 14), "homepage", [], "any", false, false, false, 14), "target" => "_blank"]];
            // line 15
            echo "
    ";
            // line 16
            $context["event"] = $this->env->getRuntime('App\Twig\Runtime\ThemeEventExtension')->trigger("actions.plugin", ["actions" => ($context["actions"] ?? null), "view" => ($context["view"] ?? null), "plugin" => ($context["plugin"] ?? null)]);
            // line 17
            echo "    ";
            if (0 === twig_compare(($context["view"] ?? null), "index")) {
                // line 18
                echo "        ";
                echo twig_call_macro($macros["widgets"], "macro_table_actions", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "payload", [], "any", false, false, false, 18), "actions", [], "any", false, false, false, 18)], 18, $context, $this->getSourceContext());
                echo "
    ";
            } else {
                // line 20
                echo "        ";
                echo twig_call_macro($macros["widgets"], "macro_entity_actions", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "payload", [], "any", false, false, false, 20), "actions", [], "any", false, false, false, 20)], 20, $context, $this->getSourceContext());
                echo "
    ";
            }

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

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  119 => 20,  113 => 18,  110 => 17,  108 => 16,  105 => 15,  103 => 14,  100 => 13,  97 => 12,  83 => 11,  71 => 8,  69 => 7,  66 => 6,  63 => 5,  61 => 4,  58 => 3,  55 => 2,  42 => 1,  37 => 10,);
    }

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