@extends('layout') @section('title', $post->title) @section('content')
@auth
@csrf
@else @endauth {{ $post->votes }} @auth
@csrf
@else @endauth
r/{{ $post->community->name }} • Posted by u/{{ $post->user->name }} • {{ $post->created_at->diffForHumans() }}

{{ $post->title }}

@if($post->content)

{{ $post->content }}

@endif @if($post->url) {{ $post->url }} @endif @auth @if($post->user_id === auth()->id())
@csrf @method('DELETE')
@endif @endauth
@auth

Add a Comment

@csrf @error('content')

{{ $message }}

@enderror
@endauth

Comments ({{ $post->comments->count() }})

@forelse($post->comments->whereNull('parent_id') as $comment) @include('partials.comment', ['comment' => $comment, 'depth' => 0]) @empty

No comments yet. Be the first to comment!

@endforelse
@endsection