'; // print_r($student_results); ?> 0) { // foreach ($theSubjects as $cs_value) { // ?> 0) { // echo '
';
                                                // print_r($theSubjects);
                                                foreach ($theSubjects as $cs_value) {

                                            ?>
                                                    
0) { // echo '
';
                                                // print_r($theSubjects);
                                                foreach ($theSubjects as $cs_value) {

                                            ?>
                                                    
                                                    
                                                    
                                                    
                                                    

                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
0) { foreach ($student_results as $studkey => $student) { ?> ; // print_r($theFinalresult);; foreach ($theSubjects as $csk => $csv) { // echo'
';
                                                    // print_r($student['subject_results'][$csv['subject_id']['total_full_marks']]);
                                                    if (isset($student['subject_results']) && count($student['subject_results']) > 0) {


                                                        if (isset($student['subject_results'][$csv['subject_id']]['sub_id']) && ($student['subject_results'][$csv['subject_id']]['sub_id'] == $csv['subject_id'])) {
                                                ?>
                                                            
(isset($student['subject_results'][$csv['subject_id']]['exam_total_obt_marks']) && !empty($student['subject_results'][$csv['subject_id']]['exam_total_obt_marks'])) ? $student['subject_results'][$csv['subject_id']]['exam_total_obt_marks'] : '', 'exam_gpa' => (isset($student['subject_results'][$csv['subject_id']]['gpa']) && !empty($student['subject_results'][$csv['subject_id']]['gpa'])) ? $student['subject_results'][$csv['subject_id']]['gpa'] : '', 'remarks_gpa' => (isset($student['subject_results'][$csv['subject_id']]['remarks_gpa']) && !empty($student['subject_results'][$csv['subject_id']]['remarks_gpa'])) ? $student['subject_results'][$csv['subject_id']]['remarks_gpa'] : '', 'exams_total_percentage' => (isset($student['subject_results'][$csv['subject_id']]['exams_total_percentage']) && !empty($student['subject_results'][$csv['subject_id']]['exams_total_percentage'])) ? $student['subject_results'][$csv['subject_id']]['exams_total_percentage'] : '', 'exam_total_obt_grade' => (isset($student['subject_results'][$csv['subject_id']]['total_obt_grade']) && !empty($student['subject_results'][$csv['subject_id']]['total_obt_grade'])) ? $student['subject_results'][$csv['subject_id']]['total_obt_grade'] : '', ); } else { echo " "; } } else { ?> 0) { ?>
Student Name Roll No Total Marks GPA Final Grade Remarks Percentage (%)
NA NA- -