* Drag-and-drop section ordering with automatic saving.
* Add existing reusable documents to regions.
* Remove placements without deleting documents.
* Create independent page-specific copies.
* Shared-document usage warnings.
* Document creation, duplication, deletion protection and filtering.
* Draft and published document states.
* Document and placement scheduling.
* Authenticated homepage preview.
* Draft sections displayed in preview with a clear draft marker.
* Content Composer added to the administration sidebar.
* Public rendering now respects:
* Publication status
* Future publication dates
* Expiry dates
* Placement start and end dates
* Enabled state
* Original Saasland homepage remains as the fallback when no composition exists.
27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
@extends('stylist-theme-saasland::layouts.app')
|
|
|
|
@php
|
|
$title = $siteTitle;
|
|
$description = $siteDescription;
|
|
$hero = true;
|
|
$pageKey = 'home';
|
|
$contentRenderer = app(\Modules\Content\Services\PageRenderer::class);
|
|
$hasComposition = $contentRenderer->hasComposition($pageKey);
|
|
@endphp
|
|
|
|
@section('content')
|
|
@if($hasComposition)
|
|
{!! $contentRenderer->renderRegion($pageKey, 'body') !!}
|
|
@else
|
|
@include('stylist-theme-saasland::legacy-home-content', [
|
|
'enabled' => fn (string $key, bool $default = true) => filter_var($themeSettings[$key] ?? $default, FILTER_VALIDATE_BOOL),
|
|
'heroTitle' => filled($themeSettings['hero_title'] ?? null)
|
|
? $themeSettings['hero_title']
|
|
: 'Transform Your Business With Our SaaS Solution',
|
|
'heroText' => filled($themeSettings['hero_description'] ?? null)
|
|
? $themeSettings['hero_description']
|
|
: 'Streamline operations, boost productivity, and improve customer satisfaction with one connected platform built for modern teams.',
|
|
])
|
|
@endif
|
|
@endsection
|