@extends('admin.layouts.app') @section('title', 'Home Page') @section('page-title', 'Home Page') @section('content')

🏠 Home Page

Every section on the homepage, in page order. Turn a section off to hide it on the site, or open it to edit its content, fonts, colours and icons. The layout itself stays hardcoded — only what you change here moves.

↗ View Site
@if(session('success'))
✅ {{ session('success') }}
@endif @if(session('error'))
⚠️ {{ session('error') }}
@endif
🧱
Sections{{ $counts['total'] }}
👁️
Visible{{ $counts['visible'] }}
🙈
Hidden{{ $counts['hidden'] }}
📄
On Page{{ $counts['on_page'] }} / {{ $counts['total'] }}
How to read the badges: content 6/7 live = how many of that section's content fields the page actually uses today. not applied yet = the value is saved but the blade still uses its own built-in copy — we wire those up section by section. Fields that say live take effect the moment you save.
@forelse($sections as $i => $s) @php $row = $s['row']; @endphp @empty @endforelse
# Section Status Content Style Actions
{{ $i + 1 }}
{{ $s['icon'] }}
{{ $s['label'] }} {{ $s['key'] }}
@if($row->is_visible) Visible @else Hidden @endif @if($s['on_page']) on page @else not rendered @endif @if($s['fields'] === 0) built into page @elseif($s['live'] === 0) 0/{{ $s['fields'] }} live @elseif($s['live'] === $s['fields']) content {{ $s['fields'] }}/{{ $s['fields'] }} live @else content {{ $s['live'] }}/{{ $s['fields'] }} live {{ $s['fields'] - $s['live'] }} pending @endif @if($s['styles'] > 0) {{ $s['styles'] }} override{{ $s['styles'] > 1 ? 's' : '' }} @else default @endif
@csrf
✎ Edit
No homepage sections found. Run php artisan db:seed --class=HomepageSectionsSeeder.
@endsection