Raport

Index

@can('Admin')
Tahun Ajaran @forelse($dataTahunAjaran as $tahunAjaran) @php $value = $tahunAjaran->tahun_awal . '/' . $tahunAjaran->tahun_akhir; @endphp @empty @endforelse
Kelas
Semester
Reset
Unduh
@endcan

{{-- Card Progress Wali Kelas (hanya untuk role Wali) --}} @if (Auth::user()->role === 'Wali' && $waliKelasProgress)
@php $percentageGanjil = $waliKelasProgress['ganjil']['progress_percentage']; $isCompleteGanjil = $percentageGanjil >= 100; $isHighGanjil = $percentageGanjil >= 75 && $percentageGanjil < 100; $isMediumGanjil = $percentageGanjil >= 50 && $percentageGanjil < 75; if ($isCompleteGanjil) { $progressColorGanjil = 'text-emerald-700 dark:text-emerald-200'; } elseif ($isHighGanjil) { $progressColorGanjil = 'text-yellow-600 dark:text-yellow-300'; } elseif ($isMediumGanjil) { $progressColorGanjil = 'text-yellow-600 dark:text-yellow-300'; } else { $progressColorGanjil = 'text-red-600 dark:text-red-300'; } @endphp

Semester Ganjil

{{ number_format($percentageGanjil, 0) }}%

Progress Input

{{ $waliKelasProgress['ganjil']['sudah_input'] }}/{{ $waliKelasProgress['ganjil']['harus_input'] }}

@php $percentageGenap = $waliKelasProgress['genap']['progress_percentage']; $isCompleteGenap = $percentageGenap >= 100; $isHighGenap = $percentageGenap >= 75 && $percentageGenap < 100; $isMediumGenap = $percentageGenap >= 50 && $percentageGenap < 75; if ($isCompleteGenap) { $progressColorGenap = 'text-emerald-700 dark:text-emerald-200'; } elseif ($isHighGenap) { $progressColorGenap = 'text-yellow-600 dark:text-yellow-300'; } elseif ($isMediumGenap) { $progressColorGenap = 'text-yellow-600 dark:text-yellow-300'; } else { $progressColorGenap = 'text-red-600 dark:text-red-300'; } @endphp

Semester Genap

{{ number_format($percentageGenap, 0) }}%

Progress Input

{{ $waliKelasProgress['genap']['sudah_input'] }}/{{ $waliKelasProgress['genap']['harus_input'] }}

@endif {{-- Detail Data Cards --}}
@if (isset($kelasData) && count($kelasData) > 0) @foreach ($kelasData as $index => $data) @php $groupKey = $data['group_key'] ?? 'group-' . $loop->index; @endphp

{{ $data['group_label'] ?? 'Kelas' }}
: {{ $data['group_value'] ?? '-' }}

{{-- @if (!$isAlumniMode)

Angkatan
: {{ $data['angkatan'] ?? '-' }}

@endif --}} @if (!empty($data['wali_kelas']) && $data['wali_kelas'] !== '-')

Wali Kelas
: {{ $data['wali_kelas'] }}

@endif
Raport {{ $data['group_value'] ?? '-' }}
No. {{-- NIS / NISN --}} Nama Siswa Jenis Kelamin Status Input Aksi @forelse($data['students'] as $key => $siswa) {{ $key + 1 }} {{-- {{ $siswa->nis }} / {{ $siswa->nisn }} --}} {{ $siswa->nama_siswa }} {{ $siswa->jenis_kelamin }} @php $ganjilStatus = data_get( $siswa->raport_status ?? [], 'Ganjil', false, ); $ganjilHeadId = data_get( $siswa->raport_head_ids ?? [], 'Ganjil', ); $ganjilDetailUrl = $ganjilStatus && $ganjilHeadId ? route('raport.show', $ganjilHeadId) : route('raport.show', [ 'raport' => $siswa->id, 'semester' => 'Ganjil', ]); @endphp @if ($ganjilStatus) Sudah Input @else Belum Input @endif @if ($ganjilStatus && $ganjilHeadId) Edit @else @if (!empty($data['wali_kelas']) && $data['wali_kelas'] !== '-' && $data['wali_kelas'] !== 'Belum Ditentukan') Input @else @endif @endif @if ($ganjilStatus && $ganjilHeadId) Lihat @else @endif @if ($ganjilStatus && $ganjilHeadId) Unduh @else @endif @empty Tidak ada siswa ditemukan @endforelse
@endforeach @else

Tidak ada data siswa untuk tahun ajaran ini!

@endif
{{-- Modal Validasi Wali Kelas --}}
@push('js') @endpush