{{-- table absent --}} @if ($state == 'show')

Daftar Hadir Praktik Kerja Lapangan (PKL)
{{ $InternshipPlace->name }}

@for ($i = 1; $i <= $date->endOfMonth()->format('d'); $i++) @endfor @foreach ($internshipUser as $index => $item) @for ($i = 1; $i <= $date->endOfMonth()->format('d'); $i++) @php @endphp @endfor @endforeach @if (!$internshipUser->count()) @endif
NO NISN Nama Siswa Kelas Tanggal
{{ $i }}
{{ $index + 1 }} {{ $item->users->students->nis }} {{ $item->users->students->fullname }} {{ $item->users->students->class->name }} @if (attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) == 'sakit') S @elseif (attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) == 'izin') I @elseif (attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) != 'not_present' && attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) != 'sakit' && attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) != 'izin' && attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) != 'libur') H @elseif (attendance_journal($item->users->id, $i, $date->format('m'), $date->format('Y')) == 'not_present') @if (dateBetween($date->format('Y'), $date->format('m'), $i, $InternshipPlace->id) && $date->lte(now())) A @endif @endif
Tidak ada data
Tanggal PKL: {{ is_date($InternshipPlace->internship_start_date, 'l, d F Y') }} s/d {{ is_date($InternshipPlace->internship_end_date, 'l, d F Y') }}
{{-- End:table absent --}} @else {{-- datatable --}}

{{ __('Absensi') }}

{{-- table --}}
@foreach ($datatable as $index => $item) @endforeach
NO Nama Perusahaan Siswa PKL Aksi
{{ $index + 1 }} {{ $item->name }} {{ $item->internship_user->count() }} Siswa
{{-- End:table --}} @if ($datatable->count() == 0)
Tidak ada data
@endif
{{-- End:datatable --}} @endif