@extends('applicant.registration.layout') @section('form') @php // Extract data from controller $education = $data['education'] ?? null; $existingGrades = $data['existingGrades'] ?? collect(); $competitions = $data['competitions'] ?? collect(); @endphp
@csrf
1

Data Sekolah Asal (SMP/MTs)

@foreach([0 => 'Siswa Baru', 1 => 'Pindahan'] as $val => $label) @endforeach
!

Informasi Kepindahan

2

Nilai Rapor

Petunjuk Pengisian

Masukkan Nilai Rata-rata Pengetahuan (KI-3) dari rapor untuk setiap semester.

@php $isPmpa = \Illuminate\Support\Str::contains(strtoupper($applicant->pathway->name ?? ''), 'PMPA'); $startSem = $isPmpa ? 1 : 3; $endSem = 5; $subject = 'average'; $semesterLabels = [ 1 => 'Kelas 7 Ganjil', 2 => 'Kelas 7 Genap', 3 => 'Kelas 8 Ganjil', 4 => 'Kelas 8 Genap', 5 => 'Kelas 9 Ganjil' ]; // Transform grades to array $grades = $existingGrades->groupBy('subject')->map(function($items) { return $items->pluck('grade', 'semester'); })->toArray(); @endphp
@for($sem = $startSem; $sem <= $endSem; $sem++)
@endfor
3

Prestasi Lomba / Kegiatan

Informasi

Tambahkan prestasi lomba atau kegiatan yang pernah diikuti (jika ada). Klik "Tambah Lomba" untuk menambah entry.

@php $existingCompetitions = old('competitions', $competitions->map(function($c) { return [ 'competition_name' => $c->competition_name ?? '', 'year' => $c->year ?? date('Y'), 'level' => $c->level ?? '' ]; })->toArray() ); @endphp @foreach($existingCompetitions as $index => $comp)
@endforeach
Kembali
@endsection