@extends('layouts.admin') @section('title', 'Edit Video') @section('content')
← Back to Videos

Edit Video: {{ $video->title }}

@csrf @method('PUT')
@error('title')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Video Source (Choose one)
@if($video->player_code || $video->video_file_path || $video->getRawVideoUrl() || $video->video_hash)
Current Video:
@if($video->player_code) 🎬 Player Code Custom interactive player code is set
Code preview: {{ Str::limit(strip_tags($video->player_code), 100) }} @elseif($video->video_hash) 🎬 Interactive Player Hash: {{ $video->video_hash }} @elseif($video->video_file_path) 📁 File Uploaded {{ basename($video->video_file_path) }}
View/Download @elseif($video->getRawVideoUrl()) 🔗 URL: {{ $video->getRawVideoUrl() }} @endif
@endif
Important: Paste ONLY the HTML div structure (the div with data-hash attribute). DO NOT include the <script> tag - it's already loaded globally in the layout. @error('player_code')
{{ $message }}
@enderror
OR
Upload an HTML file containing the player code. Max size: 10MB @error('player_code_file')
{{ $message }}
@enderror
OR
Video hash for interactive player (from videosuite-player-wrapper) @error('video_hash')
{{ $message }}
@enderror
OR
YouTube, Vimeo, or direct video URL @error('video_url')
{{ $message }}
@enderror
OR
Max size: 100MB. Supported formats: MP4, WebM, OGG, AVI, MOV @error('video_file')
{{ $message }}
@enderror
Thumbnail (Optional)
@if($video->thumbnail_file_path || $video->getRawThumbnailUrl())
Current Thumbnail:
@if($video->thumbnail_file_path) Current thumbnail
@elseif($video->getRawThumbnailUrl()) Current thumbnail
@endif
@endif
@error('thumbnail_url')
{{ $message }}
@enderror
OR
Max size: 5MB. Supported formats: JPEG, PNG, GIF, WebP @error('thumbnail_file')
{{ $message }}
@enderror
@error('class_id')
{{ $message }}
@enderror
@error('subject_id')
{{ $message }}
@enderror
@error('topic')
{{ $message }}
@enderror
@error('genre')
{{ $message }}
@enderror
@error('duration')
{{ $message }}
@enderror
@error('duration_seconds')
{{ $message }}
@enderror
@error('rating')
{{ $message }}
@enderror
@error('age_group')
{{ $message }}
@enderror
Lower numbers appear first @error('order')
{{ $message }}
@enderror
is_featured) ? 'checked' : '' }}>
is_premium) ? 'checked' : '' }}>
is_active) ? 'checked' : '' }}>
Cancel
@push('scripts') @endpush @endsection