@extends('blog.layout') @section('meta_title', $post->meta_title ?: $post->title) @section('meta_description', $post->meta_description ?: Str::limit(strip_tags($post->excerpt ?: $post->content), 160)) @section('content')

{{ $post->title }}

{{ $post->published_at?->format('F j, Y') }} · {{ $post->author->name ?? '' }} @if($post->category) · {{ $post->category->name }} @endif

@if($post->tags->isNotEmpty())
@foreach($post->tags as $t) {{ $t->name }} @endforeach
@endif
@if($post->featured_image) @endif
{!! $post->content !!}
{{ $post->likes_count }} likes {{ $post->dislikes_count }} dislikes
@csrf
@csrf

Comments

@foreach($comments as $comment)
{{ $comment->displayName() }} {{ $comment->created_at->diffForHumans() }}

{{ $comment->body }}

@endforeach {{ $comments->links() }}

Leave a comment

@auth
@csrf
@else
@csrf
@endauth
@if($related->isNotEmpty())

Related posts

@endif
@endsection