@props([ 'route' => route('admin.posts.store'), 'title' => __('admin.createPost'), 'button_text' => __('common.save'), 'post' => null, 'locales', 'users', 'categories', 'tags', ])
@csrf
@if ($locales->count() !== 1) @endif
@foreach ($locales as $locale) @if (isset($post)) @php($post_locale = $post->translate($locale->locale)) @endif
{{ $title }}
first) required autofocus @endif> @error($locale->locale . '.title')
{{ $message }}
@enderror
first) required @endif> @error($locale->locale . '.slug')
{{ $message }}
@enderror @lang('common.slugHelp')
@lang('common.excerptHelp')
@lang('common.seoSettings')
@lang('common.metaTitleHelp')
@lang('common.metaDescriptionHelp')
@lang('common.ogSettings')
@lang('common.ogDescriptionHelp')
@endforeach
@lang('admin.authorHelp')
@lang('admin.categories')
@lang('admin.tags')
@lang('admin.tagHelp')
@lang('common.featuredImage')
@if ($post && $post->getFirstMediaUrl('featured-image'))
@endif
@section('footer_scripts') @endsection