@php $isEdit = isset($post) && $post; $tagsValue = old('tags', $isEdit ? implode(', ', $post->tags ?? []) : ''); $publishedValue = old( 'published_at', $isEdit ? (optional($post->published_at)->format('Y-m-d\\TH:i') ?? '') : now()->format('Y-m-d\\TH:i') ); @endphp

{{ __('Post Details') }}

@if ($isEdit && $post->image) {{ $post->title }} @else {{ __('Placeholder image') }} @endif

{{ __('JPG, JPEG, PNG, or WEBP. Max 10MB.') }}

{{ __('Slug is auto-generated from the title.') }}

@if ($isEdit)

{{ $post->slug }}

@endif

{{ __('Separate tags with commas.') }}

{{ __('Content & Status') }}