@include('exports/header')

{{ $title }}


@foreach ($classroomColumns as $key => $column) @endforeach
{{ $column }} {{ $classroomRows[$key] }}
@foreach ($columns as $key => $column) @endforeach @php $rows = array_map(function ($row) use ($columns) { $row = array_intersect_key($row, $columns); return array_merge($columns, $row); }, $rows); @endphp @foreach ($rows as $indexRows => $row) @foreach ($row as $key => $value) @endforeach @endforeach
{{ $column }}
{{ $key == 'id' ? $indexRows + 1 : (in_array($key, ['attended', 'absence', 'late']) ? ($value == 1 ? 'X' : '') : $value ?? '') }}