@php $comment->addIntoCommentViews(); @endphp
{{$comment->user->name}} @if($comment->type) {{$comment->type}} @else commented @endif ({{$comment->days_ago()}}) @if (isset($comment->type) && $comment->type == 'messages at') from shared case @endif {{date('d/m/Y h:i a',strtotime($comment->updated_at))}}
{!! ($comment->message) !!}
@if (isset($comment->type) && $comment->type == 'messages at') {{$comment->user->name}} @else @foreach($comment->views as $view)
@include('head_office.user_card_component',['user'=>$view->head_office_user->user])
@endforeach @endif Reply?
@if(count($comment->documents))
@endif @include('user.form_comment',['comment'=>$comment,'edit_comment'=>true]) @if(count($comment->replies))
@endif @foreach($comment->replies as $reply)
@include('user.view_comments',['comment'=>$reply])
@endforeach @if ($comment->currentUserIsAuthor() && $comment->views->where('is_seen',1)->count() > 0) @include('head_office.users_seen_component',['comment'=>$comment,'route'=>route('user.share_case.unseen_comment',['id'=>$comment->id,'_token'=>csrf_token()])]) @endif