@extends('layouts.vertical') @section('css') @endsection @php $sroom = ""; $is_approved = false; $is_update = false; if(app('request')->input('room')){ $sroom = app('request')->input('room'); } if(isset($child->approved) && $child->approved == true){ $is_approved = true; } if(isset($child)){ $is_update = true; } $relations = config('constant.relation'); @endphp @section('breadcrumb')

Child registration

@endsection @section('content')
@csrf
Child details
dob)->format('d/m/Y') : old('dob') }}" placeholder="">
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
@if($is_approved) @else @endif @if((isset($child->approved) && $child->approved == false && !isset($child->approvalDate)) || (isset($child->approved) && $child->approved == true)) @endif
@endsection @section('script-bottom') @endsection