@inject('markdown', 'Parsedown') @php($markdown->setSafeMode(true)) @if(isset($reply) && $reply === true)
@else
  • @endif @if(isset($comment->commenter->email) && isset($comment->commenter->avatar->path)) ... @else ... @endif
    {{ $comment->commenter->full_name ?? $comment->guest_name }} - {{ $comment->created_at->diffForHumans() }}
    {!! $markdown->line($comment->comment) !!}
    @can('reply-to-comment', $comment) {{ clean(trans('cynoebook::comments.reply'))}} @endcan @can('edit-comment', $comment) {{ clean(trans('cynoebook::comments.edit'))}} @endcan @can('delete-comment', $comment) {{ clean(trans('cynoebook::comments.delete'))}} @endcan
    @can('edit-comment', $comment) @endcan @can('reply-to-comment', $comment) @endcan {{-- Margin bottom --}} {{-- Recursion for children --}} @if($grouped_comments->has($comment->getKey())) @foreach($grouped_comments[$comment->getKey()] as $child) @include('comments::_comment', [ 'comment' => $child, 'reply' => true, 'grouped_comments' => $grouped_comments ]) @endforeach @endif
    @if(isset($reply) && $reply === true)
  • @else
    @endif