load->model('Admin_model'); $query = "SELECT students.name, students.email, classroom.classroom_name,classroom.id as classroom_id, classroom.course_id FROM students INNER JOIN student_batch sb on students.id = sb.student_id inner join classroom ON sb.classroom_id = classroom.id WHERE students.id = '" . $_SESSION['student_id'] . "'"; $get_class = $CI->Admin_model->get_table_info('students', '', $query); if (!empty($get_class)) { $classRoomId = $get_class[0]['classroom_id']; $notification_query = "SELECT * from notifications where notification_read = 'No' AND student_classroom = '" . $classRoomId . "' ORDER BY notification_id DESC LIMIT 5"; $notifications = $CI->Admin_model->get_notification_details('', $notification_query); } } $schoolInfo = $this->Admin_model->get_logo_from_setting(); ?> <?php echo (isset($schoolInfo['school_name']) && !empty($schoolInfo['school_name'])) ? $schoolInfo['school_name'] : 'Application Name'; ?>

Notifications

    $value) { ?>
  • There no new notifications

    "; } ?>