@foreach ($videos as $video) @php // Determinar título: usar título do artigo se existir, senão usar título do vídeo $displayTitle = $video['article'] ? $video['article']->title : $video['title']; $articleUrl = $video['article'] && $video['article']->slug ? '/' . $video['article']->slug : '#'; @endphp
@if ($video['thumbnail']) {{ $displayTitle }} @endif
@if ($video['duration'])
{{ gmdate('H:i:s', $video['duration']) }}
@endif

{{ $displayTitle }}

@if ($video['caption'])

{{ Str::limit($video['caption'], 100) }}

@endif @if ($video['description'])

{{ Str::limit($video['description'], 120) }}

@endif
{{ $video['provider'] }} @if ($video['article']) Artigo relacionado @endif
@endforeach