@extends('layouts.adminlte') @section('title', 'Edit Siswa: ' . $student->name) @section('content')
{{-- PAGE HEADER --}}

Edit Data Siswa

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

Edit Informasi Siswa

@php $baseInputClass = 'w-full px-4 py-2.5 rounded-xl border border-gray-200 focus:border-amber-500 focus:ring-2 focus:ring-amber-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'; $birthDateValue = $student->birth_date ? \Carbon\Carbon::parse($student->birth_date)->format('Y-m-d') : ''; @endphp {{-- NISN & NIS --}}
@error('nisn')

{{ $message }}

@enderror
@error('nis')

{{ $message }}

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

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
{{-- Kelas & Jenis Kelamin --}}
@error('class_id')

{{ $message }}

@enderror
@error('gender')

{{ $message }}

@enderror
{{-- Tanggal & Tempat Lahir --}}
{{-- Nomor HP --}}
{{-- Status & Barcode Data --}}
@error('status')

{{ $message }}

@enderror

Klik Reset untuk membuat UUID baru.

{{-- Action Buttons --}}
Batal
{{-- KOLOM KANAN: FOTO & INFO --}}
{{-- Foto Card --}}

Foto Profil

@php $photoPath = ($student->photo && $student->photo != 'default_avatar.png') ? asset('storage/' . $student->photo) : asset('img/default_avatar.png'); @endphp
Preview
Ganti Foto

Klik foto untuk mengganti.

Max 2MB (JPG/PNG)

@error('photo')

{{ $message }}

@enderror
{{-- Card Barcode --}}

Kartu Pelajar

QR Code

{!! SimpleSoftwareIO\QrCode\Facades\QrCode::size(120)->generate($student->barcode_data) !!}

Barcode 1D

{!! $student->barcode_1d !!}
@stop @section('js') @stop