<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;

/* @AdminLTE/Macros/buttons.html.twig */
class __TwigTemplate_d830ff187e9f7964dc25fe40a6e07914 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    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_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AdminLTE/Macros/buttons.html.twig"));

        // line 6
        yield "
";
        // line 12
        yield "
";
        // line 25
        yield "
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 1
    public function macro_action_toolbutton($icon = null, $action = null, $label = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "icon" => $icon,
            "action" => $action,
            "label" => $label,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "action_toolbutton"));

            // line 2
            yield "    <button class=\"btn btn-box-tool\" data-widget=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 2, $this->source); })()), "html", null, true);
            yield "\" data-toggle=\"tooltip\" title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("label", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 2, $this->source); })()), "")) : ("")), "html", null, true);
            yield "\">
        <i class=\"";
            // line 3
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("icon", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 3, $this->source); })()), "times")) : ("times")), "html", null, true);
            yield "\"></i>
    </button>
";
            
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    // line 7
    public function macro_link_toolbutton($icon = null, $href = null, $label = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "icon" => $icon,
            "href" => $href,
            "label" => $label,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "link_toolbutton"));

            // line 8
            yield "    <a href=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["href"]) || array_key_exists("href", $context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.', 8, $this->source); })()), "html", null, true);
            yield "\" class=\"btn btn-box-tool\" data-toggle=\"tooltip\" title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("label", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 8, $this->source); })()), "")) : ("")), "html", null, true);
            yield "\">
        <i class=\"";
            // line 9
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("icon", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 9, $this->source); })()), "times")) : ("times")), "html", null, true);
            yield "\"></i>
    </a>
