English
Spanish
French
0
Notifications
0 Non lues
Aucune notification
Voir toutes
Aucune nouvelle notification
Raccourcis
Tableau de bord
Profil
Paramètres
Voir toutes les apps
Utilisateur
Utilisateur
Profil
Messages
25
Paramètres
Solde
$47.12
Support
Se déconnecter
Dashboard
Dashboard
Éditer dashboard/liste_utilisateurs.php
<?= $this->extend('dashboard/layout') ?> <?= $this->section('content') ?> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title">Gestion des utilisateurs</h4> </div> <div class="card-body"> <?php if (session()->getFlashdata('success')): ?> <div class="alert alert-success"><?= session()->getFlashdata('success') ?></div> <?php endif; ?> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>Nom</th> <th>Email</th> <th>Type</th> <th>Statut</th> <th>Rôle actuel</th> <th>Changer rôle</th> </tr> </thead> <tbody> <?php foreach ($utilisateurs as $user): ?> <tr> <td><?= esc($user['nom']) ?></td> <td><?= esc($user['email']) ?></td> <td><?= esc($user['type_user']) ?></td> <td><?= esc($user['status']) ?></td> <td><?= esc($user['nom_role'] ?? 'Aucun') ?></td> <td> <form method="post" action="/dashboard/modifier-role" class="d-flex gap-2"> <input type="hidden" name="user_id" value="<?= $user['id'] ?>"> <select name="role_id" class="form-select form-select-sm" required> <?php foreach ($roles as $role): ?> <option value="<?= $role['id'] ?>" <?= ($user['role_id'] == $role['id']) ? 'selected' : '' ?>> <?= esc($role['nom_role']) ?> </option> <?php endforeach; ?> </select> <button type="submit" class="btn btn-primary btn-sm">Enregistrer</button> </form> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <?= $this->endSection() ?>
Annuler
Enregistrer
Switcher
Theme Styles
Theme Colors
Theme Color Mode:
Light
Dark
Menu Colors: