Child details
Parent/guardian details
@if(isset($child->parents) && !empty($child->parents))
@php $pcount = 0; @endphp
@foreach($child->parents as $parent)
@php $pcount++; @endphp
@endforeach
@else
@endif
Preferred attendance
@if(isset($child->preferredAttendance) && !empty($child->preferredAttendance))
@foreach($child->preferredAttendance as $day)
@php $selectedDay = config('constant.collection_days')[$day->day]; $periods = []; @endphp
@foreach($day->periods as $period)
@php
$fromTime = $toTime = "";
if(isset($period->fromTime)){
$fromTime = \Carbon\Carbon::createMidnightDate(date('Y-m-d'))->addMinutes($period->fromTime)->format('h:i A');
}
if(isset($period->toTime)){
$toTime = \Carbon\Carbon::createMidnightDate(date('Y-m-d'))->addMinutes($period->toTime)->format('h:i A');
}
$periods[] = $fromTime . " to " . $toTime;
@endphp
@endforeach
{{$selectedDay}}: {{implode(", ", $periods)}}
@endforeach
@endif
@if(isset($child->wlQuestions) && !empty($child->wlQuestions))
@foreach($child->wlQuestions as $question)
{{$question->question}}
{{$question->answer}}
@endforeach
@endif
@if(isset($child->additionalNote) && !empty($child->additionalNote))
Additional Information
{{$child->additionalNote}}
@endif
@if($is_approved)
Remarks (Only for school)
@else
@endif