@foreach($data as $list)
{{$list->user}} @if(in_array('nurse-notes-edit', $authRolePermissions)) @endif @if(in_array('notes-comments-create', $authRolePermissions)) @endif @if(in_array('nurse-notes-delete', $authRolePermissions)) @endif
Note :

{{$list->note}}

Comment :

{{$list->comment}}

@if(count($list->comments) > 0)
Comments :-
@foreach($list->comments as $comments)

{{$comments->comment}} Commented by : {{$comments->user->name}} (at : {{$comments->created_at}}) @if(in_array('notes-comments-delete', $authRolePermissions)) @endif

@endforeach
@endif
@endforeach