 <div class="col-sm-12 padding-zero">


                <div class="col-sm-12 gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding: 5px 0 5px 0;font-weight: bold">

                    <div class="col-sm-2" style="padding: 0">Group name</div>
                    <div class="col-sm-2" style="padding: 0">Type</div>
                    <div class="col-sm-2" style="padding: 0">Member</div>
                    <div class="col-sm-2" style="padding: 0">Request</div>
                    <div class="col-sm-2" style="padding: 0">Permission</div>
                    <div class="col-sm-2" style="padding: 0">Action</div>
                </div>
                <div class="col-sm-12"><br></div> 
                <?php
                if($groups){
                foreach($groups as $val) {
                   
                    $serial++; 
                    ?>
                <div class="col-sm-12 gray text-center" >

                    <div class="col-sm-2" style="padding: 5px 0 0 0"><a href="<?php echo base_url()?>individual-group-details/<?php echo $url_info[$val->group_id]->url; ?>"><?php echo $val->group_name ;?></a></div>
                    <div class="col-sm-2" style="padding: 5px 0 0 0  "><?php echo $type_name[ $val->group_id]->group_type_name;?></div>
                    <div class="col-sm-2" style="padding: 5px 0 0 0  ">
                     <a href="<?php echo base_url()?>member-information/<?php echo $url_info[$val->group_id]->url;?>">
                         <?php
                       echo $total_member[$val->group_id]->total; ?></a></div>
                    <input type="hidden" id="group_id" name="group_id" value="<?php echo $val->group_id; ?>" >
                    <input type="hidden" name="group_status" id="group_status<?php echo $val->group_id; ?>" value="<?php echo $val-> group_permission;?>">
                    <div class="col-sm-2" style="padding: 5px 0 0 0  "><a href="<?php echo base_url() ?>pending-member-information/<?php echo $url_info[$val->group_id]->url;?>">
                        <?php
                       
                               echo $total_member_pending[$val->group_id]->total_pending; ?></a></div>
                    
                    <div class="col-sm-2" style="padding: 5px 0 0 0">
                        <?php if($val-> group_permission==1){?>
                        <a id="public<?php echo $val->group_id; ?>" href="javascript:;" onclick="change_status_public(<?php echo $val->group_id; ?>)"><i  style="color: #80c12c" class="fa fa-globe" title="Public"></i></a>
                    <a id="only_group<?php echo $val->group_id; ?>" style="display:none;" onclick="change_status_group(<?php echo $val->group_id; ?>)"><i  style="color: #80c12c" class="fa fa-users" title="only_group" ></i></a>
                <?php } else if($val-> group_permission==4){?>
                    <a id="public<?php echo $val->group_id; ?>" style="display:none;" onclick="change_status_public(<?php echo $val->group_id; ?>)"><i  style="color: #80c12c" class="fa fa-globe" title="Public"></i></a>
                    <a id="only_group<?php echo $val->group_id; ?>" href="javascript:;" onclick="change_status_group(<?php echo $val->group_id; ?>)"><i  style="color: #80c12c" class="fa fa-users" title="only_group" ></i></a>
                <?php } ?>
                    </div>
                
                    <div class="col-sm-2" style="padding: 5px 0 0 0  ">
                        <a href="<?php echo base_url() ?>edit-group/<?php echo $url_info[$val->group_id]->url;?>" ><i class="fa  fa-edit" title="Edit"></i></a>
                        <input id="group_status_id<?php echo $val->group_id; ?>" type="hidden" value="<?php echo $val->group_status ;?>">
                        <?php if($val->group_status ==0){ ?>
                        <a href="javascript:;" id="active<?php echo $val->group_id; ?>"   onclick="active('<?php echo $val->group_id; ?>');" ><i class="fa  fa-user-plus" title="Active"></i></a>
                        <a href="javascript:;" id="inactive<?php echo $val->group_id; ?>" onclick="inactive('<?php echo $val->group_id; ?>');"style="display:none;"><i class="fa  fa-user-times" title="inactive"></i></a>
                          <?php } else if($val-> group_status ==1){ ?>
                        <a href="javascript:;" id="active<?php echo $val->group_id; ?>"   onclick="active('<?php echo $val->group_id; ?>');"style="display:none;"><i class="fa  fa-user-plus" title="Active"></i></a>
                        <a href="javascript:;" id="inactive<?php echo $val->group_id; ?>" onclick="inactive('<?php echo $val->group_id; ?>'); "  ><i class="fa  fa-user-times" title="inactive"></i></a>
                         
                          <?php } ?>
                       <?php  if($val-> group_status ==2){ ?>
                        <a href="javascript:;" id="archive<?php echo $val->group_id; ?>"   onclick="archieve('<?php echo $val->group_id; ?>')"><i class="fa fa-archive" title="Archive"></i></a>
                       <?php }?>
                        <a href="javascript:;" onclick="remove_group(<?php echo $val->group_id; ?>)"><i class="fa fa-trash-o" title="Delete"></i></a>
                    </div>
                    
                </div>

                <?php } } ?>

                
                 <?php
                // echo $total_limit_value->total_type;
                 if($total_group){
                    
                $total_page = ceil($total_group->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-manage-group' ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="First Page">&laquo;&laquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-manage-group/'. ($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-manage-group/'. ($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-manage-group/'. ($i + 1) . '">' . ($i + 1) . '</a></li>';
                            }
                            if ($total_page != $page) {
                                ?>
                                <li>
                                    <a href="<?php echo base_url() . 'super-admin-manage-group/'. ($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-manage-group/'. $total_page; ?>" aria-label="Next">
                                        <span aria-hidden="true" title="Last Page">&raquo;&raquo;</span>
                                    </a>
                                </li>
                            <?php } ?>
                        </ul>
                    </nav>
                <?php }} ?>


            </div>
