<?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;

/* messages/read.html.twig */
class __TwigTemplate_d40ac89a932b1f72bec812c6e615544b 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->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_content' => [$this, 'block_page_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 15
        return $this->load(($context["extendedTemplate"] ?? null), 15);
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 1), "get", ["_application"], "method", false, false, false, 1) == 0)) {
            // line 2
            $context["extendedTemplate"] = "@AdminLTE/layout/mesodd-layout.html.twig";
        }
        // line 4
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 4), "get", ["_application"], "method", false, false, false, 4) == 1)) {
            // line 5
            if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, true, false, 5), "get", ["_commune"], "method", true, true, false, 5)) {
                // line 6
                $context["extendedTemplate"] = "@AdminLTE/layout/communeodd-layout.html.twig";
            } else {
                // line 8
                $context["extendedTemplate"] = "@AdminLTE/layout/suiodd-layout.html.twig";
            }
        }
        // line 11
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 11), "get", ["_application"], "method", false, false, false, 11) == 2)) {
            // line 12
            $context["extendedTemplate"] = "@AdminLTE/layout/cfgodd-layout.html.twig";
        }
        // line 15
        yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 17
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 18
        yield "\t";
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("message.title", [], "messages");
        yield from [];
    }

    // line 20
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 21
        yield "        <div class=\"row\">
          <div class=\"col-md-3\">
            <a href=\"";
        // line 23
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("message.write");
        yield "\" class=\"btn btn-primary btn-block mb-3\">Nouveau</a>
            <div class=\"card\">
\t<div class=\"card-header\">
\t\t<h3 class=\"card-title\">Dossiers</h3>
\t</div>
\t<div class=\"card-body p-0\">
\t\t<ul class=\"nav nav-pills flex-column\">
\t\t\t<li class=\"nav-item\">
\t\t\t\t<a href=\"";
        // line 31
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("messages");
        yield "\" class=\"nav-link\">
\t\t\t\t\t<i class=\"fas fa-inbox\"></i>
\t\t\t\t\t";
        // line 33
        yield (((($context["etat"] ?? null) == "sent")) ? ("") : ("<b>"));
        yield " Boîte de réception";
        yield (((($context["etat"] ?? null) == "sent")) ? ("") : ("</b>"));
        yield "
\t\t\t\t\t<span class=\"badge bg-primary float-right\">";
        // line 34
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["nonlus"] ?? null), "html", null, true);
        yield "</span>
\t\t\t\t</a>
\t\t\t</li>
\t\t\t<li class=\"nav-item\">
\t\t\t\t<a href=\"";
        // line 38
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("messages_envoyes");
        yield "\" class=\"nav-link\">
\t\t\t\t\t<i class=\"far fa-envelope\"></i>
\t\t\t\t\t";
        // line 40
        yield (((($context["etat"] ?? null) == "sent")) ? ("<b>") : (""));
        yield " Elements envoyés ";
        yield (((($context["etat"] ?? null) == "sent")) ? ("</b>") : (""));
        yield "
\t\t\t\t</a>
\t\t\t</li>
\t\t</ul>
\t</div>
\t<!-- /.card-body -->
</div>
          </div>
          <!-- /.col -->
        <div class=\"col-md-9\">
          <div class=\"card card-primary card-outline\">
            <!-- /.card-header -->
            <div class=\"card-body p-0\">
              <div class=\"mailbox-read-info\">
                <h5>";
        // line 54
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["message"] ?? null), "title", [], "any", false, false, false, 54), "html", null, true);
        yield "</h5>
                <h6>De: ";
        // line 55
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["message"] ?? null), "sender", [], "any", false, false, false, 55), "familyName", [], "any", false, false, false, 55), "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["message"] ?? null), "sender", [], "any", false, false, false, 55), "givenName", [], "any", false, false, false, 55), "html", null, true);
        yield "
                  <span class=\"mailbox-read-time float-right\">";
        // line 56
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["message"] ?? null), "createAt", [], "any", false, false, false, 56), "d.m.Y H:i"), "html", null, true);
        yield "</span></h6>
              </div>
              <!-- /.mailbox-read-info -->
              <!-- /.mailbox-controls -->
              <div class=\"mailbox-read-message\">
                ";
        // line 61
        yield CoreExtension::getAttribute($this->env, $this->source, ($context["message"] ?? null), "contenu", [], "any", false, false, false, 61);
        yield "
              </div>
              <!-- /.mailbox-read-message -->
            </div>
            <!-- /.card-body -->
            
            <!-- /.card-footer -->
            ";
        // line 68
        if ((($context["etat"] ?? null) == "receive")) {
            // line 69
            yield "            <div class=\"card-footer\">
              <div class=\"float-right\">
                <a href=\"";
            // line 71
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("message.write", ["id" => CoreExtension::getAttribute($this->env, $this->source, ($context["message"] ?? null), "id", [], "any", false, false, false, 71)]), "html", null, true);
            yield "\"> <button type=\"button\" class=\"btn btn-default\"><i class=\"fas fa-reply\"></i> Répondre</button></a>
              </div>
            </div>
            ";
        }
        // line 75
        yield "            <!-- /.card-footer -->
          </div>
          <!-- /.card -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
   ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  191 => 75,  184 => 71,  180 => 69,  178 => 68,  168 => 61,  160 => 56,  154 => 55,  150 => 54,  131 => 40,  126 => 38,  119 => 34,  113 => 33,  108 => 31,  97 => 23,  93 => 21,  86 => 20,  80 => 18,  73 => 17,  69 => 15,  66 => 12,  64 => 11,  60 => 8,  57 => 6,  55 => 5,  53 => 4,  50 => 2,  48 => 1,  41 => 15,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "messages/read.html.twig", "/var/www/html/templates/messages/read.html.twig");
    }
}
