<?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/Widgets/box-widget-2.html.twig */
class __TwigTemplate_d9d151f7cd2d129c816078fde68a1726 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;
        // line 1
        $macros["button"] = $this->macros["button"] = $this->load("@AdminLTE/Macros/buttons.html.twig", 1)->unwrap();
        // line 2
        if (        $this->unwrap()->hasBlock("box_before", $context, $blocks)) {
            yield from             $this->unwrap()->yieldBlock("box_before", $context, $blocks);
        }
        // line 3
        yield "
";
        // line 4
        $context["_collapsed"] = ((array_key_exists("collapsed", $context)) ? (Twig\Extension\CoreExtension::default(($context["collapsed"] ?? null), false)) : (false));
        // line 5
        $context["_solid"] = ((array_key_exists("solid", $context)) ? (Twig\Extension\CoreExtension::default(($context["solid"] ?? null), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 5), "solid", [], "any", false, false, false, 5))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 5), "solid", [], "any", false, false, false, 5)));
        // line 6
        $context["_border"] = ((array_key_exists("border", $context)) ? (Twig\Extension\CoreExtension::default(($context["border"] ?? null), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 6), "bordered", [], "any", false, false, false, 6))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 6), "bordered", [], "any", false, false, false, 6)));
        // line 7
        $context["_footer"] = (((array_key_exists("use_footer", $context)) ? (Twig\Extension\CoreExtension::default(($context["use_footer"] ?? null), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 7), "use_footer", [], "any", false, false, false, 7))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 7), "use_footer", [], "any", false, false, false, 7))) ||         $this->unwrap()->hasBlock("box_footer", $context, $blocks));
        // line 8
        yield "
