@extends('layouts.vertical') @section('css') @endsection @php $selectedRoom = $selectedChild = ""; if(app('request')->input('room')){ $selectedRoom = app('request')->input('room'); } if(app('request')->input('child')){ $selectedChild = app('request')->input('child'); } if(isset($story->room) && !empty($story->room)){ $selectedRoom = $story->room; } if(isset($story->childs) && !empty($story->childs)){ $selectedChild = collect($story->childs)->pluck('_id')->all(); } $keywordsGoals = []; @endphp @section('breadcrumb')

Edit learning story

@if(isset($story->isDraft) && $story->isDraft == true) @else @endif
@endsection @section('content')
@csrf
{{-- @if(isset($story->isDraft) && $story->isDraft == true)
List of children in Toddle room
@if(isset($story->firstRoomInfo->childs) && !empty($story->firstRoomInfo->childs)) @foreach($story->firstRoomInfo->childs as $child)
@endforeach @endif
@else --}}
@if(isset($story->firstRoomInfo->childs) && !empty($story->firstRoomInfo->childs)) @foreach($story->firstRoomInfo->childs as $child) @if(collect($story->childs)->where('_id', $child->_id)->count())
@endif @endforeach @endif {{-- @if(isset($story->childs) && !empty($story->childs)) @foreach($story->childs as $child)
@php $dob = \Carbon\Carbon::parse($child->dob)->diffInMonths(\Carbon\Carbon::now()); @endphp
@endforeach @endif --}}
{{-- @endif --}}
Questions

Want to add or remove questions? Use the app configuration section.

@if(isset($story->storyQuestions) && !empty($story->storyQuestions)) @foreach($story->storyQuestions as $key => $question)
@endforeach @endif
isPublic == true ? 'checked' : '' }}>
@if(isset($story->media) && !empty($story->media)) @foreach($story->media as $media)
@if($media->type == 0) @elseif($media->type == 1) @endif
@endforeach @endif

List any emerging interests here.

@php $count = 0 @endphp @if(isset($story->activeCurricula) && !empty($story->activeCurricula)) @foreach($story->activeCurricula as $curricula)
{{--

2 recommendations in Approaches to Learning, English Language Learning

--}}
@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) @if($curricula->hasKeywords == true) @php $keywordsGoals[$goal->_id] = [ 'high' => $curricula->high, 'low' => $curricula->low, 'medium' => $curricula->medium, 'keywords' => $goal->keywords]; @endphp @endif {{-- Low Medium High--}}
goals) && in_array($goal->_id, $story->goals) ? 'checked' : ''}}>
@endforeach @endif
@endforeach @else @if(isset($theme->goals) && !empty($theme->goals)) @foreach($theme->goals as $goal) @if($curricula->hasKeywords == true) @php $keywordsGoals[$goal->_id] = [ 'high' => $curricula->high, 'low' => $curricula->low, 'medium' => $curricula->medium, 'keywords' => $goal->keywords]; @endphp @endif
goals) && in_array($goal->_id, $story->goals) ? 'checked' : ''}}>
@endforeach @endif @endif
@php $count++ @endphp @endforeach @endif
@endforeach @endif

Reflections

The reflection section is never shared with parents. This step is optional.

@if(isset($story->reflections) && !empty($story->reflections)) @foreach($story->reflections as $key => $reflections)
@endforeach @endif
{{-- @if($story->childCount > 0)

There are multiple children involved. Link one or more stories under each child to build a learning journey. This is an optional step.

@php $count = 0; @endphp
@if(isset($story->records) && !empty($story->records) && count($story->records)) @foreach($story->records as $record) @php $lchild = collect($story->childs)->where('_id', $record->child)->first(); @endphp
@if(isset($record->linkedStories) && !empty($record->linkedStories) && count($record->linkedStories)) @foreach($record->linkedStories as $linked)
View
@endforeach @else
Previous learning story not found
@endif
@php $count++ @endphp @endforeach @else
Previous learning story not found
@endif
@else

Link previous stories for {{$story->childs[0]->name}}

@if(isset($story->records[0]->linkedStories) && !empty($story->records[0]->linkedStories) && count($story->records[0]->linkedStories)) @foreach($story->records[0]->linkedStories as $linked)
View
@endforeach @else
Previous learning story not found
@endif
@endif --}}
isPublic == true ? 'checked' : '' }}>
@include('school.learning-stories.ls-modal') @endsection @section('script-bottom') @endsection