THE LOCAL GOVERNMENT TRAINING INSTITUTE

P.O BOX 1125, DODOMA TANZANIA Website: www.lgti.ac.tz, Email:- info@lgti.ac.tz

@if ($type == 'Bachelor')

PROVISIONAL RESULTS

@else

ACADEMIC TRANSCRIPT

@endif

AWARD: {{ $pigname }}

{{-- semester 1 gpa --}} @for ($y = 1; $y <= 1; $y++) @php $coursesg1 = $srs->getSSCourses($student->reg_no, 1, $y, $spec_year); $student_data = $student_years->where('year_of_study', $student->year_of_study)->first(); // dd($coursesg1); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($coursesg1 as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa2 = collect(); $ma_gpa2->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa2, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; $gps1 = $srs->getGPA($ma_gpa, $student_gpa); foreach ($gps1 as $key) { $gpasem1 = $key['gpa']; // dd($gpasem1); } @endphp @endforeach @endfor @for ($y = 1; $y <= 1; $y++) @php $coursesg2 = $srs->getSSCourses($student->reg_no, 2, $y, $spec_year); $student_data = $student_years->where('year_of_study', $student->year_of_study)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($coursesg2 as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa2 = collect(); $ma_gpa2->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa2, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; $gps2 = $srs->getGPA($ma_gpa, $student_gpa); // dd($gps2); foreach ($gps2 as $key) { $gpasem2 = $key['gpa']; $totalgp = $gpasem1 + $gpasem2; if(isset($totalgp)){ $finalgp = $totalgp / 2; } // dd($finalgp); } @endphp @endforeach @endfor @for ($y = 1; $y <= 1; $y++) @php $coursesg3 = $srs->getSSCourses($student->reg_no, 1, 2, $spec_year); $student_data = $student_years->where('year_of_study', $student->year_of_study)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($coursesg3 as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa3 = collect(); $ma_gpa3->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa3, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; $gps3 = $srs->getGPA($ma_gpa, $student_gpa); foreach ($gps3 as $key) { $gpasem3 = $key['gpa']; } //dd($gpasem3); @endphp @endforeach @endfor @for ($y = 1; $y <= 1; $y++) @php $coursesg4 = $srs->getSSCourses($student->reg_no, 2, 2, $spec_year); $student_data = $student_years->where('year_of_study', $student->year_of_study)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($coursesg4 as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa4 = collect(); $ma_gpa4->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa4, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; $gps4 = $srs->getGPA($ma_gpa, $student_gpa); foreach ($gps4 as $key) { $gpasem4 = $key['gpa']; } @endphp @endforeach @endfor @if ($type == 'Bachelor') @else @endif @if ($type == 'Bachelor') @else @endif @if ($type == 'Bachelor') @else @endif
NAME OF STUDENT SEX DATE OF BIRTH
{{ $name->first_name }}  {{ $name->middle_name }} {{ $name->last_name }} {{ $name->gender }} {{ $date }}
NATIONALITY REGISTRATION NUMBER DATE OF ADMISSION
TANZANIA {{ $name->username }} {{ $admission }}
DATE OF GRADUATION OVERALL GPA CLASSIFICATION
N/A{{ $graduation }}N/AN/A{{ $classification }}

@for ($y = 1; $y <= 1; $y++) @php $courses = $srs->getSSCourses($student->reg_no, 1, $y, $spec_year); $student_data = $student_years->where('year_of_study', $student->year_of_study)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($courses as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa2 = collect(); $ma_gpa2->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa2, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; @endphp @endforeach
SEMESTER I GPA: SEMESTER I
CODE SUBJECT CREDITS GRADE
{{ $item->course_code }} {{ $item->course_name }} {{ $item->unit }} @if ($view_info != 'No View') {{ $view_info->final_grade }} @endif

@php $courses = $srs->getSSCourses($student->reg_no, 2, $y, $spec_year); $student_data = $student_years->where('year_of_study', $student->year_of_study)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($courses as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa2 = collect(); $ma_gpa2->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa2, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; @endphp @endforeach
SEMESTER II GPA: SEMESTER II
CODE SUBJECT CREDITS GRADE
{{ $item->course_code }} {{ $item->course_name }} {{ $item->unit }} @if ($view_info != 'No View') {{ $view_info->final_grade }} @endif
@endfor