@props([ 'topic', ])
$topic->reads->first()?->last_read_post_id === $topic->last_post_id, 'topic-listing--unread' => $topic->reads->first()?->last_read_post_id !== $topic->last_post_id, ]) class="topic-listing" >

@if ($topic->reads->isEmpty()) {{ $topic->name }} @else {{ $topic->name }} @endif

@if ($topic->priority || $topic->state === 'close') @if ($topic->priority) @endif @if ($topic->state === 'close') @endif @else @endif
{{ $topic->forum->name }}
{{ __('forum.replies') }}
{{ $topic->num_post - 1 }}
{{ __('forum.views') }}
{{ $topic->views }}
@if ($topic->latestPoster === null) {{ __('common.unknown') }} @else {{ $topic->latestPoster->username }} @endif