@extends('admin.layout.app') @section('title', $title) @section('body')

{{ $title }}

{{ $subtitle }}

{{ __('admin.dashboard') }} Export Excel Export CSV
{{ __('admin.report_rows') }}
{{ $cards['total'] }}
{{ __('admin.active') }}
{{ $cards['active'] }}
{{ __('admin.graduated') }}
{{ $cards['graduated'] }}
{{ __('admin.suspended') }}
{{ $cards['suspended'] }}
{{ __('admin.reset') }}
@forelse($students as $student) @php($meta = $student->report_meta) @empty @endforelse
# {{ __('admin.student_2') }} {{ __('admin.academic_placement') }} {{ __('admin.status') }} {{ __('admin.attendance_2') }} {{ __('admin.fees') }} {{ __('admin.flags') }} {{ __('admin.action') }}
{{ method_exists($students, 'firstItem') ? $students->firstItem() + $loop->index : $loop->iteration }}
{{ $student->name }}
{{ $meta['student_no'] ?: 'No student no' }}
{{ $student->email ?: 'No email' }}
{{ $student->phone ?: ($student->studentRecord->phone ?? 'No phone') }}
{{ __('admin.faculty_3') }} {{ $meta['faculty'] ?: '—' }}
{{ __('admin.department_3') }} {{ $meta['department'] ?: '—' }}
{{ __('admin.program_3') }} {{ $meta['program'] ?: '—' }}
{{ __('admin.semester_3') }} {{ $meta['semester'] ?: '—' }}
{{ $meta['status'] }} @if($meta['attendance_rate'] !== null) {{ $meta['attendance_rate'] }}% @else {{ __('admin.no_records') }} @endif {{ number_format($meta['outstanding'], 2) }} @if(count($meta['missing_fields']) || count($meta['risk_flags']))
@foreach($meta['missing_fields'] as $flag) {{ $flag }} @endforeach @foreach($meta['risk_flags'] as $flag) {{ $flag }} @endforeach
@else {{ __('admin.record_looks_good') }} @endif
{{ __('admin.no_students_found_for_this_report') }}
@if(method_exists($students, 'links'))
{{ $students->links('pagination::bootstrap-4') }}
@endif @endsection