@extends('layouts.admin-simple') @section('title', 'Edit Video Setting') @section('page-title', 'Edit Video Setting') @section('breadcrumb') @endsection @section('content')
Video Information
@if ($errors->any())
Please correct the following errors:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
Unique identifier for this video (e.g., hero_video, about_video) @error('key')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('video_type')
{{ $message }}
@enderror
Full URL to the video (YouTube, Vimeo, or direct MP4 link) @error('video_url')
{{ $message }}
@enderror
Leave empty to auto-generate from video (YouTube only) @error('thumbnail_url')
{{ $message }}
@enderror
is_enabled) ? 'checked' : '' }}>
When disabled, this video will not be used on the website
settings['autoplay'] ?? false) ? 'checked' : '' }}>
settings['mute'] ?? false) ? 'checked' : '' }}>
settings['loop'] ?? false) ? 'checked' : '' }}>
settings['controls'] ?? false) ? 'checked' : '' }}>
Cancel
@if($videoSetting->getVideoSource())
Video Preview
@if($videoSetting->getThumbnailSource()) Video Thumbnail
@if($videoSetting->video_type === 'youtube') @elseif($videoSetting->video_type === 'vimeo') @else @endif
@else
@if($videoSetting->video_type === 'youtube') @elseif($videoSetting->video_type === 'vimeo') @else @endif
@endif
@if($videoSetting->video_id) Video ID: {{ $videoSetting->video_id }}
@endif @if($videoSetting->video_url && !$videoSetting->isUploadedVideo()) URL: @if($videoSetting->video_type === 'youtube') View on YouTube @elseif($videoSetting->video_type === 'vimeo') View on Vimeo @else View Video @endif @endif @if($videoSetting->isUploadedVideo()) Type: Uploaded Video
File: {{ basename($videoSetting->video_file_path) }} @endif
@endif
Usage Information
Key: {{ $videoSetting->key }}
Status: {{ $videoSetting->is_enabled ? 'Enabled' : 'Disabled' }}
@if($videoSetting->preload_at)
Preloaded:
{{ $videoSetting->preload_at->format('M j, Y g:i A') }}
@endif
Last Updated:
{{ $videoSetting->updated_at->format('M j, Y g:i A') }}
@endsection @push('scripts') @endpush