@extends('admin::layouts.app') @section('lock-channel-selector', '1') @section('title', $post->title) @section('content')

{{ $post->title }}

← Posts
@csrf @method('PUT')
{{-- Left column: content --}}
{{-- Title + slug --}}
@error('title')

{{ $message }}

@enderror

Leave blank to use post ID.

{{-- Block editor --}}

Content

{{-- Sidebar toggle button --}}
@include('admin::components.block-editor', ['publication' => $post, 'channelTerms' => $channelTerms])
{{-- Right sidebar --}}
{{-- Publish panel --}}

Publish

@if($post->slug || $post->post_id) View ↗ @endif
{{-- SEO panel --}}

SEO

Leave blank to auto-generate.

{{-- Taxonomy panel --}} @if($channelTerms->isNotEmpty())

{{ ucfirst($channel->taxonomy_slug) }}

@foreach($channelTerms as $term) @endforeach
@else

{{ ucfirst($channel->taxonomy_slug) }}

No terms yet. Add one.

@endif

Duplicate post to…

@csrf

Taxonomy terms won't be copied to a different channel.

@php $channelsData = $allChannels->map(fn ($c) => [ 'id' => $c->id, 'prefixes' => $c->prefixes->map(fn ($p) => ['id' => $p->id, 'slug' => $p->slug])->values(), ])->values(); @endphp @endsection