@extends('template.app') @section('content')

{{ $title }}

@if (session('error')) @endif @if (session('success')) @endif
@php $no = 1; $detail = ''; $score = DB::table('student_scores') ->where('test_id', Request::get('test')) ->where('student_id', Request::get('student')) ->where('price_id', Request::get('class')) ->first(); if ($score != null) { $detail = DB::table('student_score_details') ->where('student_score_id', $score->id) ->get(); } else { $score = ''; } @endphp @if ($score == null)
@else @endif @csrf
{{--

{{ Request::get('type') == 'create' ? 'Tambah Data' : 'Edit Data' }}

--}}
@error('student') @enderror @error('class') @enderror
@error('student') @enderror
@error('test') @enderror
@error('date') @enderror
@foreach ($item as $itKey => $itValue) @php $no++; @endphp @endforeach
No Skill Score Grade
{{ $no }} {{ $itValue->name }}
{{ $detail != null ? Helper::getGrade($detail[$itKey]->score) : '' }}
Average
{{-- Tambahan --}}
@endsection