@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)
@if($comment->users->image) @else @if($comment->users->isAdmin()) @elseif($comment->users->isAgent()) @else @endif @endif
{{ $comment->users->name }} {{ $comment->created_at->diffForHumans() }}
{{ $comment->body }}
@if($comment->approved != 1)
@csrf
@endif
@csrf
@endif @foreach($comment->children as $comment)
@if($comment->users->image) @else @if($comment->users->isAdmin()) @elseif($comment->users->isAgent()) @else @endif @endif
{{ $comment->users->name }} {{ $comment->created_at->diffForHumans() }}
{{ $comment->body }}
@if($comment->approved != 1)
@csrf
@endif
@csrf
@endforeach @endforeach

SELECTED CATEGORY

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

SELECTED TAGS

@foreach($post->tags as $tag) {{$tag->name}} @endforeach

FEATURED IMAGE

@if(Storage::disk('public')->exists('posts/'.$post->image) && $post->image) {{ $post->title }} @else {{ $post->title }} @endif arrow_back BACK edit EDIT
@endsection @push('scripts') @endpush