{{--
DATA IDUKA
Nama: {{ $company->name }}
Pimpinan: {{ $company->leader }}
Nomor Telepon: {{ $company->number_phone }}'
Kota: {{ $company->city }}
Alamat: {{ $company->address }}
Program Keahlian: {{ $company->program_skill->name }}
Tanggal Mulai PKL: {{ is_date($company->internship_start_date, 'l, d F Y') }}
Tanggal Selesai PKL: {{ is_date($company->internship_end_date, 'l, d F Y') }}
Daftar Hadir Praktik Kerja Lapangan (PKL)
--}} @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
NO NISN Nama Siswa Kelas Bulan {{ $date->translatedFormat('F') }}
{{ $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, $company->id) && $date->lte(now())) A @endif @endif
Jumlah Ketidakhadiran
Sakit : {{ $sick }} hari
Izin : {{ $permission }} hari
Alpha : {{ $alpha }} hari
Total : {{ $sick + $permission + $alpha }} hari
Keterangan
H : Hadir
S : Sakit
I : Izin
A : Alpha
: Libur