
<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
                 <th> <label class="pos-rel"><input type="checkbox" class="selectall" /><span class="lbl"></span> All</label></th>
                  <th>S.No</th>
                  <th>Dept. Name</th>
                  <th>Position Name</th>
                  <th>Experience</th>
                  <th>Location</th>
                  <th>Description</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
    </thead>
    <tbody>



        <?php

        if($jobdetails){
                $i=1;
        foreach($jobdetails as $listing){ 
            
            
            ?>
        <tr>
            <td class="center"><label class="pos-rel">
                        <input type="checkbox" rel="<?php echo $listing['id']; ?>" class="check" />
                            <span class="lbl"></span> </label>
            </td>

            <td><?php echo $i;?></td>
            <td><?php echo $listing['position_name']; ?></td>
            <td><?php echo $listing['position_name']; ?></td>
            <td><?php echo $listing['experience']; ?></td>
            <td><?php echo $listing['location']; ?></td>
            <td><?php echo $listing['description']; ?></td>

                <td><div id="changestatus1"  class="<?php if($listing['status']==1){ echo "aprovestatus";} else{echo "unaprovestatus"; } ?>  iconsize" name="ChangeStatus"> </div></td>

            <td>

        <div class="hidden-sm hidden-xs action-buttons">  <a class="red " title="Edit" href="<?php echo $this->url('job', array('action'=>'edit-job'),['query'=>['id'=>$listing['id']]]);?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>
                    <a class="red" href="<?php echo $this->url('job', array('action'=>'delete'),['query'=>['id'=>$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>
