@extends('layouts.adminlte') @section('title', 'Hasil Laporan Absensi') @section('content_header')

Hasil Laporan

@stop @section('content')
{{-- CARD HEADER --}}

Laporan Absensi @if($class) Kelas {{ $class->name }} @else Semua Kelas @endif

Periode: {{ $startDate->format('d/m/Y') }} s/d {{ $endDate->format('d/m/Y') }}

{{-- Tombol Aksi (Export) --}}
{{-- EXPORT EXCEL --}}
{{-- EXPORT PDF --}}
Kembali
{{-- Padding 0 untuk table full width --}} @if($absences->isEmpty())

Tidak Ada Data Ditemukan

Tidak ada data absensi yang sesuai dengan filter periode dan kelas yang Anda pilih.

@else
@foreach($absences as $absence) @endforeach
# Siswa Kelas Waktu Status Detail
{{ $loop->iteration }}
{{ $absence->student->name ?? 'Siswa Dihapus' }}
NIS: {{ $absence->student->nis ?? '-' }}
{{ $absence->student->class->name ?? 'N/A' }}
{{ $absence->attendance_time->format('d/m/Y') }}
{{ $absence->attendance_time->format('H:i') }} WIB
@php $statusStyles = [ 'Hadir' => 'bg-green-100 text-green-700', 'Terlambat' => 'bg-amber-100 text-amber-700', 'Absen' => 'bg-red-100 text-red-700', 'Izin' => 'bg-blue-100 text-blue-700', 'Sakit' => 'bg-purple-100 text-purple-700', ]; $style = $statusStyles[$absence->status] ?? 'bg-gray-100 text-gray-600'; @endphp {{ $absence->status }} @if ($absence->status == 'Terlambat') {{ $absence->late_duration }} menit @else - @endif
@endif
@stop