@extends('layouts.default', [ 'title' => 'Search' ]) @section('css') @endsection @section('content')

Forum

@if (!empty($search)) @if ($threads->count() == 0)

No threads have been found.

@else
Post
Replies
Last Reply
@foreach ($threads as $thread)
{{ $thread->title }}
@if ($thread->is_pinned) Pinned @elseif ($thread->is_locked) Locked @endif Posted by creator->isStaff()) class="text-danger" @endif>{{ $thread->creator->username }} - {{ $thread->created_at->diffForHumans() }}
{{ number_format($thread->replies(false)->count()) }}
@if ($thread->lastReply()) lastReply()->creator->isStaff()) class="text-danger" @endif>{{ $thread->lastReply()->creator->username }}
{{ $thread->lastReply()->created_at->diffForHumans() }}
@else creator->isStaff()) class="text-danger" @endif>{{ $thread->creator->username }}
{{ $thread->created_at->diffForHumans() }}
@endif
@endforeach
{{ $threads->onEachSide(1) }} @endif @endif @endsection