@if (strlen($search) > 3 && timebank_config('main_search_bar.suggestions') > 0 && !empty($suggestions) && count($suggestions) > 0)
    @foreach($suggestions as $suggestion) @if ($suggestion)
  • {{ $suggestion['text'] }}
  • @endif @endforeach
@endif @if ($showResults && timebank_config('main_search_bar.suggestions') > 0) @foreach ($results as $result) @endforeach
# Model ID Score Highlight
@if ($result['model'] === 'App\Models\User') {{ $result['model'] }} @elseif($result['model'] === 'App\Models\Organization') {{ $result['model'] }} @elseif($result['model'] === 'App\Models\Post') {{ $result['model'] }} @else {{ $result['model'] }} @endif {{ $result['id'] }} {{ $result['score'] }} {{-- XSS SECURITY: Highlights are sanitized in MainSearchBar::sanitizeHighlights() --}} {{-- DO NOT change {!! !!} to {{ }} - highlights contain safe HTML tags for styling --}} {{-- DO NOT bypass sanitization - user content from profiles could contain malicious code --}} {{-- If you modify highlight handling, review MainSearchBar.php lines 1107-1180 for security notes --}} @foreach (collect($result['highlight'])->unique()->toArray() as $highlight) {!! $highlight !!}
@endforeach
@endif