{{-- Header --}}

{{ $isEdit ? 'Edit Enrollment Application' : 'Basic Education Enrollment Form' }}

Please fill out the information carefully. All fields marked with * are required.

Step {{ $step }} of {{ $totalSteps }} @if(!$isEdit && session()->has('enrollment_draft_user_' . auth()->id())) @endif
@if($errors->any())

Please correct the following errors:

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- STEP 1: Enrollment Information --}} @if($step === 1)

STEP 1 — Enrollment Information

@error('grade_level_to_enroll')

{{ $message }}

@enderror
@error('lrn')

{{ $message }}

@enderror

For Learners in Senior High School

@error('semester')

{{ $message }}

@enderror
@error('track')

{{ $message }}

@enderror
@error('strand')

{{ $message }}

@enderror

For Returning Learner (Balik-Aral) and Those Who Will Transfer/Move In

@error('last_grade_level_completed')

{{ $message }}

@enderror
@error('last_school_year_completed')

{{ $message }}

@enderror
@error('school_last_attended')

{{ $message }}

@enderror
@error('last_school_id')

{{ $message }}

@enderror

Preferred Learning Modality

@foreach(['Modular (Print)', 'Modular (Digital)', 'Online', 'Educational Television', 'Radio-Based Instruction', 'Homeschooling', 'Blended'] as $modality) @endforeach
@endif {{-- STEP 2: Learner Information --}} @if($step === 2)

STEP 2 — Learner Information

@error('lrn')

{{ $message }}

@enderror

Name of Learner

@error('last_name')

{{ $message }}

@enderror
@error('first_name')

{{ $message }}

@enderror
@error('birth_date')

{{ $message }}

@enderror
@error('gender')

{{ $message }}

@enderror
@error('place_of_birth')

{{ $message }}

@enderror

Current Address

@error('current_barangay')

{{ $message }}

@enderror
@error('current_city')

{{ $message }}

@enderror

Permanent Address

@if($permanent_same_as_current === 'No')
@endif @endif {{-- STEP 3: Additional Learner Information --}} @if($step === 3)

STEP 3 — Additional Learner Information

@if($is_learner_with_disability === 'Yes')
@foreach(['Visual Impairment', 'Blind', 'Low Vision', 'Hearing Impairment', 'Autism Spectrum Disorder', 'Speech/Language Disorder', 'Learning Disability', 'Emotional-Behavioral Disorder', 'Intellectual Disability', 'Orthopedic/Physical Handicap', 'Cerebral Palsy', 'Special Health Problem/Chronic Disease', 'Cancer', 'Multiple Disorder'] as $type) @endforeach
@endif
@if($is_ip_community === 'Yes')
@endif
@if($is_4ps_beneficiary === 'Yes')
@endif
@endif {{-- STEP 4: PARENT'S/GUARDIAN'S INFORMATION --}} @if($step === 4)

STEP 4 — PARENT'S/GUARDIAN'S INFORMATION

Father's Name

Mother's Maiden Name

Legal Guardian's Name

@endif {{-- STEP 5: Upload Requirements --}} @if($step === 5)

STEP 5 — Enrollment Requirements

Accepted: PDF, JPG, JPEG, PNG

@if(isset($preStoredFiles['birth_certificate']))
Uploaded: {{ $preStoredFiles['birth_certificate']['original_filename'] }}

Upload a new file below to replace it.

@endif @error('psa_birth_cert_file') {{ $message }} @enderror

Accepted: PDF, JPG, JPEG, PNG

@if(isset($preStoredFiles['sf10']))
Uploaded: {{ $preStoredFiles['sf10']['original_filename'] }}

Upload a new file below to replace it.

@endif @error('sf10_file') {{ $message }} @enderror
@if(isset($preStoredFiles['other']))
Uploaded: {{ $preStoredFiles['other']['original_filename'] }}

Upload a new file below to replace it.

@endif @error('other_document_file') {{ $message }} @enderror
@endif {{-- STEP 6: Review Information --}} @if($step === 6)

STEP 6 — Review Your Information

@foreach([ 1 => 'Enrollment Information', 2 => 'Learner Information', 3 => 'Additional Learner Information', 4 => 'Parent\'s/Guardian\'s Information', 5 => 'Enrollment Requirements', 6 => 'Permanent Address', 7 => 'Certification and Data Privacy', ] as $s => $title) @if( ($s === 6 && $returning_learner === 'No') || ($s === 7 && !in_array(trim(str_ireplace('Grade', '', (string)$grade_level_to_enroll)), ['11', '12'])) ) @continue @endif

{{ $title }}

@if($s === 1)

School Year: {{ $academic_year ?: '—' }}

Grade Level to Enroll: {{ $grade_level_to_enroll ? (str_starts_with($grade_level_to_enroll, 'Grade') ? $grade_level_to_enroll : 'Grade ' . $grade_level_to_enroll) : '—' }}

With LRN: {{ $with_lrn ?: '—' }}

Returning Learner (Balik-Aral): {{ $returning_learner ?: '—' }}

Semester: {{ $semester ?: '—' }}

Track: {{ $track ?: '—' }}

Strand: {{ $strand ?: '—' }}

Last Grade Completed: {{ $last_grade_level_completed ?: '—' }}

Last School Year: {{ $last_school_year_completed ?: '—' }}

Last School Attended: {{ $school_last_attended ?: '—' }}

School ID: {{ $last_school_id ?: '—' }}

Selected Modalities: {{ !empty($preferred_learning_modality) ? (is_array($preferred_learning_modality) ? implode(', ', $preferred_learning_modality) : $preferred_learning_modality) : 'Face-to-Face / Not specified' }}

@elseif($s === 2)

Name: {{ trim("$first_name $middle_name $last_name $extension_name") ?: '—' }}

