@php if(!isset($is_school)){$is_school = true;} @endphp @extends(($is_school ? 'layouts.vertical' : 'layouts.parent')) @section('css') @endsection @section('breadcrumb')

Child Profile

Select download to view and / or download the full form.

@endsection @section('content')
@if($is_school) @if(isset($child->isFormEverUpdated) && $child->isFormEverUpdated == false) @elseif((isset($child->isParentSignedEver) && $child->isParentSignedEver == false) || (isset($child->isParentSignRequired)&& $child->isParentSignRequired == true))
@elseif(isset($child->reviewer) && isset($child->reviewerSign) && isset($child->reviewerSignDate)) @endif @else @if(isset($child->isParentSignedEver) && $child->isParentSignedEver == false) @elseif(isset($child->isParentSignRequired) && $child->isParentSignRequired == true) @elseif(isset($child->reviewer) && isset($child->reviewerSign) && isset($child->reviewerSignDate)) @endif @endif
@if(!$is_school) @if(isset($child->isParentSignRequired)&& $child->isParentSignRequired == true)
@csrf
Sign enrolment form
@endif @endif
Parents/guardians
@if(isset($child->parents) && !empty($child->parents)) @foreach($child->parents as $parent)
parent
{{ isset($parent->firstName) && isset($parent->lastName) ? $parent->firstName . ' ' . $parent->lastName : 'NA' }} @if(isset($parent->relation)) ({{ $parent->relation }}) @endif

{{ isset($parent->email) ? $parent->email : 'NA' }} {{ isset($parent->phone) ? $parent->phone : 'NA' }}

{{ isset($parent->address) ? $parent->address : 'NA' }}

@if(isset($parent->shared) && $parent->shared == true)
Invited to use the app
@endif
@endforeach @endif
@if(isset($child->collections) && !empty($child->collections)) @php $collection_days = config('constant.collection_days'); @endphp
Collector
@foreach($child->collections as $collection)
parent
{{ isset($collection->name) ? $collection->name : 'NA' }} ({{ isset($collection->relation) && !empty($collection->relation) ? $collection->relation : 'NA' }})

{{ isset($collection->phone) && $collection->phone != "" ? $collection->phone : 'NA' }}

@if(isset($collection->days) && !empty($collection->days)) @php $collectDays = []; @endphp @foreach($collection->days as $day) @php $collectDays[] = isset($collection_days[$day]) ? $collection_days[$day] : ''; @endphp @endforeach

Collection days: {{ implode(', ', $collectDays) }}.

@endif @if($collection->range == false && isset($collection->dates) && !empty($collection->dates)) @php $collectDates = []; @endphp @foreach($collection->dates as $date) @php $collectDates[] = \Carbon\Carbon::parse($date)->format('d/m/Y'); @endphp @endforeach

Other collection dates: {{ implode(', ', $collectDates) }}

@endif @if($collection->range == true && isset($collection->fromDate) && !empty($collection->fromDate) && isset($collection->toDate) && !empty($collection->toDate))

Collection date: {{ \Carbon\Carbon::parse($collection->fromDate)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($collection->toDate)->format('d/m/Y') }}

@endif

{{ isset($collection->address) ? $collection->address : 'NA '}}

@endforeach
@endif
@php $booking_days = config('constant.booking_days');@endphp @if(isset($child->fullDayCareDays) && !empty($child->fullDayCareDays)) @php $fullDayCareDays = []; foreach($child->fullDayCareDays as $day){ if(isset($booking_days[$day])){ $fullDayCareDays[] = $booking_days[$day]; } } @endphp @endif @if(isset($child->morningCareDays) && !empty($child->morningCareDays)) @php $morningCareDays = []; foreach($child->morningCareDays as $day){ if(isset($booking_days[$day])){ $morningCareDays[] = $booking_days[$day]; } } @endphp @endif @if(isset($child->afternoonCareDays) && !empty($child->afternoonCareDays)) @php $afternoonCareDays = []; foreach($child->afternoonCareDays as $day){ if(isset($booking_days[$day])){ $afternoonCareDays[] = $booking_days[$day]; } } @endphp @endif @if(!empty($fullDayCareDays) || !empty($morningCareDays) || !empty($afternoonCareDays))
Attending
@if(!empty($fullDayCareDays))

Full Day Care - {{implode(', ', $fullDayCareDays)}}

@endif @if(!empty($morningCareDays))

Mornings Only - {{implode(', ', $morningCareDays)}}

@endif @if(!empty($afternoonCareDays))

Afternoon Only - {{implode(', ', $afternoonCareDays)}}

@endif
@endif
@php $hobbies = config('constant.hobbies'); $otherhobbies = $selectedhobbies = []; if(isset($child->hobbies) && !empty($child->hobbies)){ $otherhobbies = array_diff($child->hobbies,$hobbies); $selectedhobbies = array_except($child->hobbies, $otherhobbies); } $fears = config('constant.fears'); $otherFears = $selectedFears = []; if(isset($child->fears) && !empty($child->fears)){ $otherFears = array_diff($child->fears,$fears); $selectedFears = array_except($child->fears, $otherFears); } @endphp @if(!empty($selectedhobbies))
My likes and dislikes
@if(!empty($selectedhobbies) || !empty($selectedFears))

