  <?php 
                if($type_value){
                foreach($type_value as $val){
                     $serial++;?>
                <div class="col-sm-12 gray text-center" >

                    <div class="col-sm-6" style="padding: 5px 0 0 0"><?php echo $val->group_type_name;?></div>
                    
<!--                    <div class="col-sm-3" style="padding: 5px 0 0 0 ;">
                    <?php //if($val->group_type_publication_status==1){
                     //   echo '<i class="fa  fa-globe" title="Public"></i>';
                    ///}
                   // else if($val->group_type_publication_status==2){
                       // echo '<i style="color:limegreen" class="fa fa-user" title="TT User"></i>';
                    //}
                    //;?>
                    </div>-->
  <input type="hidden" name="group_type_id" id="group_type_id" value="<?php echo $val->group_type_id; ?>">
   <input type="hidden" name="group_type_status_value" id="group_type_status_value<?php echo $val->group_type_id; ?>" value="<?php echo $val->group_type_status;?>">

                    <div class="col-sm-3" style="padding: 5px 0 0 0">
                        <a href="<?php echo base_url()?>super-admin-edit-group-type/<?php $group_type_id= $this->encrypt->encode( $val->group_type_id);echo str_replace("/","%F2", $group_type_id); ?>"><i class="fa  fa-edit" title="Edit"></i></a>
                        <?php if($val->group_type_status==3){?>
                        <a href="javascript:;" onclick="pending('<?php echo $val->group_type_id; ?>')" id="pending<?php echo $val->group_type_id; ?>"><i class="fa fa-refresh fa-spin" title="Pending"></i></a>
                        <a href="javascript:;" onclick=" approved('<?php echo $val->group_type_id; ?>');"id="approved<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa fa-check-square" title="Approved"></i></a>
                        <a href="javascript:;" onclick="active('<?php echo $val->group_type_id; ?>')" id="published<?php echo $val->group_type_id; ?>" style="display:none;"><i class="fa  fa-user-plus" title="Published"></i></a>
                        <a href="javascript:;" onclick="inactive('<?php echo $val->group_type_id; ?>')" id="unpublished<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa  fa-user-times" title="UnPublished"></i></a>
                         
                       
                            <?php }else if($val->group_type_status==4){ ?>
                        <a href="javascript:;" onclick="pending('<?php echo $val->group_type_id; ?>')" id="pending<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa fa-refresh fa-spin" title="Pending"></i></a>
                        <a href="javascript:;" onclick=" approved('<?php echo $val->group_type_id; ?>');"id="approved<?php echo $val->group_type_id; ?>"><i class="fa fa-check-square" title="Approved"></i></a>
                        <a href="javascript:;" onclick="active('<?php echo $val->group_type_id; ?>')" id="published<?php echo $val->group_type_id; ?>" style="display:none;"><i class="fa  fa-user-plus" title="Published"></i></a>
                        <a href="javascript:;" onclick="inactive('<?php echo $val->group_type_id; ?>')" id="unpublished<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa  fa-user-times" title="UnPublished"></i></a>
                         
                           <?php    } else if($val->group_type_status==1){?>
                        <a href="javascript:;" onclick="pending('<?php echo $val->group_type_id; ?>')" id="pending<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa fa-refresh fa-spin" title="Pending"></i></a>
                        <a href="javascript:;" onclick=" approved('<?php echo $val->group_type_id; ?>');"id="approved<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa fa-check-square" title="Approved"></i></a>
                        <a href="javascript:;" onclick="active('<?php echo $val->group_type_id; ?>')" id="published<?php echo $val->group_type_id; ?>" ><i class="fa  fa-user-plus" title="Published"></i></a>
                        <a href="javascript:;" onclick="inactive('<?php echo $val->group_type_id; ?>')" id="unpublished<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa  fa-user-times" title="UnPublished"></i></a>
                         
                         <?php } else if ($val->group_type_status==0){?>
                        <a href="javascript:;" onclick="pending('<?php echo $val->group_type_id; ?>')" id="pending<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa fa-refresh fa-spin" title="Pending"></i></a>
                        <a href="javascript:;" onclick=" approved('<?php echo $val->group_type_id; ?>');"id="approved<?php echo $val->group_type_id; ?>"style="display:none;"><i class="fa fa-check-square" title="Approved"></i></a>
                        <a href="javascript:;" onclick="active('<?php echo $val->group_type_id; ?>')" id="published<?php echo $val->group_type_id; ?>" style="display:none;"><i class="fa  fa-user-plus" title="Published"></i></a>
                        <a href="javascript:;" onclick="inactive('<?php echo $val->group_type_id; ?>')" id="unpublished<?php echo $val->group_type_id; ?>"><i class="fa  fa-user-times" title="UnPublished"></i></a>
                            <?php } ?>
                         
                       
                        
                        
                        <a href="javascript:;" onclick="remove_type(<?php echo $val->group_type_id;?>)" id="delete" ><i class="fa fa-trash-o" title="Delete"></i></a>
                    
                    </div>
                </div>
    
                <?php } } ?>


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