@extends('frontend.layouts.app') @section('styles') @endsection @section('content') @if(Storage::disk('public')->exists('posts/'.$post->image)) @endif {{ $post->title }} {!! $post->body !!} person {{$post->user->name}} watch_later {{$post->created_at->diffForHumans()}} @foreach($post->categories as $key => $category) folder {{$category->name}} @endforeach @foreach($post->tags as $key => $tag) label {{$tag->name}} @endforeach visibility {{$post->view_count}} {{ $post->comments_count }} Comments @foreach($post->comments as $comment) @if($comment->parent_id == null) {{ $comment->users->name }} {{ $comment->created_at->diffForHumans() }} @auth Reply @endauth {{ $comment->body }} @endif @if($comment->children->count() > 0) @foreach($comment->children as $comment) {{ $comment->users->name }} {{ $comment->created_at->diffForHumans() }} {{ $comment->body }} @endforeach @endif @endforeach @auth Leave a comment @csrf @endauth @guest Please Login to comment Login @endguest @include('pages.blog.sidebar') @endsection @section('scripts') @endsection
Leave a comment