{{ $cat->name }}
{{ Str::limit($cat->description, 120) }}
@extends('layouts.user') @section('title', trans('app.Search Knowledge Base')) @section('page-title', trans('app.Search Knowledge Base')) @section('page-subtitle', trans('app.Find answers to your questions')) @php // Helper function to highlight search terms function highlightSearchTerm($text, $query) { if (empty($query)) return $text; return preg_replace('/(' . preg_quote($query, '/') . ')/i', '$1', $text); } @endphp @section('content')
{{ trans('app.Find answers to your questions and get help with our products') }}
{{ trans('app.Type something in the search box above to find articles and answers to your questions') }}
{{ trans('app.Explore our knowledge base categories') }}
{{ Str::limit($cat->description, 120) }}
@if($results->count() > 0) {{ $results->count() }} {{ trans('app.results for') }} "{{ $q }}" @else {{ trans('app.No results for') }} "{{ $q }}" @endif
@if($item->search_type === 'article') {!! highlightSearchTerm(Str::limit($item->excerpt ?: strip_tags($item->content), 200), $highlightQuery) !!} @else {!! highlightSearchTerm(Str::limit($item->description, 200), $highlightQuery) !!} @endif
@if(!$item->hasAccess) @endif{{ trans('app.We couldn\'t find any articles matching your search. Try different keywords or browse our categories below.') }}
{{ trans('app.Explore more content') }}
{{ Str::limit($cat->description, 120) }}