<style>
    #loading_image{
        padding: 0px;
        height: 300px;
        position: absolute;
        z-index: 1;
        width: 100%;
        line-height: 300px;
    }
</style>
<link href="<?php echo base_url(); ?>front_end_resource/batch/alert_select_batch.css" rel="stylesheet" type="text/css"/>
<div class="col-sm-8">
    <div class="row ">
        <div class="col-sm-12"><hr></div>
        <div style="padding: 0px;opacity: 1; display: none" id="loading_image">
            <img src="<?php echo base_url() ?>image/course-loader.gif" 
                 height="60" width="60" style="margin: 20% 45%;">
        </div>

        <div class="form-group col-sm-12">
            <div class="form-group col-sm-5">
                <div class="input-group date" id="datetimepicker1">
                    <input type="text" 
                           class="form-control text-input" 
                           name="start_date" id="start_date"
                           onblur="viewRegisteredStudentBYDate(this.value, end_date.value)"
                           aria-describedby="basic-addon1"
                           value=""
                           placeholder="Start Date" >
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <div class="form-group col-sm-5">
                <div class="input-group date" id="datetimepicker2">
                    <input type="text" 
                           class="form-control text-input" 
                           name="end_date" id="end_date"
                           onblur="viewRegisteredStudentBYDate(start_date.value, this.value)"
                           aria-describedby="basic-addon1"
                           value=""
                           placeholder="End Date" >
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>

            <script type="text/javascript">
                //for Date   #datetimepicker1 is ID for Date Input Field     
                $(function () {
                    $('#datetimepicker1').datetimepicker({
                        viewMode: 'years',
                        format: 'YYYY-MM-DD'
                    });
                    $('#datetimepicker2').datetimepicker({
                        viewMode: 'years',
                        format: 'YYYY-MM-DD'
                    });
                });
            </script>
            <div class="form-group col-sm-12 text-left" id="errorMessage"></div>
        </div>

        <div class="col-sm-12">
            <div class="col-sm-12  text-left  "style="margin-bottom: 5px;font-weight: bold; border-bottom: 2px solid #80c12c">
                <div class="col-sm-2">Name</div>
                <div class="col-sm-3">Mobile</div>
                <div class="col-sm-3">Email</div>
                <div class="col-sm-2 text-center">Course Status</div>
                <div class="col-sm-2">Action</div>
            </div>
            <div id="view_register_student">
                <?php
                if ($course_register_student) {
                    foreach ($course_register_student as $student_value) {
                        if($course_info->course_type == 1){
                            foreach($random_number as $random_num){
                                if($student_value->person_id == $random_num['person_id']){
                                    if($random_num['payment_status'] == 1 || $random_num['payment_status'] == 2 || $random_num['payment_status'] == 6 || $random_num['payment_status'] == 3 || $random_num['payment_status'] == 4 || $random_num['payment_status'] == 5 || $random_num['payment_status'] == 7){
                                    ?>
                                    <div>
                                        <div class="col-sm-12 text-left " style="padding: 10px;background-color:#F2F9EA;border: 1px solid #ededed" >
                                            <div class="col-sm-2">
                                                <a href="<?php echo base_url() . $student_value->url . '/profile'; ?>" target="_blank">
                                                    <?php
                                                        //echo $student_value->person_first_name . ' ' . $student_value->person_last_name;
                                                        if(strlen($student_value->person_first_name) && strlen($student_value->person_last_name) < 20){
                                                            echo $student_value->person_first_name . ' ' . $student_value->person_last_name;
                                                            }
                                                        else{
                                                            echo substr($student_value->person_first_name, 0, 30).' '.substr($student_value->person_last_name, 0, 20).'...';
                                                            }
                                                    ?>
                                                </a>
                                            </div>
                                            <div class="col-sm-3"><?php echo $student_value->person_contact_number; ?></div>
                                            <div class="col-sm-3">
                                                <?php //echo $student_value->person_email; 
                                                
                                                    if (strlen($student_value->person_email) < 40) {
                                                        echo $student_value->person_email;
                                                    } else {
                                                        echo substr($student_value->person_email, 0, 30) . '...';
                                                    }
                                                    
                                                ?>
                                            </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>
                                            <div class="col-sm-2">
                                                <!--------------- not eligible --------------------->
                                                <span class="padding-zero" id="<?php echo $student_value->student_id; ?>" style="display: inline"> 
                                                        <a href="javascript:void(0);" data-toggle="modal" data-target="#noteligible<?php echo $student_value->student_id; ?>" >  
                                                            <i id="" class="fa fa-eye-slash" title="not eligible"></i>
                                                        </a>
                                                    </span>&nbsp;                   
<!--                                                <div class="modal" style="" id="noteligible<?php //echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                                    <div class="modal-dialog">
                                                        <div class="modal-content" style="top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;width: 450px">           
                                                            <div class="modal-body">
                                                                <h4 class="text-center">Want to make this student not eligible?</h4>
                                                            </div>
                                                            <div class="modal-footer">
                                                                <div  class="col-sm-12">               
                                                                    <button onclick="makeNotEligible('<?php //echo base_url(); ?>not-eligible', '<?php //echo $student_value->student_id; ?>', '<?php //echo $course_info->course_id; ?>')" style="margin-left: 90px" type="button" class="btn btn-success  col-sm-2" data-dismiss="modal">Yes</button>
                                                                    <button type="button" style="margin-left: 20px" class="btn btn-danger col-sm-2 col-sm-offset-4" data-dismiss="modal">No</button>
                                                                </div>
                                                            </div>            
                                                        </div>
                                                    </div>
                                                </div>                     -->
                                            <div class="modal" style="" id="noteligible<?php echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                                <div class='modal-dialog'>
                                                    <div class='modal-content' style='top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;max-width: 400px'>           
                                                        <div class='modal-body text-center' style='padding-bottom: 0px;'>
                                                            <span class='text-center'>Want to make this student not eligible?</span>
                                                        </div>
                                                        <div class='modal-footer'>
                                                            <div  class='col-sm-12 text-center'>  
                                                                <span class='col-sm-3 col-sm-offset-3'>
                                                                    <button  type='button' class='btn btn-danger  col-sm-12' data-dismiss='modal' style='font-size: 14px;'>No</button>
                                                                </span>		
                                                                <span class='col-sm-3'>
                                                                    <button onclick="makeNotEligible('<?php echo base_url(); ?>not-eligible', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" class='btn btn-success  col-sm-12' data-dismiss='modal'>Yes</button>
                                                                </span>										

                                                            </div>
                                                        </div>            
                                                    </div>
                                                </div>
                                            </div>
                                                <!------------- not eligible ----------------------->
                                                <?php
                                                if ($course_info->course_type == 1) {
                                                    $total_checked_box = $total_checked_boxes[$student_value->student_id]->total_checked;  //tania
                                                        $person_id = $this->encryption->encrypt($random_num['person_id']);
                                                        $person_id = strtr($person_id,array('+' => '.', '=' => '-', '/' => '~'));
                                                        if ($course_info->course_type == 1 && $course_info->course_resource_person_view_invoice == 1){
                                                    ?>
                                                    <a href="<?php  echo base_url('student/partial-invoice/'.$course_info->url.'/'.$person_id); ?>" target="_blank">  
                                                        <i class="fa fa-dollar" title="Invoice">&nbsp;&nbsp;</i>
                                                    </a>
                                                        <?php } ?>
                                                    <?php if ($total_checked_box == 0) { ?>
                                                        <span class="padding-zero" id="addBatch<?php echo $student_value->student_id; ?>" style="display: inline">
                                                            <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $total_checked_box; ?>', '<?php echo $batch; ?>')" id="addBatch">  
                                                                <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                                            </a>
                                                        </span>
                                                        <span class="padding-zero" id="deleteIcon<?php echo $student_value->student_id; ?>" style="display:inline">
                                                            <a href="javascript:void(0);" data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_id; ?>" >  
                                                                <i id="deleteicon" class="fa fa-trash-o" title="Remove"></i>
                                                            </a>
                                                        </span>
                                                        <span class="padding-zero" id="viewIcon<?php echo $student_value->student_id; ?>" style="display:none"> 
                                                            <a href="javascript:void(0);" onclick="viewBatch('<?php echo base_url(); ?>view-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" >  
                                                                <i class="fa fa-th" title="View batch"></i>
                                                            </a>
                                                        </span>
                                                    <?php } else if ($total_checked_box == 1) { ?>
                                                        <span id="addBatch<?php echo $student_value->student_id; ?>" style="display: inline">
                                                            <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $total_checked_box; ?>', '<?php echo $batch; ?>')" id="addBatch">  
                                                                <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                                            </a>
                                                        </span>
                                                        <span id="deleteIcon<?php echo $student_value->student_id; ?>" style="display: none">
                                                            <a href="javascript:void(0);" data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_id; ?>" >  
                                                                <i id="deleteicon" class="fa fa-trash-o" title="Remove"></i>
                                                            </a>
                                                        </span>
                                                        <span id="viewIcon<?php echo $student_value->student_id; ?>" style="display: inline"> 
                                                            <a href="javascript:void(0);" onclick="viewBatch('<?php echo base_url(); ?>view-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" >  
                                                                <i class="fa fa-th" title="View batch"></i>
                                                            </a>
                                                        </span>
                                                    <?php } else if ($total_checked_box == 2) { ?>
                                                        <span id="addBatch<?php echo $student_value->student_id; ?>" style="display: none">
                                                            <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $total_checked_box; ?>', '<?php echo $batch; ?>')" id="addBatch">  
                                                                <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                                            </a>
                                                        </span>
                                                        <span id="deleteIcon<?php echo $student_value->student_id; ?>" style="display: none">
                                                            <a href="javascript:void(0);" data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_id; ?>" >  
                                                                <i id="deleteicon" class="fa fa-trash-o" title="Remove"></i>
                                                            </a>
                                                        </span>
                                                        <span id="viewIcon<?php echo $student_value->student_id; ?>" style="display: inline"> 
                                                            <a href="javascript:void(0);" onclick="viewBatch('<?php echo base_url(); ?>view-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" >  
                                                                <i class="fa fa-th" title="View batch"></i>
                                                            </a>
                                                        </span>                           
                                                    <?php } ?>


<!--                                                    <div class="modal" style="" id="removeStuddent<?php //echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                                        <div class="modal-dialog">
                                                            <div class="modal-content" style="top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;width: 450px">           
                                                                <div class="modal-body">
                                                                    <h4 class="text-center">Are you sure you want to Remove this Student?</h4>
                                                                </div>
                                                                <div class="modal-footer">
                                                                    <div  class="col-sm-12">               
                                                                        <button onclick="removeRegisterStudent('<?php //echo base_url() . 'user/remove-registered-student' ?>', '<?php //echo $student_value->student_roll_number; ?>')" style="margin-left: 90px" type="button" class="btn btn-success  col-sm-2" data-dismiss="modal">Yes</button>
                                                                        <button type="button" style="margin-left: 20px" class="btn btn-danger col-sm-2 col-sm-offset-4" data-dismiss="modal">No</button>
                                                                    </div>
                                                                </div>            
                                                            </div>
                                                        </div>
                                                    </div>-->
                                                
                                              <div class="modal" style="" id="removeStuddent<?php //echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                                <div class='modal-dialog'>
                                                    <div class='modal-content' style='top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;max-width: 400px'>           
                                                        <div class='modal-body text-center' style='padding-bottom: 0px;'>
                                                            <span class='text-center'>Are you sure you want to Remove this Student?</span>
                                                        </div>
                                                        <div class='modal-footer'>
                                                            <div  class='col-sm-12 text-center'>  
                                                                <span class='col-sm-3 col-sm-offset-3'>
                                                                    <button  type='button' class='btn btn-danger  col-sm-12' data-dismiss='modal' style='font-size: 14px;'>No</button>
                                                                </span>		
                                                                <span class='col-sm-3'>
                                                                    <button onclick="removeRegisterStudent('<?php echo base_url() . 'user/remove-registered-student' ?>', '<?php echo $student_value->student_roll_number; ?>')" class='btn btn-success  col-sm-12' data-dismiss='modal'>Yes</button>
                                                                </span>										

                                                            </div>
                                                        </div>            
                                                    </div>
                                                </div>
                                             </div>

                                                    <?php


                                                    }

                                                ?>

                                            </div>
                                            <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
                                    break;
                                    }
                                }
                            }
                        }
                        if($course_info->course_type == 2){
                        ?>
                        <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;
                                            if(strlen($student_value->person_first_name) && strlen($student_value->person_last_name) < 20){
                                                echo $student_value->person_first_name . ' ' . $student_value->person_last_name;
                                                }
                                            else{
                                                echo substr($student_value->person_first_name, 0, 30).' '.substr($student_value->person_last_name, 0, 20).'...';
                                                }
                                        ?>
                                    </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;
                                        if (strlen($student_value->person_email) < 40) {
                                            echo $student_value->person_email;
                                        } else {
                                            echo substr($student_value->person_email, 0, 30) . '...';
                                        }
                                    ?>
                                </div>
                                <div class="col-sm-2 text-center">
                                    <?php
                                    if ($course_info->course_type == 2) {
                                        echo 'Free';
                                    }
                                    ?>
                                </div>
                                <div class="col-sm-2">
                                    <!--------------- not eligible --------------------->
                                    <span class="padding-zero" id="<?php echo $student_value->student_id; ?>" style="display: inline"> 
                                            <a href="javascript:void(0);" data-toggle="modal" data-target="#noteligible<?php echo $student_value->student_id; ?>" >  
                                                <i id="" class="fa fa-eye-slash" title="not eligible"></i>
                                            </a>
                                        </span>                   
<!--                                    <div class="modal" style="" id="noteligible<?php //echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <div class="modal-content" style="top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;width: 450px">           
                                                <div class="modal-body">
                                                    <h4 class="text-center">Want to make this student not eligible?</h4>
                                                </div>
                                                <div class="modal-footer">
                                                    <div  class="col-sm-12">               
                                                        <button onclick="makeNotEligible('<?php //echo base_url(); ?>not-eligible', '<?php //echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" style="margin-left: 90px" type="button" class="btn btn-success  col-sm-2" data-dismiss="modal">Yes</button>
                                                        <button type="button" style="margin-left: 20px" class="btn btn-danger col-sm-2 col-sm-offset-4" data-dismiss="modal">No</button>
                                                    </div>
                                                </div>            
                                            </div>
                                        </div>
                                    </div>  
                                    -->
                                 
                                            <div class="modal" style="" id="noteligible<?php echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                                <div class='modal-dialog'>
                                                    <div class='modal-content' style='top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;max-width: 400px'>           
                                                        <div class='modal-body text-center' style='padding-bottom: 0px;'>
                                                            <span class='text-center'>Want to make this student not eligible?</span>
                                                        </div>
                                                        <div class='modal-footer'>
                                                            <div  class='col-sm-12 text-center'>  
                                                                <span class='col-sm-3 col-sm-offset-3'>
                                                                    <button  type='button' class='btn btn-danger  col-sm-12' data-dismiss='modal' style='font-size: 14px;'>No</button>
                                                                </span>		
                                                                <span class='col-sm-3'>
                                                                    <button onclick="makeNotEligible('<?php echo base_url(); ?>not-eligible', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" class='btn btn-success  col-sm-12' data-dismiss='modal'>Yes</button>
                                                                </span>										

                                                            </div>
                                                        </div>            
                                                    </div>
                                                </div>
                                             </div>
                                    
                                    
                                    
                                    <!------------- not eligible ----------------------->
                                    <?php
                                    if ($course_info->course_type == 2) {
                                        $total_checked_box = $total_checked_boxes[$student_value->student_id]->total_checked;  //tania
                                        ?>
                                        <?php if ($total_checked_box == 0) { ?>
                                            <span id="addBatch<?php echo $student_value->student_id; ?>" style="display: inline">
                                                <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $total_checked_box; ?>', '<?php echo $batch; ?>')" id="addBatch">  
                                                    <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                                </a>
                                            </span>
                                            <span id="deleteIcon<?php echo $student_value->student_id; ?>" style="display:inline">
                                                <a href="javascript:void(0);" data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_id; ?>" >  
                                                    <i id="deleteicon" class="fa fa-trash-o" title="Remove"></i>
                                                </a>
                                            </span>
                                            <span id="viewIcon<?php echo $student_value->student_id; ?>" style="display:none"> 
                                                <a href="javascript:void(0);" onclick="viewBatch('<?php echo base_url(); ?>view-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" >  
                                                    <i class="fa fa-th" title="View batch"></i>
                                                </a>
                                            </span>
                                        <?php } else if ($total_checked_box == 1) { ?>
                                            <span id="addBatch<?php echo $student_value->student_id; ?>" style="display: inline">
                                                <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $total_checked_box; ?>', '<?php echo $batch; ?>')" id="addBatch">  
                                                    <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                                </a>
                                            </span>
                                            <span id="deleteIcon<?php echo $student_value->student_id; ?>" style="display: inline">
                                                <a href="javascript:void(0);" data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_id; ?>" >  
                                                    <i id="deleteicon" class="fa fa-trash-o" title="Remove"></i>
                                                </a>
                                            </span>
                                            <span id="viewIcon<?php echo $student_value->student_id; ?>" style="display: inline"> 
                                                <a href="javascript:void(0);" onclick="viewBatch('<?php echo base_url(); ?>view-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" >  
                                                    <i class="fa fa-th" title="View batch"></i>
                                                </a>
                                            </span>
                                        <?php } else if ($total_checked_box == 2) { ?>
                                            <span id="addBatch<?php echo $student_value->student_id; ?>" style="display: inline">
                                                <a href="javascript:void(0);" onclick="assignBatch('<?php echo base_url(); ?>assign-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $total_checked_box; ?>', '<?php echo $batch; ?>')" id="addBatch">  
                                                    <i class="fa fa-ge" title="Add Batch">&nbsp;&nbsp;</i>
                                                </a>
                                            </span>
                                            <span id="deleteIcon<?php echo $student_value->student_id; ?>" style="display: inline">
                                                <a href="javascript:void(0);" data-toggle="modal" data-target="#removeStuddent<?php echo $student_value->student_id; ?>" >  
                                                    <i id="deleteicon" class="fa fa-trash-o" title="Remove"></i>
                                                </a>
                                            </span>
                                            <span id="viewIcon<?php echo $student_value->student_id; ?>" style="display: inline"> 
                                                <a href="javascript:void(0);" onclick="viewBatch('<?php echo base_url(); ?>view-student-batch', '<?php echo $student_value->student_id; ?>', '<?php echo $course_info->course_id; ?>')" >  
                                                    <i class="fa fa-th" title="View batch"></i>
                                                </a>
                                            </span>
                                        <?php } ?>


<!--                                        <div class="modal" style="" id="removeStuddent<?php //echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                            <div class="modal-dialog">
                                                <div class="modal-content" style="top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;width: 450px">           
                                                    <div class="modal-body">
                                                        <h4 class="text-center">Are you sure you want to Remove this Student?</h4>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <div  class="col-sm-12">               
                                                            <button onclick="removeRegisterStudent('<?php //echo base_url() . 'user/remove-registered-student' ?>', '<?php //echo $student_value->student_roll_number; ?>')" style="margin-left: 90px" type="button" class="btn btn-success  col-sm-2" data-dismiss="modal">Yes</button>
                                                            <button type="button" style="margin-left: 20px" class="btn btn-danger col-sm-2 col-sm-offset-4" data-dismiss="modal">No</button>
                                                        </div>
                                                    </div>            
                                                </div>
                                            </div>
                                        </div>-->
                                   <div class="modal" style="" id="removeStuddent<?php echo $student_value->student_id; ?>" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
                                                <div class='modal-dialog'>
                                                    <div class='modal-content' style='top: 180px;border: 5px solid #80c12c;border-top: 20px solid #80c12c !important;margin: 0 auto;max-width: 400px'>           
                                                        <div class='modal-body text-center' style='padding-bottom: 0px;'>
                                                            <span class='text-center'>Are you sure you want to Remove this Student?</span>
                                                        </div>
                                                        <div class='modal-footer'>
                                                            <div  class='col-sm-12 text-center'>  
                                                                <span class='col-sm-3 col-sm-offset-3'>
                                                                    <button  type='button' class='btn btn-danger  col-sm-12' data-dismiss='modal' style='font-size: 14px;'>No</button>
                                                                </span>		
                                                                <span class='col-sm-3'>
                                                                    <button onclick="removeRegisterStudent('<?php echo base_url() . 'user/remove-registered-student' ?>', '<?php echo $student_value->student_roll_number; ?>')" class='btn btn-success  col-sm-12' data-dismiss='modal'>Yes</button>
                                                                </span>										

                                                            </div>
                                                        </div>            
                                                    </div>
                                                </div>
                                             </div>
                                    
                                        <?php
                                    }
                                    ?>
                                    </div>
                                <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 $register_course_student_paginzation_link;
                } else {
                    echo get_message('course_register_msg');
                }
                echo '</div>';
                ?>
            </div>
            <input type="hidden" id="courseID" value="<?php echo $course_info->course_id ?>">
            <input type="hidden" id="paginationUrl" value="<?php echo base_url('user/register-course-student-pagination'); ?>">
            <input type="hidden" id="registerStudentUrl" value="<?php echo base_url('user/view-register-course-student'); ?>">
        </div>
    </div>
    <script type="text/javascript" src="<?php echo base_url() ?>front_end_resource/batch/batch.js"></script>
    <script type="text/javascript" src="<?php echo base_url() ?>front_end_resource/batch/alert_select_batch.js"></script>
