@php $n = $post ?? null; $enabledLocales = site_supported_locales(); $publishedValue = old('published_at', $n?->published_at?->format('Y-m-d\TH:i') ?? now()->format('Y-m-d\TH:i')); @endphp

{{ __('admin.news_section_identity') }}

@foreach($enabledLocales as $loc)
{"title_{$loc}"}) }}" class="admin-input" @required($loc === 'fa') />
@endforeach
@if (! empty($lockedCategory))

{{ $lockedCategory->name_fa }}

@else @endif @error('commission_category_id')

{{ $message }}

@enderror
@error('published_at')

{{ $message }}

@enderror

{{ __('admin.news_body_hint') }}

@foreach($enabledLocales as $loc) @php $existingBlocks = old("body_{$loc}", $n?->{"body_{$loc}"} ?? [['type' => 'text', 'content' => '']]); if (! is_array($existingBlocks) || $existingBlocks === []) { $existingBlocks = [['type' => 'text', 'content' => '']]; } @endphp

{{ __("admin.locale_{$loc}") }}

@endforeach
@can(\App\Models\Permission::MEDIA_UPLOAD)

{{ __('admin.news_cover_hint') }}

@endcan