<br />
<br />
<section class="content-header">
            <h1>System Logs </h1>
            <ol class="breadcrumb">
                <li class="breadcrumb-item pt-1"><a href="dashboard"><i class="fa fa-fw fa-home"></i> Dashboard</a>
                </li>

            </ol>
        </section>
        <!-- Main content -->
        <section class="content p-l-r-15">
            <div class="row">
                <div class="col-12">
                    <div class="card border-primary ">
                        <div class="card-header text-white  bg-primary">
                            <h4 class="card-title d-inline">
                                <i class="fa fa-fw fa-News"></i> Logs List
                            </h4>
                        </div>
                        <div class="card-body">
                            <div class="table-responsive table-responisve-lg table-responsive-xl">
                                <table class="table table-bordered display" id="table">
                                    <thead>
                                    <tr class="filters">
                                        <th width="5%"><a href="#" class="button button-3d button-primary button-rounded btn_3d" data-toggle="modal" data-target="#myModal">+
											</a></th>


                                    <th > NAME </th>

                                    <th > STAFF ID </th>

                                    <th> EMAIL </th>

                                    <th > PHONE NUMBER </th>
                                    <th > CREATED </th>


										                 <th>Status</th>
                                        <th>Actions</th>
                                    </tr>
                                    </thead>
                                    <tbody>

									<?php




									$select= "SELECT admin_user_id, staff_id, CONCAT_WS(' ', first_name, middle_name, last_name) as name,phone_number, admin_role_id,email,
                                			 DATE_FORMAT(date_added, '%b %e, %Y  %l:%i:%p')as date_added FROM admin_users  WHERE admin_role_id='$admin_user_id'";
									$sql_select = mysqli_query($conn_1,$select);
									$num_rows=mysqli_num_rows($sql_select);
									if($num_rows > 0){
										$sn=1;
										while($row=mysqli_fetch_array($sql_select)){


                      $id=$row['admin_user_id'];
                      $name=$row['name'];
                      $staff_id=$row['staff_id'];
                      $email=$row['email'];
                      $phone_number=$row['phone_number'];

                      $date_added = $row['date_added'];

                            $status='Admin';



                          echo $tr = '<tr>
    														<td><center>'.$sn.'</center></td>
    														<td>'.$name.'</td>
    														<td>'.$staff_id.'</td>
    														<td>'.$email.'</td>
    														<td>'.$phone_number.'</td>
                                <td>'.$date_added.'</td>
    														<td>'.$status.'</td>



    														<td><a href="#" class="edit_qualififed" id="'.$id.'"><i
    																class="fa fa-fw fa-pencil text-primary actions_icon " title="Edit Allocation"></i></a>
    																<a
    																href="#"
    																id="'.$id.'"
    																data-toggle="modal"

    																class="delete_qualfified"
    																><i
    																class="fa fa-fw fa-times text-danger actions_icon" title="Revoke Allocation"></i>
    														</a></td>

    													</tr>';
    													$sn++;





										}


									}

									?>
                                    </tbody>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>





            </div>
            <!-- row-->

        </section>

 <!-- The Modal -->
