@extends('backend.layouts.app') @section('title', 'Show Post') @push('styles') @endpush @section('content')

SHOW POST

{{$post->title}}
Posted By {{$post->user->name}} on {{$post->created_at->toFormattedDateString()}}

{!!$post->body!!}
{{-- COMMENTS --}}

{{ $post->comments_count }} Comments

@foreach($post->comments as $comment) @if($comment->parent_id == NULL)
{{ $comment->users->name }} {{ $comment->created_at->diffForHumans() }}
{{ $comment->body }}
@endif @foreach($comment->children as $comment)
{{ $comment->users->name }} {{ $comment->created_at->diffForHumans() }}
{{ $comment->body }}
@endforeach @endforeach

SELECTED CATEGORY

@foreach($post->categories as $category) {{$category->name}} @endforeach

SELECTED TAGS

@foreach($post->tags as $tag) {{$tag->name}} @endforeach
@endsection @push('scripts') @endpush