<?php
$person_role = $this->session->userdata('person_role');
$person_id = $this->session->userdata('user_id');
$classroom_id = $this->session->userdata('classroom_id');
$classroom_student_id = $this->session->userdata('classroom_student_id');
?>

|| <a style="color: #006600;"><?php echo $course_resource_person_info->person_first_name; ?></a>
|| <a style="color: #cccc00;"><?php echo 'Coruse Name: ' . $classroom_info->course_name; ?></a>
<?php if ($person_role == 3 || $person_role == 4) { ?>
    || <a href="<?php echo base_url() . 'end-session/' . $classroom_info->course_id . '/' . $this->session->userdata('classroom_id'); ?>"style="color: #009999;">End Session</a>
<?php } else if ($this->session->userdata('person_role') == 5) { ?>
    || <a href="<?php echo base_url() . 'leave-classroom/' . $classroom_info->course_id . '/' . $this->session->userdata('classroom_student_id'); ?>"style="color: #009999;">Leave Classroom</a>
<?php } ?>

<br>
<br>
<div id="container">
    Student List:
    <?php foreach ($all_students as $v_course_student) { ?>

        <form>
            <input type="checkbox" name="">
            <a href="<?php echo $v_course_student->person_id; ?>">
                <?php
                echo $v_course_student->person_first_name;
                //    echo $this->session->userdata('active_menu');
                ?>
            </a>
            <a href="<?php echo $v_course_student->person_id; ?>"><i class="fa fa-file-video-o"></i></a>
            <a href="<?php echo $v_course_student->person_id; ?>"><i class="fa fa-file-audio-o"></i></a>
            <a href="<?php echo $v_course_student->person_id; ?>"><i class="fa fa-edit"></i></a>
                <?php
                if ($attendee_student[$v_course_student->student_id]) {
                    ?>
                <span>Attended</span>
            <?php } else { ?>
                <span>Absent</span>
                <?php
            }
            ?>
            <a href="<?php echo base_url() . 'block_student' . $v_course_student->student_id; ?>">Block </a>
        </form>

    <?php } ?>
</form>
</div>