@extends('layout') @section('title', 'r/' . $community->name) @section('content')

r/{{ $community->name }}

@forelse($posts as $post)
@auth
@csrf
@else @endauth {{ $post->votes }} @auth
@csrf
@else @endauth

{{ $post->title }}

Posted by u/{{ $post->user->name }} • {{ $post->created_at->diffForHumans() }}
@if($post->content)

{{ Str::limit($post->content, 200) }}

@endif @if($post->url) {{ $post->url }} @endif
@empty

No posts yet. Be the first to post!

@endforelse
{{ $posts->links() }}

About r/{{ $community->name }}

@if($community->description)

{{ $community->description }}

@endif
Created by u/{{ $community->creator->name }} • {{ $community->created_at->diffForHumans() }}
@auth @if(auth()->user()->subscribedCommunities->contains($community))
@csrf
@else
@csrf
@endif @endauth
@endsection