@extends('admin.layout') @section('title', $video->title) @section('content')
← Kembali ke daftar

{{ $video->title }}

@if($video->isPlayable()) β–Ά Play @endif @if(!$video->isSelfHosted()) ✏️ Edit @endif
{{-- Status Banner --}} @if($video->isFailed())
❌ Encoding Gagal @if($video->error_message)
{{ $video->error_message }} @endif
@csrf
@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

@if($video->embed_url) @endif @if($video->hls_url) @endif
Slug {{ $video->slug }}
Provider {{ $video->provider }}
Play Mode {{ $video->play_mode }}
Status {{ $video->status }}
Embed URL {{ Str::limit($video->embed_url, 80) }}
HLS URL {{ Str::limit($video->hls_url, 80) }}
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) @endif @if($video->source_mp4_path) @endif @if($video->asset_path) @endif @if($video->type) @endif @if($video->duration) @endif @if($video->file_size) @endif
Storage Driver {{ strtoupper($video->storage_driver) }}
Source MP4 {{ $video->source_mp4_path }}
HLS Asset Path {{ $video->asset_path }}
Type {{ $video->type }}
Duration {{ gmdate('H:i:s', (int) $video->duration) }}
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
{{-- ═══ THUMBNAIL SECTION ═══ --}}

Thumbnail

@if($video->isSelfHosted() && $video->storage_driver) @endif
@if($video->thumbnail_path)

{{ $video->thumbnail_path }}

Thumbnail

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())
@csrf
@endif @if($video->isReady())
@csrf
@elseif($video->status === 'disabled')
@csrf
@endif @if(!$video->isSelfHosted()) ✏️ Edit @endif
@csrf @method('DELETE')
{{-- ═══════════════════ SHARE MODAL ═══════════════════ --}} @include('admin.videos._share-modal') {{-- ═══════════════════ THUMBNAIL GENERATOR MODAL ═══════════════════ --}} @if($video->isSelfHosted() && $video->storage_driver) @endif @endsection