@extends('backend.layouts.master') @section('title', 'Edit Home — Sections') @section('content') @php $s = $sections; $media = fn ($path) => \App\Support\BreadcrumbImage::mediaUrl($path) ?: $path; @endphp

Home — Section Content

@include('backend.partials.alerts')
@csrf @method('PUT')
{{-- HERO --}}
@php $heroMediaType = old('sections.hero.media_type', $s['hero']['media_type'] ?? 'video'); @endphp
Features
@foreach($s['hero']['features'] as $i => $feat)
@endforeach
Stats bar
@foreach($s['hero']['stats'] as $i => $stat)
@endforeach
{{-- JOURNEY --}}
@foreach($s['journey']['cards'] as $i => $card)
Card {{ $i + 1 }}
@endforeach
{{-- UNIVERSITIES --}}
University cards are managed in Courses → Course Categories. Enable Show on homepage universities on each category you want to display.
{{-- ELIGIBILITY --}}

Form fields & options

Each option has a score. Total score is compared to the minimum above. Leave a field Name empty to remove it. Leave an option Value empty to hide that option.

@php $eligFields = $s['eligibility']['fields'] ?? []; while (count($eligFields) < 6) { $eligFields[] = ['name' => '', 'label' => '', 'icon' => 'fas fa-circle', 'placeholder' => 'Select', 'options' => []]; } @endphp @foreach($eligFields as $fi => $field)
@php $opts = $field['options'] ?? []; while (count($opts) < 8) { $opts[] = ['value' => '', 'label' => '', 'score' => 0]; } @endphp @foreach($opts as $oi => $opt)
@endforeach
@endforeach
Result — Eligible

Use placeholders like {course} or {location} (field name keys) in the text.

@php $er = $s['eligibility']['results']['eligible'] ?? []; @endphp

Result — Needs Assessment
@php $ar = $s['eligibility']['results']['assessment'] ?? []; @endphp
Submissions appear under Eligibility Checks.
{{-- UK SERVICES --}}
@foreach($s['uk_services']['items'] as $i => $item) @endforeach
Rotating orbit countries (right side)

These appear as the rotating circles. Leave Code empty to hide a row. Flag can be an emoji (🇬🇧) or leave blank to show the code.

@php $orbitCountries = $s['uk_services']['countries'] ?? []; while (count($orbitCountries) < 10) { $orbitCountries[] = ['code' => '', 'name' => '', 'flag' => '']; } @endphp
@foreach($orbitCountries as $i => $c) @endforeach
Code Country name Flag
{{-- FINANCE --}}
@foreach($s['finance']['checklist'] as $i => $item) @endforeach
Finance cards
@foreach($s['finance']['cards'] as $i => $card)
@endforeach
Trust strip
@foreach($s['finance']['trust'] as $i => $t)
@endforeach
{{-- VIDEOS --}}
Student video cards are managed in Testimonials. Only section titles are edited here.
{{-- ACHIEVEMENTS --}}
@foreach($s['achievements']['stats'] as $i => $stat)
@endforeach
{{-- WHY FBA --}}
Side stats
@foreach($s['why_fba']['side_stats'] as $i => $stat)
@endforeach
Cards
@foreach($s['why_fba']['cards'] as $i => $card)
@endforeach
{{-- PROCESS --}}
@foreach($s['process']['steps'] as $i => $step)
@endforeach
{{-- BLOG / FAQ headers --}}
Blog section header
FAQ section header

Blog posts and FAQ answers are managed in Blog / FAQs modules.

{{-- SEO --}}
Publish
status))>
View Homepage Back
@endsection @push('scripts') @endpush