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

Student Information

{{ $applicant->applicant_code }}

{{ $applicant->getStatusTitle() }}
{{ $applicant->getStatusMessage() }}

{{ $applicant->applicant_name }}

{{ $applicant->applicant_current_school }}

{{ $applicant->applicant_date_of_birth }}

{{ $applicant->applicant_academic_year_applying_for }}

{{ 'Grade ' . $applicant->applicant_grade }}

{{ $applicant->applicant_email }}


{{ $applicant->applicant_phone }}


{{ $applicant->applicant_address }}


{{ $applicant->applicant_national_id }}

Guardians Information

{{ $applicant->applicant_father_name }}

{{ $applicant->applicant_father_occupation }}

{{ $applicant->applicant_father_email }}


{{ $applicant->applicant_father_phone }}

{{ $applicant->applicant_mother_name }}

{{ $applicant->applicant_mother_occupation }}

{{ $applicant->applicant_mother_email }}


{{ $applicant->applicant_mother_phone }}

@if($health)
HEALTH INFORMATION

{{ $health->applicant_food ?: 'No data provided' }}

{{ $health->applicant_medication ?: 'No data provided' }}

{{ $health->applicant_other_allergies ?: 'No data provided' }}

{{ $health->applicant_asthma ?: 'No data provided' }}

{{ $health->applicant_diabetes ?: 'No data provided' }}

{{ $health->applicant_seizures ?: 'No data provided' }}

{{ $health->applicant_other_chronic_conditions ?: 'No data provided' }}

@else

No health information available

@endif @if($limit)
LIMITATIONS INFORMATION

{{ $limit->applicant_mobility ?: 'No data provided' }}

{{ $limit->applicant_vision ?: 'No data provided' }}

{{ $limit->applicant_hearing ?: 'No data provided' }}

{{ $limit->applicant_developmental ?: 'No data provided' }}

{{ $limit->applicant_emotional ?: 'No data provided' }}

{{ $limit->applicant_other_limitations ?: 'No data provided' }}

{{ $limit->applicant_other_health_concerns ?: 'No data provided' }}

@else

No limitations information available

@endif {{-- card of uploaded files --}}
Documents
{{-- Passport --}} @if($applicant->applicant_passport)
@php $passportExtension = pathinfo($applicant->applicant_passport, PATHINFO_EXTENSION); @endphp @if(in_array($passportExtension, ['png', 'jpg', 'jpeg', 'gif'])) Passport @elseif($passportExtension === 'pdf')
PDF
@elseif(in_array($passportExtension, ['doc', 'docx']))
Word
@else
File
@endif
@else

No Passport file

@endif {{-- Birth Certificate --}} @if($applicant->applicant_birth_certificate)
@php $birthCertificateExtension = pathinfo($applicant->applicant_birth_certificate, PATHINFO_EXTENSION); @endphp @if(in_array($birthCertificateExtension, ['png', 'jpg', 'jpeg', 'gif'])) Birth Certificate @elseif($birthCertificateExtension === 'pdf')
PDF
@elseif(in_array($birthCertificateExtension, ['doc', 'docx']))
Word
@else
File
@endif
@else

No Birth Certificate file

@endif {{-- Personal Picture --}} @if($applicant->applicant_picture)
@php $pictureExtension = pathinfo($applicant->applicant_picture, PATHINFO_EXTENSION); @endphp @if(in_array($pictureExtension, ['png', 'jpg', 'jpeg', 'gif'])) Picture @elseif($pictureExtension === 'pdf')
PDF
@elseif(in_array($pictureExtension, ['doc', 'docx']))
Word
@else
File
@endif
@else

No Personal Picture file

@endif {{-- No Files --}} @if(!$applicant->applicant_passport && !$applicant->applicant_birth_certificate && !$applicant->applicant_picture)

No documents uploaded yet.

@endif
{{-- End card of the uploaded files --}}

Current Status

{{-- Card Application information --}}

Application Information


Created At: {{ date('d-m-Y h:i:s A', strtotime($applicant->created_at)) }}
{{-- End card Application information --}} @can(['applicant.edit'])
@csrf
@endcan @if(env('APP_ENV') !== 'production') @can(['applicant.change_status'])
@csrf
@endcan @endif
@csrf

@if (in_array(auth()->id(),[1, 5, 6])) @can(['applicant.delete'])
@csrf @method('DELETE')
@endcan @endif
@endsection