@props([ 'id' => null, 'item' => array(), 'avatar' => 'avatar', 'value' => 'name', 'subValue' => '', 'noSeparator' => false, 'noHover' => false, 'link' => null, 'actions' => null, ])
class([ "flex justify-start items-center gap-4 px-3", "hover:bg-base-200/50" => !$noHover, "cursor-pointer" => $link ]) }} > @if($link && (data_get($item, $avatar) || !is_string($avatar)))
@endif {{-- AVATAR --}} @if(data_get($item, $avatar))
@endif @if(!is_string($avatar))
attributes->class(["py-3"]) }}> {{ $avatar }}
@endif @if($link && (data_get($item, $avatar) || !is_string($avatar)))
@endif {{-- CONTENT --}} {{-- ACTION --}} @if($actions) @if($link && !Str::of($actions)->contains([':click', '@click' , 'href'])) @endif
attributes->class(["py-3 flex items-center gap-3"]) }}> {{ $actions }}
@if($link && !Str::of($actions)->contains([':click', '@click' , 'href']))
@endif @endif
@if(!$noSeparator)
@endif