@extends($viewVars['loadTeacherLayout'] ? 'layouts.teacher' : 'layouts.vertical') @section('css') @endsection @php $selectedChild = ""; $is_child_exist = false; if(app('request')->input('child')){ $selectedChild = app('request')->input('child'); } @endphp @section('breadcrumb')

Assessment

@endsection @section('content')
@csrf
Select the relevant children below to begin
{{--
Select other children of {{$initital->room->name}} to add the same assessment as well.
--}}
@if(isset($initital->children) && !empty($initital->children)) @foreach($initital->children as $child)
@endforeach @php $is_child_exist = true; @endphp @else

No children found

Add child
@endif
@if($is_child_exist)
@if(isset($initital->questions) && !empty($initital->questions)) @foreach($initital->questions as $key => $question)
@if($question->type == 1)
@elseif($question->type == 2)
@elseif($question->type == 3)
@elseif($question->type == 4)
@endif
@endforeach @endif @endif
@if($is_child_exist)
@endif
@endsection @section('script-bottom') @endsection