
                        <table class="table table-hover role-permission">
                            <thead>
                                <tr>
                                  <th>#</th>
                                  <th>Page Title</th>
                                  <th>Page Label</th>
                                  <th>Page URL</th>
                                  <th>Parent Page</th>
                                  <th><div data-toggle="tooltip" data-placement="top" data-original-title="Is Page Section?">IPS?</div></th>
                                  <th>Add To Menu</th>
                                  <th>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php foreach($role_permissions as $permission): ?>
                            <tr class="<?php if($permission->page_level == 0){echo "main-class";}?>">
                                <td></td>
                                <td>
                                <?php while($permission->page_level>0){ echo '<span class="glyphicon glyphicon-minus"></span>&nbsp;'; $permission->page_level--; } ?>
                                <?= $permission->page_title ?></td>
                                <td><?= $permission->page_label ?></td>
                                <td style="max-width: 220px; word-wrap: break-word; color: #3986da;">
                                    <span><?= base_url($permission->page_url) ?>
                                        
                                    </span></td>
                                <td><?php foreach ($role_permissions as $parent) {
                                    echo ($parent->page_ID==$permission->parent_page)? $parent->page_title:'';
                                }  ?>
                                </td>
                                <td><?= ($permission->is_page_section)?'Yes':'No'; ?></td>
                                <td><?= ($permission->add_to_menu)?'Yes':'No'; ?></td>
                                <td>
                                    <div style="width:80px;">
                                    <?php echo edit_action(base_url('role_permissions'),$permission->page_ID); ?>
                                    <?php echo delete_action(base_url('role_permissions'),$permission->page_ID); ?>
                                    </div>
                                </td>
                            </tr>
                            <?php  endforeach; ?>
                            </tbody>
                        </table>
