@extends('admin.layout')
@section('title', $video->title)
@section('content')
{{-- Status Banner --}}
@if($video->isFailed())
β Encoding Gagal
@if($video->error_message)
{{ $video->error_message }}
@endif
@elseif($video->isEncoding())
β³ Video sedang dalam proses encoding...
@elseif($video->isUploaded())
β¬ File telah diupload, menunggu encoding job...
@elseif($video->status === 'disabled')
π« Video dinonaktifkan.
@endif
{{-- Detail Grid --}}
{{-- Left: Metadata --}}
Metadata
| Slug |
{{ $video->slug }} |
| Provider |
{{ $video->provider }} |
| Play Mode |
{{ $video->play_mode }}
|
| Status |
{{ $video->status }}
|
@if($video->embed_url)
| Embed URL |
{{ Str::limit($video->embed_url, 80) }}
|
@endif
@if($video->hls_url)
| HLS URL |
{{ Str::limit($video->hls_url, 80) }} |
@endif
| Player URL |
/e/{{ $video->slug }}
|
| Created |
{{ $video->created_at->format('Y-m-d H:i:s') }} |
| Updated |
{{ $video->updated_at->format('Y-m-d H:i:s') }} |
{{-- Right: Storage & Encoding --}}
Storage & Encoding
@if($video->storage_driver)
| Storage Driver |
{{ strtoupper($video->storage_driver) }} |
@endif
@if($video->source_mp4_path)
| Source MP4 |
{{ $video->source_mp4_path }} |
@endif
@if($video->asset_path)
| HLS Asset Path |
{{ $video->asset_path }} |
@endif
@if($video->type)
| Type |
{{ $video->type }} |
@endif
@if($video->duration)
| Duration |
{{ gmdate('H:i:s', (int) $video->duration) }} |
@endif
@if($video->file_size)
| File Size |
@if($video->file_size > 1073741824)
{{ number_format($video->file_size / 1073741824, 2) }} GB
@else
{{ number_format($video->file_size / 1048576, 1) }} MB
@endif
|
@endif
{{-- βββ THUMBNAIL SECTION βββ --}}
Thumbnail
@if($video->isSelfHosted() && $video->storage_driver)
@endif
@if($video->thumbnail_path)
{{ $video->thumbnail_path }}
Thumbnail tidak bisa dimuat (mungkin private).
@else
Belum ada thumbnail.
@endif
{{-- Extract Status (for external videos) --}}
@if(!$video->isSelfHosted())
HLS Extract Status
| Extract Failed |
@if($video->extract_failed)
YA
@else
TIDAK
@endif
|
| Last Extracted |
{{ $video->last_extracted_at?->diffForHumans() ?? 'β' }} |
@endif
{{-- Error Message (full) --}}
@if($video->error_message)
Error Message
{{ $video->error_message }}
@endif
{{-- Actions --}}
@if($video->canRetryEncode())
@endif
@if($video->isReady())
@elseif($video->status === 'disabled')
@endif
@if(!$video->isSelfHosted())
βοΈ Edit
@endif
{{-- βββββββββββββββββββ SHARE MODAL βββββββββββββββββββ --}}
@include('admin.videos._share-modal')
{{-- βββββββββββββββββββ THUMBNAIL GENERATOR MODAL βββββββββββββββββββ --}}
@if($video->isSelfHosted() && $video->storage_driver)
{{-- Close --}}
πΌοΈ Generate Thumbnail
{{-- Mode Selector --}}
{{-- Seconds Input --}}
{{-- Generate Button --}}
{{-- Loading --}}
{{-- Error --}}
{{-- Preview Grid --}}
{{-- Apply Button --}}
Pilih salah satu gambar terlebih dahulu
{{-- Apply Loading --}}
{{-- Success --}}
@endif
@endsection