<?php
if ($course_register_student) {
    foreach ($course_register_student as $student_value) {
        ?>
        <div>
            <div class="col-sm-12 text-left " style="padding: 10px;background-color:#F2F9EA;border: 1px solid #ededed" >
                <div class="col-sm-2"><?php echo $student_value->student_roll_number; ?></div>
                <div class="col-sm-3">
                    <a href="<?php echo base_url() . $student_value->url . '/profile'; ?>" target="_blank">
                        <?php echo $student_value->person_first_name . ' ' . $student_value->person_last_name; ?>
                    </a>
                </div>

                <div class="col-sm-3"><?php echo $student_value->person_email; ?></div>
                <div class="col-sm-2 text-center">
                    <?php
                    if ($course_info->course_type == 1) {
                        echo 'Paid';
                    }
                    if ($course_info->course_type == 2) {
                        echo 'Free';
                    }
                    ?>
                </div>
                <div class="col-sm-2">
                    <a href="javascript:void(0)"  data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_roll_number; ?>" >  
                        <i class="fa fa-trash-o" title="Remove"></i>
                    </a>
                    <div class="modal" style="" id="removeStuddent<?php echo $student_value->student_roll_number; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                        <?php
                        $status_message1 = 'Are you sure you want to Remove this Student?';
                        $status_function_name1 = 'removeStudent(&quot;' . base_url('admin/remove-course-student') . '&quot;,&quot;' . $student_value->student_roll_number . '&quot;,&quot;1&quot;)';
                        $this->cf->get_status_modal($status_function_name1, $status_message1);
                        ?>
                    </div>
                </div>
                <div class="col-sm-12"><br></div>
            </div>
            <div class="col-sm-12 form-group" id=""></div>
        </div>        
        <?php
    }
    echo $register_course_student_paginzation_link;
} else {
    echo '<span style="align:center">' . get_message('course_register_msg') . '</span>';
}