@props([ 'itemId' => '', 'title' => '', 'description' => '', 'editUrl' => '', 'deleteUrl' => '', 'commentUrl' => '', 'commentCount' => 0, 'avatarUrl' => '', 'authorId' => null, 'authorName' => '', 'dotColor' => 'grey', 'canEdit' => false, ]) @php $dotClass = match($dotColor) { 'blue' => 'sf-dot--blue', 'orange' => 'sf-dot--orange', 'green' => 'sf-dot--green', 'red' => 'sf-dot--red', default => 'sf-dot--grey', }; @endphp
@if ($canEdit && $editUrl)
@endif
@if ($editUrl) {{ $title }} @else {{ $title }} @endif
@if ($description)
{!! $description !!}
@endif
@if ($authorId || $authorName) @elseif ($avatarUrl) @endif @if ($commentCount > 0 && $commentUrl) {{ $commentCount }} @endif {{ $slot }}