{{-- ADD COMMENT --}} @can('addComment', $pensionCase)
@error('newComment')
{{ $message }}
@enderror
Add Comment
@endcan {{-- COMMENT LIST --}}
@forelse($comments as $comment)
@if($comment->author()->exists()) {{ $comment->author->name_first }} {{ $comment->author->name_last }} @elseif($comment->comment_created_by) {{ $comment->comment_created_by ?: '—' }} @else - @endif {{ ($comment->comment_created_at ?? $comment->created_at)?->format('d/m/Y H:i') }} @if($comment->updated_at && $comment->created_at && $comment->updated_at->gt($comment->created_at)) (edited) @endif
@if($editingId === $comment->id) @error('editingText')
{{ $message }}
@enderror
Save Cancel
@else

{{ $comment->comment_text }}

@can('addComment', $pensionCase)
@endcan @endif
@empty

No comments yet.

@endforelse