<?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.html.twig */
class __TwigTemplate_8564fdb9f4a647351f1a64321ccf27a9 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/Widgets/box-widget.html.twig"));

        // 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((isset($context["collapsed"]) || array_key_exists("collapsed", $context) ? $context["collapsed"] : (function () { throw new RuntimeError('Variable "collapsed" does not exist.', 4, $this->source); })()), false)) : (false));
        // line 5
        $context["_solid"] = ((array_key_exists("solid", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["solid"]) || array_key_exists("solid", $context) ? $context["solid"] : (function () { throw new RuntimeError('Variable "solid" does not exist.', 5, $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.', 5, $this->source); })()), "widget", [], "any", false, false, false, 5), "solid", [], "any", false, false, false, 5))) : (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.', 5, $this->source); })()), "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((isset($context["border"]) || array_key_exists("border", $context) ? $context["border"] : (function () { throw new RuntimeError('Variable "border" does not exist.', 6, $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.', 6, $this->source); })()), "widget", [], "any", false, false, false, 6), "bordered", [], "any", false, false, false, 6))) : (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.', 6, $this->source); })()), "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((isset($context["use_footer"]) || array_key_exists("use_footer", $context) ? $context["use_footer"] : (function () { throw new RuntimeError('Variable "use_footer" does not exist.', 7, $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.', 7, $this->source); })()), "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, (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.', 7, $this->source); })()), "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, (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.', 10, $this->source); })()), "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"] = ((isset($context["_collapsed"]) || array_key_exists("_collapsed", $context) ? $context["_collapsed"] : (function () { throw new RuntimeError('Variable "_collapsed" does not exist.', 13, $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.', 13, $this->source); })()), "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((isset($context["boxtype"]) || array_key_exists("boxtype", $context) ? $context["boxtype"] : (function () { throw new RuntimeError('Variable "boxtype" 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); })()), "widget", [], "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); })()), "widget", [], "any", false, false, false, 15), "type", [], "any", false, false, false, 15))), "html", null, true);
        yield (((($tmp = (isset($context["_solid"]) || array_key_exists("_solid", $context) ? $context["_solid"] : (function () { throw new RuntimeError('Variable "_solid" does not exist.', 15, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" card-solid") : (""));
        yield (((($tmp = (isset($context["_collapsed"]) || array_key_exists("_collapsed", $context) ? $context["_collapsed"] : (function () { throw new RuntimeError('Variable "_collapsed" does not exist.', 15, $this->source); })())) && $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) || (isset($context["collapsible"]) || array_key_exists("collapsible", $context) ? $context["collapsible"] : (function () { throw new RuntimeError('Variable "collapsible" does not exist.', 16, $this->source); })())) || (isset($context["removable"]) || array_key_exists("removable", $context) ? $context["removable"] : (function () { throw new RuntimeError('Variable "removable" does not exist.', 16, $this->source); })()))) {
            // line 17
            yield "    <div class=\"card-header";
            yield (((($tmp = (isset($context["_border"]) || array_key_exists("_border", $context) ? $context["_border"] : (function () { throw new RuntimeError('Variable "_border" does not exist.', 17, $this->source); })())) && $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 = (isset($context["collapsible"]) || array_key_exists("collapsible", $context) ? $context["collapsible"] : (function () { throw new RuntimeError('Variable "collapsible" does not exist.', 22, $this->source); })())) && $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
(isset($context["_collapsed"]) || array_key_exists("_collapsed", $context) ? $context["_collapsed"] : (function () { throw new RuntimeError('Variable "_collapsed" does not exist.', 24, $this->source); })())) && $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((isset($context["collapsible_title"]) || array_key_exists("collapsible_title", $context) ? $context["collapsible_title"] : (function () { throw new RuntimeError('Variable "collapsible_title" does not exist.', 26, $this->source); })()), $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, (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.', 26, $this->source); })()), "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, (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.', 26, $this->source); })()), "widget", [], "any", false, false, false, 26), "collapsible_title", [], "any", false, false, false, 26))) : ("")), [], "AdminLTEBundle")))]);
                // line 27
                yield "
            ";
            }
            // line 29
            yield "
            ";
            // line 30
            if ((($tmp = (isset($context["removable"]) || array_key_exists("removable", $context) ? $context["removable"] : (function () { throw new RuntimeError('Variable "removable" does not exist.', 30, $this->source); })())) && $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((isset($context["removable_title"]) || array_key_exists("removable_title", $context) ? $context["removable_title"] : (function () { throw new RuntimeError('Variable "removable_title" does not exist.', 34, $this->source); })()), $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, (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.', 34, $this->source); })()), "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, (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.', 34, $this->source); })()), "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 (((isset($context["_footer"]) || array_key_exists("_footer", $context) ? $context["_footer"] : (function () { throw new RuntimeError('Variable "_footer" does not exist.', 41, $this->source); })()) &&         $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((isset($context["boxFooter"]) || array_key_exists("boxFooter", $context) ? $context["boxFooter"] : (function () { throw new RuntimeError('Variable "boxFooter" does not exist.', 47, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 48
                yield "            <div class=\"card-footer\">";
                yield (isset($context["boxFooter"]) || array_key_exists("boxFooter", $context) ? $context["boxFooter"] : (function () { throw new RuntimeError('Variable "boxFooter" does not exist.', 48, $this->source); })());
                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);
        }
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  177 => 52,  174 => 51,  171 => 50,  165 => 48,  162 => 47,  159 => 46,  157 => 42,  155 => 41,  145 => 40,  140 => 37,  136 => 35,  134 => 34,  132 => 31,  130 => 30,  127 => 29,  123 => 27,  121 => 26,  120 => 24,  118 => 23,  115 => 22,  110 => 21,  102 => 19,  96 => 18,  91 => 17,  89 => 16,  77 => 15,  73 => 13,  71 => 12,  67 => 10,  65 => 9,  62 => 8,  60 => 7,  58 => 6,  56 => 5,  54 => 4,  51 => 3,  47 => 2,  45 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% import '@AdminLTE/Macros/buttons.html.twig' as button %}
{% if block('box_before') is defined %}{{ block('box_before') }}{% endif %}

