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

🏠 {{ $page->title }}

Every section of the homepage, one below the other — with its own live preview right underneath. Use the switch to show or hide a section on the site, or open it to edit its content, fonts, colours and icons.

← Back to Pages ↗ View Site
@if(session('success'))
✅ {{ session('success') }}
@endif
🧱 {{ count($sections) }} sections
👁️ {{ $visible }} visible
🙈 {{ $hidden }} hidden
Preview renders the real section from the live homepage — same markup, same fonts, same icons. A section that is switched off still previews here (so you can see what you would be turning on); the public site keeps hiding it.
@foreach($sections as $i => $s) @php $row = $s['row']; @endphp
{{ $i + 1 }} {{ $s['icon'] }} {{ $s['label'] }} {{ $s['key'] }} hidden on site @unless($s['on_page']) not rendered on this page @else @if($s['fields'] === 0) built in @elseif($s['live'] === 0) content pending @elseif($s['live'] < $s['fields']) {{ $s['live'] }}/{{ $s['fields'] }} content live @else content live @endif @endunless @if($s['styles'] > 0) {{ $s['styles'] }} style{{ $s['styles'] > 1 ? 's' : '' }} @endif @if($s['on_page']) ✏️ @endif
@if($s['on_page'])
👁 live preview
@else
Nothing to preview This section is not rendered by the homepage, so there is no markup to show.
@endif
@endforeach
Updating…
@endsection