<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall"></th>
            <th>S.No</th>
            <th>Page Title</th>
            <th>Page Type</th>
            <th>Order</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>

    <tbody>
        <?php
        if ($pageListing) {
            $i = 1;
            foreach ($pageListing as $listing) {
                ?>
        <tr>
            <td><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>
            <td><?php echo $i; ?></td>
            <td><?php echo $listing['page_title']; ?></td>
            <td><?php echo $listing['page_type']; ?></td>
            <td width="15%"><?php echo $listing['page_order']; ?></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-cms-page'],['query'=>['id'=>$listing['id']]]); ?>" title="Edit"> <i class="ace-icon fa fa-edit bigger-130"></i></a>
                    <a class="red pointer" title="View" data-toggle="modal" data-target="#myPageModal"> <i class="ace-icon fa fa-eye 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="6" style="text-align: center;">No Record Found</th></tr>
<?php } ?>
    </tbody>
</table>