<!doctype html>
<html lang="en">
    <head>
        <?php $title = "Role Details"; include('./partials/title-meta.php'); ?> <?php include('./partials/head-css.php'); ?>
    </head>

    <body>
        <!-- Begin page -->
        <div class="wrapper">
            <?php include('./partials/topbar.php'); ?> <?php include('./partials/sidenav.php'); ?>

            <!-- ============================================================== -->
            <!-- Start Main Content -->
            <!-- ============================================================== -->

            <div class="content-page">
                <div class="container-fluid">
                    <?php $subtitle = "Users"; $title = "Role Details"; include('./partials/page-title.php'); ?>

                    <div class="row">
                        <div class="col-md-4 col-lg-3">
                            <div class="card">
                                <div class="card-body d-flex flex-column justify-content-between">
                                    <div class="d-flex mb-4">
                                        <div class="flex-shrink-0">
                                            <div class="avatar-xl rounded bg-primary-subtle d-flex align-items-center justify-content-center">
                                                <i class="ti ti-shield-lock fs-24 text-primary"></i>
                                            </div>
                                        </div>
                                        <div class="ms-3">
                                            <h5 class="mb-1">Security Officer</h5>
                                            <p class="text-muted mb-0 fs-base">Handles platform safety and protocol reviews.</p>
                                        </div>
                                        <div class="ms-auto">
                                            <div class="dropdown">
                                                <a href="#" class="text-muted fs-xl" data-bs-toggle="dropdown">
                                                    <i class="ti ti-dots-vertical"></i>
                                                </a>
                                                <ul class="dropdown-menu dropdown-menu-end">
                                                    <li>
                                                        <a class="dropdown-item" href="#">
                                                            <i class="ti ti-eye me-2"></i>
                                                            View
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a class="dropdown-item text-danger" href="#">
                                                            <i class="ti ti-trash me-2"></i>
                                                            Remove
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>

                                    <ul class="list-unstyled mb-3">
                                        <li class="d-flex align-items-center mb-2">
                                            <i class="ti ti-check fs-lg text-success me-2"></i>
                                            Daily Risk Assessment
                                        </li>
                                        <li class="d-flex align-items-center mb-2">
                                            <i class="ti ti-check fs-lg text-success me-2"></i>
                                            Manage Security Logs
                                        </li>
                                        <li class="d-flex align-items-center mb-2">
                                            <i class="ti ti-check fs-lg text-success me-2"></i>
                                            Control Access Rights
                                        </li>
                                        <li class="d-flex align-items-center">
                                            <i class="ti ti-check fs-lg text-success me-2"></i>
                                            Emergency Protocols
                                        </li>
                                    </ul>

                                    <p class="mb-2 text-muted">Total 17 users</p>
                                    <div class="avatar-group avatar-group-sm mb-3">
                                        <div class="avatar">
                                            <img src="assets/images/users/user-7.jpg" alt="" class="rounded-circle avatar-sm" />
                                        </div>
                                        <div class="avatar">
                                            <img src="assets/images/users/user-8.jpg" alt="" class="rounded-circle avatar-sm" />
                                        </div>
                                        <div class="avatar">
                                            <img src="assets/images/users/user-9.jpg" alt="" class="rounded-circle avatar-sm" />
                                        </div>
                                        <div class="avatar">
                                            <img src="assets/images/users/user-10.jpg" alt="" class="rounded-circle avatar-sm" />
                                        </div>
                                    </div>

                                    <div class="d-flex justify-content-between align-items-center">
                                        <span class="text-muted fs-xs">
                                            <i class="ti ti-clock me-1"></i>
                                            Updated 1 hour ago
                                        </span>
                                        <a href="#" data-bs-toggle="modal" data-bs-target="#editRoleModal" class="btn btn-sm btn-outline-primary rounded-pill">Edit Role</a>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-8 col-lg-9">
                            <div data-table data-table-rows-per-page="8" class="card">
                                <div class="card-header border-light justify-content-between">
                                    <div class="d-flex gap-2">
                                        <div class="app-search">
                                            <input data-table-search type="search" class="form-control" placeholder="Search users..." />
                                            <i class="ti ti-search app-search-icon text-muted"></i>
                                        </div>
                                        <button data-table-delete-selected class="btn btn-danger d-none">Delete</button>
                                    </div>

                                    <div class="d-flex align-items-center gap-2">
                                        <span class="me-2 fw-semibold">Filter By:</span>

                                        <!-- Status Filter -->
                                        <div class="app-search">
                                            <select data-table-filter="status" class="form-select form-control my-1 my-md-0">
                                                <option value="All">Status</option>
                                                <option value="Active">Active</option>
                                                <option value="Inactive">Inactive</option>
                                                <option value="Suspended">Suspended</option>
                                            </select>
                                            <i class="ti ti-user-check app-search-icon text-muted"></i>
                                        </div>

                                        <!-- Records Per Page -->
                                        <div>
                                            <select data-table-set-rows-per-page class="form-select form-control my-1 my-md-0">
                                                <option value="5">5</option>
                                                <option value="10">10</option>
                                                <option value="15">15</option>
                                                <option value="20">20</option>
                                            </select>
                                        </div>

                                        <button type="button" data-bs-toggle="modal" data-bs-target="#addUserModal" class="btn btn-secondary">Add User</button>
                                    </div>
                                </div>

                                <div class="table-responsive">
                                    <table class="table table-custom table-centered table-select table-hover w-100 mb-0">
                                        <thead class="bg-light align-middle bg-opacity-25 thead-sm">
                                            <tr class="text-uppercase fs-xxs">
                                                <th class="ps-3" style="width: 1%">
                                                    <input data-table-select-all class="form-check-input form-check-input-light fs-14 mt-0" type="checkbox" />
                                                </th>
                                                <th data-table-sort>ID</th>
                                                <th data-table-sort="user">User</th>
                                                <th data-table-sort>Joined Date</th>
                                                <th data-table-sort data-column="status">Status</th>
                                                <th class="text-center">Actions</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <!-- Row 1 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR76129</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-1.jpg" class="img-fluid rounded-circle" alt="Elena Carter" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Elena Carter</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">elena@webcore.dev</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    19 Jul, 2025
                                                    <small class="text-muted">11:00 AM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-success-subtle text-success badge-label">Active</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 2 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR58647</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-2.jpg" class="img-fluid rounded-circle" alt="Jordan Smith" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Jordan Smith</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">jordan@mediaflow.com</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    21 Jul, 2025
                                                    <small class="text-muted">9:15 AM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-warning-subtle text-warning badge-label">Inactive</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 3 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR94715</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-3.jpg" class="img-fluid rounded-circle" alt="Lucas Brown" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Lucas Brown</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">lucas@intechlabs.com</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    20 Jul, 2025
                                                    <small class="text-muted">3:00 PM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-danger-subtle text-danger badge-label">Suspended</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 4 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR40289</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-4.jpg" class="img-fluid rounded-circle" alt="Sophia Green" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Sophia Green</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">sophia@skygrid.org</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    18 Jul, 2025
                                                    <small class="text-muted">10:30 AM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-success-subtle text-success badge-label">Active</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 5 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR23981</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-5.jpg" class="img-fluid rounded-circle" alt="Ethan Ross" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Ethan Ross</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">ethan@logico.io</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    17 Jul, 2025
                                                    <small class="text-muted">5:55 PM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-warning-subtle text-warning badge-label">Inactive</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 6 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR83742</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-6.jpg" class="img-fluid rounded-circle" alt="Zara Mitchell" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Zara Mitchell</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">zara@fusionui.com</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    22 Jul, 2025
                                                    <small class="text-muted">9:10 AM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-success-subtle text-success badge-label">Active</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 7 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR51268</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-7.jpg" class="img-fluid rounded-circle" alt="Benjamin Gray" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Benjamin Gray</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">benjamin@stackpulse.dev</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    20 Jul, 2025
                                                    <small class="text-muted">6:25 PM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-warning-subtle text-warning badge-label">Inactive</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 8 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR17456</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-8.jpg" class="img-fluid rounded-circle" alt="Ava Patel" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Ava Patel</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">ava@cleardash.io</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    23 Jul, 2025
                                                    <small class="text-muted">8:45 AM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-success-subtle text-success badge-label">Active</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 9 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR96421</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-9.jpg" class="img-fluid rounded-circle" alt="Mason Rivera" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Mason Rivera</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">mason@softmeta.app</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    21 Jul, 2025
                                                    <small class="text-muted">2:10 PM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-danger-subtle text-danger badge-label">Suspended</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>

                                            <!-- Row 10 -->
                                            <tr>
                                                <td class="ps-3">
                                                    <input class="form-check-input form-check-input-light fs-14 file-item-check mt-0" type="checkbox" />
                                                </td>
                                                <td>
                                                    <h5 class="m-0">
                                                        <a href="apps-users-profile.php" class="link-reset">#USR71539</a>
                                                    </h5>
                                                </td>
                                                <td>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <div class="avatar avatar-sm">
                                                            <img src="assets/images/users/user-10.jpg" class="img-fluid rounded-circle" alt="Chloe Walker" />
                                                        </div>
                                                        <div>
                                                            <h5 class="fs-base mb-0">
                                                                <a href="apps-users-profile.php" class="link-reset">Chloe Walker</a>
                                                            </h5>
                                                            <p class="text-muted fs-xs mb-0">chloe@flowbase.org</p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td>
                                                    19 Jul, 2025
                                                    <small class="text-muted">12:35 PM</small>
                                                </td>
                                                <td>
                                                    <span class="badge bg-success-subtle text-success badge-label">Active</span>
                                                </td>
                                                <td class="text-center">
                                                    <div class="d-flex justify-content-center gap-1">
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-eye fs-lg"></i>
                                                        </a>
                                                        <a href="#" class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-edit fs-lg"></i>
                                                        </a>
                                                        <a href="#" data-table-delete-row class="btn btn-light btn-icon btn-sm rounded-circle">
                                                            <i class="ti ti-trash fs-lg"></i>
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="card-footer border-0">
                                    <div class="d-flex justify-content-between align-items-center">
                                        <div data-table-pagination-info="roles"></div>
                                        <div data-table-pagination></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end row-->

                    <!-- Edit Role Modal -->
                    <div class="modal fade" id="editRoleModal" tabindex="-1" aria-labelledby="editRoleModalLabel" aria-hidden="true">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title" id="editRoleModalLabel">Edit Role</h5>
                                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                                </div>

                                <form id="editRoleForm">
                                    <div class="modal-body">
                                        <div class="row g-3">
                                            <div class="col-md-6">
                                                <label for="editRoleName" class="form-label">Role Name</label>
                                                <input type="text" class="form-control" id="editRoleName" value="Developer" required />
                                            </div>

                                            <div class="col-md-6">
                                                <label for="editRoleDescription" class="form-label">Description</label>
                                                <input type="text" class="form-control" id="editRoleDescription" value="Builds and maintains the platform core features." required />
                                            </div>

                                            <div class="col-12">
                                                <label for="editRoleResponsibilities" class="form-label">Key Responsibilities</label>
                                                <textarea class="form-control" id="editRoleResponsibilities" rows="4" required>
