@php
$months = [1=>'Januari',2=>'Februari',3=>'Maret',4=>'April',5=>'Mei',6=>'Juni',7=>'Juli',8=>'Agustus',9=>'September',10=>'Oktober',11=>'November',12=>'Desember'];
$fmtDate = fn($d) => $d->day.' '.$months[$d->month].' '.$d->year;
@endphp
REKAP KEHADIRAN PRAKTIK KERJA LAPANGAN
| Nama | : {{ $internship->student->user->name }} |
| NIS | : {{ $internship->student->nis }} |
| Kelas | : {{ $internship->student->schoolClass->name ?? '-' }} |
| Jurusan | : {{ $internship->student->department->name }} |
| Tempat PKL | : {{ $internship->company->name }} |
| Periode | : {{ $fmtDate($internship->start_date) }} — {{ $fmtDate($internship->end_date) }} |
| Pembimbing | : {{ $internship->teacher->user->name ?? '-' }} |
| No |
Tanggal |
Jam Datang |
Jam Pulang |
Status |
Keterangan |
@forelse ($attendances as $attendance)
| {{ $loop->iteration }} |
{{ $fmtDate($attendance->date) }} |
{{ $attendance->checkin_time ? $attendance->checkin_time->format('H:i') : '-' }} |
{{ $attendance->checkout_time ? $attendance->checkout_time->format('H:i') : '-' }} |
{{ ucfirst($attendance->status) }} |
{{ $attendance->keterangan ?? '-' }} |
@empty
| Tidak ada data absensi. |
@endforelse