Case Comments
@foreach ($comments->sortByDesc('created_at') as $index => $comment)
{{ $comment->user->name ?? 'Unknown User' }}
| @if (isset($comment->type)) {{$comment->type}} |@endif {{ $comment->created_at->format('d M Y, h:i A') }}
{!! nl2br(e($comment->comment)) !!}
@if ($comment->documents->isNotEmpty())
Attachments:
@foreach ($comment->documents as $doc)
{{ $doc->document->original_file_name() }}
@endforeach
@endif {{-- Replies --}} @foreach ($comment->replies as $reply)
{{ $reply->user->name ?? 'Unknown User' }}
| {{ $reply->created_at->format('d M Y, h:i A') }}
{!! nl2br(e($reply->reply)) !!}
@if ($reply->documents->isNotEmpty())
Attachments:
@foreach ($reply->documents as $doc)
{{ $doc->document->original_file_name() }}
@endforeach
@endif
@endforeach
@endforeach
@foreach ($comment->documents as $doc)- {{ $doc->document->original_file_name() }}
@endforeach
@foreach ($reply->documents as $doc)- {{ $doc->document->original_file_name() }}
@endforeach