@if (session()->has('message')) @endif
@if($this->canEditComments() || $this->canDeleteComments()) @endif @foreach($comments as $comment) @if($this->canEditComments() || $this->canDeleteComments()) @endif @endforeach
{{ __('views.client.comment.table.comment') }} {{ __('views.client.comment.table.created_at') }} {{ __('views.client.comment.table.updated_at') }} {{ __('views.client.comment.table.adviser') }}{{ __('views.client.comment.table.actions') }}
@if($editingCommentId === $comment->id) @error('editingComment')
{{ $message }}
@enderror @else @php $maxLength = 100; $commentText = $comment->comment; $shortComment = strlen($commentText) > $maxLength ? substr($commentText, 0, $maxLength) . '...' : $commentText; @endphp {{ $shortComment }} @if(strlen($comment->comment) > $maxLength) @endif @endif
{{ $comment->created_at?->format('Y-m-d H:i') }} {{ $comment->updated_at?->format('Y-m-d H:i') }} @if($comment->company_id) {{ __('views.client.comment.table.created_by_company') }} @else {{ $comment?->author?->nombre }} @endif @if($editingCommentId === $comment->id) @else @if($this->canEditComments()) @endif @if($this->canDeleteComments()) @endif @endif