@extends('layouts.app') @section('title') {{ $category->name }} @endsection @section('content')
@if (!$category->admin_only)
New Post
@else @if (Auth::user()->admin)
New Post
@else

You can't post here.

@endif @endif
@foreach ($posts as $post) @endforeach
Title Author Replies Last Post

@if ($post->stickied) @endif @if ($post->locked) @endif {{ $post->title }}

{{ $post->user->username }} {{ $post->replies()->count() }} {{ $post->updated_at->diffForHumans() }}
{{ $posts->links('pagination::bootstrap-4') }}
@endsection