@include('exports/header')
{{ $title }}
@foreach ($classroomColumns as $key => $column)
{{ $column }}
{{ $classroomRows[$key] }}
@endforeach
@foreach ($columns as $key => $column)
{{ $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)
{{ $key == 'id' ? $indexRows + 1 : (in_array($key, ['attended', 'absence', 'late']) ? ($value == 1 ? 'X' : '') : $value ?? '') }}
@endforeach
@endforeach