 <?php
                if ($unassigned_student_info) {
                    count($unassigned_student_info);
                    foreach ($unassigned_student_info 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-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; ?>
                                        <input type="hidden" value="<?php echo $student_value->student_id;?>" id="student_id" name="student_id">
                                    </a>
                                </div>
                                <div class="col-sm-2"><?php echo $student_value->person_contact_number; ?></div>
                                <div class="col-sm-3"><?php echo $student_value->person_email; ?></div>
                                <div class="col-sm-2 text-center">
                                    <?php
//                            $status_array = Array('', 'Paid', 'Partial Paid', 'unpaid', 'Drop', 'Cancel', 'Pending');
                                    if ($course_info->course_type == 1) {
                                        echo 'Paid';
//                                echo $status_array[$student_value->payment_status];
                                    }
                                    if ($course_info->course_type == 2) {
                                        echo 'Free';
                                    }
                                    ?>
                                </div>
                                <!----------- action start here ------------>
                                <div class="col-sm-2">                                 
                                <span id="addBatch<?php echo $student_value->student_id; ?>" style="display: block">
                                    <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo '0'?>', '<?php echo $batch; ?>')" id="addBatch">  
                                    <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                    </a>
                                </span>
                                <!--<input type="hidden" id="paginationUrl" value="<?php echo base_url('unassigned-student-pagination'); ?>">-->
                                <input type="hidden" id="pagination_url" value="<?php echo base_url('unassigned-student-pagination'); ?>">
                                 <input type="hidden" value="<?php echo base_url() . 'assign-unassigned-student/' . $course_url; ?>" id="unassigned_url" name="">
                                 <input type="hidden" value="<?php echo $course_url; ?>" id="course_url" name="course_url">
                                 <input type="hidden" value="<?php //echo $url;?>" id="redirect_url" name="redirect_url">
                                 <input type="hidden" value="<?php echo $count_student;?>" id="unassign_student_count" name="unassign_student_count">   
                                </div>
                                <!----------- action start here ----------->
                               <div class="col-sm-12"><br></div>
                            </div>
                            <div class="col-sm-12 form-group" id=""></div>
                        </div>
                        <!--------------------Select Batch Area---------------------------->
                        <div class="col-sm-12 form-group" style="" id='batch<?php echo $student_value->student_id; ?>'> </div>
                        <!--------------------end Select Batch Area---------------------------->         
                        <?php
                    }
                    echo $unassigned_student_paginzation_link;
                } else {
                    echo get_message('course_unassign_msg');
                }
                echo '</div>';
                