@php $files = json_decode($comment->files ?? '[]', true); @endphp
{{ mb_substr($comment->name ?? 'U', 0, 1) }}
{{ $comment->name }}
@if(isset($comment->star))
    @for($i=1; $i<=5; $i++)
  • @endfor
@endif
{{ $comment->created_at->diffForHumans() }}
{{ $comment->content }}
@foreach($files as $file) @if(Str::endsWith($file, ['.mp4', '.mov', '.avi'])) @else @endif @endforeach
@foreach($comment->replies ?? [] as $reply)

Quản trị viên

{{ $reply->content }}

@endforeach