@extends('layouts.nova')

@php
    $forumEditPostProps = json_encode([
        'post'      => ['id' => $post->id, 'content' => $post->content],
        'thread'    => ['id' => $thread->id, 'title' => $thread->title, 'slug' => $thread->slug],
        'csrfToken' => csrf_token(),
        'errors'    => $errors->toArray(),
    ], JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
@endphp

@section('content')
<div id="forum-edit-post-root"></div>
<script type="application/json" id="forum-edit-post-props">{!! $forumEditPostProps !!}</script>
@endsection

@push('scripts')
    @vite(['resources/js/entry-forum.jsx'])
@endpush
