<?php
if ($assigned_student_info) {
    ?>
    <a href="javascript:void(0)" onclick="changeStudentPermission('<?php echo base_url() . 'change-student-permission'; ?>', '<?php echo $student_info->student_id; ?>', '<?php echo $classroom_info->classroom_id; ?>', 'Unassign')">  
        <i class="fa fa-times-circle-o" title="Unassign"></i>
    </a>&nbsp;&nbsp;&nbsp;
    <?php
} else {
    ?>
    <a href="javascript:void(0)" onclick="changeStudentPermission('<?php echo base_url() . 'change-student-permission'; ?>', '<?php echo $student_info->student_id; ?>', '<?php echo $classroom_info->classroom_id; ?>', 'Assign')">  
        <i class="fa fa-check" title="Assign"></i>
    </a>&nbsp;&nbsp;&nbsp;
    <?php
}
?>
<a href="<?php // echo base_url() . 'view-invoice-set-id/' . $id       ?>" target="_blank">  
    <i class="fa fa-dollar" title="Invoice"></i>
</a>