<input type="hidden" id="courseBatchId" value="<?php echo $course_batch_id; ?>">
<input type="hidden" id="studentNumber" value="<?php echo $student_number; ?>">
<input type="hidden" id="baseUrl" value="<?php echo base_url(); ?>">

<div class="col-sm-10">
    <div class="row ">
        <div class="col-sm-12 ">
            <span class="col-sm-6 text-left"><h3> Student List</h3></span>
        </div>       
        <div class="col-sm-12"><hr></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-3">Name</div>
                <div class="col-sm-3">Mobile</div>
                <div class="col-sm-3">Email</div>                
                <div class="col-sm-3">Action</div>                
            </div>
            <?php foreach ($assigned_student_info as $student_info) { ?>
                <div>
                    <div class="col-sm-12 text-left " style="padding: 10px;background-color:#F2F9EA;border: 1px solid #ededed" >
                        <div class="col-sm-3"> <?php echo $student_info->person_first_name; ?></div>
                        <div class="col-sm-3"><?php echo $student_info->person_contact_number; ?></div>
                        <div class="col-sm-3"> <?php echo $student_info->person_email; ?> </div>
                        <?php
                        $person_role = $this->session->person_role;
                        if ($batch_info->course_batch_status != 2 && ($person_role == 6 || $person_role == 1)) {
                            ?>
                            <div class="col-sm-3">
                                <a href="javascript:void(0);" id="removeAssignedStudent<?php echo $student_info->student_id; ?>"> 
                                    <i class="fa fa-remove" title="Remove Student"></i> 
                                </a>    
                            </div>
                        <?php } ?>
                    </div>
                    <!--<div class="col-sm-12 form-group" id=""></div>-->
                </div>
                <div class="modal" id="removeAssignedStudentModal<?php echo $student_info->student_id; ?>">
                    <?php
                    $id = 'Assign' . $student_info->student_id;
                    $message = 'Do you really want to remove this student?';
                    echo $this->cf->view_modal($id, $message)
                    ?>
                </div> 
            <?php } ?>
        </div>
    </div>
</div>
<script src="<?php echo base_url()?>front_end_resource/batch/batch.js" type="text/javascript"></script>



