@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')

Assign next learning goals

@endsection @section('content')
@csrf
Select other children of {{$init->room->name}} to set their next goals as well.
@if(isset($init->children) && !empty($init->children)) @foreach($init->children as $child)
@endforeach @php $is_child_exist = true; @endphp @else

No children found

Add child
@endif
@if($is_child_exist)
Write comment
@php $count = 0 @endphp @if(isset($init->frameworks) && !empty($init->frameworks))

The following are goals which haven’t been achieved yet.

@foreach($init->frameworks as $curricula) @if(isset($curricula->themes) && !empty($curricula->themes))
@foreach($curricula->themes as $theme)
@if($theme->hasAim == true && isset($theme->aims) && !empty($theme->aims)) @foreach($theme->aims as $aims)

{{$aims->name}} @if(isset($aims->description) && !empty($aims->description)) ({{$aims->description}}) @endif

@if(isset($aims->goals) && !empty($aims->goals)) @foreach($aims->goals as $goal)
@endforeach @endif
@endforeach @else @if(isset($theme->goals) && !empty($theme->goals)) @foreach($theme->goals as $goal)
@endforeach @endif @endif
@php $count++ @endphp @endforeach
@endif @endforeach @endif
@endif
@if($is_child_exist)
@endif
@endsection @section('script-bottom') @endsection