@extends('layout', ['autoRefresh' => $videos->contains(fn($v) => $v->isProcessing())]) @section('title', 'FacelessShorts') @section('content')
@csrf

@if($videos->isEmpty())

No videos yet — generate your first one above.

@else
@foreach($videos as $video)
poster_path) style="background-image:url('{{ route('videos.poster', $video) }}')" @endif> @if($video->isProcessing())
{{ $video->progress }}%
@elseif($video->status === 'failed')⚠️ @elseif(!$video->poster_path)—@endif

{{ $video->title ?: $video->topic }}

{{ $video->status }} · {{ $video->language }} @if($video->viral)· 🔥@endif @if($video->motion)· 🎬@endif @if($video->costLabel())· {{ $video->costLabel() }}@endif @if($video->isProcessing())

{{ $video->stage ?: 'Queued' }}

@elseif($video->status === 'failed')

{{ \Illuminate\Support\Str::limit($video->error, 80) }}

@endif
@endforeach
@endif @endsection