@extends('layouts.app') @section('content')
{{-- 🧭 Header --}}

Students Management

{{-- ✅ Import Excel Form --}}
@csrf
Upload Excel file with columns: name, email, username, national_id, father_name, phone, institute_id, status, batch_id
{{-- ✅ Filter Form --}}
{{-- ✅ Students Table --}}
@forelse($students as $student) {{-- ✅ Display Batch --}} {{-- ✅ Status --}} {{-- ✅ Actions --}} @empty @endforelse
ID Full Name Username Email National ID Phone Institute ID Batch Status Actions
{{ $student->id }} {{ $student->name ?? 'N/A' }} {{ $student->user->username ?? 'N/A' }} {{ $student->user->email ?? 'N/A' }} {{ $student->national_id ?? 'N/A' }} {{ $student->phone ?? 'N/A' }} {{ $student->institute_id ?? 'N/A' }} @if($student->batch) {{ $student->batch->name }} @if($student->status === 'active') @else @endif @else No Batch @endif @if($student->status === 'active') Active @elseif($student->status === 'inactive') Inactive @elseif($student->status === 'graduated') Graduated @elseif($student->status === 'suspended') Suspended @else Unknown @endif
{{-- 🔍 View --}} {{-- ✏️ Edit --}} {{-- 📚 Classes --}} @if($student->batch_id) @else @endif {{-- 🗑️ Delete --}}
@csrf @method('DELETE')
No students found.
{{-- ✅ Pagination --}}
Showing {{ $students->firstItem() }} to {{ $students->lastItem() }} of {{ $students->total() }} entries
{{ $students->links() }}
@endsection