@include('exports/header')

{{ $title }}


@foreach ($classroomColumns as $key => $column) @endforeach
{{ $column }} {{ $classroomRows[$key] }}
@php $assistancesDates = array_keys((array) $rows); $assistancesDatesCount = count($assistancesDates); @endphp @foreach ($columns as $key => $column) @if ($key != 'assistance') @else @endif @endforeach @foreach ($assistancesDates as $date) @endforeach @foreach ($participants as $indexparticipant => $participant) @foreach ($participant as $key => $value) @endforeach @foreach ($assistancesDates as $indexDate => $assistancesDate) @php $assistanceParticipant = array_filter($rows[$assistancesDate], function ($row) use ( $participant, ) { return $row['person_id'] == $participant['id']; }); $assistanceParticipant = reset($assistanceParticipant); @endphp @endforeach @endforeach
{{ $column }} {{ $column }}

{{ \Carbon\Carbon::parse($date)->format('d/m/Y') }}

{{ $key == 'id' ? $indexparticipant + 1 : $value ?? 'SIN DATOS' }} {{ $assistanceParticipant ? $assistanceParticipant['assistance'] : '' }}