@include('exports/header')
{{ $title }}
{{ $date }}
ALUMNO: {{ $student }}
@foreach ($rows as $indexRows => $row)
@if (count($row['courses']) == 0)
@continue;
@endif
SEMESTRE: {{ $row['name'] }}
PPS: {{ $row['semester_average'] }}
PPA: {{ $row['accumulated_average'] }}
@foreach ($columns as $key => $column)
|
{{ $column }}
|
@endforeach
@php
$row['courses'] = array_map(function ($row) use ($columns) {
$row = array_intersect_key($row, $columns);
return array_merge($columns, $row);
}, $row['courses']->toArray());
@endphp
@foreach ($row['courses'] as $index => $course)
@foreach ($course as $key => $value)
|
{{ $key == 'id' ? $index + 1 : $value ?? 'SIN DATOS' }}
|
@endforeach
@endforeach
NRO. DE CURSOS: {{ count($row['courses']) }}
@if ($indexRows % 2 != 0)
@endif
@endforeach