@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.
@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
@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