@extends('admin.layouts.app') @section('title', 'Edit '.$item->title) @section('page_title', 'Edit '.$item->title) @section('content') @php $tabs = [ 'content' => ['label' => 'Content', 'hint' => $builderUrl ? 'Page builder' : 'Page copy'], 'seo' => ['label' => 'SEO', 'hint' => 'Search & social'], 'audit' => ['label' => 'SEO Audit', 'hint' => 'Score & SERP'], ]; $nav = [ ['id' => 'basics', 'label' => 'Basics'], ['id' => 'copy', 'label' => 'Copy'], ['id' => 'media', 'label' => 'Media'], ['id' => 'publish', 'label' => 'Publish'], ]; $score = $item->seoAudit?->score; @endphp

Pages · {{ $definition['group'] ?? 'Static' }}

{{ $item->title }}

Update page content, polish SEO, and run a deep audit — same premium workflow as your catalog editors.

@if (! is_null($score))
SEO {{ $score }}/100
@endif
← All pages @if ($item->status === 'published') Preview live @endif @if ($tab !== 'audit') Open SEO Audit @endif
@foreach ($tabs as $key => $meta) {{ $meta['label'] }} {{ $meta['hint'] }} @endforeach
@if ($tab === 'content')
@csrf @method('PUT')
@include('admin.other-pages.partials.content-form', ['item' => $item, 'definition' => $definition])
@elseif ($tab === 'seo') @include('admin.other-pages.partials.seo-form', [ 'item' => $item, 'seo' => $item->seoMeta, 'globalOg' => $globalOg ?? null, 'publicUrl' => $publicUrl, 'definition' => $definition, ]) @else @include('admin.other-pages.partials.audit-panel', ['item' => $item, 'audit' => $audit]) @endif
@endsection