@foreach ($students as $student) @php $instructor = $student?->supporting_data?->mentor_name ?? $student?->user?->internship_user?->internship_place?->leader; $company_city = Str::ucfirst($student?->user?->internship_user?->internship_place?->city); $internship_start_date = \Carbon\Carbon::parse($student?->user?->internship_user?->internship_place?->internship_start_date)->translatedFormat('d F Y'); $internship_end_date = \Carbon\Carbon::parse($student?->user?->internship_user?->internship_place?->internship_end_date)->translatedFormat('d F Y'); @endphp {{-- Section 1 --}}
LEMBAR OBSERVASI PKL

: {{ $student?->fullname ?? '...........................................' }}

: {{ $student?->user?->internship_user?->internship_place?->name ?? '...........................................' }}

: {{ $instructor ?? '...........................................'}}

: {{ $student?->mentorship?->teacher?->name ?? '...........................................' }}

: {{ $student?->mentorship->project_title ?? '...........................................' }}

@foreach ($student->student_learning_objectives as $index => $item) @foreach ($item->learning_objective->learningGoals as $subIndex => $subItem) @endforeach @endforeach @if (count($student->student_learning_objectives) == 0) @endif
No. Tujuan Pembelajaran/Indikator Ketercapaian Ya/Tidak Deskripsi
{{ $index + 1 }} {{ $item?->learning_objective->description }} @php $description = getLearningObjectiveDescription($student->id, $item?->learning_objective?->id); @endphp {{ getDescriptionGenerator($student->id, $item?->learning_objective->id, $description) }}
{{ $index + 1 }}.{{ $subIndex + 1 }} {{ $subItem?->description }}
{{ getGoalAchievementStatus($student->id, $subItem->id) ? 'Ya' : 'Tidak' }}
Skor {{ getYesCount($student->id, $item?->learning_objective->id) }}
Tidak ada data
{{--
--}} {{-- Section 2 --}}
No. Tujuan Pembelajaran/Indikator Skor Predikat Deskripsi
Catatan Guru Mata Pelajaran PKL
{{ $student?->teacher_note?->description }}
Catatan Instruktur Industri
{{ $student?->company_note?->description }}
{{-- Section 3 --}}

DAFTAR NILAI PESERTA DIDIK
MATA PELAJARAN PKL

{{ getSchoolName() }}
Tahun Ajaran {{ $student?->school_year ?? '....' }}/{{ $student?->school_year ? $student?->school_year + 1 : '....' }}

: {{ $student?->fullname ?? '..........................................' }}

: {{ $student?->nisn ?? '.........................................' }}

: {{ $student?->class?->name ?? '..........................................' }}

: {{ $student?->program_skill?->name ?? '..........................................' }}

: {{ $student?->skill_competency?->name ?? '..........................................' }}

: {{ $student?->user?->internship_user?->internship_place?->name ?? '..........................................' }}

: {{ $internship_start_date ?? '.........' }} s/d {{ $internship_end_date ?? '.........' }}

: {{ $instructor ?? '..........................................' }}

: {{ $student->mentorship->teacher->name ?? '..........................................' }}

@foreach ($student->student_learning_objectives as $index => $item) @endforeach @if (count($student->student_learning_objectives) == 0) @endif
No. Tujuan Pembelajaran Skor Predikat
{{ $index + 1 }} {{ $item?->learning_objective->description }} {{ getAverageScore($student->id, $item?->learning_objective->id) }} {{ getPredicateAverageScore($student->id, $item?->learning_objective?->id) }}
Tidak ada data
@php $start_date =$student?->user?->internship_user?->internship_place?->internship_start_date; $end_date = $student?->user?->internship_user?->internship_place?->internship_end_date; $summary = attendance_summary($student?->user?->id, $start_date, $end_date); @endphp
Kehadiran
Sakit : {{ $summary['sick'] }} Hari
Ijin : {{ $summary['permit'] }} Hari
Tanpa Keterangan : {{ $summary['not_present'] }} Hari
@if (!$loop->last)
@endif @endforeach