@extends('layouts.app') @section('title', 'Student Management') @section('page-title', 'Student Management') @section('content')
{{-- Header Actions --}}

Manage all student records, assignments, and profiles.

Add New Student
{{-- Filters --}}
Clear
{{-- Success/Error Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Students Table --}}
@forelse($students as $student) @empty @endforelse
Student Class Roll No. Parent Status Actions
{{ $student->name }}

{{ $student->email }}

{{ $student->studentProfile?->schoolClass?->full_name ?? '—' }} {{ $student->studentProfile?->roll_number ?? '—' }} {{ $student->studentProfile?->parent?->name ?? '—' }} @if($student->is_active) Active @else Inactive @endif
@csrf @method('PATCH')

No students found.

{{-- Pagination --}} @if($students->hasPages())
{{ $students->links() }}
@endif
@endsection