<?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;
/* content/email/reception_mail_page.html.twig */
class __TwigTemplate_2ef22b220464b78e468929e51095e69e 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/email/reception_mail_page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/email/reception_mail_page.html.twig"));
// line 1
yield "<header class=\"page-header page-header-compact page-header-light border-bottom bg-white mb-4 positionToHeader\">
<div class=\"container-fluid px-4\">
<div class=\"page-header-content\">
<div class=\"row align-items-center justify-content-between pt-3\">
<div class=\"col-auto\">
<h1 class=\"text-center text-uppercase \"><i class=\"bi bi-mailbox\"></i> Boîte de Réception</h1>
<p class=\"text-center\">Consulter vos message.</p>
</div>
<div class=\"col-12 col-xl-auto mb-3 \">
<a class=\"btn btn-sm btn-primary \" href=\"";
// line 10
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("envoie_mail");
yield "\">
<i class=\"bi bi-send-fill\"></i>
Boîte d'envoi
</a>
</div>
</div>
</div>
</div>
</header>
<div class=\"container-xl px-4 mt-2 mb-4 h-100\">
<div class=\"card mb-4\">
<div class=\"card-header \">Message reçu</div>
<div class=\"card-body text-center \">
<table id=\"datatablesSimple\">
<thead>
<tr>
<th></th>
<th>De</th>
<th>Sujet</th>
<th>Date</th>
</tr>
</thead>
<tfoot>
<tr>
<th></th>
<th>De</th>
<th>Sujet</th>
<th>Date</th>
</tr>
</tfoot>
<tbody class=\"text-dark \">
";
// line 49
$context["i"] = 0;
// line 50
yield "
";
// line 51
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, false, 51), "emailsRecieved", [], "any", false, false, false, 51));
foreach ($context['_seq'] as $context["_key"] => $context["mail"]) {
// line 52
yield " <tr>
";
// line 55
if (CoreExtension::getAttribute($this->env, $this->source, $context["mail"], "isRead", [], "any", false, false, false, 55)) {
// line 56
yield " <td>
<a href=\"";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_receivedMail", ["id" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 57, $this->source); })())]), "html", null, true);
yield "\" class=\"_link\">
<i class=\"bi bi-check \" style=\"font-size: 2em; color: green;\"></i>
</a>
</td>
";
} else {
// line 63
yield " <td>
<a href=\"";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_receivedMail", ["id" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 64, $this->source); })())]), "html", null, true);
yield "\" class=\"_link\">
<i class=\"bi bi-envelope-fill \" style=\"font-size: 2em; color: red;\"></i>
</a>
</td>
";
}
// line 70
yield "
<td> <a href=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_receivedMail", ["id" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 74, $this->source); })())]), "html", null, true);
yield "\" class=\"_link\">
";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["mail"], "userPseudo", [], "any", false, false, false, 75), "html", null, true);
yield "
</a></td>
<td>
<a href=\"";
// line 78
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_receivedMail", ["id" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 78, $this->source); })())]), "html", null, true);
yield "\" class=\"_link\">
";
// line 79
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["mail"], "title", [], "any", false, false, false, 79), "html", null, true);
yield "
</a>
</td>
<td><a href=\"";
// line 83
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_receivedMail", ["id" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 83, $this->source); })())]), "html", null, true);
yield "\" class=\"_link\">
";
// line 84
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["mail"], "date", [], "any", false, false, false, 84), "medium", "medium", "", null, "gregorian", "fr"), "html", null, true);
yield "
</a></td>
</tr>
";
// line 90
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 90, $this->source); })()) + 1);
// line 91
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['mail'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
yield "
</tbody>
</table>
</div>
</div>
</div>
<script src=\"https://cdn.jsdelivr.net/npm/simple-datatables@latest\" crossorigin=\"anonymous\"></script>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "content/email/reception_mail_page.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 189 => 92, 183 => 91, 181 => 90, 172 => 84, 168 => 83, 161 => 79, 157 => 78, 151 => 75, 147 => 74, 141 => 70, 132 => 64, 129 => 63, 120 => 57, 117 => 56, 115 => 55, 110 => 52, 106 => 51, 103 => 50, 101 => 49, 59 => 10, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<header class=\"page-header page-header-compact page-header-light border-bottom bg-white mb-4 positionToHeader\">
<div class=\"container-fluid px-4\">
<div class=\"page-header-content\">
<div class=\"row align-items-center justify-content-between pt-3\">
<div class=\"col-auto\">
<h1 class=\"text-center text-uppercase \"><i class=\"bi bi-mailbox\"></i> Boîte de Réception</h1>
<p class=\"text-center\">Consulter vos message.</p>
</div>
<div class=\"col-12 col-xl-auto mb-3 \">
<a class=\"btn btn-sm btn-primary \" href=\"{{path('envoie_mail')}}\">
<i class=\"bi bi-send-fill\"></i>
Boîte d'envoi
</a>
</div>
</div>
</div>
</div>
</header>
<div class=\"container-xl px-4 mt-2 mb-4 h-100\">
<div class=\"card mb-4\">
<div class=\"card-header \">Message reçu</div>
<div class=\"card-body text-center \">
<table id=\"datatablesSimple\">
<thead>
<tr>
<th></th>
<th>De</th>
<th>Sujet</th>
<th>Date</th>
</tr>
</thead>
<tfoot>
<tr>
<th></th>
<th>De</th>
<th>Sujet</th>
<th>Date</th>
</tr>
</tfoot>
<tbody class=\"text-dark \">
{% set i = 0%}
{% for mail in app.user.emailsRecieved %}
<tr>
{% if mail.isRead %}
<td>
<a href=\"{{path('app_receivedMail', {id : i})}}\" class=\"_link\">
<i class=\"bi bi-check \" style=\"font-size: 2em; color: green;\"></i>
</a>
</td>
{% else %}
<td>
<a href=\"{{path('app_receivedMail', {id : i})}}\" class=\"_link\">
<i class=\"bi bi-envelope-fill \" style=\"font-size: 2em; color: red;\"></i>
</a>
</td>
{% endif %}
<td> <a href=\"{{path('app_receivedMail', {id : i})}}\" class=\"_link\">
{{mail.userPseudo}}
</a></td>
<td>
<a href=\"{{path('app_receivedMail', {id : i})}}\" class=\"_link\">
{{mail.title}}
</a>
</td>
<td><a href=\"{{path('app_receivedMail', {id : i})}}\" class=\"_link\">
{{mail.date|format_datetime(locale='fr')}}
</a></td>
</tr>
{% set i = i + 1 %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<script src=\"https://cdn.jsdelivr.net/npm/simple-datatables@latest\" crossorigin=\"anonymous\"></script>
", "content/email/reception_mail_page.html.twig", "/home/clients/04fa2f0875cd0ec80d39116efaaa4c72/sites/demo.media-technologies.fr/templates/content/email/reception_mail_page.html.twig");
}
}