{{-- Tabbed description + insights box. Expects: $video (Video model) Optionally accepts: $descriptionSlot — raw HTML to show in the About tab body --}} @php $isVideoOwner = Auth::check() && Auth::id() === $video->user_id; $renderedDescription = \App\Support\HtmlSanitizer::render($video->description ?? ''); $hasDesc = $renderedDescription !== '' || isset($descriptionSlot); $llmEnabledVdb = $hasDesc && app(\App\Services\LlmLyricsService::class)->isEnabled(); // Optional pre-rendered block shown above the description inside the About // panel. Only the `match` type passes it (the bout summary card); when it is // unset every other type renders exactly as before. $aboutPrepend = $aboutPrepend ?? null; $showBox = $hasDesc || $isVideoOwner || $aboutPrepend !== null; @endphp @if ($showBox)
@if($isVideoOwner) @endif
@if($aboutPrepend !== null) {!! $aboutPrepend !!} @endif
{{ number_format($video->view_count) }} views • {{ $video->created_at->format('M d, Y') }} @if($video->duration)•{{ $video->formatted_duration }}@endif
@if(isset($descriptionSlot)) {!! $descriptionSlot !!} @elseif($renderedDescription !== '')
{!! $renderedDescription !!}
@else

No description added.

@endif @if($llmEnabledVdb) @endif
@if($isVideoOwner) @endif
@endif