@extends('web.default.layouts.app') @section('content')

{{ trans('update.search_results_for',['temp' => request()->get('search')]) }}

{{ trans('update.still_no_luck') }}

{{ trans('update.try_again_or_create_a_topic_for_it') }}

{{ trans('update.search_results_found',['count' => $resultCount]) }}

{{ trans('update.explore_them_from_the_following_list') }}

@if(!empty($topics) and count($topics))
@foreach($topics as $topic)
{{ $topic->creator->full_name }}

{{ $topic->title }}

{{ trans('public.by') }} {{ $topic->creator->full_name }} {{ trans('public.in') }} {{ dateTimeFormat($topic->created_at,'j M Y | H:i') }}
{{ $topic->posts_count }} {{ trans('site.posts') }}
@if($topic->pin)
@endif @if($topic->close)
@endif
@if(!empty($topic->lastPost))
{{ $topic->lastPost->user->full_name }}

{{ $topic->lastPost->user->full_name }}

{{ trans('public.in') }} {{ dateTimeFormat($topic->lastPost->created_at,'j M Y | H:i') }}
@endif
@endforeach
{{ $topics->appends(request()->input())->links('vendor.pagination.panel') }}
@else

{{ trans('update.result_not_found') }}

{{ trans('update.try_another_word_to_reach_results') }}

@endif
@if(!empty($topUsers) and count($topUsers))

{{ trans('update.top_users') }}

@foreach($topUsers as $topUser) @if(!empty($topUser->all_posts))
{{ $topUser->full_name }}
{{ $topUser->full_name }} {{ trans('update.n_posts',['count' => $topUser->posts]) }} | {{ trans('update.n_topics',['count' => $topUser->topics]) }}
@endif @endforeach
@endif

{{ trans('update.popular_topics') }}

@foreach($popularTopics as $popularTopic)
{{ $popularTopic->creator->full_name }}
{{ $popularTopic->title }} {{ trans('public.by') }} {{ $popularTopic->creator->full_name }} | {{ trans('update.n_posts',['count' => $popularTopic->posts_count]) }}
@endforeach
@endsection