<!doctype html>
<html>
    <head>
        <?php require_once 'admin_element/meta_content.php'; ?>
        <?php require_once 'admin_element/head_content.php'; ?>
        <noscript>
        <meta http-equiv="refresh" content="0; url=<?php echo base_url() . 'super_admin/logout'; ?>" />
        </noscript>
    </head>

    <body>

        <section class="master" id="full_view" >
            <div class="container-full-view">
                <div class="col-sm-12 " style="background-color: #fff;padding-top: 40px">
                    <?php
                    $person_role = $this->session->userdata('person_role');
                    ?>
                    <!--start left menu-->
                    <div class="col-sm-2 gray_ttc">
                        <div class="row ">
                            <div class="panel-group text-center" id="accordion">

                                <div class="panel panel-default">
                                    <div class="panel-heading" style="background-color: #8CC73F">
                                        <h4 class="panel-title">
                                            <a href="<?php echo base_url(); ?>super-admin"><i class="fa fa-home">&nbsp;</i>Dashboard</a>
                                        </h4>
                                    </div>
                                    <div id="collapse00" class="panel-collapse collapse ">
                                    </div>
                                </div>
                                <!--End Dashboard-->

                                <div class="panel panel-default" id="all_selected_div_1">


                                    <!-- Start User Management in Site--> <!-- Need to use collapse and icon when again start user work -->                                                                
                                    <?php
                                    if (in_array($person_role, Array(1, 6))) {
                                        ?>
                                        <div class="panel panel-default" id="user_management_id">
                                            <div class="panel-heading" style="background-color: #8CC73F">
                                                <h4 class="panel-title">
                                                    <a href="<?php echo base_url(); ?>super-admin/all-user" id="all_user_id" class="all_user_id" onclick="user_management()">User Management</a>
                                                </h4>
                                            </div>
                                            <div id="collapse0" class="panel-collapse collapse <?php
                                            if ($active_menu === 'user_management') {
                                                echo 'in';
                                            }
                                            ?>">

                                                <div class="" style="text-align: justify">
                                                    <a href="<?php echo base_url(); ?>super-admin-user" id="user_management_id" class="list-group-item <?php
                                                    if ($active_sub_menu == 6) {
                                                        echo 'gray_ttc';
                                                    }
                                                    ?>"><i class="fa fa-user">&nbsp;&nbsp;</i>Super Admin </a>
                                                    <a href="<?php echo base_url(); ?>admin-user" id="user_management_id" class="list-group-item <?php
                                                    if ($active_sub_menu == 1) {
                                                        echo 'gray_ttc';
                                                    }
                                                    ?>"><i class="fa fa-user">&nbsp;&nbsp;</i> Admin </a>
                                                    <a href="<?php echo base_url(); ?>account-officer" id="user_management_id" class="list-group-item <?php
                                                    if ($active_sub_menu == 2) {
                                                        echo 'gray_ttc';
                                                    }
                                                    ?>"><i class="fa  fa-user">&nbsp;&nbsp;</i> Account Officer</a>

                                                    <a href="<?php echo base_url(); ?>organization" id="user_management_id" class="list-group-item <?php
                                                    if ($active_sub_menu == 4) {
                                                        echo 'gray_ttc';
                                                    }
                                                    ?>"><i class="fa fa-user">&nbsp;&nbsp;</i>Organization </a>

                                                    <a href="<?php echo base_url(); ?>individual-teacher" id="user_management_id" class="list-group-item <?php
                                                    if ($active_sub_menu == 3) {
                                                        echo 'gray_ttc';
                                                    }
                                                    ?>"><i class="fa  fa-user ">&nbsp;&nbsp;</i>Individual Teacher</a>

                                                    <a href="<?php echo base_url(); ?>learner" id="user_management_id" class="list-group-item <?php
                                                    if ($active_sub_menu == 5) {
                                                        echo 'gray_ttc';
                                                    }
                                                    ?>"><i class="fa fa-user">&nbsp;&nbsp;</i>Learner</a>
                                                </div>
                                            </div>
                                        </div>
                                        <?php
                                    }
                                    ?>                                
                                    <!-- End User Management in Site--> 

                                </div>
                            </div>
                        </div>
                    </div>


                    <!--start main content-->
                    <div id="search_result">
                        <?php echo $main_content; ?>
                    </div>

                    <!--end main content-->
                </div>

            </div> 

        </section>
    </body>

</html>
