@php $faviconPath = 'images/branding/logo-cefyt-dark.png'; $faviconVersion = file_exists(public_path($faviconPath)) ? filemtime(public_path($faviconPath)) : time(); $cssPath = 'css/app.css'; $cssVersion = file_exists(public_path($cssPath)) ? filemtime(public_path($cssPath)) : time(); @endphp Trayectoria de {{ $student->full_name }}

Trayectoria del alumno

{{ $student->full_name }}

DNI: {{ $student->dni ?: 'Sin dato' }} · Email: {{ $student->email ?: 'Sin dato' }}

Fecha de impresión: {{ now()->format('d/m/Y H:i') }}

Total de materias: {{ $student->enrollments->count() }}

@foreach ($student->enrollments->sortBy(fn ($enrollment) => $enrollment->subject->career->code.'-'.$enrollment->subject->year_number.'-'.$enrollment->subject->name)->groupBy(fn ($enrollment) => $enrollment->subject->career->code.' · '.$enrollment->subject->year_number.'° año') as $group => $enrollments)

{{ $group }}

@foreach ($enrollments as $enrollment) @php $summary = \App\Http\Controllers\ConsultationController::attendanceSummary($enrollment); @endphp @endforeach
@endforeach