<?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/infobox-widget.html.twig */
class __TwigTemplate_1322c8fcafa315371b4c2a6a3206592a 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/infobox-widget.html.twig"));

        // line 1
        if (        $this->unwrap()->hasBlock("box_before", $context, $blocks)) {
            yield from             $this->unwrap()->yieldBlock("box_before", $context, $blocks);
        }
        // line 2
        yield "<div class=\"info-box";
        if (array_key_exists("solid", $context)) {
            yield " bg-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["solid"]) || array_key_exists("solid", $context) ? $context["solid"] : (function () { throw new RuntimeError('Variable "solid" does not exist.', 2, $this->source); })()), "html", null, true);
        }
        yield "\">
    <span class=\"info-box-icon";
        // line 3
        if (array_key_exists("color", $context)) {
            yield " bg-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 3, $this->source); })()), "html", null, true);
        }
        yield " elevation-1\"><i class=\"";
        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); })()), "info-circle")) : ("info-circle")), "html", null, true);
        yield "\"></i></span>
    <div class=\"info-box-content\">
        <span class=\"info-box-text\">
            ";
        // line 6
        yield from         $this->unwrap()->yieldBlock("box_text", $context, $blocks);
        yield "
        </span>
        <span class=\"info-box-number\">
            ";
        // line 9
        if (        $this->unwrap()->hasBlock("box_number", $context, $blocks)) {
            // line 10
            yield "                ";
            yield from             $this->unwrap()->yieldBlock("box_number", $context, $blocks);
            yield "
            ";
        }
        // line 12
        yield "        </span>
        <!-- The progress section is optional -->
        ";
        // line 14
        if (array_key_exists("progress", $context)) {
            // line 15
            yield "        <div class=\"progress\">
            <div class=\"progress-bar\" style=\"width: ";
            // line 16
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["progress"]) || array_key_exists("progress", $context) ? $context["progress"] : (function () { throw new RuntimeError('Variable "progress" does not exist.', 16, $this->source); })()), "html", null, true);
            yield "%\"></div>
        </div>
        ";
        }
        // line 19
        yield "        ";
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ((array_key_exists("progress", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["progress"]) || array_key_exists("progress", $context) ? $context["progress"] : (function () { throw new RuntimeError('Variable "progress" does not exist.', 19, $this->source); })()),         $this->unwrap()->renderBlock("progress_description", $context, $blocks))) : (        $this->unwrap()->renderBlock("progress_description", $context, $blocks)))) > 0)) {
            // line 20
            yield "        <span class=\"progress-description\">
        ";
            // line 21
            yield from             $this->unwrap()->yieldBlock("progress_description", $context, $blocks);
            yield "
        </span>
        ";
        }
        // line 24
        yield "    </div><!-- /.info-box-content -->
</div><!-- /.info-box -->
";
        // line 26
        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/infobox-widget.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  113 => 26,  109 => 24,  103 => 21,  100 => 20,  97 => 19,  91 => 16,  88 => 15,  86 => 14,  82 => 12,  76 => 10,  74 => 9,  68 => 6,  57 => 3,  49 => 2,  45 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if block('box_before') is defined %}{{ block('box_before') }}{% endif %}
<div class=\"info-box{% if solid is defined %} bg-{{ solid }}{% endif %}\">
    <span class=\"info-box-icon{% if color is defined %} bg-{{ color }}{% endif %} elevation-1\"><i class=\"{{ icon|default('info-circle') }}\"></i></span>
    <div class=\"info-box-content\">
        <span class=\"info-box-text\">
            {{ block('box_text') }}
        </span>
        <span class=\"info-box-number\">
            {% if block('box_number') is defined %}
                {{ block('box_number') }}
            {% endif %}
        </span>
        <!-- The progress section is optional -->
        {% if progress is defined %}
        <div class=\"progress\">
            <div class=\"progress-bar\" style=\"width: {{ progress }}%\"></div>
        </div>
        {% endif %}
        {% if progress|default(block('progress_description'))|length > 0 %}
        <span class=\"progress-description\">
        {{ block('progress_description') }}
        </span>
        {% endif %}
    </div><!-- /.info-box-content -->
</div><!-- /.info-box -->
{% if block('box_after') is defined %}{{ block('box_after') }}{% endif %}
", "@AdminLTE/Widgets/infobox-widget.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/bundles/AdminLTEBundle/Widgets/infobox-widget.html.twig");
    }
}