";
            
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    // line 13
    public function macro_link_button($label = null, $href = null, $icon = null, $type = null, $size = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "label" => $label,
            "href" => $href,
            "icon" => $icon,
            "type" => $type,
            "size" => $size,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "link_button"));

            // line 14
            yield "    ";
            $context["_size"] = ((array_key_exists("size", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["size"]) || array_key_exists("size", $context) ? $context["size"] : (function () { throw new RuntimeError('Variable "size" does not exist.', 14, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 14, $this->source); })()), "button", [], "any", false, false, false, 14), "size", [], "any", false, false, false, 14))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 14, $this->source); })()), "button", [], "any", false, false, false, 14), "size", [], "any", false, false, false, 14)));
            // line 15
            yield "    ";
            $context["_type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 15, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 15, $this->source); })()), "button", [], "any", false, false, false, 15), "type", [], "any", false, false, false, 15))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 15, $this->source); })()), "button", [], "any", false, false, false, 15), "type", [], "any", false, false, false, 15)));
            // line 16
            yield "    <a href=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("href", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["href"]) || array_key_exists("href", $context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.', 16, $this->source); })()), "#")) : ("#")), "html", null, true);
            yield "\" class=\"btn btn-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["_type"]) || array_key_exists("_type", $context) ? $context["_type"] : (function () { throw new RuntimeError('Variable "_type" does not exist.', 16, $this->source); })()), "html", null, true);
            if ((($tmp = (isset($context["_size"]) || array_key_exists("_size", $context) ? $context["_size"] : (function () { throw new RuntimeError('Variable "_size" does not exist.', 16, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                yield " btn-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["_size"]) || array_key_exists("_size", $context) ? $context["_size"] : (function () { throw new RuntimeError('Variable "_size" does not exist.', 16, $this->source); })()), "html", null, true);
            }
            yield "\">
        ";
            // line 17
            if ((($tmp = (isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 17, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 18
                yield "            <i class=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 18, $this->source); })()), "html", null, true);
                yield "\"></i>
        ";
            }
            // line 20
            yield "        ";
            if ((($tmp = (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 20, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 21
                yield "            <span>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 21, $this->source); })()), "html", null, true);
                yield "</span>
        ";
            }
            // line 23
            yield "    </a>
";
            
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    // line 26
    public function macro_action_button($label = null, $action = null, $icon = null, $type = null, $size = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "label" => $label,
            "action" => $action,
            "icon" => $icon,
            "type" => $type,
            "size" => $size,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "action_button"));

            // line 27
            yield "    ";
            $context["_size"] = ((array_key_exists("size", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["size"]) || array_key_exists("size", $context) ? $context["size"] : (function () { throw new RuntimeError('Variable "size" does not exist.', 27, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 27, $this->source); })()), "button", [], "any", false, false, false, 27), "size", [], "any", false, false, false, 27))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 27, $this->source); })()), "button", [], "any", false, false, false, 27), "size", [], "any", false, false, false, 27)));
            // line 28
            yield "    ";
            $context["_type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 28, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 28, $this->source); })()), "button", [], "any", false, false, false, 28), "type", [], "any", false, false, false, 28))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["admin_lte_context"]) || array_key_exists("admin_lte_context", $context) ? $context["admin_lte_context"] : (function () { throw new RuntimeError('Variable "admin_lte_context" does not exist.', 28, $this->source); })()), "button", [], "any", false, false, false, 28), "type", [], "any", false, false, false, 28)));
            // line 29
            yield "    <button data-action=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 29, $this->source); })()), "html", null, true);
            yield "\" class=\"btn btn-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["_type"]) || array_key_exists("_type", $context) ? $context["_type"] : (function () { throw new RuntimeError('Variable "_type" does not exist.', 29, $this->source); })()), "html", null, true);
            if ((($tmp = (isset($context["_size"]) || array_key_exists("_size", $context) ? $context["_size"] : (function () { throw new RuntimeError('Variable "_size" does not exist.', 29, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                yield " btn-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["_size"]) || array_key_exists("_size", $context) ? $context["_size"] : (function () { throw new RuntimeError('Variable "_size" does not exist.', 29, $this->source); })()), "html", null, true);
            }
            yield "\">
        ";
            // line 30
            if ((($tmp = (isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 30, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 31
                yield "            <i class=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 31, $this->source); })()), "html", null, true);
                yield "\"></i>
        ";
            }
            // line 33
            yield "        ";
            if ((($tmp = (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 33, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 34
                yield "            <span>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 34, $this->source); })()), "html", null, true);
                yield "</span>
        ";
            }
            // line 36
            yield "    </button>
";
            
            $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@AdminLTE/Macros/buttons.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  248 => 36,  242 => 34,  239 => 33,  233 => 31,  231 => 30,  220 => 29,  217 => 28,  214 => 27,  195 => 26,  185 => 23,  179 => 21,  176 => 20,  170 => 18,  168 => 17,  157 => 16,  154 => 15,  151 => 14,  132 => 13,  120 => 9,  113 => 8,  96 => 7,  84 => 3,  77 => 2,  60 => 1,  51 => 25,  48 => 12,  45 => 6,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% macro action_toolbutton(icon, action, label) %}
    <button class=\"btn btn-box-tool\" data-widget=\"{{ action }}\" data-toggle=\"tooltip\" title=\"{{ label|default('') }}\">
        <i class=\"{{ icon|default('times') }}\"></i>
    </button>
{% endmacro %}

{% macro link_toolbutton(icon, href, label) %}
    <a href=\"{{ href }}\" class=\"btn btn-box-tool\" data-toggle=\"tooltip\" title=\"{{ label|default('') }}\">
        <i class=\"{{ icon|default('times') }}\"></i>
    </a>
{% endmacro %}

{% macro link_button(label, href, icon, type, size) %}
    {% set _size = size|default(admin_lte_context.button.size) %}
    {% set _type = type|default(admin_lte_context.button.type) %}
    <a href=\"{{ href|default('#') }}\" class=\"btn btn-{{ _type }}{% if _size %} btn-{{ _size }}{% endif %}\">
        {% if icon %}
            <i class=\"{{ icon }}\"></i>
        {% endif %}
        {% if label %}
            <span>{{ label }}</span>
        {% endif %}
    </a>
{% endmacro %}

{% macro action_button(label, action, icon, type, size) %}
    {% set _size = size|default(admin_lte_context.button.size) %}
    {% set _type = type|default(admin_lte_context.button.type) %}
    <button data-action=\"{{ action }}\" class=\"btn btn-{{ _type }}{% if _size %} btn-{{ _size }}{% endif %}\">
        {% if icon %}
            <i class=\"{{ icon }}\"></i>
        {% endif %}
        {% if label %}
            <span>{{ label }}</span>
        {% endif %}
    </button>
{% endmacro %}
", "@AdminLTE/Macros/buttons.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/bundles/AdminLTEBundle/Macros/buttons.html.twig");
    }
}
