<!-- Main content -->
                <section class="content">

                    <!-- Small boxes (Stat box) -->
                    <div class="row">
                     
                        <div class="col-md-12">
                        <div class="box">
                        <div class="box-header">
                                    <h3 class="box-title">Admin view</h3>                                    
                                </div>
                                <div class="box-body table-responsive">
									<a href="<?php echo site_url('aqadmin/create_admin');?>"><button class="btn btn-success btn-sm " type="button" value="Active" name="fname">Add</button></a><br><br>
                                    <table id="example1" class="table table-bordered table-striped">
                                        <thead>
                                            <tr>
                                                <th>SL no</th>
                                                <th>Name</th>
                                                <th>Email</th>
                                                <th>status</th>
                                                <th>edit</th>                                         
                                            </tr>
                                        </thead>
                                        <tbody>
											<?php 
										$i=1;
											foreach($adm ->result() as $raw){
												if($raw->role != "super"){ ?>
                                            <tr>
                                            <td><?php echo $i;?></td>
                                            <td><?php echo $raw->username;?></td>
                                            <td><?php echo $raw->email;?></td>
                                             <?php if($raw->ad_isactive == 1){?>
                                             <td><a href="<?php echo site_url('aqadmin/addeactive')."/".$raw->a_id;?>"><button class="btn btn-success " type="button" value="Active" name="fname" onclick="#">Active</button></a></td>
                                             <?php }else{ ?>
										     <td><a href="<?php echo site_url('aqadmin/adactive')."/".$raw->a_id;?>"><button class="btn btn-danger" type="button" value="Deactive" name="fname" onclick="#">Deactive</button></a></td>

													<?php } ?>
                                                <td><a href="<?php echo site_url('aqadmin/edit_admin')."/".$raw->a_id;?>">Edit</a></td>
                                            </tr>
                                      
                                      <?php  $i++; }  } ?>
                                        </tbody>
                                       
                                    </table>
                                </div><!-- /.box-body -->
                                </div>
                        </div>
                    </div><!-- /.row -->

                    <!-- top row -->
                    
                    

                    
                    
