@extends('layouts.admin-simple') @section('title', 'Preview: ' . $page->title) @section('page-title', 'Preview: ' . $page->title) @section('breadcrumb') @endsection @section('page-actions')
@if($page->is_enabled) open_in_new View Live @endif edit Edit
@endsection @section('content')
Page Preview
Template: {{ ucfirst($page->template) }}
@if(!$page->is_enabled) Page Disabled @endif @if(!$page->show_in_nav) Hidden from Navigation @endif

{{ $page->title }}

@if($page->meta_description)

{{ $page->meta_description }}

@endif
URL: {{ $page->slug }} Route: {{ $page->route_name }} @if($page->meta_keywords)
@foreach(explode(',', $page->meta_keywords) as $keyword) {{ trim($keyword) }} @endforeach
@endif
@if($page->content_sections && count($page->content_sections) > 0)
Content Sections
@php $sections = collect($page->content_sections) ->filter(fn($section) => $section['is_enabled'] ?? true) ->sortBy('order'); @endphp @foreach($sections as $key => $section)
@if(!empty($section['title']))

{{ $section['title'] }}

@endif @if(!empty($section['content']))
@switch($section['type'] ?? 'text') @case('hero')
@if(!empty($section['title']))

{{ $section['title'] }}

@endif

{{ $section['content'] }}

@break @case('cta')
@if(!empty($section['title']))

{{ $section['title'] }}

@endif

{{ $section['content'] }}

@break @case('html')
HTML Content: This section contains custom HTML code.
{{ $section['content'] }}
@break @case('image')
Image Section: {{ $section['content'] }}
image

Image placeholder

@break @default
{!! nl2br(e($section['content'])) !!}
@endswitch
@endif
@endforeach
@else
description

No content sections defined for this page.

@endif @if($page->custom_css || $page->custom_js)
Custom Styling
@if($page->custom_css)
Custom CSS:
Custom CSS is present and will be applied to the live page.
@endif @if($page->custom_js)
Custom JavaScript:
Custom JavaScript is present and will be executed on the live page.
@endif
@endif
Page Settings
Status:
{{ $page->is_enabled ? 'Enabled' : 'Disabled' }}
Navigation:
{{ $page->show_in_nav ? 'Visible' : 'Hidden' }}
Sort Order:
{{ $page->sort_order }}
Template:
{{ ucfirst($page->template) }}
SEO Information
Title Length:
{{ strlen($page->title) }} characters
@if($page->meta_description)
Description:
{{ strlen($page->meta_description) }}/160 characters @if(strlen($page->meta_description) > 160) ⚠️ Too long @elseif(strlen($page->meta_description) < 120) ⚠️ Too short @else ✓ Good @endif
@endif @if($page->meta_keywords)
Keywords:
{{ count(explode(',', $page->meta_keywords)) }} keywords
@endif
URL:
/{{ $page->slug }}
@endsection @push('styles') @endpush