  <?php if($all_group_list){
       $temp=array();
        foreach($all_group_list as $val){
            $serial++;?>

        <div class="col-sm-12 gray text-center">

            <div class="col-sm-2" style="padding: 10px 0 0 0  "><a href="<?php echo base_url()?>individual-group-details/<?php echo $grp_url_name[$val->group_id]->url ;?>" ><?php echo $val-> group_name;?></a></div>
            <div class="col-sm-1" style="padding: 10px 0 0 0  "><a href="<?php echo base_url()?>member-information/<?php echo $grp_url_name[$val->group_id]->url ;?>"><?php  echo $total_member[$val->group_id]->total;?></a></div>
            
            <div class="col-sm-5" style="padding: 10px 0 0 0  ">
                <a href="<?php echo base_url()?>super-admin-group-note/<?php echo  $grp_url_name[$val->group_id]->url;?>"><?php echo count($total_note[$val->group_id]); ?>/
                
                </a>     <!-- Note -->
                
                <a href="<?php echo base_url()?>super-admin-group-alert/<?php echo  $grp_url_name[$val->group_id]->url;?>"><?php echo count($total_alert[$val->group_id]);?></a>/    <!-- Alert -->
                
                <a href="<?php echo base_url()?>super-admin-group-assignment/<?php echo  $grp_url_name[$val->group_id]->url;?>"><?php echo count($total_assignment[$val->group_id]);?></a> /    <!-- Assignment -->
                
                <a href="<?php echo base_url()?>super_admin_group/group_member_quiz_details" title="Quiz">12</a> /    <!-- Quiz -->
                
                <a href="<?php echo base_url()?>super-admin-group-photo/<?php echo  $grp_url_name[$val->group_id]->url;?>"><?php echo count($total_photo[$val->group_id]);?></a> /    <!-- Photo -->
                
                <a href="<?php echo base_url()?>super-admin-group-video/<?php echo  $grp_url_name[$val->group_id]->url;?>"> <?php echo count($total_video[$val->group_id]);?></a>      <!-- Video -->
            </div>
            
            <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                <a href="<?php echo base_url()?>super-admin-group-course/<?php echo  $grp_url_name[$val->group_id]->url;?>"><?php echo count($total_course[$val->group_id]);?></a> /    <!-- Course -->
                <a href="<?php echo base_url()?>super-admin-group-video-course/<?php echo  $grp_url_name[$val->group_id]->url;?>"><?php echo count($total_video_course[$val->group_id]); ?></a>      <!-- Video Course -->
            </div>
            <?php $person_id = $this->session->userdata('person_id');
                if($check_person_status->person_role==6 ||($check_person_status->person_role==5 && $person_id==$val->group_created_by)){?>
            <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                <?php if($val->group_status==1){?>
                <a href="#" style="color: green"><i class="fa  fa-user-plus" title="Active"></i></a>
                <?php } else if($val->group_status==0){?>
                <a href="#" style="color: red"><i class="fa  fa-user-times" title="UnPublished"></i></a>
                <?php }else if($val->group_status==2){?>
                <a href="#"><i class="fa fa-archive" title="Archive"></i></a>
                <?php } ?>
            </div>
                <?php } ?>
        </div>
        <?php } } ?>
      
        <div class="col-sm-12"><br></div> 

        
                 <?php
                // echo $total_limit_value->total_type;
                $total_page = ceil($total_group_list->total_group / 10);
                if ($total_page > 1) {
                    ?>
                    <nav class="course-pagination">
                        <ul class="pagination">
                            <?php
                            if ($page > 2) {
                                ?>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-detail-group-list' ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="First Page">&laquo;&laquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-detail-group-list/'. ($page - 1); ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="Previous Page">&laquo;</span>
                                    </a>
                                </li>
                            <?php } elseif ($page > 1) { ?>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-detail-group-list/'. ($page - 1); ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="Previous Page">&laquo;</span>
                                    </a>
                                </li>
                                <?php
                            }
                            for ($i = 0; $total_page > $i; $i++) {
                                echo '<li><a href="' . base_url() . 'super-admin-detail-group-list/'. ($i + 1) . '">' . ($i + 1) . '</a></li>';
                            }
                            if ($total_page != $page) {
                                ?>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-detail-group-list/'. ($page + 1); ?>" aria-label="Next">
                                        <span aria-hidden="true" title="Next Page">&raquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-detail-group-list/'. $total_page; ?>" aria-label="Next">
                                        <span aria-hidden="true" title="Last Page">&raquo;&raquo;</span>
                                    </a>
                                </li>
                            <?php } ?>
                        </ul>
                    </nav>
                <?php } ?>
       


      