{% set _collapsed = collapsed|default(false) %}
{% set _solid     = solid|default(admin_lte_context.widget.solid)  %}
{% set _border    = border|default(admin_lte_context.widget.bordered)  %}
{% set _footer    = use_footer|default(admin_lte_context.widget.use_footer) or block('box_footer') is defined %}

{% if removable is not defined %}
    {% set removable = admin_lte_context.widget.removable %}
{% endif %}
{% if collapsible is not defined %}
    {% set collapsible =  (_collapsed or admin_lte_context.widget.collapsible) %}
{% endif %}
<div class=\"card card-{{ boxtype|default(admin_lte_context.widget.type) }}{{ _solid ? ' card-solid' : '' }}{{ _collapsed ? ' collapsed-card' : '' }}\"{% if block('box_attributes') is defined %} {{ block('box_attributes') }}{% endif %}>
    {% if block('box_title') is defined or collapsible or removable %}
    <div class=\"card-header{{ _border ? ' with-border' : '' }}\">
        {% if block('box_title') is defined %}<h3 class=\"card-title\">{{ block('box_title') }}</h3>{% endif %}
        <div class=\"card-tools pull-right\"{% if block('box_tools_attributes') is defined %} {{ block('box_tools_attributes') }}{% endif %}>
            {# Buttons, labels, and many other things can be placed here! #}
            {% if block('box_tools') is defined %}{{ block('box_tools') }}{% endif %}
            {% if collapsible %}
                {{ button.action_toolbutton(
                    _collapsed ? 'fas fa-plus'  : 'fas fa-minus' ,
                    'collapse',
                    collapsible_title|default(admin_lte_context.widget.collapsible_title|default()|trans({}, 'AdminLTEBundle'))
                ) }}
            {% endif %}

            {% if removable %}
                {{ button.action_toolbutton(
                'fas fa-times',
                'remove',
                removable_title|default(admin_lte_context.widget.removable_title|default()|trans({}, 'AdminLTEBundle'))
                ) }}
            {% endif %}
        </div>
    </div>
    {% endif %}
    <div class=\"card-body{% if block('box_body_class') is defined %} {{ block('box_body_class') }}{% endif %}\">{{ block('box_body') }}</div>
    {% if _footer and block('box_footer') is defined %}
        {# 
            If there is a form in the block_footer, it will be rendered when checking \"is not empty\". 
            Therefor we have to cache the output first and then perform the checks. 
        #}
        {% set boxFooter = block('box_footer') %}
        {% if boxFooter is not empty %}
            <div class=\"card-footer\">{{ boxFooter|raw }}</div>
        {% endif %}
    {% endif %}
</div>
{% if block('box_after') is defined %}{{ block('box_after') }}{% endif %}
", "@AdminLTE/Widgets/box-widget.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/bundles/AdminLTEBundle/Widgets/box-widget.html.twig");
    }
}
