@php $item = $campus; $overviewParas = old('overview_paragraphs', $item->overview_json ?: ['']); if (empty($overviewParas)) { $overviewParas = ['']; } $facilities = old('facilities', $item->facilities_json ?: ['']); if (empty($facilities)) { $facilities = ['']; } $related = old('related_courses', $item->related_courses_json ?: [['title' => '', 'slug' => '', 'desc' => '']]); if (empty($related)) { $related = [['title' => '', 'slug' => '', 'desc' => '']]; } $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 ?: [ 'Campus Type' => $item->badge, 'Address' => $item->address, 'Phone' => $item->phone, 'Email' => $item->email, ])->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

Paragraphs shown on the campus overview tab. Use the toolbar for formatting.

@foreach($overviewParas as $para)
@endforeach
@foreach($facilities as $facility)
@endforeach

Courses linked from this campus page. Slug should match a course URL slug.

@foreach($related as $i => $course)
Related course
@endforeach
@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