@php $curriculaShow = App\Models\HomepageSetting::get('curricula_show', true); $curriculaLabel = App\Models\HomepageSetting::get('curricula_label', 'OUR SYLLABUSES'); $curriculaHeading = App\Models\HomepageSetting::get('curricula_heading', 'Every Major Syllabus, One Platform'); $curriculaHeading2 = App\Models\HomepageSetting::get('curricula_heading2', ''); $curriculaSubtext = App\Models\HomepageSetting::get('curricula_subtext', 'We offer structured learning plans mapped directly to regional, national, and international board frameworks.'); $curriculaViewAllShow = App\Models\HomepageSetting::get('curricula_viewall_show', true); $curriculaViewAllLabel = App\Models\HomepageSetting::get('curricula_viewall_label', 'View All Syllabuses →'); $curriculaViewAllUrl = App\Models\HomepageSetting::get('curricula_viewall_url', '/syllabuses'); $curriculaLimit = App\Models\HomepageSetting::get('curricula_limit', 8); $curriculaColumns = App\Models\HomepageSetting::get('curricula_columns', 4); $curriculaHoverStyle = App\Models\HomepageSetting::get('curricula_hover_style', 'gold'); $curriculaFeaturedIds = App\Models\HomepageSetting::get('curricula_featured_ids', []); @endphp @if($curriculaShow)
@if(isset($activeEditingSection) && $activeEditingSection === 'curricula')
Editing: Syllabuses Browser
@endif
{{ $curriculaLabel }}

{{ $curriculaHeading }} {{ $curriculaHeading2 }}

{{ $curriculaSubtext }}

@php $query = \App\Models\Curriculum::where('is_active', true); if (!empty($curriculaFeaturedIds)) { $query->whereIn('id', $curriculaFeaturedIds); } $activeCurricula = $query->orderBy('sort_order')->take($curriculaLimit)->get(); @endphp
@foreach($activeCurricula as $curriculum)
{{ $curriculum->icon ?? '🌍' }}

{{ $curriculum->name }}

{{ $curriculum->description }}

{{ $curriculum->grades->count() }} Grades Explore
@endforeach
@if($curriculaViewAllShow) @endif
@endif