{{ __('Pengaturan Video Konten') }}
{{-- ===== PANEL 1: Toggle Aktif/Non-Aktif ===== --}}
@csrf

Status Visibilitas Section

{{-- ===== PANEL 2: Tambah Video Baru ===== --}}

Tambah Video Baru

Tambahkan beberapa video untuk ditampilkan di carousel homepage.

@csrf
@error('title')

{{ $message }}

@enderror

Cukup masukkan 11-karakter ID dari URL YouTube.

@error('youtube_id')

{{ $message }}

@enderror
{{-- ===== PANEL 3: Daftar Video ===== --}}

Daftar Video ({{ $videos->count() }})

Video aktif akan tampil di carousel homepage.

@if($videos->isEmpty())

Belum ada video ditambahkan.

@else
@foreach($videos as $video)
{{-- Thumbnail/Icon --}}
@if($video->source_type === 'youtube' && $video->youtube_id) {{ $video->title }}
@elseif($video->source_type === 'upload' && $video->file_path) @else @endif
{{-- Info --}}

{{ $video->title }}

{{ $video->source_type === 'youtube' ? '▶ YouTube: ' . $video->youtube_id : '📁 File Upload' }} @if($video->description) · {{ Str::limit($video->description, 50) }} @endif

{{-- Edit Form --}}
{{-- Status Badge --}}
@if($video->is_active) Aktif @else Nonaktif @endif
{{-- Actions --}}
@csrf @method('DELETE')
@endforeach
@endif