@php $isEdit = filled($record); $p = 'event_'; @endphp @csrf @if ($method !== 'POST') @method($method) @endif {{ $isEdit ? 'Edit Event' : 'Create Event' }} Each event is a blog-style page: title, thumbnail and a formatted body, in English and Assamese. English Assamese General 01 English Title, short summary and the full event story. Title (English) * @error('title_en'){{ $message }}@enderror Short summary (English) {{ old('summary_en', $record?->summary_en) }} One or two lines. Shown under the title and on the all-events page. Plain text. @error('summary_en'){{ $message }}@enderror Event story (English) {{ old('content_en', $record?->content_en) }} @error('content_en'){{ $message }}@enderror 02 Assamese Optional. Any field left empty falls back to the English text. Title (Assamese) @error('title_as'){{ $message }}@enderror Short summary (Assamese) {{ old('summary_as', $record?->summary_as) }} @error('summary_as'){{ $message }}@enderror Event story (Assamese) {{ old('content_as', $record?->content_as) }} @error('content_as'){{ $message }}@enderror 03 General Thumbnail, publishing and address of the page. Thumbnail image Shown as the large photo at the top of the event page. @error('image_id'){{ $message }}@enderror Page address (slug) {{-- Display only: no name, so it is never submitted. The server generates the slug from the English title on create. --}} @if ($isEdit) /events/{{ $record->slug }} · fixed after creation so existing links keep working. @else Generated automatically from the English title. A number is added if the address is already taken. @endif Status * @foreach ($selectOptions['statuses'] ?? [] as $optionValue => $optionLabel) status ?? 'draft') === (string) $optionValue) data-admin-en="{{ $optionLabel }}" data-admin-as="{{ $selectOptionLabelsAs[$optionValue] ?? $optionLabel }}">{{ $optionLabel }} @endforeach Only published events appear on the website. @error('status'){{ $message }}@enderror Publish date Newest first in the menu and the all-events page. Defaults to now when publishing. @error('published_at'){{ $message }}@enderror Cancel {{ $isEdit ? 'Update' : 'Create' }} @unless ($isEdit) @endunless @include('admin.partials.sectioned-form-styles') @include('admin.partials.rich-editor-media') @include('admin.partials.sectioned-form-assets')
Each event is a blog-style page: title, thumbnail and a formatted body, in English and Assamese.
Title, short summary and the full event story.
Optional. Any field left empty falls back to the English text.
Thumbnail, publishing and address of the page.