@extends('admin.layouts.app') @section('title', 'Home CMS') @section('content')

Home CMS

Update homepage texts and images from one place.

@if($errors->any())
@endif
@csrf @php $toPreview = function ($value) { if (empty($value)) return ''; if (str_starts_with($value, 'http://') || str_starts_with($value, 'https://')) return $value; return asset('storage/' . ltrim($value, '/')); }; $heroImageRaw = old('hero_image', $content['hero']['image'] ?? ''); $heroImagePreview = $toPreview($heroImageRaw); $whyImageRaw = old('why_image', $content['why']['image'] ?? ''); $whyImagePreview = $toPreview($whyImageRaw); $finalImageRaw = old('final_image', $content['final']['image'] ?? ''); $finalImagePreview = $toPreview($finalImageRaw); @endphp @php $sectionMeta = [ 'hero' => 'Hero', 'why' => 'Why Section', 'destinations' => 'Accreditation + Destinations + Events', 'institutions' => 'Institutions + Stories + Promo', 'videos' => 'Videos + Partners + Steps + FAQ + Final CTA', ]; $focusedTitle = $sectionMeta[$focusSection] ?? null; $showAllSections = ! $focusedTitle; @endphp

Quick Section Jump

@if($showAllSections) Open any specific part of Home CMS without scrolling through the full page. @else You are editing only the {{ $focusedTitle }} block right now. @endif

@if(! $showAllSections) View Full Home CMS @endif
@foreach($sectionMeta as $key => $label) {{ $label }} @endforeach

Hero

@if($heroImagePreview) Hero image @endif

Current: {{ $heroImageRaw }}

Why Section

@if($whyImagePreview) Why image @endif

Current: {{ $whyImageRaw }}

@for($i=1; $i<=3; $i++)
@endfor @for($i=1; $i<=3; $i++)
@endfor

Accreditation + Destinations + Events

@for($i=1; $i<=6; $i++)
@endfor

Event cards now come from the separate Events module. Manage items from Admin > Events.

Institutions + Stories + Promo

Institution items are now managed from the shared Partner Institutions library with name and logo. Open Partner Institutions

Videos + Partners + Steps + FAQ + Final CTA

@for($i=1; $i<=4; $i++)
@php $videoImageRaw = old('video_'.$i.'_image', $content['videos']['items'][$i-1]['image'] ?? ''); $videoImagePreview = $toPreview($videoImageRaw); @endphp @if($videoImagePreview) Video {{ $i }} image @endif

Current: {{ $videoImageRaw }}

@endfor
Partner items are now managed on the Our Partners page (Website Content → Our Partners).
@for($i=1; $i<=3; $i++)
@endfor
@if($finalImagePreview) Final CTA image @endif

Current: {{ $finalImageRaw }}

@endsection