<?php foreach ($group_requested_member_list as $v_requested_member) { ?> 
<div class="col-sm-12 gray text-center" >
                        <div class="col-sm-1 padding-zero">
                            <div class="checkbox checkbox-success"   style="text-align: center;">
                                <input  class="checkbox2" name="checkbox2[]" type="checkbox" value="<?php echo $v_requested_member->group_member_id; ?>"><label for="checkbox"></label>
                            </div>
                        </div>
                        <div class="col-sm-2 padding-zero" ><a href="<?php echo base_url() . $v_requested_member->url . '/profile' ?>"><?php echo $v_requested_member->person_first_name; ?></a></div>
                        <div class="col-sm-4 padding-zero" ><?php echo $v_requested_member->person_email; ?></div>
                        <div class="col-sm-2 padding-zero" ><?php echo date('Y-m-d', strtotime($v_requested_member->group_join_date_time)); ?></div>

                        <div class="col-sm-1 padding-zero">
                            <?php
                            $group_member_status = $v_requested_member->group_member_status;
                            if ($group_member_status == 4) {
                                echo 'Blocked';
                            } else {
                                echo 'Pending';
                            }
                            ?>
                        </div>

                        <div class="col-sm-2 padding-zero">
                            <?php
                            if ($group_member_status == 4 || $group_member_status == 3) {
                                ?>
                                <a href="#" onclick="return checkForAction('<?php echo base_url() . 'make-active-group-member/' . $v_requested_member->group_member_id; ?>', 'Active')">
                                    <i class="fa fa-user-plus" title="Active"></i>
                                </a>&nbsp;&nbsp;
                            <?php } ?>

                            <?php if ($group_member_status != 4) { ?>
                                <a href="#" onclick="return checkForAction('<?php echo base_url() . 'make-block-group-member/' . $v_requested_member->group_member_id; ?>', 'Block')">
                                    <i class="fa fa-lock" title="Blocked"></i>
                                </a>&nbsp;&nbsp;
                            <?php } ?>

                            <a href="#" onclick="return checkForDelete('<?php echo base_url() . 'make-archive-group-member/' . $v_requested_member->group_member_id; ?>')">
                                <i class="fa fa-trash-o" title="Delete"></i>
                            </a>&nbsp;&nbsp;
                        </div>
                    </div>
                    <div class="col-sm-12"><br></div> 
                <?php } ?>
 <?php
                // echo $total_limit_value->total_type;
                $totall_count = count($totall_pending_member);
                if($value==10){
                $total_page = ceil($totall_count / 10);
                }
                else if($value==20)
                {
                $total_page = ceil($totall_count / 20);
                }
                else if($value==50)
                {
                $total_page = ceil($totall_count / 50);
                }
                else if($value==100)
                {
                $total_page = ceil($totall_count / 100);
                }
                else if($value==500)
                {
                $total_page = ceil($totall_count / 500);
                }
                
                
                if ($total_page > 1) {
                    ?>
                    <nav class="course-pagination">
                        <ul class="pagination">
                            <?php
                            if ($page > 2) {
                                ?>
                                <li>
                                    <a href="javascript:;" onclick="ajaxRequestedMemberPagination('<?php echo base_url() . 'number-wise-pending-list' ?>')" aria-label="Previous">
                                        <span aria-hidden="true" title="First Page">&laquo;&laquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="javascript:;" onclick="ajaxRequestedMemberPagination('<?php echo base_url() . 'number-wise-pending-list' . '/' . ($page - 1); ?>')" aria-label="Previous">
                                        <span aria-hidden="true" title="Previous Page">&laquo;</span>
                                    </a>
                                </li>
                            <?php } elseif ($page > 1) { ?>
                                <li>
                                    <a href="javascript:;" onclick="ajaxRequestedMemberPagination('<?php echo base_url() . 'number-wise-pending-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++) {?>
                               <li><a href="javascript:;"  onclick="ajaxRequestedMemberPagination('<?php echo base_url() . 'number-wise-pending-list' . '/' . ($i + 1) ?>')"><?php echo ($i + 1) ?></a></li>
                           <?php }
                            if ($total_page != $page) {
                                ?>
                                <li>
                                    <a href="javascript:;" onclick="ajaxRequestedMemberPagination('<?php echo base_url() . 'number-wise-pending-list' . '/' . ($page + 1); ?>')" aria-label="Next">
                                        <span aria-hidden="true" title="Next Page">&raquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="javascript:;"  onclick="ajaxRequestedMemberPagination('<?php echo base_url() . 'number-wise-pending-list' . '/' . $total_page; ?>')" aria-label="Next">
                                        <span aria-hidden="true" title="Last Page">&raquo;&raquo;</span>
                                    </a>
                                </li>
                            <?php } ?>
                        </ul>
                    </nav>
                <?php } ?>