@extends('layouts.adminlte') @section('title', 'Tambah Siswa Baru') @section('content')
{{-- PAGE HEADER --}}

Tambah Siswa Baru

Kembali
@csrf
{{-- KOLOM KIRI: DATA UTAMA & FORM (2/3 Kolom) --}}

Data Utama Siswa

@php $baseInputClass = 'w-full px-4 py-2.5 rounded-xl border border-gray-200 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 transition duration-200 ease-in-out bg-gray-50/50 focus:bg-white'; $errorClass = 'border-red-500 focus:ring-red-200 focus:border-red-500'; @endphp {{-- NISN & NIS --}}
@error('nisn')

{{ $message }}

@enderror
@error('nis')

{{ $message }}

@enderror
{{-- Nama Lengkap & Email --}}
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
{{-- Jenis Kelamin (Tanpa Kelas) --}}
@error('gender')

{{ $message }}

@enderror
{{-- Tanggal & Tempat Lahir --}}
{{-- Action Buttons --}}
Batal
{{-- KOLOM KANAN: FOTO & INFO --}}
{{-- Foto Card --}}

Foto Profil

Preview
Ganti Foto

Klik foto untuk mengupload.

Max 2MB (JPG/PNG)

@error('photo')

{{ $message }}

@enderror
{{-- Info Card --}}

Tips

  • NISN wajib unik. Gunakan data Dapodik.
  • Siswa otomatis masuk ke kelas Anda: {{ $class->name ?? '...' }}
  • Gunakan foto formal untuk kartu pelajar.
@stop @section('js') @stop