{% extends "base.html.twig" %}

{% block pp %}{{pp}}{% endblock %}

{% block css %}{{css}}{% endblock %}

{% block title %}Messagerie - HearthTrack{% endblock %}

{% block user %}{{user}} - {{role}}{% endblock %}

{% block body %}
<div class="container-fluid px-4">
    <h1 class="mt-4">Messagerie</h1>
        <ol class="breadcrumb mb-4">
            <li class="breadcrumb-item"><a href="home.html">Accueil</a></li>
            <li class="breadcrumb-item active">Messagerie</li>
        </ol>
                             <div class="card-body">
                            <div class="datatable-container">                                
                            	<table id="datatablesSimple" class="datatable-table">
                                    <thead>
                                        <tr>
                                            <th>Lu</th>
                                            <th>De:</th>
                                            <th>Description</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    {% for mail in mails %}
                                        <tr>
                                            <td><img src="/assets/img/verif/{{mail.lu}}.png" width="25px" height="25px"></td>
                                            <td>{{mail.nom}} {{mail.prenom}}</td>
                                            <td><a href="#">{{mail.message}}</a></td>
                                        </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                </div>
          </div>
    </div>
{% endblock %}