  <?php
                $i = 0;
                if ($member_group_list) {
                    foreach ($member_group_list as $v_group) {
                        ?>
                        <div class="col-sm-12 <?php
                        if ($i % 2) {
                            echo 'gray';
                        } else {
                            echo 'white';
                        }
                        $i++
                        ?> text-center" >

                            <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                                <a href="<?php echo base_url() . 'group-detail/' . $v_group->url; ?>">
                                    <?php echo $v_group->group_name; ?>
                                </a>
                            </div>

                            <div class="col-sm-1" style="padding: 10px 0 0 0  ">
                                <a href="<?php echo base_url() . 'group/' . $v_group->url . '/members'; ?>">
                                    <?php echo count($group_member_list[$v_group->group_id]); ?>
                                </a>
                            </div>



                            <div class="col-sm-5" style="padding: 10px 0 0 0  ">
                                <a href="<?php echo base_url() . 'group/' . $v_group->url . '/note'; ?>">
                                    <?php echo count($group_note_post[$v_group->group_id]); ?>
                                </a>/   

                                <a href="<?php echo base_url() . 'group/' . $v_group->url . '/alert'; ?>">
                                    <?php echo count($group_alert_post[$v_group->group_id]); ?>
                                </a>/

                                <a href="<?php echo base_url() . 'group/' . $v_group->url . '/assignment'; ?>">
                                    <?php echo count($group_assignment_post[$v_group->group_id]); ?>
                                </a>/

                                <a href="<?php echo base_url() . 'group/quizes/' . $v_group->url; ?>">
                                    <?php echo count($group_quiz[$v_group->group_id]); ?>
                                </a>/

                                <a href="<?php echo base_url() . 'group/' . $v_group->url . '/photo'; ?>">
                                    <?php echo count($group_photo_post[$v_group->group_id]); ?>
                                </a>/

                                <a href="<?php echo base_url() . 'group/' . $v_group->url . '/video'; ?>">
                                    <?php echo count($group_video_post[$v_group->group_id]); ?>
                                </a>

                            </div>



                            <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                                <a href="<?php echo base_url() . 'fornt-end-group-course-list/' . $v_group->url ?>">
                                    <?php echo count($group_courses[$v_group->group_id]) ?>
                                </a>/

                                <a href="<?php echo base_url() . 'fornt-end-group-video-course-list/' . $v_group->url ?>">
                                    <?php echo count($group_video_courses[$v_group->group_id]) ?>

                                </a>
                            </div>
                            <?php
                            $user_id = $this->session->userdata('user_id');
                            if ($group_creator[$v_group->group_id] == $user_id) {
                                ?>
                                <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                                    <a href="<?php echo base_url() . 'group/' . $v_group->url . '/edit-group'; ?>"><i class="fa fa-edit" title="Edit"></i></a>&nbsp;&nbsp;

                                    <?php
                                    $group_status = $v_group->group_status;
                                    if ($group_status == 0) {
                                        ?>
                                        <a href="#" onclick="return checkForAction('<?php echo base_url() . 'unpublish-group/' . $v_group->url; ?>', 'Unpublish')">
                                            <i class="fa  fa-user-plus" title="Publish"></i>
                                        </a>&nbsp;&nbsp;
            <?php } else if ($group_status == 1) { ?>
                                        <a href="#" onclick="return checkForAction('<?php echo base_url() . 'unpublish-group/' . $v_group->url; ?>', 'Unpublish')">
                                            <i class="fa  fa-user-times" title="Unpublish"></i>
                                        </a>&nbsp;&nbsp;
            <?php } else if ($group_status == 2) { ?>
                                        <a href="#" onclick="return checkForAction('<?php echo base_url() . 'publish-group/' . $v_group->url; ?>', 'Publish')">
                                            <i class="fa  fa-user-plus" title="Publish"></i>
                                        </a>&nbsp;&nbsp;
                                    <?php } ?>

            <?php if ($group_status != 2) { ?>
                                        <a href="#" onclick="return checkForDelete('<?php echo base_url() . 'archive-group/' . $v_group->url; ?>')">
                                            <i class="fa fa-trash-o" title="Delete"></i>
                                        </a>&nbsp;&nbsp;
            <?php } ?>

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

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


                    <?php
                    // echo $total_limit_value->total_type;
                    $totall_count = count($count_group_list);
                    $total_page = ceil($totall_count / 10);
                    if ($total_page > 1) {
                        ?>
                        <nav class="course-pagination">
                            <ul class="pagination">
                                <?php
                                if ($page > 2) {
                                    ?>
                                    <li>
                                        <a href="javascript:;" onclick="searchDetailGrouppagination('<?php echo base_url() . 'search-detail-group-learner' ?>')"  aria-label="Previous">
                                            <span aria-hidden="true" title="First Page">&laquo;&laquo;</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a  href="javascript:;" onclick="searchDetailGrouppagination('<?php echo base_url() . 'search-detail-group-learner' . '/' . ($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="searchDetailGrouppagination('<?php echo base_url() . 'search-detail-group-learner/' . ($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="searchDetailGrouppagination('<?php echo base_url() . 'search-detail-group-learner/' . ($i + 1)?>')" ><?php echo ($i + 1) ?> </a></li>
                                <?php }
                                if ($total_page != $page) {
                                    ?>
                                    <li>
                                        <a href="javascript:;" onclick="searchDetailGrouppagination('<?php echo base_url() . 'search-detail-group-learner/' . ($page + 1); ?>')" aria-label="Next">
                                            <span aria-hidden="true" title="Next Page">&raquo;</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="javascript:;" onclick="searchDetailGrouppagination('<?php echo base_url() . 'search-detail-group-learner/' . $total_page; ?>')" aria-label="Next">
                                            <span aria-hidden="true" title="Last Page">&raquo;&raquo;</span>
                                        </a>
                                    </li>
        <?php } ?>
                            </ul>
                        </nav>
                    <?php } } ?>
