<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>ID</th>
            <th>Images</th>
            <th>Name</th>
            <th>Description</th>
            <th>Created Date</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if ($featureListing) {
            $i = 1;
            foreach ($featureListing as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['created_by']);
                ?>
                <tr class="odd" id="main_membership">
                <td class="sorting_1"><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>
                <td><?php echo $i; ?></td>
                <?php if(isset($listing['image_path'])&& $listing['image_path']!=""){ ?>
                <td><img src="/upload/feature_image/<?php echo $listing['image_path']; ?>" style="height:50px; width: 50px;"></td>
                <?php } else {?>
                <td><img src="/images/default.png" style="height:50px; width: 50px;"></td>
                <?php }?>
                <td><?php echo $listing['feature_name']; ?></td>
                <td><?php echo $listing['feature_desc']; ?></td>
                <td><?php echo date ('Y-m-d', strtotime($listing['created_date'])); ?></td>
                <td><?php echo $userName; ?></td>
                <td><div id="changestatus-<?php echo $listing['id']; ?>" status="<?php echo $listing['status'];?>"  class="iconsize <?php echo ($listing['status'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?>" name="ChangeStatus" onclick="changeRecordStatus('<?php echo $listing['id']; ?>','membership-package','change-record-status','<?php echo $listing['status'];?>')"> </div>
                </td>

                    <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 pointer" href="<?php echo $this->url('membership-package', array('action' => 'edit-feature'), array('query' => array('id' => $listing['id']))); ?>" title="Edit"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>  
                        <a class="red" href="<?php echo $this->url('membership-package', array('action' => 'delete-feature'), array('query' => array('data' => $listing['id']))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
                        
                        
                        </div>
                    </td>
                </tr>
                <?php
                $i++;
            }
        } else {
            ?>
            <tr></tr>                               
<?php } ?>


    </tbody>
    <tfoot>
        <tr>
            <th><input type="checkbox" value="5"></th>
            <th>ID</th>
            <th>Login Id</th>
            <th>Name</th>
            <th>Email</th>
            <th>Country</th>
            <th>City</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </tfoot>
</table>