<div class="admin-page-title">
   <h1 class="mb-0">Users</h1>
   <span class="admin-page-subtitle">Customer directory with status, contact, and quick actions.</span>
</div>
<section class="content">
   <div class="container-fluid">
      <div class="admin-table-card">
         <div class="table-responsive">
               <table id="custtbl" class="table mb-0">
                  <thead>
                     <tr>
                        <th class="w-1">S.No</th>
                        <th>Name</th>
                        <th>Mobile</th>
                        <th>Email</th>
                        <th>Status</th>
                        <th>Action</th>
                     </tr>
                  </thead>
                  <tbody>
                     <?php if(!empty($userlist)){ $count=1;
                        foreach($userlist as $userlists){
                        ?>
                     <tr>
                        <td> <?php echo output($count); $count++; ?></td>
                        <td> <?php echo output($userlists['u_name']); ?></td>
                        <td> <?php echo output($userlists['u_username']); ?></td>
                        <td><?php echo output($userlists['u_email']); ?></td>
                        <td>
                           <span class="admin-pill">
                           <?php echo ($userlists['u_isactive']=='1') ? 'Active' : 'Inactive'; ?>
                           </span>
                        </td>
                        <td>
                           <a class="cannabus-action-btn edit" href="<?php echo base_url(); ?>users/edituser/<?php echo output($userlists['u_id']); ?>">
                           Edit
                           </a>
                        </td>
                     </tr>
                     <?php } } ?>
                  </tbody>
               </table>
         </div>
      </div>
   </div>
</section>
