{{-- Header --}}
Content Search Search across all your content items with full-text search.
{{-- Search Bar --}}
Filters @if($this->activeFilterCount() > 0) {{ $this->activeFilterCount() }} @endif
{{-- Filters Panel --}} @if($showFilters)
{{-- Type Filter --}}
Content Type
{{-- Status Filter --}}
Status
{{-- Category Filter --}}
Category @foreach($this->categories as $cat) @endforeach
{{-- Date From --}}
From Date
{{-- Date To --}}
To Date
@if($this->hasActiveFilters())
Clear filters
@endif
@endif {{-- Results --}} @if(strlen(trim($query)) >= 2) @if($this->results && $this->results->count() > 0) {{-- Results Header --}}
Found {{ $this->results->total() }} result{{ $this->results->total() !== 1 ? 's' : '' }} for "{{ $query }}" Using: {{ ucfirst(str_replace('_', ' ', $this->searchBackend)) }}
{{-- Results List --}}
@foreach($this->results as $item)
{{-- Title and Type --}}

{{ $item->title }}

{{ ucfirst($item->type) }} {{ ucfirst($item->status) }}
{{-- Slug --}}
/{{ $item->slug }}
{{-- Excerpt --}} @if($item->excerpt)

{{ Str::limit(strip_tags($item->excerpt), 200) }}

@elseif($item->content_html || $item->content_markdown)

{{ Str::limit(strip_tags($item->content_html ?? $item->content_markdown), 200) }}

@endif {{-- Meta --}}
@if($item->author) {{ $item->author->name }} @endif @if($item->categories->count() > 0) {{ $item->categories->pluck('name')->join(', ') }} @endif {{ $item->updated_at->diffForHumans() }}
{{-- Relevance Score --}} @if($item->getAttribute('relevance_score'))
Relevance
{{ $item->getAttribute('relevance_score') }}
@endif
@endforeach
{{-- Pagination --}}
{{ $this->results->links() }}
@elseif($this->results && $this->results->count() === 0) {{-- No Results --}}
No results found No content matches "{{ $query }}" @if($this->hasActiveFilters()) with the current filters @endif @if($this->hasActiveFilters()) Clear filters @endif
@endif @else {{-- Empty State / Recent Content --}}
Search your content Enter at least 2 characters to search across titles, content, and slugs.
{{-- Recent Content --}} @if($this->recentContent->count() > 0)
Recent Content
@foreach($this->recentContent as $item)
{{ ucfirst($item->type) }} {{ Str::limit($item->title, 60) }}
{{ $item->updated_at->diffForHumans() }}
@endforeach
@endif @endif