@extends('layouts.public') @section('title', $term ? __('Search: :term', ['term' => $term]) : __('Search')) @section('content') {{ __('Search') }} @if ($term === '') @elseif ($total === 0) {{ __('All projects') }} {{ __('Sectors') }} {{ __('Media & notices') }} @else @foreach ($results as $group => $items) {{ $group }} {{ $items->count() }} @foreach ($items as $item) {!! \App\Services\SiteSearch::highlight($item['title'], $term, 110) !!} @if (filled($item['excerpt'])) {!! \App\Services\SiteSearch::highlight($item['excerpt'], $term) !!} @endif @if (filled($item['meta'])) {{ $item['meta'] }} @endif @endforeach @endforeach @endif @endsection