<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th></th>
            <th><input type="checkbox" class="selectall"></th>
            <th>S.No</th>
            <th>Menu Group</th>
            <th>Position</th>
            <th>Number of Menu</th>
            <th width="15%">Status</th>
            <th>Action</th>
        </tr>
    </thead>

    <tbody>
        <?php
        if($menuGroupListing) {
            $i = 1;
            foreach ($menuGroupListing as $listing) {
                ?>
                <tr>
                    <td><a href="javascript:void(0)" class="pointer menu-group" id="menu_group_<?php echo $i;?>" onclick="showGroupMenu('<?php echo $i; ?>','<?php echo $listing['group_id']; ?>')"><i class="fa fa-angle-double-right"></i></a></td>
                    <td><input type="checkbox" class="check" rel="<?php echo $listing['group_id']; ?>"></td>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $listing['group_name']; ?></td>
                    <td><?php echo $listing['group_position']; ?></td>
                    <td><?php echo $listing['no_of_menus']; ?></td>
                    <td>
                            <?php if ($listing['status'] == 1){
                                    $buttonClass = "aprovestatus";}
                                   else {
                                    $buttonClass = "unaprovestatus";
                                   }
                            ?>
                            <div class="iconsize <?php echo $buttonClass; ?>" name="ChangeStatus"> </div>

                    </td>
                    <td ><div class="hidden-sm hidden-xs action-buttons"> <a class="red" href="<?php echo $this->url('menu', ['action' => 'edit-menu-group'],['query'=>['id'=>$listing['group_id']]]); ?>" title="Edit"> <i class="ace-icon fa fa-edit bigger-130"></i></a>
                            <a class="red" href="#" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a> </div></td>
                </tr>

                <?php
                $i++;
            }
        } else {
            ?>
            <tr><th colspan="11" style="text-align: center;">No Record Found</th></tr>
        <?php } ?>
    </tbody>
</table>