<section class="hero"><div><small>Administration</small><h2>Utilisateurs</h2><p>Gérez les comptes ayant accès au CDA.</p></div><button class="primary">+ Nouvel utilisateur</button></section>
<section class="panel"><table><thead><tr><th>Utilisateur</th><th>E-mail</th><th>Statut</th><th>Dernière connexion</th></tr></thead><tbody><?php foreach($users as $item):?><tr><td><div class="table-user"><div class="avatar"><?=htmlspecialchars(mb_strtoupper(mb_substr($item['prenom'],0,1).mb_substr($item['nom'],0,1)))?></div><strong><?=htmlspecialchars($item['prenom'].' '.$item['nom'])?></strong></div></td><td><?=htmlspecialchars($item['email'])?></td><td><span class="status"><?=htmlspecialchars(ucfirst($item['statut']))?></span></td><td><?=htmlspecialchars($item['derniere_connexion_at']??'Jamais')?></td></tr><?php endforeach;?></tbody></table></section>