@extends('layouts.app') @section('title', $student ? 'Perbaiki Data Siswa' : 'Tambah Siswa') @section('content')

Data MasterData Siswa{{ $student ? 'Perbaiki' : 'Tambah' }}

{{ $student ? 'Perbaiki data siswa' : 'Tambah siswa baru' }}

Lengkapi identitas peserta didik dan informasi keluarga.

@if ($errors->any()) @endif

Informasi peserta didik

Kolom bertanda * wajib diisi.

@csrf @if ($student) @method('PUT') @endif
@foreach ($formFields as $field) @php $fieldValue = old($field['name'], $student ? ($student->{$field['name']} ?? '') : ''); $wide = $field['wide'] ?? false; @endphp
$wide])> @if ($field['type'] === 'select') @elseif ($field['type'] === 'textarea') @else @endif @error($field['name'])

{{ $message }}

@enderror
@endforeach

JPG, PNG, atau WEBP. Maksimal 2 MB.

@if ($student?->foto) Foto {{ $student->nama_siswa }} @endif @error('foto')

{{ $message }}

@enderror
Kembali
@endsection