<?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;

/* notification/flashes.html.twig */
class __TwigTemplate_9adba25cd383b5fb72705825d0a7bed58f217e011049c38a13ef80100f20588a 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;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "notification/flashes.html.twig"));

        // line 1
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["flashes"]) || array_key_exists("flashes", $context) ? $context["flashes"] : (function () { throw new RuntimeError('Variable "flashes" does not exist.', 1, $this->source); })()));
        foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
            // line 2
            echo "    ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($context["messages"]);
            foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                // line 3
                echo "        ";
                if (($context["type"] == "error")) {
                    // line 4
                    echo "            ";
                    $context["color"] = "danger";
                    // line 5
                    echo "            ";
                    $context["icon"] = "exclamation-circle";
                    // line 6
                    echo "        ";
                } elseif (($context["type"] == "warning")) {
                    // line 7
                    echo "            ";
                    $context["color"] = "warning";
                    // line 8
                    echo "            ";
                    $context["icon"] = "exclamation-triangle";
                    // line 9
                    echo "        ";
                } else {
                    // line 10
                    echo "            ";
                    $context["color"] = "success";
                    // line 11
                    echo "            ";
                    $context["icon"] = "check-circle";
                    // line 12
                    echo "        ";
                }
                // line 13
                echo "        <div class=\"alert alert-";
                echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 13, $this->source); })()), "html", null, true);
                echo " alert-dismissible fade show\" role=\"alert\">
            <i class=\"fas fa-";
                // line 14
                echo twig_escape_filter($this->env, (isset($context["icon"]) || array_key_exists("icon", $context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.', 14, $this->source); })()), "html", null, true);
                echo "\"></i>&nbsp;";
                echo twig_escape_filter($this->env, $context["message"], "html", null, true);
                echo "
            <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
                <span aria-hidden=\"true\">&times;</span>
            </button>
        </div>
    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 21
        echo "
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "notification/flashes.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  102 => 21,  84 => 14,  79 => 13,  76 => 12,  73 => 11,  70 => 10,  67 => 9,  64 => 8,  61 => 7,  58 => 6,  55 => 5,  52 => 4,  49 => 3,  44 => 2,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% for type, messages in flashes %}
    {% for message in messages %}
        {% if type == 'error' %}
            {% set color = 'danger' %}
            {% set icon = 'exclamation-circle' %}
        {% elseif type == 'warning' %}
            {% set color = 'warning' %}
            {% set icon = 'exclamation-triangle' %}
        {% else %}
            {% set color = 'success' %}
            {% set icon = 'check-circle' %}
        {% endif %}
        <div class=\"alert alert-{{ color }} alert-dismissible fade show\" role=\"alert\">
            <i class=\"fas fa-{{ icon }}\"></i>&nbsp;{{ message }}
            <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
                <span aria-hidden=\"true\">&times;</span>
            </button>
        </div>
    {% endfor %}
{% endfor %}

", "notification/flashes.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\notification\\flashes.html.twig");
    }
}
