@extends('layouts.admin_lbb') @section('page-title', 'Manajemen Siswa') @section('content')
{{ number_format($totalStudents, 0, ',', '.') }}
Total Siswa
{{ number_format($activeStudents, 0, ',', '.') }}
Siswa Aktif
{{ number_format($inactiveStudents, 0, ',', '.') }}
Siswa Nonaktif
+{{ number_format($newStudentsThisMonth, 0, ',', '.') }}
Bulan Ini
Daftar Siswa
@if(request('search') || request('class') || request('status')) @endif
@forelse($students as $student) @php $isActive = $student->status->value === 'active'; @endphp @empty @endforelse
No Nama No HP Kelas Status Aksi
{{ $loop->index + 1 + (($students->currentPage() - 1) * $students->perPage()) }}
{{ $student->user->name }}
{{ $student->user->email }}
{{ $student->user->phone }} {{ $student->classModel->name ?? '-' }} {{ $isActive ? 'Aktif' : 'Nonaktif' }}
Belum ada data siswa
@endsection