<tr id="menuDIV">
    <td colspan="8">
        <div class="panel panel-default">
            <div id="faq-1-3" class="panel-collapse collapse in" aria-expanded="false" >
                <div class="btn-groups  padding10px" align="right">
                    <a class="publish_all btn btn-reddit" href="<?php echo $this->url('menu', array('action' => 'add-page')); ?>">
                        <i class="fa fa-plus"></i>
                        Add New
                    </a>
                </div>
                <div class="box">
                    <div class="box-body">
                        <table id="example1" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th>S.No</th>
                                    <th>Menu Name</th>
                                    <th>Order</th>
                                    <th>Status</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                if ($pageListing) {
                                    $i = 1;
                                    foreach ($pageListing as $listing) {
                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $listing['menu_name']; ?></td>
                                            <td width="15%"><?php echo $listing['menu_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-page'],['query'=>['id'=>$listing['menu_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="5" style="text-align: center;">No Record Found</th></tr>
<?php } ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </td>
</tr>