@php $isEdit = isset($videoGallery) && $videoGallery->exists && $videoGallery->id; $formAction = $isEdit ? route('admin.video-galleries.update', $videoGallery->id) : route('admin.video-galleries.store'); $formMethod = $isEdit ? 'PUT' : 'POST'; $formTitle = $isEdit ? 'Edit Video' : 'Add Video'; $submitText = $isEdit ? 'Update Video' : 'Save Video'; @endphp @if ($errors->any())
Validation Errors!
@endif

{{ $formTitle }}

Back to List
@csrf @if($isEdit) @method('PUT') @endif
Video Information
@error('title') {{ $message }} @enderror
{{ url('/') }}/video/
@error('slug') {{ $message }} @enderror
Preview: @if(isset($videoGallery) && $videoGallery->slug) {{ $videoGallery->slug }} @else auto-generated @endif
@error('description') {{ $message }} @enderror
@error('video_url') {{ $message }} @enderror Supports YouTube and Vimeo URLs
@error('video_duration') {{ $message }} @enderror Format: MM:SS (e.g., 5:30)
SEO Settings
Optional
@error('meta_title') {{ $message }} @enderror
@error('meta_description') {{ $message }} @enderror
Thumbnail
@if(isset($videoGallery) && $videoGallery->video_thumbnail)
Thumbnail
Current Thumbnail
Click below to change
@else

Click to upload thumbnail

PNG, JPG, WEBP (Max 2MB)
@endif
@error('video_thumbnail') {{ $message }} @enderror
Settings
@error('page_id') {{ $message }} @enderror Select a specific page or leave as "All Pages" for global display
@error('status') {{ $message }} @enderror
is_global ?? 0) ? 'checked' : '' }} style="width: 18px; height: 18px; accent-color: #C1121F; cursor: pointer;">
If checked, this video will appear on all pages
@error('sort_order') {{ $message }} @enderror Lower numbers appear first
Cancel