@if (Auth::check())

{{ __('Write Comment') }}

{{csrf_field()}}

@else

{{ __('To Comment') }}

@if($productt->comments)
    @foreach($productt->comments()->latest()->get() as $comment)
  • {{ $comment->user->name }}

    {{ $comment->created_at->diffForHumans() }}

    {{$comment->text}}

    @if(count($comment->replies) > 0) @endif
    @if($comment->replies) @foreach($comment->replies()->latest()->get() as $reply)
    {{ $reply->user->name }}

    {{ $reply->created_at->diffForHumans() }}

    {{ $reply->text }}

    @endforeach @endif
  • @endforeach
@endif @endif