{{-- $thread is passed as NULL to the master layout view to prevent it from showing in the breadcrumbs --}} @extends('forum.master', ['thread' => null]) @section('content')

{{ $category->title }}   @if ($category->description) {{ $category->description }} @endif

@if ($category->accepts_threads) @can ('createThreads', $category) {{ trans('forum::threads.new_thread') }} @endcan @endif
@can ('manageCategories') @endcan
@if (! $category->children->isEmpty()) @foreach ($category->children as $subcategory) @include('forum.category.partials.list', ['category' => $subcategory]) @endforeach @endif @if ($category->accepts_threads) @if (! $threads->isEmpty())
{{ $threads->links('forum.pagination') }}
@if (count($selectableThreadIds) > 0) @can ('manageThreads', $category)
@csrf
@endcan @endif
@foreach ($threads as $thread) @include ('forum.thread.partials.list') @endforeach
@if (count($selectableThreadIds) > 0) @can ('manageThreads', $category)
{{ trans('forum::general.with_selection') }}
@if (config('forum.general.soft_deletes'))
@endif
@endcan @endif @else
{{ trans('forum::threads.none_found') }} @can ('createThreads', $category)
{{ trans('forum::threads.post_the_first') }} @endcan
@endif
{{ $threads->links('forum.pagination') }}
@if ($category->accepts_threads) @can ('createThreads', $category) {{ trans('forum::threads.new_thread') }} @endcan @endif
@endif
@if (! $threads->isEmpty()) @can ('markThreadsAsRead')
@include ('forum.category.modals.mark-threads-as-read') @endcan @endif @can ('manageCategories') @include ('forum.category.modals.edit') @include ('forum.category.modals.delete') @endcan @stop