{{__('Loading...')}}
@if($selectedAcademicYearId && $selectedMonth) @livewire('admin.sheets.print-pdf', [ 'title' => __('Attendance Sheet'), 'view' => 'admin.pages.sheets.print.attendance-sheet', 'data' => collect($filteredStudents)->map(function ($students, $groupId) { return collect($students)->map(function ($student) use ($groupId) { $group = $this->filteredGroups->firstWhere('id', $groupId); $studyClassName = $group->study_class->name; $groupName = $group->name; return [ 'id' => $student->id, 'name' => $student->name, 'group' => $groupName, 'study_class' => $studyClassName, 'month' => $this->selectedMonthName, ]; }); })->flatten(1)->toArray() ]) @foreach($filteredGroups as $group) @if(empty($selectedGroupId) || in_array('all', $selectedGroupId) || in_array($group->id, $selectedGroupId))

{{ __('Study Class') }}: {{ $group->study_class->name }}

{{ __('Group') }}: {{ $group->name }}

{{ __('Month') }}: {{ __($selectedMonthName) }}

@for($i = 1; $i <= 24; $i++) @endfor @if(isset($filteredStudents[$group->id]) && $filteredStudents[$group->id]->count() > 0) @foreach($filteredStudents[$group->id] as $index => $student) @for($i = 1; $i <= 24; $i++) @endfor @endforeach @endif
# {{ __('Student Name') }}
{{ $index + 1 }} {{ $student->name }}
@endif @endforeach @endif
@push('js') @endpush