{{-- Table Row Component - shadcn-style --}} @props([ 'clickable' => false, 'href' => null, 'hoverable' => null, ]) @php // Check parent table's hoverable attribute if not explicitly set $isHoverable = $hoverable ?? true; @endphp @if($href) class([ 'border-b transition-colors cursor-pointer', 'hover:bg-muted/50' => $isHoverable, 'data-[state=selected]:bg-muted', ]) }} onclick="window.location='{{ $href }}'" > {{ $slot }} @else class([ 'border-b transition-colors', 'hover:bg-muted/50' => $isHoverable, 'cursor-pointer' => $clickable, 'data-[state=selected]:bg-muted', ]) }} > {{ $slot }} @endif