{{-- cache-bust: force blade recompile --}} @extends('layout', ['autoRefresh' => $video->isProcessing() || $video->publications->contains(fn($p) => $p->isPending())]) @section('title', $video->title ?: $video->topic) @section('content')

← Back

@if($video->status === 'done') @else
{{ $video->status }}
@endif

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

Topic: {{ $video->topic }}

Language: {{ $video->language }} · Scenes: {{ $video->scene_count }}

@if($video->style)

Style: {{ $video->style }}

@endif @if($video->costLabel())

Est. cost: {{ $video->costLabel() }}{{ $video->motion ? ' · 🎬 motion' : '' }}

@endif

Status: {{ $video->status }}

@if($video->isProcessing())

{{ $video->stage ?: 'Queued' }} · {{ $video->progress }}%

@endif @if($video->error)

{{ $video->error }}

@endif @if($video->status === 'done')

⬇ Download MP4

@endif @if($video->publications->isNotEmpty())

Publications

@foreach($video->publications as $pub)
{{ $pub->status }} {{ ucfirst($pub->platform) }} @if($pub->status === 'draft')· uploaded to drafts — finish in the app@endif @if($pub->platform === 'youtube' && $pub->privacy)· {{ $pub->privacy }}@endif @if($pub->socialAccount)· {{ $pub->socialAccount->account_name ?: $pub->socialAccount->channel?->name }}@endif @if($pub->scheduled_at && $pub->status === 'scheduled')· {{ $pub->scheduled_at->format('M j, H:i') }}@endif @if($pub->url)· view@endif @if(in_array($pub->status, ['scheduled','pending']))
@csrf
@csrf
@endif @if($pub->status === 'failed')
@csrf
@if($pub->error)
{{ \Illuminate\Support\Str::limit($pub->error, 120) }}
@endif @endif
@endforeach @endif
@if($video->status === 'done')

Publish

@if($accounts->isEmpty())

No connected accounts yet. Create a channel and connect YouTube, Instagram or TikTok first.

@else
@csrf @foreach($accounts as $account) @endforeach
@endif
@if($video->viral && $video->social_copy)

🔥 Generated copy

@foreach($video->social_copy as $platform => $copy)

{{ ucfirst($platform) }}

@if(!empty($copy['title']))

{{ $copy['title'] }}

@endif @if(!empty($copy['caption']))

{{ $copy['caption'] }}

@endif @if(!empty($copy['description']))

{{ $copy['description'] }}

@endif @if(!empty($copy['hashtags']))

{{ implode(' ', $copy['hashtags']) }}

@endif
@endforeach
@endif @endif @if($video->status === 'done')

🌐 Language versions

@if($video->sourceVideo)

This is a {{ $video->language }} version of {{ $video->sourceVideo->title ?: $video->sourceVideo->topic }}.

@endif @if($video->variants->isNotEmpty())

Versions: @foreach($video->variants as $var){{ $var->language }}@if(!$loop->last), @endif @endforeach

@endif

Reuse these visuals in another language — only voice & captions are regenerated, so it's cheap.

@csrf
@endif
@csrf @method('DELETE')
@endsection