@extends('layouts.app') @section('title', 'Input Hafalan') @section('content')

Input Hafalan

{{ $classRoom->class_name }} — {{ $subject->name }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@csrf
@foreach ($students as $i => $student) @php $existing = $existingRecords->get($student->id, collect()); @endphp @endforeach
# Siswa Surah Ayat S/D Jenis Skor Catatan
{{ $i + 1 }}
{{ $student->name }}
@if ($existing->isNotEmpty()) @foreach ($existing as $rec)
{{ $rec->quranMaster->surah_name }} {{ $rec->ayat_start }}-{{ $rec->ayat_end }} {{ $rec->activity_type === 'ZIADAH' ? 'Ziadah' : 'Murajaah' }} {{ $rec->score }} ({{ \App\Models\TahfidzRecord::scoreToPredikat($rec->score) }})
@endforeach @endif
-
Kembali
@endsection @push('scripts') @endpush