@extends('admin.layout') @section('title', 'Edit Video') @section('content')

✏️ Edit Video — {{ $video->title }}

@if($errors->any())
@endif
@csrf @method('PUT')
Slug tidak bisa diubah. Player URL: /e/{{ $video->slug }}
Jika kosong saat video dibuat, description otomatis menggunakan title.
@if(!$video->isSelfHosted())
Isi URL baru untuk replace thumbnail. Akan didownload & disimpan ke local. @if($video->thumbnail_path)
Thumbnail saat ini: {{ $video->thumbnail_path }} @endif
@endif @php $selectedCategories = old('category_ids', $video->categories->pluck('id')->toArray()); $selectedTags = old('tag_ids', $video->tags->pluck('id')->toArray()); @endphp
@if($categories->count() > 0)
@foreach($categories as $category) @endforeach
@else
Belum ada kategori. Tambah dulu di halaman Setting Kategori.
@endif
@if($tags->count() > 0)
@foreach($tags as $tag) @endforeach
@else
Belum ada tag. Tambah dulu di halaman Setting Tags.
@endif
{{-- Info section --}}

Status Extract

HLS URL {{ $video->hls_url ?? '—' }}
Extract Failed @if($video->extract_failed) YA @else TIDAK @endif
Last Extracted {{ $video->last_extracted_at?->diffForHumans() ?? '—' }}
Error Message {{ $video->error_message ?? '—' }}
Created {{ $video->created_at->format('Y-m-d H:i') }}
Batal @if($video->isPlayable()) ▶ Preview @endif
@endsection