@extends('admin.layout')
@section('title', 'Bulk Thumbnail Generator')
@section('content')
{{-- ═══════════════════════════════════════════ --}}
{{-- 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)
@else
✅ Semua video sudah punya thumbnail!
@endif
@endif
{{-- ═══════════════════════════════════════════ --}}
{{-- ACTIVE BATCH PROGRESS --}}
{{-- ═══════════════════════════════════════════ --}}
@if($activeBatch)
⏳ Batch Sedang Berjalan
{{ $activeBatch->status }}
{{-- 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
| Batch ID |
Mode |
Status |
Total |
✅ |
❌ |
⏭ |
Waktu |
Actions |
@foreach($history as $h)
{{ 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
|
@endforeach
@endif
{{-- ═══════════════════════════════════════════ --}}
{{-- STYLES --}}
{{-- ═══════════════════════════════════════════ --}}
{{-- ═══════════════════════════════════════════ --}}
{{-- POLLING SCRIPT --}}
{{-- ═══════════════════════════════════════════ --}}
@if($activeBatch)
@endif
@endsection