{{ $query }}

{{ __('Found') . ' ' . $totalRecords . ' ' . __('results') }}
@switch($defaultSearch) @case('stories') @foreach ($results as $result) @endforeach @if ($storiesCount != 0) @if ($results->hasMorePages())
@endif @else

{{ __('No results') }}

@endif @break @case('comments') @foreach ($results as $result)
{{ $result->story->title }}
@if ($result->user) @else
{{ __('Account deleted') }}
@endif
{!! $result->comment !!}
{{-- Save --}} @if (auth()->id() !== $result->user?->id) @endif
@endforeach @if ($commentsCount != 0) @if ($results->hasMorePages())
@endif @else

{{ __('No results') }}

@endif @break @case('communities') @foreach ($results as $result)
{{ $result->name }}
{{ $result->name }}
{!! $result->description !!}
@if ($result->followers_count > 0) {{ $result->followers_count . ' ' . __('followers') }} @endif @if ($result->stories_count > 0) {{ $result->stories_count . ' ' . __('stories') }} @endif
@endforeach @if ($communitiesCount != 0) @if ($results->hasMorePages())
@endif @else

{{ __('No results') }}

@endif @break @case('users') @foreach ($results as $result)
{{ $result->username }}
{{ $result->name ? $result->name : $result->username }}
@if ($result->followers_count > 0) {{ $result->followers_count . ' ' . __('followers') }} @endif @if ($result->stories_count > 0) {{ $result->stories_count . ' ' . __('stories') }} @endif
@if (auth()->id() !== $result?->id) @endif
@endforeach @if ($usersCount != 0) @if ($results->hasMorePages())
@endif @else

{{ __('No results') }}

@endif @break @endswitch