@if (session()->has('message'))
{{ session('message') }}
@endif
| {{ __('views.client.comment.table.comment') }} |
{{ __('views.client.comment.table.created_at') }} |
{{ __('views.client.comment.table.updated_at') }} |
{{ __('views.client.comment.table.adviser') }} |
@if($this->canEditComments() || $this->canDeleteComments())
{{ __('views.client.comment.table.actions') }} |
@endif
@foreach($comments as $comment)
|
@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
@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($this->canEditComments() || $this->canDeleteComments())
@if($editingCommentId === $comment->id)
@else
@if($this->canEditComments())
@endif
@if($this->canDeleteComments())
@endif
@endif
|
@endif
@endforeach