@php
$video = $video ?? null;
$url = $video?->playableUrl();
$statusColor = match ($video?->statusColor()) {
'success' => 'bg-emerald-100 text-emerald-700',
'info' => 'bg-sky-100 text-sky-700',
'danger' => 'bg-rose-100 text-rose-700',
default => 'bg-amber-100 text-amber-700',
};
@endphp
{{ $video?->statusLabel() ?? 'New' }}
@if($video && ($video->resolutionLabel() !== '-'))
{{ $video->resolutionLabel() }}
@endif
@if($video && ($video->durationLabel() !== '-'))
{{ $video->durationLabel() }}
@endif
@if($video && ($video->sizeLabel() !== '-'))
{{ $video->sizeLabel() }}
@endif
@if($url)
@else
Preview will appear after the first upload.
@endif
@if($video && filled($video->processing_error))
{{ $video->processing_error }}
@endif