LRN: {{ $lrn ?: 'N/A' }}

PSA Birth Cert No: {{ $psa_birth_cert_no ?: 'None' }}

Birthdate: {{ $birth_date ?: '—' }}

Age: {{ $age !== null ? $age : '—' }}

Sex: {{ $gender ?: '—' }}

Mother Tongue: {{ $mother_tongue ?: '—' }}

Place of Birth: {{ $place_of_birth ?: '—' }}

House / Street: {{ trim("$current_house_no $current_street") ?: '—' }}

Barangay: {{ $current_barangay ?: '—' }}

Municipality / City: {{ $current_city ?: '—' }}

Province: {{ $current_province ?: '—' }}

Country: {{ $current_country ?: 'Philippines' }} @if($current_zip_code) (Zip: {{ $current_zip_code }}) @endif

Same as Current Address: {{ $permanent_same_as_current }}

@if($permanent_same_as_current === 'No')

House / Street: {{ trim("$permanent_house_no $permanent_street") ?: '—' }}

Barangay: {{ $permanent_barangay ?: '—' }}

Municipality / City: {{ $permanent_city ?: '—' }}

Province: {{ $permanent_province ?: '—' }}

Country: {{ $permanent_country ?: 'Philippines' }} @if($permanent_zip_code) (Zip: {{ $permanent_zip_code }}) @endif

@endif
@elseif($s === 3)

Learner With Disability: {{ $is_learner_with_disability ?: 'No' }}

@if($is_learner_with_disability === 'Yes')

Disabilities Specified: {{ !empty($disability_type) ? (is_array($disability_type) ? implode(', ', $disability_type) : $disability_type) : 'None specified' }}

@endif

Belong to IP Community: {{ $is_ip_community ?: 'No' }}

@if($is_ip_community === 'Yes' && $ip_community_name)

Community: {{ $ip_community_name }}

@endif

4Ps Beneficiary: {{ $is_4ps_beneficiary ?: 'No' }}

@if($is_4ps_beneficiary === 'Yes' && $four_ps_household_id)

Household ID: {{ $four_ps_household_id }}

@endif
@elseif($s === 4)

Father

{{ trim("$father_first_name $father_middle_name $father_last_name") ?: 'Not specified' }}

@if($father_contact)

Contact: {{ $father_contact }}

@endif

Mother (Maiden)

{{ trim("$mother_first_name $mother_middle_name $mother_last_name") ?: 'Not specified' }}

@if($mother_contact)

Contact: {{ $mother_contact }}

@endif

Guardian

{{ trim("$guardian_first_name $guardian_middle_name $guardian_last_name") ?: 'Not specified' }}

@if($guardian_contact)

Contact: {{ $guardian_contact }}

@endif
@elseif($s === 5)

PSA Birth Certificate:

@if(!empty($preStoredFiles['birth_certificate']['original_filename'])) ✓ {{ $preStoredFiles['birth_certificate']['original_filename'] }} @elseif($psa_birth_cert_file) @if(is_object($psa_birth_cert_file) && method_exists($psa_birth_cert_file, 'getClientOriginalName')) ✓ {{ $psa_birth_cert_file->getClientOriginalName() }} @elseif(is_string($psa_birth_cert_file)) ✓ {{ basename($psa_birth_cert_file) }} @else ✓ Uploaded @endif @elseif($isEdit) Attached in application @else Not uploaded @endif

SF10 (Card):

@if(!empty($preStoredFiles['sf10']['original_filename'])) ✓ {{ $preStoredFiles['sf10']['original_filename'] }} @elseif($sf10_file) @if(is_object($sf10_file) && method_exists($sf10_file, 'getClientOriginalName')) ✓ {{ $sf10_file->getClientOriginalName() }} @elseif(is_string($sf10_file)) ✓ {{ basename($sf10_file) }} @else ✓ Uploaded @endif @elseif($isEdit) Attached in application @else Not uploaded @endif

Other Documents:

@if(!empty($preStoredFiles['other']['original_filename'])) ✓ {{ $preStoredFiles['other']['original_filename'] }} @elseif($other_document_file) @if(is_object($other_document_file) && method_exists($other_document_file, 'getClientOriginalName')) ✓ {{ $other_document_file->getClientOriginalName() }} @elseif(is_string($other_document_file)) ✓ {{ basename($other_document_file) }} @else ✓ Uploaded @endif @elseif($isEdit) Attached in application @else None @endif
@elseif($s === 6)

Same as Current Address: {{ $permanent_same_as_current }}

@if($permanent_same_as_current === 'No')

House / Street: {{ trim("$permanent_house_no $permanent_street") ?: '—' }}

Barangay: {{ $permanent_barangay ?: '—' }}

Municipality / City: {{ $permanent_city ?: '—' }}

Province: {{ $permanent_province ?: '—' }}

Country: {{ $permanent_country ?: 'Philippines' }} @if($permanent_zip_code) (Zip: {{ $permanent_zip_code }}) @endif

@endif
@elseif($s === 7)
@endif
@endforeach
@endif {{-- STEP 7: Certification and Data Privacy --}} @if($step === 7)

STEP 13 — Certification and Data Privacy

I hereby certify that the information I have provided is true and correct to the best of my knowledge.

@error('certify_info')

{{ $message }}

@enderror

Data Privacy

I understand that the information provided will be collected and processed for enrollment and learner record purposes in accordance with the Data Privacy Act of 2012 and applicable school policies.

@error('parent_guardian_name')

{{ $message }}

@enderror
@error('relationship_to_learner')

{{ $message }}

@enderror
@error('agree_data_privacy')

{{ $message }}

@enderror
@endif {{-- Navigation --}}
@if($step > 1) @else
@endif @if($step < $totalSteps) @else @endif