<div class="col-sm-12"><hr></div>
<?php
if ($matched_student_list) {
    foreach ($matched_student_list as $v_student) {
        $student_id = $v_student->student_id;
        $security_salt = '#' . rand(1, 99999);
        $e_id = $this->encrypt->encode($student_id);
        $s_id = $e_id . $security_salt;
        $de_id = $this->encrypt->encode($s_id);
        $student_e_id = str_replace("/", "%F2", $de_id);
        ?>
        <div id="sActions<?php echo $student_id; ?>">
            <div class="col-sm-12 text-left " style="padding:5px; background-color:#F2F9EA;border: 1px solid #ededed">
                <div class="col-sm-2">
                    <a href="<?php echo base_url() . $v_student->url . '/profile'; ?>" target="_blank">
                        <?php echo $v_student->person_first_name . '<br>'; ?>
                    </a>
                </div>
                <div class="col-sm-2"><?php echo $v_student->person_contact_number; ?></div>
                <div class="col-sm-3"><?php echo $v_student->person_email; ?></div>
                <div class="col-sm-1">
                    <?php
                    $student_payment_status = $student_payment_info[$student_id]->payment_status;
                    if ($student_payment_info[$student_id]) {
                        $payment_status = array('', 'Paid', 'Partial paid', 'Unpaid', 'Drop', 'cancel', 'pending', 'Free');
                        echo $payment_status[$student_payment_status];
                    } else {
                        echo 'Free';
                    }
                    ?>
                </div>
                <div class="col-sm-4">
                    <?php foreach ($student_batches[$student_id] as $v_batch) { ?>
                        <span><?php echo $v_batch->course_batch_name; ?></span>
                        <a href="javascript:;" onclick="unassignStudent('<?php echo base_url() . 'unassign-batch-student/' . $student_e_id . '/' . $v_batch->course_batch_id; ?>', '<?php echo $student_id; ?>')">  
                            <i class="fa fa-times-circle-o" title="Unassign"></i>
                        </a>&nbsp;&nbsp;&nbsp;
                        <br>
                    <?php } ?>
                </div>
            </div>
        </div>
        <?php
    }
}
?>
<input type="hidden" id="student_in_multiple_batch" name="student_in_multiple_batch" value="yes">
