@extends('layouts.app') @section('content')
@include('frontend.blog.partials.sidebar')
{{ __('navigation.search_results') }}

{{ __('navigation.search_results_for') }}: "{{ $searchQuery }}"

{{ __('navigation.found_count_results', ['count' => $blogs->total()]) }}

@forelse($blogs as $blog) @empty

{{ __('navigation.no_search_results') }}

{{ __('navigation.try_different_keywords') }}

@endforelse @if($blogs->hasPages())
{{ $blogs->links() }}
@endif
@endsection @php function highlightSearchTerm($text, $searchTerm) { if (empty($searchTerm)) { return $text; } $searchTerm = preg_quote($searchTerm, '/'); $pattern = '/(' . $searchTerm . ')/i'; return preg_replace($pattern, '$1', $text); } @endphp