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

Manajemen Data Siswa

Kelola data siswa, ekspor, dan cetak kartu barcode
@stop @section('content')
{{-- PAGE HEADER WITH ACTIONS --}}

Manajemen Siswa

Kelola data siswa, cetak kartu, import, dan export.

{{-- Cetak Semua (Restored) --}} Cetak Semua Kartu {{-- Import --}} Import {{-- Export --}} Export {{-- Tambah Siswa --}} Tambah Siswa
{{-- MAIN CONTENT CARD --}}
{{-- TOOLBAR / FILTER --}}
{{-- Left: Filter Info --}}
Total: {{ $students->total() }} Siswa
{{-- Right: Search & Filter Form --}}
{{-- Dropdown Filter Kelas --}}
{{-- Search Input --}}
{{-- BULK ACTIONS BAR (Hidden by default, shown via JS) --}}
{{-- SUCCESS/ERROR ALERTS --}} @if (session('success') || session('error'))
@if (session('success')) @endif @if (session('error')) @endif
@endif {{-- TABLE --}}
{{-- Combined Photo, Name, Email --}} @forelse($students as $student) {{-- Checkbox --}} {{-- No --}} {{-- Siswa (Photo + Name) --}} {{-- Identitas --}} {{-- Kelas --}} {{-- Status --}} {{-- Aksi --}} @empty @endforelse
No SiswaIdentitas (NIS/N) Kelas Status Aksi
{{ $loop->iteration + (($students->currentPage() - 1) * $students->perPage()) }}
{{-- Avatar Check --}} @if($student->photo && $student->photo != 'default_avatar.png') @else
{{ substr($student->name, 0, 1) }}
@endif
{{ $student->name }}
{{ $student->email }}
{{ $student->nisn }} {{ $student->nis ?? '-' }}
{{ $student->class ? $student->class->name : 'Tanpa Kelas' }}
@if($student->status == 'active') Aktif @else Non-Aktif @endif
{{-- Print --}} {{-- Edit --}} {{-- Delete --}}

Tidak ada Data Siswa

Coba sesuaikan filter pencarian atau tambahkan siswa baru.

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