@extends('layouts.admin') @section('css') @endsection @php $is_duplicate = false; $is_update = false; $themes = []; if(isset($curriculum) && !empty($curriculum)){ $is_update = true; foreach($curriculum->themes as $theme){ $theme->key = $theme->_id; if(!isset($theme->aims) || (isset($theme->aims) && empty($theme->aims))){ $theme->hasAim = false; } if(isset($theme->aims) && !empty($theme->aims)){ foreach ($theme->aims as $aims) { $aims->key = $aims->_id; if(isset($aims->goals) && !empty($aims->goals)){ foreach ($aims->goals as $goal) { $goal->key = $goal->_id; $goal->keywords = implode(',', $goal->keywords); } } } } if(isset($theme->goals) && !empty($theme->goals)){ foreach ($theme->goals as $goal) { $goal->key = $goal->_id; $goal->keywords = implode(',', $goal->keywords); } } $themes[] = $theme; } } @endphp @section('breadcrumb')