{{-- 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)
No description added.
@endif @if($llmEnabledVdb) @endif