var/cache/dev/twig/9f/9fc8a0b5c5c5cbe40389e25653d1f222.php line 100

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