{{-- expects $researchArticle (ResearchArticle|null) --}} @php $isEdit = (bool) ($researchArticle?->id); $selTitle = old('title', $researchArticle->title ?? ''); $selAuthor = old('author', $researchArticle->author ?? ''); $selPublish = old('publish_date', optional($researchArticle?->publish_date)->format('Y-m-d') ?? ''); $selArticle = old('article', $researchArticle->article ?? ''); @endphp
@csrf {{-- Row 1: Title (full width) --}}
@error('title')
{{ $message }}
@enderror
{{-- Row 2: Author / Publish date --}}
@error('author')
{{ $message }}
@enderror
{{-- Flatpickr swaps this for a visible dd-mm-Y input and writes Y-m-d back here on submit. --}} @error('publish_date')
{{ $message }}
@enderror
{{-- Row 3: Article body (CKEditor 5 replaces this textarea) --}}
@error('article')
{{ $message }}
@enderror
Back to list