@props(['comments'])

Comentarios

@forelse ($comments as $comment)
profile-img
{{ $comment->user->name }} {{ $comment->created_at->diffForHumans() }}

{{ $comment->body }}

@if ($comment->documents->isNotEmpty())
@foreach ($comment->documents as $document) @php $isImage = str_starts_with($document->mime_type, 'image/'); @endphp

Archivo adjunto.

@if($isImage) @php $urlImg = asset('storage/' . $document->file_path); @endphp
img adjunto
@endif
@endforeach
@endif
@empty

Aún no hay comentarios para este Lead.

@endforelse