<?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/Navbar/messages.html.twig */
class __TwigTemplate_0b37c9026c175bf9aa7c5ec3563a4f11 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/Navbar/messages.html.twig"));

        // line 1
        $macros["macro"] = $this->macros["macro"] = $this->load("@AdminLTE/Macros/default.html.twig", 1)->unwrap();
        // line 2
        yield "<!-- Messages Dropdown Menu -->
<li class=\"nav-item dropdown\">
    <a class=\"nav-link\" data-toggle=\"dropdown\" href=\"#\">
        Messages <i class=\"far fa-envelope\"></i>
        <span class=\"badge badge-danger navbar-badge\">";
        // line 6
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 6, $this->source); })()), "html", null, true);
        yield "</span>
    </a>
    <div class=\"dropdown-menu dropdown-menu-lg dropdown-menu-right\">
        ";
        // line 9
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 9, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["msg"]) {
            // line 10
            yield "        <a href=\"";
            yield "\" class=\"dropdown-item\">
            <!-- Message Start -->
            <div class=\"media\">
                <div class=\"media-body\">
                <h3 class=\"dropdown-item-title\">
                  ";
            // line 15
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["msg"], "sender", [], "any", false, false, false, 15), "familyName", [], "any", false, false, false, 15), "html", null, true);
            yield " ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["msg"], "sender", [], "any", false, false, false, 15), "givenName", [], "any", false, false, false, 15), "html", null, true);
            yield "
                </h3>
                <p class=\"text-sm\">";
            // line 17
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["msg"], "title", [], "any", false, false, false, 17), "html", null, true);
            yield "</p>
                <p class=\"text-sm text-muted\"><i class=\"far fa-clock mr-1\"></i> ";
            // line 18
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["msg"], "createAt", [], "any", false, false, false, 18), "d.m.Y H:i"), "html", null, true);
            yield "</p>
              </div>
            </div>
            <!-- Message End -->
        </a>
        <div class=\"dropdown-divider\"></div>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['msg'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 25
        yield "
        <a href=\"";
        // line 26
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("messages");
        yield "\" class=\"dropdown-item dropdown-footer\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("View all", [], "AdminLTEBundle"), "html", null, true);
        yield "</a>
    </div>
</li>";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  98 => 26,  95 => 25,  82 => 18,  78 => 17,  71 => 15,  63 => 10,  59 => 9,  53 => 6,  47 => 2,  45 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% import \"@AdminLTE/Macros/default.html.twig\" as macro %}
<!-- Messages Dropdown Menu -->
<li class=\"nav-item dropdown\">
    <a class=\"nav-link\" data-toggle=\"dropdown\" href=\"#\">
        Messages <i class=\"far fa-envelope\"></i>
        <span class=\"badge badge-danger navbar-badge\">{{ total }}</span>
    </a>
    <div class=\"dropdown-menu dropdown-menu-lg dropdown-menu-right\">
        {% for msg in messages %}
        <a href=\"{#{ path('adminlte_message'|route_alias, {'id': msg.identifier}) }#}\" class=\"dropdown-item\">
            <!-- Message Start -->
            <div class=\"media\">
                <div class=\"media-body\">
                <h3 class=\"dropdown-item-title\">
                  {{ msg.sender.familyName }} {{ msg.sender.givenName }}
                </h3>
                <p class=\"text-sm\">{{ msg.title }}</p>
                <p class=\"text-sm text-muted\"><i class=\"far fa-clock mr-1\"></i> {{ msg.createAt|date('d.m.Y H:i') }}</p>
              </div>
            </div>
            <!-- Message End -->
        </a>
        <div class=\"dropdown-divider\"></div>
        {% endfor %}

        <a href=\"{{ path('messages') }}\" class=\"dropdown-item dropdown-footer\">{{'View all'|trans({}, 'AdminLTEBundle')}}</a>
    </div>
</li>", "@AdminLTE/Navbar/messages.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/bundles/AdminLTEBundle/Navbar/messages.html.twig");
    }
}
