@extends('layouts.adminlte') @section('title', 'Data Siswa Kelas') @section('content_header') {{-- HEADER: Menggunakan Tailwind & Warna Indigo --}}

Data Siswa Kelas {{ $class->name ?? '' }}

Kelola data siswa di kelas yang Anda ampu.
@stop @section('content')
{{-- PAGE HEADER WITH ACTIONS --}}

Daftar Siswa

Total: {{ $students->total() }} Siswa

{{-- Cetak Semua --}} Cetak Semua Kartu {{-- Tambah Siswa --}} Tambah Siswa
{{-- MAIN CONTENT CARD --}}
{{-- TOOLBAR / FILTER --}}
{{-- Left: Filter Info (Empty for Wali Kelas as class is fixed) --}} {{-- Right: Search Form --}}
{{-- BULK ACTIONS BAR --}}
{{-- SUCCESS/ERROR ALERTS --}} {{-- (Script JS di bawah yang akan menangani Flash Session ke SweetAlert) --}} {{-- TABLE --}}
@forelse($students as $student) {{-- Checkbox --}} {{-- No --}} {{-- Siswa --}} {{-- Identitas --}} {{-- L/P --}} {{-- Status --}} {{-- Aksi --}} @empty @endforelse
No Siswa Identitas (NIS/N) L/P Status Aksi
{{ $loop->iteration + (($students->currentPage() - 1) * $students->perPage()) }}
@if($student->photo && $student->photo != 'default_avatar.png') @else
{{ substr($student->name, 0, 1) }}
@endif
{{ $student->name }}
{{ $student->email }}
{{ $student->nisn }} {{ $student->nis ?? '-' }} {{ substr($student->gender, 0, 1) }} @if($student->status == 'active') Aktif @else Non-Aktif @endif
{{-- Detail --}} {{-- Print --}} {{-- Edit --}} {{-- Delete --}}

Tidak ada Data Siswa

Tambahkan siswa baru untuk memulai.

Tambah Siswa Baru
{{-- PAGINATION --}} @if($students->hasPages())
{{ $students->appends(['search' => request('search')])->links('pagination::tailwind') }}
@endif
{{-- Flash Messages --}} @if(session('success')) @endif @if(session('error')) @endif
@stop @section('js') @stop