{{__('Loading...')}}
@if($selectedAcademicYearId) @php $groups = empty($selectedGroupId) ? $filteredGroups : collect($filteredGroups)->whereIn('id', $selectedGroupId); $combinedStudents = []; @endphp @livewire('admin.sheets.print-pdf', [ 'title' => __('Students Sheet'), 'view' => 'admin.pages.sheets.print.student-sheet', 'data' => $combinedStudents ]) @foreach($groups as $group) @php $groupId = $group->id; $groupName = $group->name; $studyClassName = $group->study_class->name; $students = $filteredStudents[$groupId] ?? []; @endphp @if(!empty($students))

{{ __('Study Class') }}: {{ $studyClassName }}

{{ __('Group') }}: {{ $groupName }}

@foreach($students as $index => $student) @endforeach
# {{ __('Student Name') }} {{ __('Phone') }} {{ __('Notes') }}
{{ $index + 1 }} {{ $student->name }} {{ $student->phone }} {{ $student->notes }}
@endif @endforeach @endif
@push('js') @endpush