<?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;
/* content/email/reception_mail_page.html.twig */
class __TwigTemplate_7f6fdc8e70f1877b4fba9ec07ff0e5a5 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_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
echo "<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 Reception</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
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("envoie_mail");
echo "\">
<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
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "user", [], "any", false, false, false, 50), "emailsRecieved", [], "any", false, false, false, 50));
foreach ($context['_seq'] as $context["_key"] => $context["mail"]) {
// line 51
echo " <tr>
";
// line 54
if (twig_get_attribute($this->env, $this->source, $context["mail"], "isRead", [], "any", false, false, false, 54)) {
// line 55
echo " <td>
<a href=\"";
// line 56
echo twig_escape_filter($this->env, $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.', 56, $this->source); })())]), "html", null, true);
echo "\" class=\"_link\">
<i class=\"bi bi-check \" style=\"font-size: 2em; color: green;\"></i>
</a>
</td>
";
} else {
// line 62
echo " <td>
<a href=\"";
// line 63
echo twig_escape_filter($this->env, $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.', 63, $this->source); })())]), "html", null, true);
echo "\" class=\"_link\">
<i class=\"bi bi-envelope-fill \" style=\"font-size: 2em; color: red;\"></i>
</a>
</td>
";
}
// line 69
echo "
<td> <a href=\"";
// line 73
echo twig_escape_filter($this->env, $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.', 73, $this->source); })())]), "html", null, true);
echo "\" class=\"_link\">
";
// line 74
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["mail"], "userPseudo", [], "any", false, false, false, 74), "html", null, true);
echo "
</a></td>
<td>
<a href=\"";
// line 77
echo twig_escape_filter($this->env, $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.', 77, $this->source); })())]), "html", null, true);
echo "\" class=\"_link\">
";
// line 78
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["mail"], "title", [], "any", false, false, false, 78), "html", null, true);
echo "
</a>
</td>
<td><a href=\"";
// line 82
echo twig_escape_filter($this->env, $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.', 82, $this->source); })())]), "html", null, true);
echo "\" class=\"_link\">
";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, $context["mail"], "date", [], "any", false, false, false, 83), "medium", "medium", "", null, "gregorian", "fr"), "html", null, true);
echo "
</a></td>
</tr>
";
// line 89
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 89, $this->source); })()) + 1);
// line 90
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mail'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
echo "
</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);
}
public function getTemplateName()
{
return "content/email/reception_mail_page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 182 => 91, 176 => 90, 174 => 89, 165 => 83, 161 => 82, 154 => 78, 150 => 77, 144 => 74, 140 => 73, 134 => 69, 125 => 63, 122 => 62, 113 => 56, 110 => 55, 108 => 54, 103 => 51, 98 => 50, 96 => 49, 54 => 10, 43 => 1,);
}
public function getSourceContext()
{
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 Reception</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/voyance-telephone.eu/templates/content/email/reception_mail_page.html.twig");
}
}