@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--}}
@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
@endforeach
@endif
@endif