@extends('layouts.app') @section('title', 'Input Absensi Mapel') @section('content')
{{-- Info Sesi --}}

Input Absensi Mapel

Mapel: {{ $schedule->subject->name ?? '–' }}
Kelas: {{ $schedule->classroom->name ?? '–' }}
Sesi: {{ isset($schedule->start_time) ? substr($schedule->start_time, 0, 5) : '–' }} – {{ isset($schedule->end_time) ? substr($schedule->end_time, 0, 5) : '–' }}
Mulai: {{ $teachingRecord->started_at?->format('H:i') ?? '–' }}
Selesai: {{ $teachingRecord->ended_at?->format('H:i') ?? '–' }}
{{-- Counter & Bulk Set --}}
/ hadir
{{-- Tabel Siswa --}}
@csrf
Foto NIS Nama Hadir Terlambat Sakit Izin Absen Catatan @forelse($students ?? [] as $student) @php $existing = $existingAttendances[$student->id] ?? null; $currentStatus = $existing?->status?->value ?? 'present'; $currentNotes = $existing?->notes ?? ''; @endphp
{{ strtoupper(substr($student->full_name, 0, 1)) }}
{{ $student->student_number }} {{ $student->full_name }} @foreach (['present', 'late', 'sick', 'permission', 'absent'] as $status) @endforeach @empty Tidak ada data siswa @endforelse
Batal
@endsection