@extends('layouts.admin') @section('title','Edit Applicant') @section('content')

Edit Applicant

{{--
@if ($applicant->applicant_picture) @endif @if ($applicant->applicant_passport) @endif @if ($applicant->applicant_birth_certificate) @endif
--}}
@csrf @method('PUT')
Applicant Information
@error('applicant_name')
{{ $message }}
@enderror
@error('applicant_email')
{{ $message }}
@enderror
@error('applicant_phone')
{{ $message }}
@enderror
@error('applicant_current_school') @enderror
@error('applicant_address')
{{ $message }}
@enderror

@error('applicant_national_id') @enderror
Parent Information
@error('applicant_father_name')
{{ $message }}
@enderror
@error('applicant_father_email')
{{ $message }}
@enderror
@error('applicant_father_phone')
{{ $message }}
@enderror
@error('applicant_father_occupation')
{{ $message }}
@enderror
@error('applicant_mother_name')
{{ $message }}
@enderror
@error('applicant_mother_email')
{{ $message }}
@enderror
@error('applicant_mother_phone')
{{ $message }}
@enderror
@error('applicant_mother_occupation')
{{ $message }}
@enderror
Limitations
applicant_is_mobility == 1 ? 'checked':'' }}> @error('applicant_mobility') @enderror
applicant_is_vision == 1 ? 'checked':'' }}> @error('applicant_vision') @enderror
applicant_is_hearing == 1 ? 'checked':'' }}> @error('applicant_hearing') @enderror
applicant_is_developmental == 1 ? 'checked':'' }}> @error('applicant_developmental') @enderror
applicant_is_emotional == 1 ? 'checked':'' }}> @error('applicant_emotional') @enderror
applicant_is_other_limitations == 1 ? 'checked':'' }}> @error('applicant_other_limitations') @enderror
@error('applicant_other_health_concerns') @enderror
Health Information

Allergies

applicant_is_food ? 'checked':'' }}> @error('applicant_food') @enderror
applicant_is_medication ? 'checked':'' }}> @error('applicant_medication') @enderror
applicant_is_other_allergies ? 'checked':'' }}> @error('applicant_other_allergies') @enderror

Chronic Conditions

applicant_is_asthma ? 'checked':'' }}> @error('applicant_food') @enderror
applicant_is_diabetes ? 'checked':'' }}> @error('applicant_diabetes') @enderror
applicant_seizures ? 'checked':'' }}> @error('applicant_seizures') @enderror
applicant_is_other_chronic_conditions ? 'checked':'' }}> @error('applicant_chronic_conditions') @enderror
Documents
@if(!empty($applicant->applicant_passport)) @php $fileExtension = pathinfo($applicant->applicant_passport, PATHINFO_EXTENSION); @endphp @if(in_array($fileExtension, ['png', 'jpg', 'jpeg', 'jfif'])) Passport @elseif($fileExtension === 'pdf')
PDF
@elseif(in_array($fileExtension, ['doc', 'docx']))
Word
@else
File
@endif @endif
@error('applicant_passport') @enderror
@if(!empty($applicant->applicant_birth_certificate)) @php $fileExtension = pathinfo($applicant->applicant_birth_certificate, PATHINFO_EXTENSION); @endphp @if(in_array($fileExtension, ['png', 'jpg', 'jpeg', 'jfif'])) Birth Certificate @elseif($fileExtension === 'pdf')
PDF
@elseif(in_array($fileExtension, ['doc', 'docx']))
Word
@else
File
@endif @endif
@error('applicant_birth_certificate') @enderror
@if(!empty($applicant->applicant_picture)) @php $fileExtension = pathinfo($applicant->applicant_picture, PATHINFO_EXTENSION); @endphp @if(in_array($fileExtension, ['png', 'jpg', 'jpeg', 'jfif'])) Picture @elseif($fileExtension === 'pdf')
PDF
@elseif(in_array($fileExtension, ['doc', 'docx']))
Word
@else
File
@endif @endif
@error('applicant_picture') @enderror
@endsection @section('js') {{-- Disable the text field --}} {{-- Display the files when uploaded in the input file--}} {{-- End Display the files when uploaded --}} @endsection