I like {{ implode(', ', $selectedhobbies) }}.

{{ implode(', ', $otherhobbies) }}

@endif @if(!empty($selectedFears))

I don’t like {{ implode(', ', $selectedFears) }}.

{{ implode(', ', $otherFears) }}

@endif
@endif @if(isset($child->favourites) && !empty($child->favourites))
My favourites
@foreach($child->favourites as $favourite) @if(isset($favourite->description) && $favourite->description != "")

My favourite {{ $favourite->title}} {{ isset($favourite->description) && $favourite->description != "" ? 'is ' . $favourite->description : '' }}

@endif @endforeach
@endif
Other

{{ isset($child->toiletTrained) && $child->toiletTrained == true ? 'I am toilet trained.' : 'I am not toilet trained.'}}

Medical & health
@if(isset($child->immuniseSighted) && $child->immuniseSighted == true)
Immunisation records sighted by school staff
@endif
@if(isset($child->immunised) && $child->immunised == true)

My child has been immunised

@endif @if(isset($child->anaphylaxisDiagnosed) && $child->anaphylaxisDiagnosed == true)

My child has been diagnosed as at risk of anaphylaxis

@endif @if(isset($child->immunised) && $child->immunised == true) @if(isset($child->vaccines) && !empty($child->vaccines)) @php $vcount = 0; @endphp @foreach($child->vaccines as $vaccine)

{{isset($vaccine->name) ? $vaccine->name : 'NA'}}

Given date: {{ isset($vaccine->date) && $vaccine->date != "" ? \Carbon\Carbon::parse($vaccine->date)->format('d/m/Y') : 'NA'}}

@if(isset($vaccine->documents) && !empty($vaccine->documents)) @foreach($vaccine->documents as $documents) @php $ext = pathinfo($documents->url, PATHINFO_EXTENSION); @endphp @endforeach @endif
@endforeach @endif @endif
@if(isset($child->hasAllergies) && $child->hasAllergies == true)
My child has allergies or sensitivities
@if(isset($child->allergiesDiagnosed) && $child->allergiesDiagnosed == true)

My child has been diagnosed by a doctor {{isset($child->allergiesDiagnosing) && $child->allergiesDiagnosing == true ? '(Diagnosis ongoing)' : ''}}

@elseif(isset($child->allergiesDiagnosing) && $child->allergiesDiagnosing == true)

Diagnosis ongoing

@endif

Date of diagnosis: {{ isset($child->allergiesDiagnosedDate) && $child->allergiesDiagnosedDate != "" ? \Carbon\Carbon::parse($child->allergiesDiagnosedDate)->format('d/m/Y') : 'NA' }}

{{ isset($child->allergiesDescription) ? $child->allergiesDescription : '' }}

@endif
@if(isset($child->specialNeedsRequired) && $child->specialNeedsRequired == true)
My child has any medical conditions or special needs
@if(isset($child->specialNeedsDiagnosed) && $child->specialNeedsDiagnosed == true)

My child has been diagnosed by a doctor {{isset($child->specialNeedsDiagnosing) && $child->specialNeedsDiagnosing == true ? '(Diagnosis ongoing)' : ''}}

@elseif(isset($child->specialNeedsDiagnosing) && $child->specialNeedsDiagnosing == true)

Diagnosis ongoing

@endif

Date of diagnosis: {{ isset($child->specialNeedsDiagnosedDate) && $child->specialNeedsDiagnosedDate != "" ? \Carbon\Carbon::parse($child->specialNeedsDiagnosedDate)->format('d/m/Y') : 'NA' }}

{{ isset($child->specialNeedsDescription) ? $child->specialNeedsDescription : '' }}

@endif
@if(isset($child->dietaryRestrications) && $child->dietaryRestrications == true)
My child has any dietary restrictions

{{ isset($child->restricationDescription) ? $child->restricationDescription : '' }}

@endif
{{--
Other medical concerns

{{ isset($child->medicalConcerns) ? $child->medicalConcerns : '-' }}

--}}
@if(isset($child->requiredItems) && !empty($child->requiredItems))
@foreach($child->requiredItems as $requiredItems)
{{ $requiredItems->name }}
@if(isset($requiredItems->documents) && !empty($requiredItems->documents)) @foreach($requiredItems->documents as $documents) @php $ext = pathinfo($documents->url, PATHINFO_EXTENSION); @endphp
{{$documents->name}}
@endforeach @endif
@endforeach
@endif
Consent
@if(isset($child->policiesAndConsents) && !empty($child->policiesAndConsents)) @foreach($child->policiesAndConsents as $policy)
{{$policy->name}}

{!! str_ireplace(array("\r\n\t",'\r\n\t',"\r\n",'\r\n',"\n",'\n',"\t",'\t'),'
',$policy->description) !!}

@endforeach @endif
Mission statement

{{ isset($child->missionTitle) ? $child->missionTitle : "" }}

{!! isset($child->missionDescription) ? str_ireplace(array("\r\n\t",'\r\n\t',"\r\n",'\r\n',"\n",'\n',"\t",'\t'),'
',$child->missionDescription) : "" !!}

@endsection @section('script-bottom') @endsection