@foreach ($results as $index => $result) @if (class_basename($result['model']) === 'User' || class_basename($result['model']) === 'Organization' || class_basename($result['model']) === 'Bank')

{{ $result['name'] }}

@if (class_basename($result['model']) === 'Organization')
{{ __('Organization') }}
@elseif (class_basename($result['model']) === 'Bank')
{{ __('Bank') }}
@endif
@if (!empty($result['location'])) @endif
@livewire('reaction-button', [ 'typeName' => 'star', 'showCounter' => true, 'reactionCounter' => $result['star_count'], 'modelClass' => $result['model'], 'modelId' => $result['id'], 'size' => 'w-6 h-6', ], key('star-' . $result['model'] . '-' . $result['id'] . '-' . $index))
@livewire('reaction-button', [ 'typeName' => 'bookmark', 'showCounter' => false, 'reactionCounter' => null, 'modelClass' => $result['model'], 'modelId' => $result['id'], 'size' => 'w-6 h-6', ], key('bookmark-' . $result['model'] . '-' . $result['id'] . '-' . $index))
{{ $result['full_name'] }}
@if (!empty($result['location']))
{{ $result['location_short'] }}
@endif @if (!empty($result['deleted_at']))
{{ __('Deleted') }}
@endif
@php if (empty($result['about']) && !empty($result['cyclos_skills']) ) { $about = $result['cyclos_skills']; } else { $about = $result['about']; } @endphp @if ($result['about_short'] && $about )
{{ $result['about_short'] }}

{{ $about }}

@elseif (!$result['about_short'] && $about > 100)
{{ strip_tags(html_entity_decode(Illuminate\Support\Str::ucfirst(rtrim(Illuminate\Support\Str::before($about, '.'), '.')))) }}
{{ strip_tags(html_entity_decode(Illuminate\Support\Str::limit(Illuminate\Support\Str::after($about, '.')))) }}
@elseif (!$result['about_short'] && $about <= 100)
{{ strip_tags(html_entity_decode(Illuminate\Support\Str::ucfirst(rtrim(Illuminate\Support\Str::before($about, '.'), '.')))) }}
{{ strip_tags(html_entity_decode(Illuminate\Support\Str::limit(Illuminate\Support\Str::after($about, '.')))) }}
{{ html_entity_decode(Illuminate\Support\Str::ucfirst(($result['motivation']))) }}
@endif {{-- 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 --}}
@if (isset($result['highlight']) && is_array($result['highlight'])) @foreach ($result['highlight'] as $field => $highlights) @if (is_array($highlights)) @foreach ($highlights as $highlight) {!! $highlight !!} @endforeach @else {!! $highlights !!} @endif @endforeach @elseif(isset($result['highlight']) && is_string($result['highlight'])) {!! $result['highlight'] !!} @endif
@php // Define different limits for different screen sizes $skillsToShow = $result['skills']->sortBy('category_color'); $xsLimit = 22; // ~4 rows on xs screens $smLimit = 34; // ~4 rows on sm screens $mdLimit = 26; // ~3 rows on md screens $lgLimit = 26; // ~4 rows on lg screens $xlLimit = 36; // ~3 rows on xl+ screens @endphp @foreach ($skillsToShow as $i => $skill) {{ $skill['name'] }} @endforeach @if ($skillsToShow->count() > $xsLimit) +{{ $skillsToShow->count() - $xsLimit }} @endif @if ($skillsToShow->count() > $smLimit) @endif @if ($skillsToShow->count() > $mdLimit) @endif @if ($skillsToShow->count() > $lgLimit) @endif @if ($skillsToShow->count() > $xlLimit) @endif
{{ __('search score') . ': ' . round($result['score'], 1) }}
@elseif (class_basename($result['model']) === 'Call')
@elseif (class_basename($result['model']) === 'Post') @endif @endforeach
@if (count($resultRefs) == 1) 1 {{ __('result for') }} {{ $searchTerm }}. @elseif (count($resultRefs) > 1) @if (count($resultRefs) >= timebank_config('main_search_bar.search.max_results')) {!! __('Please refine your search term.') !!} {{ __('Only the top :shown results out of :total are shown for', ['shown' => count($resultRefs), 'total' => $total]) }} {{ $searchTerm }}. @else {{ count($resultRefs) }} {{ __('results for') }} {{ $searchTerm }}. @endif @else {{ __('Sorry, no results for') }} {{ $searchTerm }}. {{ __('Please search again.') }} @endif
@if ($results->hasPages())
{{ $results->links('livewire.long-paginator') }}
@endif
@push('scripts') @endpush