Codebase Maintenance
API Integration
Unit Testing
Feature Deployment</textarea
                                                >
                                                <small class="text-muted">Separate each item by comma or line</small>
                                            </div>

                                            <div class="col-md-6">
                                                <label for="editRoleUsers" class="form-label">Assign Users</label>
                                                <select class="form-select" id="editRoleUsers" multiple>
                                                    <option value="1" selected>Leah Kim</option>
                                                    <option value="2" selected>David Tran</option>
                                                    <option value="3">Michael Brown</option>
                                                    <option value="4">Emma Wilson</option>
                                                </select>
                                                <small class="text-muted">Hold Ctrl (Windows) or Cmd (Mac) to select multiple users</small>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light" data-bs-dismiss="modal">Cancel</button>
                                        <button type="submit" class="btn btn-primary">Save Changes</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>

                    <!-- Add User Modal -->
                    <div class="modal fade" id="addUserModal" tabindex="-1" aria-labelledby="addUserModalLabel" aria-hidden="true">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title" id="addUserModalLabel">Add New User</h5>
                                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                                </div>

                                <form id="addUserForm">
                                    <div class="modal-body">
                                        <div class="row g-3">
                                            <div class="col-md-6">
                                                <label for="userFullName" class="form-label">Full Name</label>
                                                <input type="text" class="form-control" id="userFullName" placeholder="Enter full name" required />
                                            </div>

                                            <div class="col-md-6">
                                                <label for="userEmail" class="form-label">Email Address</label>
                                                <input type="email" class="form-control" id="userEmail" placeholder="Enter email" required />
                                            </div>

                                            <div class="col-md-6">
                                                <label for="userRole" class="form-label">Role</label>
                                                <select class="form-select" id="userRole" required>
                                                    <option value="">Select role</option>
                                                    <option value="Project Manager">Project Manager</option>
                                                    <option value="Developer">Developer</option>
                                                    <option value="Support Lead">Support Lead</option>
                                                    <option value="Security Officer">Security Officer</option>
                                                </select>
                                            </div>

                                            <div class="col-md-6">
                                                <label for="userStatus" class="form-label">Status</label>
                                                <select class="form-select" id="userStatus" required>
                                                    <option value="">Select status</option>
                                                    <option value="Active">Active</option>
                                                    <option value="Inactive">Inactive</option>
                                                    <option value="Suspended">Suspended</option>
                                                </select>
                                            </div>

                                            <div class="col-md-6">
                                                <label for="userAvatar" class="form-label">User Avatar</label>
                                                <input class="form-control" type="file" id="userAvatar" accept="image/*" />
                                                <small class="text-muted">Optional: Upload avatar image</small>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light" data-bs-dismiss="modal">Cancel</button>
                                        <button type="submit" class="btn btn-primary">Add User</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!-- end modal-->
                </div>
                <!-- container -->

                <?php include('./partials/footer.php'); ?>
            </div>

            <!-- ============================================================== -->
            <!-- End of Main Content -->
            <!-- ============================================================== -->
        </div>
        <!-- END wrapper -->

        <?php include('./partials/customizer.php'); ?> <?php include('./partials/footer-scripts.php'); ?>

        <!-- Custom table -->
        <script src="assets/js/pages/custom-table.js"></script>
    </body>
</html>
