@php $item = $course; $overviewParas = old('overview_paragraphs', $item->overview_json ?: ([''])); if (empty($overviewParas)) { $overviewParas = ['']; } $modulesHtml = old('modules_html', $item->exists ? $item->modulesHtml() : ''); $careerFields = old('career_fields', $item->career_fields_json ?: ['']); if (empty($careerFields)) { $careerFields = ['']; } $keyInfo = old('key_info_labels') !== null ? collect(old('key_info_labels', []))->map(fn ($l, $i) => ['label' => $l, 'value' => old('key_info_values.'.$i, '')])->all() : collect($item->key_info_json ?: [ 'Study Level' => $item->studyLevelName(), 'Study Mode' => $item->study_mode, 'Duration' => $item->duration, 'Intake' => $item->intake, 'Tuition Fee' => $item->tuition_fee, 'Campus' => $item->campuses_text, ])->map(fn ($v, $k) => ['label' => $k, 'value' => $v])->values()->all(); if (empty($keyInfo)) { $keyInfo = [['label' => '', 'value' => '']]; } $faqs = old('faqs', $item->faqs_json ?: [['q' => '', 'a' => '']]); if (empty($faqs)) { $faqs = [['q' => '', 'a' => '']]; } @endphp
@csrf @if($item->exists) @method('PUT') @endif
Blue box under the intro on the course page. Leave blank to use Site Settings phone/email.
Manage levels in Courses → Study Levels.

Each block is shown on the course details Overview tab. Use the toolbar for bold, lists, links, etc.

@foreach($overviewParas as $i => $para)
@endforeach

Write the full Course Modules content in one editor (levels, module names, credits, outcomes — whatever you need).

@foreach($careerFields as $field)
@endforeach

Label / value pairs shown in Key Information (Study Mode, Fee, Campus, etc.).

@foreach($keyInfo as $row)
@endforeach
@foreach($faqs as $faq)
FAQ
@endforeach
Publish

Hero banner. Falls back to listing image, then Site Settings default.

@if($item->breadcrumb_image)
@endif
status ?? true))>
Back to list @if($item->exists && $item->slug) View on site @endif