@props([ 'title', 'rawTitle', 'group', 'isLast', 'url', 'result' ]) @php $classes = [ // background 'dark:bg-[--alpha(white_/_3%)] bg-[--alpha(var(--color-gray-900)_/_5%)]', // Focus within because the focus target a tag and not this LI (for proper accessibility) 'focus-within:dark:bg-[--alpha(white_/_8%)] focus-within:bg-[--alpha(var(--color-gray-900)_/_8%)]', // Hover 'hover:bg-[--alpha(var(--color-gray-900)_/_8%)] dark:hover:bg-[--alpha(white_/_10%)]', ' my-1 py-2 px-3 duration-300 transition-colors rounded-lg flex justify-between items-center' ]; $isAssoc = \Illuminate\Support\Arr::isAssoc($result->details); @endphp
  • class(Arr::toCssClasses($classes)) }} role="option" > $result->actions, 'p-3' => !$result->actions, ]) >

    {{ str($title)->sanitizeHtml()->toHtmlString() }}

    @if ($result->details)
    @foreach ($result->details as $label => $value)
    @if ($isAssoc)
    {{ $label }}:
    @endif
    {{ $value }}
    @endforeach
    @endif
    @if ($resultVisibleActions = $result->getVisibleActions())
    @foreach ($resultVisibleActions as $action) {{ $action }} @endforeach
    @endif