@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.

01

English

Title, short summary and the full event story.

@error('title_en')
{{ $message }}
@enderror
One or two lines. Shown under the title and on the all-events page. Plain text.
@error('summary_en')
{{ $message }}
@enderror
@error('content_en')
{{ $message }}
@enderror
02

Assamese

Optional. Any field left empty falls back to the English text.

@error('title_as')
{{ $message }}
@enderror
@error('summary_as')
{{ $message }}
@enderror
@error('content_as')
{{ $message }}
@enderror
03

General

Thumbnail, publishing and address of the page.

Shown as the large photo at the top of the event page.
@error('image_id')
{{ $message }}
@enderror
{{-- 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
Only published events appear on the website.
@error('status')
{{ $message }}
@enderror
Newest first in the menu and the all-events page. Defaults to now when publishing.
@error('published_at')
{{ $message }}
@enderror
Cancel
@unless ($isEdit) @endunless @include('admin.partials.sectioned-form-styles') @include('admin.partials.rich-editor-media') @include('admin.partials.sectioned-form-assets')