@extends('layouts.nova') @php use Carbon\Carbon; use Illuminate\Support\Str; @endphp @section('content')
← Back to forum

{{ $topic->topic ?? $topic->title ?? 'Topic' }}

@if (!empty($topic->discuss))

{!! Str::limit(strip_tags((string) $topic->discuss), 220) !!}

@endif @if (isset($category) && auth()->check()) @endif
Threads
@forelse (($subtopics ?? []) as $sub) @php $id = (int) ($sub->topic_id ?? $sub->id ?? 0); $title = $sub->topic ?? $sub->title ?? 'Untitled'; @endphp @empty @endforelse
Thread Posts By Last Update
{{ $title }} @if (!empty($sub->discuss))
{!! Str::limit(strip_tags((string) $sub->discuss), 180) !!}
@endif
{{ $sub->num_posts ?? 0 }} {{ $sub->uname ?? 'Unknown' }} @if (!empty($sub->last_update)) {{ Carbon::parse($sub->last_update)->format('d.m.Y H:i') }} @elseif (!empty($sub->post_date)) {{ Carbon::parse($sub->post_date)->format('d.m.Y H:i') }} @else - @endif
No threads in this section yet.
@if (isset($subtopics) && method_exists($subtopics, 'links'))
{{ $subtopics->withQueryString()->links() }}
@endif
@endsection