@extends('components.layout') @section('title', 'Search Results | ' . ($settings['site_name'] ?? 'LOCAL PULSE')) @section('content')

@if($searchQuery) Search results for "{{ $searchQuery }}" @else Search @endif

@if($typeFilter === 'article')
Scope: All AU Local International
@endif @if($articles->isNotEmpty() || $events->isNotEmpty() || $locations->isNotEmpty() || $authors->isNotEmpty())
@if($articles->isNotEmpty())

Articles ({{ $articles->count() }})

@foreach($articles->take(9) as $article) @endforeach
@endif @if($events->isNotEmpty())

Events ({{ $events->count() }})

@foreach($events->take(6) as $event)

{{ $event->title }}

{{ $event->start_date?->format('d M Y') }} · {{ $event->venue }}

@endforeach
@endif @if($locations->isNotEmpty())

Locations ({{ $locations->count() }})

@foreach($locations->take(9) as $location)

{{ $location->name }}

{{ ucfirst($location->type) }}

@endforeach
@endif @if($authors->isNotEmpty())

Authors ({{ $authors->count() }})

@endif
@elseif($searchQuery)

No results found for "{{ $searchQuery }}"

Try different keywords or filters

@else

Enter a search term to find articles, events, locations, and authors.

@endif
@endsection