{{-- expects $circular (Circular|null), $subjects (Collection) --}} @php $isEdit = (bool) ($circular?->id); $selSubject = old('subject_id', $circular->subject_id ?? ''); $selTitle = old('title', $circular->title ?? ''); $selNotificationNo = old('notification_no', $circular->notification_no ?? ''); $selGazette = old('gazette', $circular->gazette ?? ''); $selDate = old('date', optional($circular?->date)->format('Y-m-d') ?? ''); $selPublish = old('publish_date', optional($circular?->publish_date)->format('Y-m-d') ?? ''); $selDetails = old('details', $circular->details ?? ''); @endphp
@csrf {{-- Row 1: Subject / Title --}}
@error('subject_id')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
{{-- Row 2: Notification No. / Gazette --}}
@error('notification_no')
{{ $message }}
@enderror
@error('gazette')
{{ $message }}
@enderror
{{-- Row 3: Circular Date / Publish Date --}}
{{-- Flatpickr swaps this for a visible dd-mm-Y input and writes Y-m-d back here on submit. --}} @error('date')
{{ $message }}
@enderror
@error('publish_date')
{{ $message }}
@enderror
{{-- Row 4: Details body (CKEditor 5 replaces this textarea) --}}
@error('details')
{{ $message }}
@enderror
Back to list