@extends('admin.layout') @section('title', 'Bulk Thumbnail Generator') @section('content')

🖼️ Bulk Thumbnail Generator

← Back to Videos
{{-- ═══════════════════════════════════════════ --}} {{-- START NEW BATCH --}} {{-- ═══════════════════════════════════════════ --}} @if(!$activeBatch)

Generate Thumbnail Otomatis

Akan memproses semua video self-hosted yang belum punya thumbnail. Thumbnail dihasilkan otomatis sebagai grid 3×3 (9 frame dari video). Ukuran output 494×875. Proses berjalan di background — browser bisa ditutup.

📊 Video tanpa thumbnail: {{ $pendingCount }}
@if($pendingCount > 0)
@csrf
@else

✅ Semua video sudah punya thumbnail!

@endif
@endif {{-- ═══════════════════════════════════════════ --}} {{-- ACTIVE BATCH PROGRESS --}} {{-- ═══════════════════════════════════════════ --}} @if($activeBatch)

⏳ Batch Sedang Berjalan {{ $activeBatch->status }}

@csrf
{{-- Progress Bar --}}
{{-- Stats --}}
{{ $activeBatch->processed }}
Processed
{{ $activeBatch->total_videos }}
Total
{{ $activeBatch->success_count }}
✅ Success
{{ $activeBatch->failed_count }}
❌ Failed
{{ $activeBatch->skipped_count }}
⏭ Skipped
{{ $activeBatch->progressPercent() }}%
Progress

Mode: {{ $activeBatch->mode }} • Started: {{ $activeBatch->started_at?->diffForHumans() ?? 'queued...' }}

{{-- Live Log --}}

📋 Live Log

Menunggu proses dimulai...
@endif {{-- ═══════════════════════════════════════════ --}} {{-- BATCH HISTORY --}} {{-- ═══════════════════════════════════════════ --}} @if($history->count() > 0)

📜 Riwayat Batch

@foreach($history as $h) @endforeach
Batch ID Mode Status Total Waktu Actions
{{ Str::limit($h->batch_id, 8, '...') }} {{ $h->mode }} {{ $h->status }} {{ $h->total_videos }} {{ $h->success_count }} {{ $h->failed_count }} {{ $h->skipped_count }} {{ $h->finished_at?->diffForHumans() ?? '—' }} View Logs
@endif {{-- ═══════════════════════════════════════════ --}} {{-- STYLES --}} {{-- ═══════════════════════════════════════════ --}} {{-- ═══════════════════════════════════════════ --}} {{-- POLLING SCRIPT --}} {{-- ═══════════════════════════════════════════ --}} @if($activeBatch) @endif @endsection