@props([ 'result' => [], 'index' => 0, 'href' => null, 'wireClick' => null, 'showScore' => false, 'showCallable' => true, 'showReactions' => true, 'photoBlur' => 0, 'photoContrast' => 100, 'photoSaturate' => 100, 'photoBrightness' => 100, 'heightClass' => 'h-[430px] md:h-[550px] lg:h-[430px]', 'truncateExcerpt' => false, ])
@if ($wireClick) @else @endif
{{-- Deepest tag category badge only --}} @php $deepestCat = !empty($result['tag_categories']) ? last($result['tag_categories']) : null; @endphp @if ($deepestCat) {{ $deepestCat['name'] }} @endif
{{-- Reaction button --}} @if ($showReactions)
@livewire('reaction-button', [ 'typeName' => 'like', 'showCounter' => true, 'reactionCounter' => $result['like_count'], 'modelClass' => $result['model'], 'modelId' => $result['id'], 'size' => 'w-6 h-6', 'inverseColors' => true, ], key('like-' . $result['model'] . '-' . $result['id'] . '-' . $index))
@endif

{{ $result['title'] }}

{{-- Location + expiry badges --}} @if (!empty($result['location']) || !empty($result['expiry_badge_text']))
@if (!empty($result['location']))

{{ $result['location'] }}

@endif @if (!empty($result['expiry_badge_text']))

{{ $result['expiry_badge_text'] }}

@endif
@endif

{{ $result['excerpt'] }}

@if ($showCallable)
{{-- Callable avatar --}} @if (!empty($result['photo']))
{{ $result['callable_name'] }}
@endif
{{-- Callable name --}} @if (!empty($result['callable_name'])) {{ $result['callable_name'] }} @endif {{-- Callable location --}} @if (!empty($result['callable_location'])) {{ $result['callable_location'] }} @endif
@endif
@if ($showScore)
{{ __('search score') . ': ' . round($result['score'] ?? 0, 1) }}
@endif