@extends('layouts.panel') @section('title', $video->title) @section('heading', $video->title) @section('lede', 'Ficha do vídeo') @section('content')

{{ $video->advertiser?->company?->displayName() ?? $video->advertiser?->contact_name }}

{{ $video->source_type->label() }} @if ($video->isEmbed()) · {{ $video->embed_url }} @else · {{ $video->original_filename }} · {{ $video->formattedSize() }} @endif · {{ $video->requiredWatchSeconds() }}s na tela

@if ($video->isEmbed()) @else @endif
Anunciante
{{ $video->advertiser?->contact_name ?? '—' }}
Enviado em
{{ $video->submitted_at?->timezone(config('app.timezone'))->format('d/m/Y H:i') ?? '—' }}
Analisado em
{{ $video->reviewed_at?->timezone(config('app.timezone'))->format('d/m/Y H:i') ?? '—' }}
Publicado em
{{ $video->published_at?->timezone(config('app.timezone'))->format('d/m/Y H:i') ?? '—' }}
@if ($video->description)
Descrição
{{ $video->description }}
@endif @if ($video->rejected_reason)
Motivo da reprovação
{{ $video->rejected_reason }}
@endif
@can('review', $video)

Fluxo de aprovação

Enviado → em análise → aprovado ou reprovado → publicado. Pausar e finalizar valem depois da publicação.

@if (in_array($video->status, [\App\Enums\VideoStatus::Submitted, \App\Enums\VideoStatus::InReview], true)) @if ($video->status === \App\Enums\VideoStatus::Submitted)
@csrf
@endif
@csrf @if (! $video->duration_ms)

O servidor não leu a duração. Informe para poder aprovar.

@endif
@csrf
@error('rejected_reason')

{{ $message }}

@enderror
@endif @if (in_array($video->status, [\App\Enums\VideoStatus::Approved, \App\Enums\VideoStatus::Paused], true))
@csrf
@endif @if ($video->status === \App\Enums\VideoStatus::Published)
@csrf
@endif @if (in_array($video->status, [\App\Enums\VideoStatus::Published, \App\Enums\VideoStatus::Paused], true))
@csrf
@endif
@endcan
@can('update', $video) Editar @endcan Voltar @can('delete', $video) @if (app(\App\Services\VideoLibraryService::class)->canDelete($video)) @else @can('forceDelete', $video) @endif @endif @endcan
@endsection