@php use App\Models\GradingSchemeDetail; use App\Models\AcademicSession; use App\Models\AcademicYear; use App\Models\StudentCourse; use App\Models\EndComment; use App\Models\StudentEndComment; use App\Models\Institution; use App\Helpers\GeneralHelper; @endphp @extends('layouts.app') @push('custom-css') @endpush @section('title') Student Transcript @endsection @push('custom-css') @endpush @section('content')
@foreach ($results as $index => $res) @foreach ($res as $res_index => $std_res) @if (count($std_res) != 0)
{{ ucwords($index) }} {{ ucwords($res_index) }}
@foreach ($std_res as $result) @endforeach
Course Name Score Point Grade Grade Point
{{ $result['course_name'] }} {{ $result['mark'] }}% {{ GradingSchemeDetail::where('grading_scheme_id', $result['grading_scheme_id'])->where('grade', $result['grade'])->first()->point }} {{ $result['grade'] }} {{ GradingSchemeDetail::where('grading_scheme_id', $result['grading_scheme_id'])->where('grade', $result['grade'])->first()->point }}

End Comment : {{ ucwords($comments[$index. ' '.$res_index]) }}

@endif @endforeach @endforeach
@endsection