@extends('backend.layouts.app') @section('content')
{{$exam->title}}( Competency Comparison )
@php $logo = 'placeholder'; if(\Auth::user()->user_type == 'school' || \Auth::user()->user_type == 'admin'){ $logo = \Auth::user()->school_logo == null ? \Auth::user()->image : $logo; }elseif(\Auth::user()->user_type == 'teacher'){ $logo = \Auth::user()->school->school_logo == null ? \Auth::user()->school->image : $logo; } @endphp
@php $sections = \App\Models\Section::whereIn('id', json_decode($exam->section_id, true))->get(); @endphp @php $hour = floor($exam->duration / 60); $min = $exam->duration % 60; @endphp
Grade {{$exam->grade->name}}
Section@foreach ($sections as $val)
  • {{$val->name}}
@endforeach
Date and Time {{date('d M Y, h:i A', strtotime($exam->date_and_time))}}
Duration{{$hour.': '.$min.'0 Hours'}}
Instruction {{$exam->description}}
@foreach($section_data as $sk=>$sv) @endforeach @if(!empty($results)) @foreach($results as $k=>$v) @foreach($v['sections'] as $sdk=>$sdv) @php $grade = get_standard_grade($sdv['score']); @endphp @endforeach @endforeach @endif
# COMPETENCY{{$sv}} . Correct % and Standard Level
{{ $loop->iteration }} {{$v['name']}}{{$sdv['score']}}% {{$grade['grade'] ?? 'N/A'}}
@endsection @section('script') @endsection