|
@@ -2,6 +2,26 @@
|
|
|
|
|
|
@section('content')
|
|
@section('content')
|
|
<div class="col-sm-8 blog-main">
|
|
<div class="col-sm-8 blog-main">
|
|
- @include('posts.post')
|
|
|
|
|
|
+ <h1>{{ $post->title }}</h1>
|
|
|
|
+ <p class="blog-post-meta">
|
|
|
|
+ {{ $post->created_at->toFormattedDateString() }}
|
|
|
|
+ by <a href="#">Mark</a>
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ {{ $post->body }}
|
|
|
|
+ @if (count($post->comments))
|
|
|
|
+ <hr />
|
|
|
|
+ <div class="comments">
|
|
|
|
+ <ul class="list-group">
|
|
|
|
+ @foreach($post->comments as $comment)
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <strong>{{ $comment->created_at->diffForHumans() }}</strong>
|
|
|
|
+ :
|
|
|
|
+ {{ $comment->body }}
|
|
|
|
+ </li>
|
|
|
|
+ @endforeach
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
@endsection
|