{{ __('Search Results') }}

@if (empty($query))

{{ __('Please enter a search query') }}

@elseif ($totalResults === 0)

{{ __('No results found for') }} "{{ $query }}"

{{ __('Try different keywords or check your spelling') }}

@else

{{ __('Found') }} {{ $totalResults }} {{ __('result(s) for') }} "{{ $query }}"

@if ($results['departments']->count() > 0)

{{ __('Academics') }} ({{ $results['departments']->count() }})

@foreach ($results['departments'] as $department)
@if ($department->logo) {{ $department->getTranslation('name', app()->getLocale()) }} @endif

{{ $department->getTranslation('name', app()->getLocale()) }}

@if ($department->getTranslation('description', app()->getLocale()))

{{ \Illuminate\Support\Str::limit($department->getTranslation('description', app()->getLocale()), 120) }}

@endif {{ __('View Academic') }} →
@endforeach
@endif @if ($results['news']->count() > 0)

{{ __('News') }} ({{ $results['news']->count() }})

@foreach ($results['news'] as $news)
{{ $news->getTranslation('title', app()->getLocale()) }}
{{ $news->published_at->format('M d, Y') }} @if ($news->categories && $news->categories->count() > 0)
@foreach ($news->categories as $category) {{ $category->getTranslation('name', app()->getLocale()) }} @endforeach
@endif

{{ $news->getTranslation('title', app()->getLocale()) }}

@if ($news->getTranslation('excerpt', app()->getLocale()))

{{ $news->getTranslation('excerpt', app()->getLocale()) }}

@endif {{ __('Read More') }} →
@endforeach
@endif @if ($results['faculty_staff']->count() > 0)

{{ __('Faculty & Staff') }} ({{ $results['faculty_staff']->count() }})

@foreach ($results['faculty_staff'] as $member)
@if ($member->photo) {{ $member->getTranslation('name', app()->getLocale()) }} @else
{{ strtoupper(substr($member->getTranslation('name', app()->getLocale()), 0, 1)) }}
@endif

{{ $member->getTranslation('name', app()->getLocale()) }}

@if ($member->getTranslation('position', app()->getLocale()))

{{ $member->getTranslation('position', app()->getLocale()) }}

@endif @if ($member->email)

{{ __('Email') }}: {{ $member->email }}

@endif @if ($member->department)

{{ __('Department') }}: {{ $member->department->getTranslation('name', app()->getLocale()) }}

@endif
@endforeach
@endif
@endif