@extends('layouts.admin-layout') @section('title', isset($content) && $content->exists ? 'Edit Home Page' : 'Create Home Page') @section('content')

{{ isset($content) && $content->exists ? 'Edit' : 'Create' }} Home Page Content

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $action = isset($content) && $content->exists ? route('admin.home.update') : route('admin.home.store'); @endphp
@csrf {{-- ── TAB NAVIGATION ── --}}
{{-- ══ TAB 1: SLIDERS ══ --}}
Hero Sliders
@php $sliders = $content->sliders ?? []; @endphp @forelse($sliders as $i => $slide)
Slide #{{ $i + 1 }}
Title *
@empty
Slide #1
@endforelse
Banner background image is set in the Images tab.
{{-- ══ TAB 2: ABOUT ══ --}}
About Section
@error('about_heading')
{{ $message }}
@enderror
@error('about_description')
{{ $message }}
@enderror
About section image is set in the Images tab.
{{-- ══ TAB 3: LATERAL ══ --}}
LATERAL Program Section
@error('lateral_heading')
{{ $message }}
@enderror
@php $points = $content->lateral_points ?? ['', '', '']; @endphp @foreach ($points as $pi => $point)
@endforeach
{{-- ══ TAB 4: GROUPS ══ --}}
Groups at Proactive Peers Tools
@error('groups_heading')
{{ $message }}
@enderror
@php $boxes = $content->group_boxes ?? ['', '', '', '', '']; @endphp @foreach ($boxes as $bi => $box)
{{ $bi + 1 }}
@endforeach
{{-- ══ TAB 5: SUBSCRIPTION PLANS ══ --}}
Subscription Plans
@error('subscription_heading')
{{ $message }}
@enderror
@php $plans = $content->plans ?? []; @endphp @forelse($plans as $pi => $plan)
Plan #{{ $pi + 1 }}
@empty
Plan #1
@endforelse
{{-- ══ TAB 6: COMMUNITY ══ --}}
Community Section
{{-- ══ TAB 7: TESTIMONIALS HEADINGS ══ --}}
Testimonials Section Headings
Individual testimonials (name, message, avatar) are managed separately. Manage Testimonials
{{-- ══ TAB 8: IMAGES ══ --}}
Images / Media
{{-- Banner --}}

Hero Banner

@if (isset($content) && $content->getMedia('banner_image')->isNotEmpty()) Banner @else
No image yet
@endif Background for Home hero slides.
{{-- About --}}

About Section Image

@if (isset($content) && $content->getMedia('about_image')->isNotEmpty()) About @else
No image yet
@endif Right side of about section.
{{-- Play --}}

Play Section Image

@if (isset($content) && $content->getMedia('play_image')->isNotEmpty()) Play @else
No image yet
@endif Full-width image between services & lateral.
{{-- /tab-content --}} {{-- SUBMIT --}}
Back
@endsection @section('script') @endsection