@include('admin.pages.reports.print.header') @if(!empty($data['fullRecords'])) @foreach($data['fullRecords'] as $groupId => $groupData) @if (!empty($groupData['sessions']) && isset($groupData['sessions'][0]) && $groupData['sessions'][0]['attendance'] != null) @forelse ($groupData['sessions'] as $record) @empty @endforelse @else @endif
{{ __('Session Date Time') }} {{ __('Teacher') }} {{ __('Subject') }} {{ __('Name') }} {{ __('Attendance') }} {{ __('Homework Status') }} {{ __('Student Behavior') }} {{ __('Notes') }}
{{ $record['session_date']->format('Y-m-d H:i') }} {{ $record['teacher']->name }} {{ $record['subject']->name }} {{ $record['student']->name }} @if ($record['attendance']?->active == 1) @else @endif {{ $record['daily_follow_up']?->homeworkStatus->name ?? '-' }} {{ $record['daily_follow_up']?->studentBehavior->name ?? '-' }} {{ $record['daily_follow_up']?->note ?? '-' }}
{{ __('No records to show.') }}
{{ __('No records to show.') }}
@if(isset($data['gradesRecords'][$groupId])) @forelse ($data['gradesRecords'][$groupId]['grades'] as $record) @empty @endforelse @if (count($data['gradesRecords'][$groupId]['grades']) > 0) @endif
{{ __('Exam Name') }} {{ __('Date') }} {{ __('Teacher') }} {{ __('Subject') }} {{ __('Name') }} {{ __('Final Grade') }} {{ __('Grade') }} {{ __('Value') }}
{{ $record->exam_grade->exam_enrollment->name }} {{ $record->exam_date }} {{ $record->teacher_name }} {{ $record->subject_name }} {{ $record->student->name }} {{ $record->final_grade }} {{ $record->exam_grade->grade ?? '-' }} {{ $record->grade_name }}
{{ __('No Grades Found') }}
{{__('Total')}}: {{ collect($data['gradesRecords'][$groupId]['grades'])->sum('final_grade') }} {{ collect($data['gradesRecords'][$groupId]['grades'])->sum('grade_value') }}
@endif @endforeach @php $totalFinalGrades = 0; $totalStudentGrades = 0; if (isset($data['gradesRecords'])) { foreach ($data['gradesRecords'] as $groupId => $groupData) { $totalFinalGrades += collect($groupData['grades'])->sum('final_grade'); $totalStudentGrades += collect($groupData['grades'])->sum('grade_value'); } } @endphp

{{ __('Total Grades') }}

{{ __('Total Final Grades') }} {{ $totalFinalGrades }} {{ __('Total Student Grades') }} {{ $totalStudentGrades }}
@php $totalAmount = 0; $totalDiscounted = 0; $totalPaid = 0; $totalRemain = 0; if (isset($data['paymentRecords'])) { $totalAmount = collect($data['paymentRecords'])->sum('amount'); $totalDiscounted = collect($data['paymentRecords'])->sum('discounted'); $totalPaid = collect($data['paymentRecords'])->sum('paid'); $totalRemain = collect($data['paymentRecords'])->sum('remain'); } @endphp @if(isset($data['paymentRecords']))
@forelse ($data['paymentRecords'] as $record) @empty @endforelse @if(count($data['paymentRecords']) > 0) @endif
{{ __('Payment Date') }} {{ __('Student Name') }} {{ __('Status') }} {{ __('Amount') }} {{ __('Discounted') }} {{ __('Paid') }} {{ __('Remain') }}
{{ $record->payment_date->format('Y-m-d') }} {{ $record->student->name }} {{ $record->payment_status->name }} {{ number_format($record->amount, 2) }} {{ number_format($record->discounted, 2) }} {{ number_format($record->paid, 2) }} {{ number_format($record->remain, 2) }}
{{ __('No records to show.') }}
{{__('Total')}}: {{ number_format($totalAmount, 2) }} {{ number_format($totalDiscounted, 2) }} {{ number_format($totalPaid, 2) }} {{ number_format($totalRemain, 2) }}
@endif @endif @include('admin.pages.reports.print.footer')