@extends('layout.master') @section('title') {{ $post->title }} - @endsection @section('content')
{!! nl2br(e($comment->content)) !!}
@foreach($comment_errors as $error)- {{ $error }}
@endforeach
@endif @if(isset($_SESSION['is_auth'])) @endif @if(count($comments)){{ $post->num_of_comments }} {{ $post->num_of_comments > 1 ? 'comments' : 'comment' }}:
@foreach($comments as $comment){{ $comment->author }}
{{ $comment->create_at }} @if(isset($_SESSION['is_auth'])) @if($comment->author == $_SESSION['username']) Edit @endif @if($post->author == $_SESSION['username']) Delete @endif @endif{!! nl2br(e($comment->content)) !!}
@endforeachConfirmation
Edit Comment