@extends('layouts.panel') @section('title', 'Vídeos') @section('heading', $queue ? 'Fila de análise' : 'Vídeos') @section('lede', $queue ? 'Peças enviadas aguardando revisão' : 'Biblioteca e fluxo de aprovação') @section('content')
@if ($queue) @endif
@if (auth()->user()->isAdmin()) @if ($queue) Ver todos @else Fila de análise @endif @endif
@can('create', \App\Models\Video::class) Enviar vídeo @endcan
@if ($videos->isEmpty())

Mídia

{{ $queue ? 'Nada na fila agora' : 'Nenhum vídeo encontrado' }}

@if (auth()->user()->isAdvertiser()) Envie um MP4. Ele entra como enviado e só vai ao ar depois da aprovação. @else Os anunciantes enviam as peças. A aprovação e a publicação ficam neste painel. @endif

@else
@foreach ($videos as $video)
@if ($video->thumbnail_path) @else @endif

{{ $video->title }}

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

{{ $video->formattedDuration() }} {{ $video->formattedSize() }} {{ $video->original_filename }}

Ver @can('update', $video) Editar @endcan @can('delete', $video) @if (app(\App\Services\VideoLibraryService::class)->canDelete($video)) @else @can('forceDelete', $video) @endcan @endif @endcan
@endforeach @if ($videos->hasPages())
{{ $videos->links() }}
@endif
@endif @endsection