THE LOCAL GOVERNMENT TRAINING INSTITUTE

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

{{-- semester 1 gpa --}} @for ($y = 1; $y <= $student_year; $y++) @php $coursesg1 = $srs->getSCourses($student->reg_no, 1, $y, $year_id); $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']; } @endphp @endforeach @endfor @for ($y = 1; $y <= $student_year; $y++) @php // dd('vevo'); $coursesg2 = $srs->getSCourses($student->reg_no, 2, $y, $year_id); // dd($coursesg2); $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); $b = '-'; foreach ($gps2 as $key) { $gpasem2 = $key['gpa']; } @endphp @endforeach @endfor @if ($type == 'Bachelor')

PROVISIONAL RESULTS

@else @if(isset($finalgp))

ACADEMIC TRANSCRIPT

@else

PROVISIONAL RESULTS

@endif @endif

AWARD: {{ $pigname }}

@if ($type == 'Bachelor') @else @endif @if ($type == 'Bachelor') @else @endif @if ($type == 'Bachelor') @else @if(isset($finalgp)) @else @endif @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/A N/A{{ $classification }}

@for ($y = 1; $y <= $student_year; $y++) @php $courses = $srs->getSCourses($student->reg_no, 1, $y, $year_id); $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->getSCourses($student->reg_no, 2, $y, $year_id); $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

Upon Signing and Stamping this Transcript, We Verify that the Information is Accurate

__________________ ________________ ________________ _______________
EXAMINATION OFFICER DATE DEPUTY RECTOR (ARC) DATE