";
        // line 9
        if ((($tmp =  !array_key_exists("removable", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 10
            yield "    ";
            $context["removable"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 10), "removable", [], "any", false, false, false, 10);
        }
        // line 12
        if ((($tmp =  !array_key_exists("collapsible", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 13
            yield "    ";
            $context["collapsible"] = (($context["_collapsed"] ?? null) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 13), "collapsible", [], "any", false, false, false, 13));
        }
        // line 15
        yield "<div class=\"card card-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("boxtype", $context)) ? (Twig\Extension\CoreExtension::default(($context["boxtype"] ?? null), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 15), "type", [], "any", false, false, false, 15))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 15), "type", [], "any", false, false, false, 15))), "html", null, true);
        yield (((($tmp = ($context["_solid"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" card-solid") : (""));
        yield (((($tmp = ($context["_collapsed"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" collapsed-card") : (""));
        yield "\"";
        if (        $this->unwrap()->hasBlock("box_attributes", $context, $blocks)) {
            yield " ";
            yield from             $this->unwrap()->yieldBlock("box_attributes", $context, $blocks);
        }
        yield ">
    ";
        // line 16
        if (((        $this->unwrap()->hasBlock("box_title", $context, $blocks) || ($context["collapsible"] ?? null)) || ($context["removable"] ?? null))) {
            // line 17
            yield "    <div class=\"card-header";
            yield (((($tmp = ($context["_border"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" with-border") : (""));
            yield "\">
        ";
            // line 18
            if (            $this->unwrap()->hasBlock("box_title", $context, $blocks)) {
                yield "<h3 class=\"card-title\">";
                yield from                 $this->unwrap()->yieldBlock("box_title", $context, $blocks);
                yield "</h3>";
            }
            // line 19
            yield "        <div class=\"card-tools pull-right\"";
            if (            $this->unwrap()->hasBlock("box_tools_attributes", $context, $blocks)) {
                yield " ";
                yield from                 $this->unwrap()->yieldBlock("box_tools_attributes", $context, $blocks);
            }
            yield ">
            ";
            // line 21
            yield "            ";
            if (            $this->unwrap()->hasBlock("box_tools", $context, $blocks)) {
                yield from                 $this->unwrap()->yieldBlock("box_tools", $context, $blocks);
            }
            // line 22
            yield "            ";
            if ((($tmp = ($context["collapsible"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 23
                yield "                ";
                yield $macros["button"]->getTemplateForMacro("macro_action_toolbutton", $context, 23, $this->getSourceContext())->macro_action_toolbutton(...[(((($tmp =                 // line 24
($context["_collapsed"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("fas fa-plus") : ("fas fa-minus")), "collapse", ((                // line 26
array_key_exists("collapsible_title", $context)) ? (Twig\Extension\CoreExtension::default(($context["collapsible_title"] ?? null), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, true, false, 26), "collapsible_title", [], "any", true, true, false, 26)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 26), "collapsible_title", [], "any", false, false, false, 26))) : ("")), [], "AdminLTEBundle"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, true, false, 26), "collapsible_title", [], "any", true, true, false, 26)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 26), "collapsible_title", [], "any", false, false, false, 26))) : ("")), [], "AdminLTEBundle")))]);
                // line 27
                yield "
            ";
            }
            // line 29
            yield "
            ";
            // line 30
            if ((($tmp = ($context["removable"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 31
                yield "                ";
                yield $macros["button"]->getTemplateForMacro("macro_action_toolbutton", $context, 31, $this->getSourceContext())->macro_action_toolbutton(...["fas fa-times", "remove", ((                // line 34
array_key_exists("removable_title", $context)) ? (Twig\Extension\CoreExtension::default(($context["removable_title"] ?? null), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, true, false, 34), "removable_title", [], "any", true, true, false, 34)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 34), "removable_title", [], "any", false, false, false, 34))) : ("")), [], "AdminLTEBundle"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, true, false, 34), "removable_title", [], "any", true, true, false, 34)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 34), "removable_title", [], "any", false, false, false, 34))) : ("")), [], "AdminLTEBundle")))]);
                // line 35
                yield "
            ";
            }
            // line 37
            yield "        </div>
    </div>
    ";
        }
        // line 40
        yield "    <div class=\"card-body";
        if (        $this->unwrap()->hasBlock("box_body_class", $context, $blocks)) {
            yield " ";
            yield from             $this->unwrap()->yieldBlock("box_body_class", $context, $blocks);
        }
        yield "\">";
        yield from         $this->unwrap()->yieldBlock("box_body", $context, $blocks);
        yield "</div>
    ";
        // line 41
        if ((($context["_footer"] ?? null) &&         $this->unwrap()->hasBlock("box_footer", $context, $blocks))) {
            // line 42
            yield "        ";
            // line 46
            yield "        ";
            $context["boxFooter"] =             $this->unwrap()->renderBlock("box_footer", $context, $blocks);
            // line 47
            yield "        ";
            if ((($tmp =  !Twig\Extension\CoreExtension::testEmpty(($context["boxFooter"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 48
                yield "            <div class=\"card-footer\">";
                yield ($context["boxFooter"] ?? null);
                yield "</div>
        ";
            }
            // line 50
            yield "    ";
        }
        // line 51
        yield "</div>
";
        // line 52
        if (        $this->unwrap()->hasBlock("box_after", $context, $blocks)) {
            yield from             $this->unwrap()->yieldBlock("box_after", $context, $blocks);
        }
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@AdminLTE/Widgets/box-widget-2.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  174 => 52,  171 => 51,  168 => 50,  162 => 48,  159 => 47,  156 => 46,  154 => 42,  152 => 41,  142 => 40,  137 => 37,  133 => 35,  131 => 34,  129 => 31,  127 => 30,  124 => 29,  120 => 27,  118 => 26,  117 => 24,  115 => 23,  112 => 22,  107 => 21,  99 => 19,  93 => 18,  88 => 17,  86 => 16,  74 => 15,  70 => 13,  68 => 12,  64 => 10,  62 => 9,  59 => 8,  57 => 7,  55 => 6,  53 => 5,  51 => 4,  48 => 3,  44 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@AdminLTE/Widgets/box-widget-2.html.twig", "/var/www/html/templates/bundles/AdminLTEBundle/Widgets/box-widget-2.html.twig");
    }
}
