@extends('staff.layouts.app') @section('title', 'My Students') @section('content')

My Students

View and manage students assigned to your classes

Back to Profile
Clear
@if($students->total() > 0)

Showing {{ $students->firstItem() ?? 1 }} to {{ $students->lastItem() ?? $students->count() }} of {{ $students->total() }} students

@endif
@forelse($students as $student) {{-- ✅ FIX 4: Clean route helper ensures click opens details page --}}
{{-- ✅ FIX 2: onerror fallback guarantees an image or clean avatar --}} {{ $student->student_name }}

{{ $student->student_name }}

Admission No: {{ $student->admission_no }}

{{ $student->class_name ?? 'N/A' }}

Sec: {{ $student->section_name ?? 'N/A' }}

@empty

No students found.

Try adjusting your filters or check your class assignments.

@endforelse
@if($students->hasPages())
{{ $students->appends(request()->query())->links() }}
@endif
@endsection