var/cache/dev/twig/9b/9b62039327b3fd96bf3aab1c5915af7f.php line 107

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* content/email/reception_mail_page.html.twig */
  16. class __TwigTemplate_2ef22b220464b78e468929e51095e69e extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/email/reception_mail_page.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/email/reception_mail_page.html.twig"));
  38.         // line 1
  39.         yield "<header class=\"page-header page-header-compact page-header-light border-bottom bg-white mb-4 positionToHeader\">
  40.     <div class=\"container-fluid px-4\">
  41.         <div class=\"page-header-content\">
  42.             <div class=\"row align-items-center justify-content-between pt-3\">
  43.                 <div class=\"col-auto\">
  44.                     <h1 class=\"text-center text-uppercase \"><i class=\"bi bi-mailbox\"></i> Boîte de Réception</h1>
  45.                     <p class=\"text-center\">Consulter vos message.</p>
  46.                 </div>
  47.                 <div class=\"col-12 col-xl-auto mb-3 \">
  48.                     <a class=\"btn btn-sm btn-primary \" href=\"";
  49.         // line 10
  50.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("envoie_mail");
  51.         yield "\">
  52.                         <i class=\"bi bi-send-fill\"></i> &nbsp;
  53.                         Boîte d'envoi
  54.                     </a>
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     </div>
  59. </header>
  60. <div class=\"container-xl px-4 mt-2 mb-4 h-100\">
  61.     <div class=\"card mb-4\">
  62.         <div class=\"card-header \">Message reçu</div>
  63.         <div class=\"card-body text-center \">
  64.             <table id=\"datatablesSimple\">
  65.                 <thead>
  66.                     <tr>
  67.                         <th></th>
  68.                         <th>De</th>
  69.                         <th>Sujet</th>
  70.                         <th>Date</th>
  71.                     </tr>
  72.                 </thead>
  73.                 <tfoot>
  74.                     <tr>
  75.                         <th></th>
  76.                         <th>De</th>
  77.                         <th>Sujet</th>
  78.                         <th>Date</th>
  79.                     </tr>
  80.                 </tfoot>
  81.                 <tbody class=\"text-dark \">
  82.                     ";
  83.         // line 49
  84.         $context["i"] = 0;
  85.         // line 50
  86.         yield "                
  87.                     ";
  88.         // line 51
  89.         $context['_parent'] = $context;
  90.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse51), "emailsRecieved", [], "any"falsefalsefalse51));
  91.         foreach ($context['_seq'] as $context["_key"] => $context["mail"]) {
  92.             // line 52
  93.             yield "                    <tr>
  94.                   
  95.                         ";
  96.             // line 55
  97.             if (CoreExtension::getAttribute($this->env$this->source$context["mail"], "isRead", [], "any"falsefalsefalse55)) {
  98.                 // line 56
  99.                 yield "                        <td>
  100.                             <a href=\"";
  101.                 // line 57
  102.                 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"nulltrue);
  103.                 yield "\" class=\"_link\">
  104.                                 <i class=\"bi bi-check \" style=\"font-size: 2em; color: green;\"></i>
  105.                             </a>
  106.                         </td>
  107.                         ";
  108.             } else {
  109.                 // line 63
  110.                 yield "                        <td>
  111.                             <a href=\"";
  112.                 // line 64
  113.                 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"nulltrue);
  114.                 yield "\" class=\"_link\">
  115.                                 <i class=\"bi bi-envelope-fill \" style=\"font-size: 2em; color: red;\"></i>
  116.                             </a>
  117.                         </td>
  118.                         ";
  119.             }
  120.             // line 70
  121.             yield "
  122.                         <td> <a href=\"";
  123.             // line 74
  124.             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"nulltrue);
  125.             yield "\" class=\"_link\">
  126.                                 ";
  127.             // line 75
  128.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["mail"], "userPseudo", [], "any"falsefalsefalse75), "html"nulltrue);
  129.             yield "
  130.                             </a></td>
  131.                         <td>
  132.                             <a href=\"";
  133.             // line 78
  134.             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"nulltrue);
  135.             yield "\" class=\"_link\">
  136.                                 ";
  137.             // line 79
  138.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["mail"], "title", [], "any"falsefalsefalse79), "html"nulltrue);
  139.             yield "
  140.                             </a>
  141.                         </td>
  142.                         <td><a href=\"";
  143.             // line 83
  144.             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"nulltrue);
  145.             yield "\" class=\"_link\">
  146.                                 ";
  147.             // line 84
  148.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envCoreExtension::getAttribute($this->env$this->source$context["mail"], "date", [], "any"falsefalsefalse84), "medium""medium"""null"gregorian""fr"), "html"nulltrue);
  149.             yield "
  150.                             </a></td>
  151.                     </tr>
  152.                     ";
  153.             // line 90
  154.             $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);
  155.             // line 91
  156.             yield "                    ";
  157.         }
  158.         $_parent $context['_parent'];
  159.         unset($context['_seq'], $context['_key'], $context['mail'], $context['_parent']);
  160.         $context array_intersect_key($context$_parent) + $_parent;
  161.         // line 92
  162.         yield "
  163.                 </tbody>
  164.             </table>
  165.         </div>
  166.     </div>
  167. </div>
  168. <script src=\"https://cdn.jsdelivr.net/npm/simple-datatables@latest\" crossorigin=\"anonymous\"></script>
  169. ";
  170.         
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172.         
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174.         yield from [];
  175.     }
  176.     /**
  177.      * @codeCoverageIgnore
  178.      */
  179.     public function getTemplateName(): string
  180.     {
  181.         return "content/email/reception_mail_page.html.twig";
  182.     }
  183.     /**
  184.      * @codeCoverageIgnore
  185.      */
  186.     public function isTraitable(): bool
  187.     {
  188.         return false;
  189.     }
  190.     /**
  191.      * @codeCoverageIgnore
  192.      */
  193.     public function getDebugInfo(): array
  194.     {
  195.         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,);
  196.     }
  197.     public function getSourceContext(): Source
  198.     {
  199.         return new Source("<header class=\"page-header page-header-compact page-header-light border-bottom bg-white mb-4 positionToHeader\">
  200.     <div class=\"container-fluid px-4\">
  201.         <div class=\"page-header-content\">
  202.             <div class=\"row align-items-center justify-content-between pt-3\">
  203.                 <div class=\"col-auto\">
  204.                     <h1 class=\"text-center text-uppercase \"><i class=\"bi bi-mailbox\"></i> Boîte de Réception</h1>
  205.                     <p class=\"text-center\">Consulter vos message.</p>
  206.                 </div>
  207.                 <div class=\"col-12 col-xl-auto mb-3 \">
  208.                     <a class=\"btn btn-sm btn-primary \" href=\"{{path('envoie_mail')}}\">
  209.                         <i class=\"bi bi-send-fill\"></i> &nbsp;
  210.                         Boîte d'envoi
  211.                     </a>
  212.                 </div>
  213.             </div>
  214.         </div>
  215.     </div>
  216. </header>
  217. <div class=\"container-xl px-4 mt-2 mb-4 h-100\">
  218.     <div class=\"card mb-4\">
  219.         <div class=\"card-header \">Message reçu</div>
  220.         <div class=\"card-body text-center \">
  221.             <table id=\"datatablesSimple\">
  222.                 <thead>
  223.                     <tr>
  224.                         <th></th>
  225.                         <th>De</th>
  226.                         <th>Sujet</th>
  227.                         <th>Date</th>
  228.                     </tr>
  229.                 </thead>
  230.                 <tfoot>
  231.                     <tr>
  232.                         <th></th>
  233.                         <th>De</th>
  234.                         <th>Sujet</th>
  235.                         <th>Date</th>
  236.                     </tr>
  237.                 </tfoot>
  238.                 <tbody class=\"text-dark \">
  239.                     {% set i = 0%}
  240.                 
  241.                     {% for mail in app.user.emailsRecieved %}
  242.                     <tr>
  243.                   
  244.                         {% if mail.isRead %}
  245.                         <td>
  246.                             <a href=\"{{path('app_receivedMail',  {id : i})}}\" class=\"_link\">
  247.                                 <i class=\"bi bi-check \" style=\"font-size: 2em; color: green;\"></i>
  248.                             </a>
  249.                         </td>
  250.                         {% else %}
  251.                         <td>
  252.                             <a href=\"{{path('app_receivedMail',  {id : i})}}\" class=\"_link\">
  253.                                 <i class=\"bi bi-envelope-fill \" style=\"font-size: 2em; color: red;\"></i>
  254.                             </a>
  255.                         </td>
  256.                         {% endif %}
  257.                         <td> <a href=\"{{path('app_receivedMail',  {id : i})}}\" class=\"_link\">
  258.                                 {{mail.userPseudo}}
  259.                             </a></td>
  260.                         <td>
  261.                             <a href=\"{{path('app_receivedMail',  {id : i})}}\" class=\"_link\">
  262.                                 {{mail.title}}
  263.                             </a>
  264.                         </td>
  265.                         <td><a href=\"{{path('app_receivedMail',  {id : i})}}\" class=\"_link\">
  266.                                 {{mail.date|format_datetime(locale='fr')}}
  267.                             </a></td>
  268.                     </tr>
  269.                     {% set i = i + 1 %}
  270.                     {% endfor %}
  271.                 </tbody>
  272.             </table>
  273.         </div>
  274.     </div>
  275. </div>
  276. <script src=\"https://cdn.jsdelivr.net/npm/simple-datatables@latest\" crossorigin=\"anonymous\"></script>
  277. ""content/email/reception_mail_page.html.twig""/home/clients/04fa2f0875cd0ec80d39116efaaa4c72/sites/demo.media-technologies.fr/templates/content/email/reception_mail_page.html.twig");
  278.     }
  279. }