@extends('admin.layouts.app') @section('title', $item ? 'Edit Blog Post' : 'New Blog Post') @section('page_title', $item ? 'Edit Blog Post' : 'New Blog Post') @section('content') @php $isNew = ! $item; $tabs = [ 'content' => ['label' => 'Content', 'hint' => 'Writing studio'], 'seo' => ['label' => 'SEO', 'hint' => 'Full SEO system'], 'audit' => ['label' => 'SEO Audit', 'hint' => 'Score & SERP'], ]; $nav = [ ['id' => 'compose', 'label' => 'Compose'], ['id' => 'taxonomy', 'label' => 'Taxonomy'], ['id' => 'media', 'label' => 'Media'], ['id' => 'publish', 'label' => 'Publish'], ]; $score = $item?->seoAudit?->score; @endphp

Content · Blog Studio

{{ $isNew ? 'Create a blog post' : $item->title }}

{{ $isNew ? 'Write with live stats, taxonomy, and media — then unlock the full SEO system and deep audit.' : 'Advanced writing studio with full SEO controls, social previews, schema, and audit scoring.' }}

@if (! $isNew && ! is_null($score))
SEO {{ $score }}/100
@endif
← All posts @if (! $isNew && $item->status === 'published') Preview live @endif @if (! $isNew && $tab !== 'audit') Open SEO Audit @endif
@foreach ($tabs as $key => $meta) @if ($isNew && $key !== 'content') {{ $meta['label'] }} Save first @else {{ $meta['label'] }} {{ $meta['hint'] }} @endif @endforeach
@if ($tab === 'content')
@csrf @unless($isNew) @method('PUT') @endunless
@include('admin.blog.posts.partials.content-form', [ 'item' => $item, 'categories' => $categories, 'tags' => $tags, 'authors' => $authors, ])
@elseif ($tab === 'seo' && ! $isNew) @include('admin.blog.posts.partials.seo-form', [ 'item' => $item, 'seo' => $item->seoMeta, 'globalOg' => $globalOg ?? null, ]) @elseif ($tab === 'audit' && ! $isNew) @include('admin.blog.posts.partials.audit-panel', ['item' => $item, 'audit' => $audit]) @endif
@endsection