@php
$level = isset($level) ? $level : 0;
$comments = isset($comments) ? $comments : [];
@endphp
@if (count($comments))
@foreach ($comments as $comment)
@php
$isFirst = !$level && !$loop->index;
$avatar = $comment->author_id && ($author = get_model_data('user', $comment->author_id)) ? get_user_avatar($author->avatar) : asset('static/images/default/avatar.png');
@endphp
@if ($comment->publishChildren && count($comment->publishChildren))
@include($_template.'comment-list', [
'comments' => $comment->publishChildren,
'level' => $level + 1
])
@endif
@endforeach
@endif
{{count($comments)}} Nhận xét
Rosalina Kelian
24th March 2022For all the assets is hard and time-consuming technical work. And, of course, the result needs to be seamless and delightful — dare we say, even fun — to develop and maintain. Regardless of whether you’re ing up a storefront for a new merchant.
Rosalina Kelian
24th March 2022For all the assets is hard and time-consuming technical work. And, of course, the result needs to be seamless and delightful — dare we say, even fun — to develop and maintain. Regardless of whether you’re ing up a storefront for a new merchant.