REKAP BIMBINGAN PRAKTIK KERJA LAPANGAN

@foreach ($guidances as $studentName => $studentGuidances) @php $first = $studentGuidances->first(); $internship = $first->internship; $student = $internship->student; $token = $internship->guidancePreviewToken(); $previewUrl = url('/guidances/preview/'.$internship->id.'/'.$token); $qrCode = QrCode::size(80)->generate($previewUrl); $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

{{ $studentName }}

NIS: {{ $student->nis }}
Kelas: {{ $student->schoolClass->name ?? '-' }}
Jurusan: {{ $student->department->name }}
Tempat PKL: {{ $internship->company->name }}
Periode: {{ $fmtDate($internship->start_date) }} — {{ $fmtDate($internship->end_date) }}
Pembimbing: {{ optional($internship->teacher)->user->name ?? '-' }}
@foreach ($studentGuidances->sortByDesc('guidance_date') as $guidance) @endforeach
No Tanggal Topik Catatan Tindak Lanjut
{{ $loop->iteration }} {{ $fmtDate($guidance->guidance_date) }} {{ $guidance->topic }} {{ $guidance->notes ?? '-' }} {{ $guidance->follow_up ?? '-' }}
@php $teacher = $first->teacher ?? $internship->teacher ?? null; @endphp @if ($teacher)

Guru Pembimbing:

{{ $teacher->user->name }}

NIP. {{ $teacher->nip ?? '-' }}

QR Code Verifikasi

{!! $qrCode !!}

Scan untuk lihat riwayat

@endif @if (!$loop->last)
@endif @endforeach