<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>ID</th>
            <th width="20%">Department Name</th>
            <th width="35%">Description</th>
           

            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        
        
        
        <?php if($data){
                $i=1;
        foreach($data as $listing){ ?>
        <tr>
            <td class="center"><label class="pos-rel">
                        <input type="checkbox" rel="<?php echo $listing['id']; ?>" class="ace list-checkbox check" />
                            <span class="lbl"></span> </label>
                    </td>
            <td><?php echo $i;?></td>
           
            <td><?php echo $listing['department_name'];?></td>
             <td><?php echo $listing['description'];?></td>
            <?php if($listing['status']==1)
             { ?>
                <td><div id="changestatus1" class="aprovestatus iconsize" name="ChangeStatus"> </div></td>
            <?php } else{ ?>
                
             <td><div id="changestatus1" class="unaprovestatus iconsize" name="ChangeStatus"> </div></td>
            <?php } ?>
            <td>
        <div class="hidden-sm hidden-xs action-buttons"> <!--<a class="blue" href="#"> <i class="ace-icon fa fa-search-plus bigger-130"></i> </a>--> <a class="red " title="Edit" href="<?php echo $this->url('userrolemanager', array('action'=>'edit-department'),['query'=>['id'=>$listing['id']]]);?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a> 
                    <a class="red" href="<?php echo $this->url('userrolemanager', array('action'=>'delete-department'),['query'=>['data'=>$listing['id']]]);?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a> </div></td>
        </tr>
        <?php $i++;} }else{?>
                <tr><td colspan="7" style="text-align: center;">No Records Found</td></tr>                       
        <?php }?>
     

    </tbody>
    
</table>
                        </div></div></div>