
<?php
$user_name = $this->session->userdata('user_name');
$display_name = $this->session->userdata('display_name');
$person_id = $this->session->userdata('user_id');
$user_id = $this->session->userdata('user_id');
$person_role = $this->session->userdata('person_role');
$profile_id = $this->session->userdata('profile_id');
$resource_person_type = $this->session->userdata('resource_person_type');
//$this->cf->debug($resource_person_type);
?>
<?php if (isset($left_side)) { ?>
    <div class="col-sm-2 gray_ttc">
        <?php if (isset($left_side_menu_view)) { ?>
            <div class="row ">
                <div class="panel-group text-center" id="accordion">


                    <!--myQuiz-->
                    <div class="panel panel-default" id="myquiz" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'myQuiz') { //quiz sub menu show
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a href="<?php echo base_url() . 'quizes/' . $active_menu; ?>" style="color: #8CC73F;font-weight: bold">My Quiz</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >
                                <a href="<?php echo base_url() . 'create-quiz' ?>" class="list-group-item"><i class="fa fa-building-o">&nbsp;&nbsp;</i>Create Quiz</a>
                                <a href="<?php echo base_url() . 'add-question' ?>" class="list-group-item"><i class="fa  fa-question-circle">&nbsp;&nbsp;</i>Add Question</a>
                                <a href="<?php echo base_url() . 'quizes/' . $active_menu; ?>" class="list-group-item "><i class="fa  fa-lightbulb-o fa-lg">&nbsp;&nbsp;</i>View Quiz</a>
                                <!--<a href="<?php // echo base_url() . 'quiz/view-grade'           ?>" class="list-group-item "><i class="fa  fa-archive">&nbsp;&nbsp;</i>View Grade</a>-->
                                <!--<a href="<?php //  echo base_url() . 'create-certificate' ?>" class="list-group-item "><i class="fa  fa-certificate">&nbsp;&nbsp;</i>Create Certificate</a>-->
                                <!--<a href="<?php //  echo base_url() . 'view-certificate'           ?>" class="list-group-item "><i class="fa  fa-sun-o">&nbsp;&nbsp;</i>View Certificate</a>-->
                            </div>
                        </div>
                    </div>

                    
                    <div class="panel panel-default" id="manageCertificate" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'manageCertificate') { //quiz sub menu show
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
<!--                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a href="#" style="color: #8CC73F;font-weight: bold">Manage Certificate</a>
                            </h4>
                        </div>-->
                        <div>
                            <div class="" style="text-align: justify;" >                                
                                <a href="<?php  //echo base_url() . 'create-certificate' ?>" class="list-group-item "><i class="fa  fa-certificate">&nbsp;&nbsp;</i>Create Certificate</a>
                                <a href="<?php  //echo base_url() . 'view-certificate'           ?>" class="list-group-item "><i class="fa  fa-sun-o">&nbsp;&nbsp;</i>View Certificate</a>
                            </div>
                        </div>
                    </div>
                    
                    <!--LEARNER Group-->
                    <div class="panel panel-default" id="mygroup" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'learner_group') {  //quiz learner group show
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a style="color: #8CC73F;font-weight: bold">Group</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >
                                <!--<a href="<?php // echo base_url() . 'group/create-group';                               ?>" class="list-group-item"><i class="fa fa-building-o">&nbsp;&nbsp;</i> Create Group </a>-->
                                <a style="margin-left: 6px;" href="#" data-toggle="modal" data-target="#join_group"><i class="fa fa-question-circle">&nbsp;&nbsp;</i>Join Group</a>
                                <a href="<?php echo base_url() . 'groups-learner-detail' ?>" class="list-group-item "><i class="fa fa-archive">&nbsp;&nbsp;</i>Detail Group List</a>
                            </div>
                        </div>
                    </div>


                    <!--TEACHER Group-->
                    <div class="panel panel-default" id="mygroup" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'teacher_group') {

                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a style="color: #8CC73F;font-weight: bold">Group</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >
                                <a href="<?php echo base_url() . 'group/create-group'; ?>" class="list-group-item"><i class="fa fa-building-o">&nbsp;&nbsp;</i>Create Group </a>
                                <a href="#" data-toggle="modal" data-target="#join_group" class="list-group-item"><i class="fa fa-question-circle">&nbsp;&nbsp;</i>Join Group</a>
                                <a href="<?php echo base_url() . 'groups-detail' ?>" class="list-group-item "><i class="fa fa-archive">&nbsp;&nbsp;</i>Detail Group List</a>
                            </div>
                        </div>
                    </div>

                    <!--ORGANIZATION Group-->
                    <div class="panel panel-default" id="mygroup" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'Group') {
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a style="color: #8CC73F;font-weight: bold">Group</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >
                                <a href="<?php echo base_url() . 'group/create-group'; ?>" class="list-group-item"><i class="fa fa-building-o">&nbsp;&nbsp;</i>Create Group </a>
                                <a href="#" data-toggle="modal" data-target="#join_group" class="list-group-item"><i class="fa fa-question-circle">&nbsp;&nbsp;</i>Join Group</a>
                                <a href="<?php echo base_url() . 'groups-detail' ?>" class="list-group-item "><i class="fa fa-archive">&nbsp;&nbsp;</i>Detail Group List</a>
                            </div>
                        </div>
                    </div>

                    <!--            updated by afrin jahan noumin-->
                    <!--START Modal-->
                    <div id="join_group" class="modal fade" role="dialog">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title">Join Group</h4>
                                </div>
                                <div class="modal-body">
                                    <?php
                                    $url = base_url() . 'join-group/';
                                    echo form_open_multipart($url, 'class="cmxform" id="form4" name="join_group" method="post" onsubmit="return submitGroup()"');
                                    ?>  
                                    <div class="col-sm-6 col-sm-offset-3">
                                        <br><br>


                                        <div class="input-group">
                                            <input type="text" 
                                                   name="group_public_id" id="group_public_id" 
                                                   data-errormessage-value-missing="Invitation code is required!"
                                                   class="form-control validate[required, custom[groupinvitation],custom[spaceFunction],custom[codeExistence]] text-input" 
                                                   placeholder="Please Type Group Code.." 
                                                   onkeyup="makerequest(this.value);" >
                                            <input type="hidden" id="incode" name='incode' value="" />
                                            <span class="input-group-addon" ><i class="fa fa-group"></i></span>
                                        </div>

                                    </div>

                                    <div style="color:red;" id="error_member" class="col-sm-8 col-sm-offset-2">

                                    </div>

                                    <div class="col-sm-12"><br> <br></div>



                                    <div class="col-sm-3"></div>
                                    <div class="col-sm-6">

                                        <input type="submit" class="green-btn btn btn-default" value="Join Group !"><br/><br/>
                                    </div>
                                    <div class="col-sm-3"></div>
                                    <!--</form>-->
                                    <?php echo form_close(); ?>
                                </div>
                                <div class="col-sm-12"><hr></div>
                                <div class="modal-footer">

                                    <button type="button" class="btn btn-danger pull-right" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--END Modal-->

                    <script>
                        function  submitGroup() {

                            if (document.getElementById("incode").value == 0) {
                                return false;
                            } else if (document.getElementById("incode").value == 1) {
                                return true;
                            }

                        }
                        function makerequest(value)
                        {
                            var xmlhttp4 = false;
                            try {
                                xmlhttp4 = new ActiveXObject("Msxml2.XMLHTTP");
                            } catch (e) {
                                try {
                                    xmlhttp4 = new ActiveXObject("Microsoft.XMLHTTP");
                                } catch (E) {
                                    xmlhttp4 = false;
                                }
                            }
                            if (!xmlhttp4 && typeof XMLHttpRequest != 'undefined') {
                                xmlhttp4 = new XMLHttpRequest();
                            }



                            var url = '<?php echo base_url(); ?>check-join-group-code';


                            var formdata = new FormData();
                            formdata.append("value", value);


                            xmlhttp4.addEventListener("load", function () {
                                // alert(  xmlhttp4.responseText);
                                if (xmlhttp4.responseText == 1)
                                {
                                    document.getElementById("incode").value = 1;
                                    document.getElementById("error_member").innerHTML = " ";                                   

                                } else if (xmlhttp4.responseText == 2)
                                {
                                    document.getElementById("incode").value = 0;
                                    document.getElementById("error_member").innerHTML = "";
                                    jQuery('#group_public_id').validationEngine('validate');

                                } else if (xmlhttp4.responseText == 3) {
                                    document.getElementById("incode").value = 0;
                                    document.getElementById("error_member").innerHTML = "This group is not valid.";
                                } else if (xmlhttp4.responseText == 4) {
                                    document.getElementById("incode").value = 0;
                                    document.getElementById("error_member").innerHTML = "You have already sent a request."
                                }

                            }, false);

                            xmlhttp4.open("POST", url);
                            xmlhttp4.send(formdata);


                        }
                    </script>
                    <!--end updated by afrin jahan noumin-->

                    <div class="panel panel-default" id="PaymentDetails" style="display: 


                         <?php
                         if (isset($active_sub_menu)) {
                             if ($active_sub_menu == 'payment' && (in_array($person_role, [3, 4]))) {
                                 echo 'block';
                             } else {
                                 echo 'none';
                             }
                         } else {
                             echo 'none';
                         }
                         ?>">


                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a style="color: #8CC73F;font-weight: bold">Payment</a>
                            </h4>
                        </div>

                        <div>
                            <div class="" style="text-align: justify;" >
                                <a href="<?php echo base_url('user/invoice'); ?>" class="list-group-item" <?php
                                if (isset($payment_sub_menu)) {
                                    if ($payment_sub_menu == 'invoice') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class="fa fa-money">&nbsp;&nbsp;</i> 
                                    My Invoice
                                </a>
<!--                                <a href="<?php //echo base_url() . $profile_id . '/my-billing'; ?>" class="list-group-item" style="padding-left: 10px;">
                                    <i class="fa  fa-dollar">&nbsp;&nbsp;&nbsp;</i> 
                                    My Expenses
                                </a>-->
                            <?php if($person_role == 4 || ($person_role == 3 && $resource_person_type == 2 )){ ?>
                                <a href="<?php echo base_url('user/earning'); ?>" class="list-group-item" <?php
                                if (isset($payment_sub_menu)) {
                                    if ($payment_sub_menu == 'earning') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class="fa fa-money">&nbsp;&nbsp;</i> 
                                    My Earning
                                </a>
                            <?php } ?>
                            </div>
                        </div>
                    </div>


                    <div class="panel panel-default" id="classes" style="display: none">

                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <a style="color: #8CC73F;font-weight: bold">Classes</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >
                                <a href="<?php echo base_url() . 'schedule-class'; ?>" class="list-group-item" >
                                    <i class="fa fa-calendar">&nbsp;&nbsp;</i> 
                                    Schedule Class
                                </a>
                                <a href="<?php echo base_url() . $profile_id . '/upcoming-class'; ?>" class="list-group-item" >
                                    <i class="fa  fa-plus-square">&nbsp;&nbsp;</i> 
                                    Upcoming Class
                                </a>
                                <a href="<?php echo base_url() . $profile_id . '/my-class'; ?>" class="list-group-item">
                                    <i class="fa  fa-laptop">&nbsp;&nbsp;</i>My Class
                                </a>
                                <a href="<?php echo base_url() . $profile_id . '/attended-class'; ?>" class="list-group-item">
                                    <i class="fa fa-text-width">&nbsp;&nbsp;</i>
                                    Attended Class
                                </a>
                            </div>
                        </div>
                    </div>

                    <!--Student Classes Menu--> 
                    <div class="panel panel-default" id="learner_classes" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'learner_classroom') {
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <?php // echo $active_menu;    ?>
                                <a style="color: #8CC73F;font-weight: bold">Classes</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >

                                <a href="<?php echo base_url() . 'classroom/upcoming-class'; ?>" class="list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'upcoming') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?> >
                                    <i class="fa  fa-plus-square">&nbsp;&nbsp;</i> Upcoming Class
                                </a>
                                <a href = "<?php echo base_url() . 'classroom/current-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'current') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?> >
                                    <i class = "fa  fa-laptop">&nbsp;&nbsp;</i>My Current Class
                                </a>

                                <a href = "<?php echo base_url() . 'classroom/previous-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'previous') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?> >
                                    <i class = "fa fa-text-width">&nbsp;
                                        &nbsp;</i>My Previous Class
                                </a>
                            </div>
                        </div>
                    </div>

                    <!--Teacher Classes Menu--> 
                    <div class="panel panel-default" id="teacher_classes" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'teacher_classroom') {
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>">
                        <div class="panel-heading" style="background-color: #fff;">
                            <h4 class="panel-title text-left" >
                                <?php // echo $active_menu;    ?>
                                <a style="color: #8CC73F;font-weight: bold">Classes</a>
                            </h4>
                        </div>
                        <div>
                            <div class="" style="text-align: justify;" >
                                <a href="<?php echo base_url() . 'schedule-class'; ?>" class="list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'scheduling') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class="fa fa-calendar">&nbsp;&nbsp;</i> Schedule Class
                                </a>
                                <a href="<?php echo base_url() . 'classroom/upcoming-class'; ?>" class="list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'upcoming') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?> >
                                    <i class="fa  fa-plus-square">&nbsp;&nbsp;</i> Upcoming Class
                                </a>
                                <a href = "<?php echo base_url() . 'classroom/current-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'current') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?> >
                                    <i class = "fa  fa-laptop">&nbsp;&nbsp;</i>My Current Class
                                </a>

                                <a href = "<?php echo base_url() . 'classroom/previous-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'previous') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?> >
                                    <i class = "fa fa-text-width">&nbsp;
                                        &nbsp;</i>My Previous Class
                                </a>
                            </div>
                        </div>
                    </div>

                    <!--organization Classes Menu--> 
                    <div class="panel panel-default" id="organization_classes" style="display: <?php
                    if (isset($active_sub_menu)) {
                        if ($active_sub_menu == 'organization_classroom') {
                            echo 'block';
                        } else {
                            echo 'none';
                        }
                    } else {
                        echo 'none';
                    }
                    ?>" >
                        <div class = "panel-heading" style = "background-color: #fff;">
                            <h4 class = "panel-title text-left" >
                                <a style = "color: #8CC73F;font-weight: bold">Classes</a>
                            </h4>
                        </div>
                        <div>
                            <div class = "" style = "text-align: justify; " >
                                <a href = "<?php echo base_url() . 'schedule-class'; ?>" class = "list-group-item " <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'scheduling') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class = "fa fa-calendar">&nbsp;&nbsp;</i> 
                                    Schedule Class
                                </a>
                                <a href = "<?php echo base_url() . 'classroom/upcoming-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'upcoming') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class = "fa  fa-plus-square">&nbsp;&nbsp;</i>
                                    Upcoming Class
                                </a>
                                <a href = "<?php echo base_url() . 'classroom/current-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'current') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class = "fa  fa-laptop">&nbsp;&nbsp;</i>My Current Class
                                </a>
                                <a href = "<?php echo base_url() . 'classroom/previous-class'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu_item)) {
                                    if ($active_sub_menu_item == 'previous') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                    <i class = "fa fa-text-width">&nbsp;&nbsp;</i>
                                    My Previous Class
                                </a>
                                    <!--<a href = "attended_class.html" class = "list-group-item"><i class = "fa fa-text-width">&nbsp;
                                    &nbsp;
                                    </i>Attended Class</a> -->
                            </div>
                        </div>
                    </div>

                    <!--Dashboard-->
                    <div class = "panel panel-default" id = "MyWeb" style = "display: none">
                        <div class = "panel-heading" style = "background-color: #fff;">
                            <h4 class = "panel-title text-left" >
                                <a style = "color: #8CC73F;font-weight: bold">My Web</a>
                            </h4>
                        </div>
                        <div>
                            <div class = "" style = "text-align: justify;" >
                                <a href = "<?php echo base_url() . $profile_id . '/current_location'; ?>" class = "list-group-item"><i class = "fa fa-building-o">&nbsp;
                                        &nbsp;
                                    </i>Current City</a>
                                <a href = "<?php echo base_url() . $profile_id . '/travels'; ?>" class = "list-group-item"><i class = "fa  fa-bus">&nbsp;
                                        &nbsp;
                                    </i>Travels</a>
                                <a href = "<?php echo base_url() . $profile_id . '/link_location'; ?>" class = "list-group-item"><i class = "fa  fa-retweet ">&nbsp;
                                        &nbsp;
                                    </i>Connectivity</a>
        <!--                        <a href = "<?php //echo base_url() . 'profile/wishlist_content';           ?>" class = "list-group-item"><i class = "fa fa-smile-o">&nbsp;
                                        &nbsp;
                                    </i>My Wishlist 
                                </a>-->

                                <a href = "<?php echo base_url() . 'profile/my_billing'; ?>" class = "list-group-item" <?php
                                if (isset($active_sub_menu)) {
                                    if ($active_sub_menu == 'my_billing') {
                                        echo "style='color:red;'";
                                    }
                                }
                                ?>>
                                   <!-- <i class = "fa fa-money">&nbsp;&nbsp;</i>My Payment -->
                                </a>

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

                    <!--Dashboard-->
                    <div class = "panel panel-default">
                        <div class = "panel-heading" style = "background-color: #8CC73F">
                            <h4 class = "panel-title">
                                <a data-toggle = "collapse" data-parent = "#accordion" href = "javascript:#Dashboard"></a>
                            </h4>
                        </div>
                        <div id = "Dashboard" class = "panel-collapse collapse <?php
                        if ($active_menu == 'dashboard') {
                            echo 'in';
                        }else{
                            echo 'in';
                        }
                        ?>">

                            <div class = "" style = "text-align: justify">
                                <a href = "<?php echo base_url('user/payment'); ?>" style="padding-left:7px;color:<?php
                                if ($active_sub_menu == 'payment') {
                                    echo "style='color:red;'";
                                }
                                ?>" class = "list-group-item">
                                   <!-- <i class="fa fa-money">&nbsp;
                                        &nbsp;
                                    </i>My Payment --></a>


                                <a href="<?php echo base_url() ?>my-content-library" class="list-group-item" style="padding-left:7px;color:
                                <?php
                                if ($active_sub_menu === 'content_library') {
                                    echo 'red';
                                }
                                ?>
                                   "><i class="fa fa-database">&nbsp;&nbsp;&nbsp;</i> Content Library</a>


                                <a href="<?php echo base_url() ?>my-note-alert" class="list-group-item" style="padding-left: 7px;color:
                                <?php
                                if ($active_sub_menu === 'note_alert') {
                                    echo 'red';
                                }
                                ?>
                                   "><i class="fa fa-file-o">&nbsp;&nbsp;&nbsp;</i> Note / Alert</a>
                                   
                                    <a href="<?php echo base_url() . 'course/learner'; ?>" class="list-group-item" <?php
                                    if ($active_sub_menu == 'learner_course') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-book">&nbsp;&nbsp;</i>Learner Course
                                    </a>

<a href="<?php echo base_url() . 'groups/learner'; ?>" class="list-group-item" <?php
                                    if ($active_sub_menu == 'learner_group') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-users">&nbsp;&nbsp;</i>Learner Group
                                    </a>
<a href="<?php echo base_url() . 'quizes/learner'; ?>" class="list-group-item  <?php
                                    if ($active_sub_menu == 'learner_quiz') {
                                        echo "gray_ttc";
                                    }
                                    ?>" <?php
                                    if ($active_sub_menu == 'learner_quiz') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-question-circle">&nbsp;&nbsp;</i>Learner Quiz
                                    </a>
                                    <a href="<?php echo base_url() . 'course/teacher'; ?>" class="list-group-item" <?php
                                    if ($active_sub_menu == 'teacher_course') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-book">&nbsp;&nbsp;</i>Teacher Course
                                    </a>
<a href="<?php echo base_url() . 'groups/teacher'; ?>" class="list-group-item" <?php
                                    if ($active_sub_menu == 'teacher_group') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-users">&nbsp;&nbsp;</i>Teacher Group
                                    </a>
<a href="<?php echo base_url() . 'quizes/teacher'; ?>" class="list-group-item
                                       <?php
                                       if ($active_sub_menu == 'myQuiz') {
                                           echo "gray_ttc";
                                       }
                                       ?>">
                                        <i class="fa fa-question-circle">&nbsp;&nbsp;</i>Teacher Quiz
                                    </a>
                                    
                                    
                                    
                                    
                            </div>

                        </div>
                    </div>
                    
                    
                    <div class = "panel panel-default">
                        <div class = "panel-heading" style = "background-color: #8CC73F">
                            <h4 class = "panel-title">
                                <a data-toggle = "collapse" data-parent = "#accordion" href = "javascript:#Dashboard"></a>
                            </h4>
                        </div>
                        <div id = "Dashboard" class = "panel-collapse collapse <?php
                        if ($active_menu == 'dashboard') {
                            echo 'in';
                        }else{
                            echo 'in';
                        }
                        ?>">

                            <div class = "" style = "text-align: justify">
                                
                                    <a href="<?php echo base_url() . 'course'; ?>" class="list-group-item" <?php
                                    if ($active_sub_menu == 'teacher_course') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-book">&nbsp;&nbsp;</i>All Course
                                    </a>
<a href="<?php echo base_url() . 'all-group'; ?>" class="list-group-item" <?php
                                    if ($active_sub_menu == 'teacher_group') {
                                        echo "style='color:red;'";
                                    }
                                    ?>>
                                        <i class="fa fa-users">&nbsp;&nbsp;</i>All Group
                                    </a>
<a href="<?php echo base_url() . 'all-quiz'; ?>" class="list-group-item
                                       <?php
                                       if ($active_sub_menu == 'myQuiz') {
                                           echo "gray_ttc";
                                       }
                                       ?>">
                                        <i class="fa fa-question-circle">&nbsp;&nbsp;</i>All Quiz
                                    </a>
                                    
                                    
                                    
                                    
                            </div>

                        </div>
                    </div>
                    

                    <!--Message menu-->

<!--                    <div class="panel panel-default">
                        <div class="panel-heading" style="background-color: #8CC73F">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" data-parent="#accordion" href="javascript:#Message">Message </a>
                            </h4>
                        </div>
                        <div id="Message" class="panel-collapse collapse

                             <?php
                             //if ($active_menu == 'message') {
                                 //echo 'in';
                             //}
                             ?>

                             ">

                            <div class="" style="text-align: justify">


                                <a href="<?php //echo base_url() ?>receive-message" class="list-group-item" style="color: 

                                   <?php
                                   //if ($active_sub_menu == 'AllReceivedMessage') {
                                       //echo 'red';
                                   //}
                                   ?>

                                   ">
                                    <i class="fa  fa-envelope">&nbsp;</i> Received
                                </a>

                                <a href="<?php //echo base_url() ?>sent-message" class="list-group-item "style="color: 

                                   <?php
                                   //if ($active_sub_menu == 'AllSentMessage') {
                                       //echo 'red';
                                   //}
                                   ?>
                                   "> <i class="fa  fa-send  ">&nbsp;&nbsp;</i>Sent</a>


                                <a href="<?php //echo base_url() ?>draft-message" class="list-group-item "style="color: 
                                <?php
                                //if ($active_sub_menu == 'DraftMessage') {
                                    //echo 'red';
                                //}
                                ?>"><i class="fa  fa-clipboard">&nbsp;&nbsp;</i>Draft</a>


                                <span class="list-group-item text-danger " >Invitations Message</span>
                                <a href="<?php //echo base_url() ?>invitations-received-message" class="list-group-item" style="color: 
                                <?php
                                //if ($active_sub_menu == 'InvitationsReceivedMessage') {
                                    //echo 'red';
                                //}
                                ?>"><i class="fa  fa-envelope">&nbsp;</i> Received </a>



                                <a href="<?php //echo base_url() ?>invitations-sent-message" class="list-group-item "style="color: 
                                <?php
                                //if ($active_sub_menu == 'InvitationsSentMessage') {
                                    //echo 'red';
                                //}
                                ?> "><i class="fa  fa-send  ">&nbsp;&nbsp;</i>Sent</a>



                                <span class="list-group-item text-danger " >Course Message</span>
                                <a href="<?php //echo base_url('user/course-sent-massage') ?>" class="list-group-item" style="color: 
                                <?php
                                //if ($active_sub_menu == 'course_sent_message') {
                                    //echo 'red';
                                //}
                                ?>"><i class="fa  fa-envelope">&nbsp;</i> Sent </a>



                                <a href="<?php //echo base_url('user/course-received-massage') ?>" class="list-group-item "style="color: 
                                <?php
                                //if ($active_sub_menu == 'course_received_message') {
                                    //echo 'red';
                                //}
                                ?> "><i class="fa  fa-send  ">&nbsp;&nbsp;</i>Received</a>





                                <span class="list-group-item text-danger " >Message Setting</span>
                                <a href="<?php //echo base_url() ?>message-setting" class="list-group-item" style="color: 
                                <?php
                                //if ($active_sub_menu == 'MessageSetting') {
                                    //echo 'red';
                                //}
                                ?>"><i class="fa  fa-wrench">&nbsp;&nbsp;</i>Setting
                                </a>
                            </div>
                        </div>
                    </div>-->

                    <!--End Message menu-->


                    <!--            Publication menu
                    -->
<!--                    <div class="panel panel-default">
                        <div class="panel-heading" style="background-color: #8CC73F">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" data-parent="#accordion" href="javascript:#Publication">Publication </a>
                            </h4>
                        </div>
                        <div id="Publication" class="panel-collapse collapse

                             <?php
                             //if ($active_menu == 'publication') {
                                 //echo 'in';
                             //}
                             ?>
                             ">
                            <div class="" style="text-align: justify">
                                <a href="<?php //echo base_url() ?>add-publication" class="list-group-item" style="color: 
                                <?php
                                //if ($active_sub_menu == 'addPublication') {
                                    //echo 'red';
                                //}
                                ?>

                                   ">
                                    <i class="fa  fa-plus-square">&nbsp;</i> Add Publication
                                </a>

                                <a href="<?php //echo base_url() ?>manage-publication" class="list-group-item "style="color: 

                                   <?php
                                   //if ($active_sub_menu == 'managePublication') {
                                       //echo 'red';
                                   //}
                                   ?>

                                   ">
                                    <i class="fa fa-clipboard">&nbsp;&nbsp;</i>Manage Publication</a>

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

                    <!--End Publication menu-->

                    <!--AS LEARNER  Menu--> 
                 <!--   <div class = "panel panel-default">
                        <div class = "panel-heading" style = "background-color: #8CC73F">
                            <h4 class = "panel-title">
                                <a data-toggle = "collapse" data-parent = "#accordion" href = "javascript:#Learner">As Learner</a>
                            </h4>
                        </div>

                        <div id = "Learner" class = "panel-collapse collapse <?php
                      //  if ($active_menu == 'learner') {
                           // echo 'in';
                        //}else{
                           // echo 'in';
                      //  }
                        ?>" >

                            <div class = "" style = "text-align: justify">

                                <div class="" style="text-align: justify">

<!--                                    <a href="<?php //echo base_url() . 'classroom/learner' ?>" class="list-group-item" <?php
                                    //if ($active_sub_menu == 'learner_classroom') {
                                       // echo "style='color:red;'";
                                    //}
                                    ?>><i class="fa fa-bell-o">&nbsp;&nbsp;</i>Classroom</a>-->

                                <!--    <a href="<?php// echo base_url() . 'course/learner'; ?>" class="list-group-item" <?php
                                  //  if ($active_sub_menu == 'learner_course') {
                                      //  echo "style='color:red;'";
                                 //   }
                                    ?>>
                                        <i class="fa fa-book">&nbsp;&nbsp;</i>My Course
                                    </a>
                                    
<!--                                    <a href="<?php //echo base_url() . 'learner-video-course'; ?>" class="list-group-item" <?php
                                   // if ($active_sub_menu == 'learner_video_course') {
                                       // echo "style='color:red;'";
                                   // }
                                    ?>>
                                        <i class="fa fa-file-video-o">&nbsp;&nbsp;</i>My Video Course
                                    </a>-->
                                    
                                    
                                  <!--  <a href="<?php// echo base_url() . 'learner-batch'; ?>" class="list-group-item" <?php
                                //    if ($active_sub_menu == 'learner_batch') {
                                      //  echo "style='color:red;'";
                                  //  }
                                    ?>>
                                        <i class="fa fa-ge">&nbsp;&nbsp;</i>My Batch
                                    </a>

<!--                                    <a href="<?php //echo base_url() . 'video/learner'; ?>" class="list-group-item" <?php
                                    //if ($active_sub_menu == 'learner_video') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?>>
                                        <i class="fa fa-file-video-o">&nbsp;&nbsp;</i>My Video
                                    </a>-->

                                                                                <!--<a href="#" class="list-group-item"><i class="fa fa-globe">&nbsp;&nbsp;</i>My Web</a>-->
                                <!--    <a href="<?php// echo base_url() . 'groups/learner'; ?>" class="list-group-item" <?php
                                //    if ($active_sub_menu == 'learner_group') {
                                        echo "style='color:red;'";
                                  //  }
                                    ?>>
                                        <i class="fa fa-users">&nbsp;&nbsp;</i>My Group
                                    </a>

                                    <a href="<?php// echo base_url() . 'quizes/learner'; ?>" class="list-group-item  <?php
                                 //   if ($active_sub_menu == 'learner_quiz') {
                                     //   echo "gray_ttc";
                                  //  }
                                    ?>" <?php
                                 //   if ($active_sub_menu == 'learner_quiz') {
                                     //   echo "style='color:red;'";
                                 //   }
                                    ?>>
                                        <i class="fa fa-question-circle">&nbsp;&nbsp;</i>My Quiz
                                    </a>

                                </div>

                            </div>

                            <script>
                                function menuActivation(objID) {

                                    /* Diactivate all other menu */
                                    var student_classes = document.getElementById('student_classes');
                                    student_classes.setAttribute("style", 'display:none; ');

                                    var teacher_classes = document.getElementById('teacher_classes');
                                    teacher_classes.setAttribute("style", 'display:none; ');

                                    var organization_classes = document.getElementById('organization_classes');
                                    organization_classes.setAttribute("style", 'display:none; ');

                                    var myGroup = document.getElementById('mygroup');
                                    myGroup.setAttribute("style", 'display:none; ');

                                    var myQuiz = document.getElementById('myquiz');
                                    myQuiz.setAttribute("style", 'display:none; ');

                                    var myWeb = document.getElementById('MyWeb');
                                    myWeb.setAttribute("style", 'display:none; ');
                                    /* Activate Menu */
                                    var activeMenu = document.getElementById(objID);
                                    activeMenu.setAttribute("style", 'display:block; ');
                                }
                            </script>

                        </div>
                    </div> 

                    <!--AS TEACHER AND ORGANIZATION  Menu--> 
                    <?php if ($person_role == 3) { ?>
                        <div class="panel panel-default">
                           <!--  <div class="panel-heading" style="background-color: #8CC73F">
                               <h4 class="panel-title">
                                    <a data-toggle="collapse" data-parent="#accordion" href="javascript:#Teacher">As Teacher</a>
                                </h4>
                            </div>-->

                            <div id="Teacher" class="panel-collapse collapse <?php
                            if ($active_menu == 'teacher') {
                                echo 'in';
                            }else{
                                echo 'in';
                            };
                            ?>">

                                <div class="" style="text-align: justify">
<!--                                    <a href="<?php //echo base_url() . 'classroom/teacher' ?>" class="list-group-item" <?php
                                    //if ($active_sub_menu == 'teacher_classroom') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?>><i class="fa fa-bell-o">&nbsp;&nbsp;</i>Classroom</a>-->

                                  <!--   <a href="<?php //echo base_url() . 'course/teacher'; ?>" class="list-group-item" <?php
                                  //  if ($active_sub_menu == 'teacher_course') {
                                       // echo "style='color:red;'";
                                   // }
                                    ?>>
                                        <i class="fa fa-book">&nbsp;&nbsp;</i>My Course
                                    </a> -->

                                <!--     <a  href="<?php// echo base_url() ?>batch/teacher" <?php
                                   // if ($active_sub_menu == 'teacher_batch') {
                                      //  echo "style='color:red;'";
                                  //  }
                                    ?> class="list-group-item"> <i class="fa  fa-ge">&nbsp;&nbsp;</i>My Batch</span></a>-->
                                    
                                    <?php if($this->session->resource_person_type == 1){?>
                                 <!--    <a href="<?php //echo base_url() . 'video/teacher'; ?>" class="list-group-item" <?php
                                  //  if ($active_sub_menu == 'teacher_video') {
                                       // echo "style='color:red;'";
                                   // }
                                    ?>>
                                        <i class="fa fa-file-video-o">&nbsp;&nbsp;</i>My Video
                                    </a> -->
                                    <?php } ?>
                <!-- -----------------------Front End Video Course Menu Start----------------------->
                                    <?php if($this->session->resource_person_type == 1){?>
<!--                                    <a href="<?php //echo base_url() . 'teacher/video-course'; ?>" class="list-group-item" <?php
                                    //if ($active_sub_menu == 'teacher_video_course') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?>>
                                        <i class="fa fa-file-video-o">&nbsp;&nbsp;</i> My Video Course
                                    </a>-->
                                    <?php } ?>
                <!-- -------------------Front End Video Course Menu End-------------------->
                                    
                                    <!--<a href="#" class="list-group-item"><i class="fa fa-globe">&nbsp;&nbsp;</i>My Web</a>-->
                               <!--      <a href="<?php //echo// base_url() . 'groups/teacher'; ?>" class="list-group-item" <?php
                                  //  if ($active_sub_menu == 'teacher_group') {
                                       // echo "style='color:red;'";
                                 //   }
                                    ?>>
                                        <i class="fa fa-users">&nbsp;&nbsp;</i>My Group
                                    </a> -->

                                  <!--   <a href="<?php //echo base_url() . 'quizes/teacher'; ?>" class="list-group-item
                                       <?php
                                    //   if ($active_sub_menu == 'myQuiz') {
                                         //  echo "gray_ttc";
                                   //    }
                                       ?>">
                                        <i class="fa fa-question-circle">&nbsp;&nbsp;</i>My Quiz
                                    </a>-->
                                    
<!--                                    <a href="<?php //echo base_url() . 'teacher/manage-certificate'; ?>" <?php
                                    //if ($active_sub_menu == 'manageCertificate') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?> class="list-group-item"><i style="padding-left: 5px;" class="fa  fa-certificate">&nbsp;&nbsp;</i>Manage Certificate</a>-->
                                </div>

                            </div>
                        </div>
                    <?php } ?>

                    <!--AS ORGANIZATION  Menu--> 
                    <?php if ($person_role == 4) { ?>
                        <div class="panel panel-default">
                          <!--   <div class="panel-heading" style="background-color: #8CC73F">
                                <h4 class="panel-title">
                                    <a data-toggle="collapse" data-parent="#accordion" href="javascript:#Organization" >As Organization</a>
                                </h4>

                            </div> -->
                            <div id="Organization" class="panel-collapse collapse <?php
                            if ($active_menu == 'organization') {
                                echo 'in';
                            }else{
                                echo 'in';
                            }
                            ?>" >
                                <div class="" style="text-align: justify">

<!--                                    <a href="<?php //echo base_url() . 'classroom/organization' ?>" class="list-group-item " <?php
                                    //if ($active_sub_menu == 'organization_classroom') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?> onclick="//menuActivation('organization_classes')"><i class="fa fa-bell-o">&nbsp;&nbsp;</i>Classroom</a>-->

                                    <!-- <a  href="<?php //echo base_url() . 'course/organization'; ?>" <?php
                                  //  if ($active_sub_menu == 'organization_course') {
                                       // echo "style='color:red;'";
                                   // }
                                    ?> class="list-group-item"> <i class="fa fa-book">&nbsp;&nbsp;</i>My Course</span></a> -->

                                  <!--   <a  href="<?php// echo base_url() ?>batch/organization" <?php
                                   // if ($active_sub_menu == 'organization_batch') {
                                      //  echo "style='color:red;'";
                                  //  }
                                    ?> class="list-group-item"> <i class="fa  fa-ge">&nbsp;&nbsp;</i>My Batch</span></a> -->

<!--                                    <a href="<?php //echo base_url() . 'video/organization'; ?>" <?php
                                    //if ($active_sub_menu == 'organization_video') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?> class="list-group-item"> <i class="fa fa-file-video-o">&nbsp;&nbsp;</i>My Video</a>-->

                                  <!--   <a href="<?php //echo base_url() . 'groups/organization'; ?>" <?php
                                   // if ($active_sub_menu == 'Group') {
                                       // echo "style='color:red;'";
                                   // }
                                    ?> class="list-group-item" ><i class="fa fa-users">&nbsp;&nbsp;</i>Groups</a> -->

                                  <!--   <a href="<?php //echo base_url() . 'manage-teacher'; ?>" <?php
                                 //   if ($active_sub_menu == 'teacher') {
                                       // echo "style='color:red;'";
                                  //  }
                                    ?> class="list-group-item"><i style="padding-left: 3px;" class="fa fa-user">&nbsp;&nbsp;</i>Teacher</a> -->

                                   <!--  <a href="<?php //echo base_url() . 'quizes/organization'; ?>" <?php
                                   // if ($active_sub_menu == 'myQuiz') {
                                        //echo "style='color:red;'";
                                  //  }
                                    ?> class="list-group-item"><i style="padding-left: 5px;" class="fa  fa-lightbulb-o">&nbsp;&nbsp;</i>My Quiz</a> -->
                                    
<!--                                    <a href="<?php //echo base_url() . 'organization/manage-certificate'; ?>" <?php
                                    //if ($active_sub_menu == 'manageCertificate') {
                                        //echo "style='color:red;'";
                                    //}
                                    ?> class="list-group-item"><i style="padding-left: 5px;" class="fa  fa-certificate">&nbsp;&nbsp;</i>Manage Certificate</a>-->

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

                    <?php } ?>

                </div>


            </div>

            <!--all quiz left menu start-->

            <?php
        }
        if (isset($tt_all_quiz_left_menu)) {
            ?>
            <div class="row">
                <div class="col-sm-12 text-left padding-zero">
                    <div class="gray padding-zero" style="padding-left: 5px">
                        <h4>
                            <p class="bg-primary lead" style="text-align: center;background-color: #8CC73F;font-size: 16px">Quiz Topic</p>
                        </h4>
                        <div id="latest_quiz">  
                            <?php if($all_quiz_topic){?>
                            <?php foreach ($all_quiz_topic as $value) { ?>
                                <div class="checkbox checkbox-success">
                                    <ul style="padding-left: 10px;">
                                        <input id="checkbox2" name="checkbox2[]" class="styled" onclick="CategorywiseQuiz()" value="<?php echo $value->topic_id; ?>" type="checkbox"><label for="checkbox1"><?php echo $value->topic_name; ?></label><br/>                                        
                                    </ul>
                                </div>                                
                                <?php
                            }
                            if ($quiz_topic_id) {
                                if ($total_quiz > 3) {
                                    ?>                                                                      
                                    <li id="moreL">
                                        <a href="javascript:void(0);" onclick="more_view('<?php echo $number = $number + 3; ?>', '<?php echo $total_quiz; ?>');" style="padding-left: 40px">
                                            More....                                      
                                        </a>
                                    </li>                                              

                                    <?php
                                }
                            }
                            }
                            ?>
                        </div>
                    </div>
                    <br>

                    <ins class="adsbygoogle"
                         style="display:block"
                         data-ad-client="ca-pub-3140114751019908"
                         data-ad-slot="2044561420"
                         data-ad-format="auto"></ins>
                    <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>

                </div>
                <div class="col-sm-12">
                    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                    <!-- TT four -->
                    <ins class="adsbygoogle"
                         style="display:inline-block;width:150px;height:250px"
                         data-ad-client="ca-pub-3140114751019908"
                         data-ad-slot="8060742220"></ins>
                    <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
                </div>

            </div>
        <?php } ?>

        <!--all quiz left menu end-->

        <!--all group left menu start-->

        <?php if (isset($tt_all_group_left_menu)) { ?>
            <div class="row">
                <div class="col-sm-12 text-left padding-zero">

                    <div class="gray padding-zero" style="padding-left: 5px">
                        <h4>
                            <p class="bg-primary lead" style="text-align: center;background-color: #8CC73F;font-size: 16px">Popular Group</p>
                            <!--<a style="color: #C9302C" href="javascript:void(0)">Popular Group</a>-->
                        </h4>

                        <ul  style="padding-left: 10px;">
                            <div id="popular_group">
                                <?php
                                $j = 0;
                                if ($popular_group) {

                                    foreach ($popular_group as $val) {
                                        $j++;
                                        ?>
                                        <div class="checkbox checkbox-success">
                                            <input id="checkbox2" name="checkbox2[]" class="styled" type="checkbox" onclick="Categorywisegroup()" value="<?php echo $val->group_type_id; ?>"><label for="checkbox1"><?php echo $val->group_type_name; ?></label><br/>
                                        </div>

                                        <?php
                                        //  $count[] = $val->group_type_id;
                                    }
                                }
                                ?>
                            </div>
                            <?php $popular_count_type = count($totall_popular_type); ?>
                            <input type="hidden" id="popular_counter" value="<?php echo $j; ?>">
                            <input type="hidden" id="popular_count_type" value="<?php echo $popular_count_type; ?>">
                            <?php
                            if ($popular_count_type >= $j) {
                                ?>
                                <div id="more_view_popular" style="display:block;">
                                    <a style="padding-left: 50px;" 
                                       href="javascript:void(0)"
                                       onclick="more_view_popular_group()">More...</a>
                                </div>
                                <?php
                            }
                            ?>
                        </ul>

                    </div>

                    <br>
                    <div class="white padding-zero" style="padding-left: 5px">
                        <p class="bg-primary lead" style="text-align: center;background-color: #8CC73F;font-size: 16px">Latest Group</p>
                        <!--<h4 ><a style="color: #C9302C" href="#">Latest Group </a></h4>-->

                        <ul  style="padding-left: 10px;">
                            <div id="latest_group">
                                <?php
                                $i = 0;
                                if ($latest_group) {
                                    foreach ($latest_group as $val) {
                                        $i++;
                                        ?>
                                        <div class="checkbox checkbox-success">
                                            <input id="checkbox2" name="checkbox2[]" class="styled" type="checkbox" onclick="Categorywisegroup()" value="<?php echo $val->group_type_id; ?>"><label for="checkbox1"><?php echo $val->group_type_name; ?></label><br/>
                                        </div>

                                        <?php
                                    }
                                }
                                ?>
                            </div>
                            <?php $count_type = count($totall_type) ?>
                            <input type="hidden" id="counter" value="<?php echo $i; ?>">
                            <input type="hidden" id="totall_type" value="<?php echo $count_type; ?>">
                            <input type="hidden" id="selected_id" value="">
                            <?php
                            if ($count_type >= $i) {
                                ?>
                                <div id="more_view" style="display:block;">
                                    <a style="padding-left: 50px;" 
                                       href="javascript:void(0)"
                                       onclick="more_view()">More...</a>
                                </div>
                                <?php
                            }
                            ?>

                        </ul>

                    </div>
                    <br>



                </div>


                <div class="col-sm-12" >
                    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                    <!-- TT three -->
                    <ins class="adsbygoogle"
                         style="display:block"
                         data-ad-client="ca-pub-3140114751019908"
                         data-ad-slot="2044561420"
                         data-ad-format="auto"></ins>
                    <script>
                                           (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>

                </div>
                <div class="col-sm-12">
                    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                    <!-- TT four -->
                    <ins class="adsbygoogle"
                         style="display:inline-block;width:150px;height:250px"
                         data-ad-client="ca-pub-3140114751019908"
                         data-ad-slot="8060742220"></ins>
                    <script>
                                           (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
                </div>
            </div>
        <?php } ?>
        <!--all group left menu end-->    


    </div>
    <?php
} 
