@error('comment') {{ $message }} @enderror
@if (!empty(session()->has('msg')))
{{ session()->get('msg') }}
@endif
@if ($comments) @foreach ($comments->whereNull('reply_id') as $comment)
{{ $comment->user->full_name }}
{{ dateTimeFormat($comment->created_at, 'j M Y | H:i') }}

{!! nl2br(clean($comment->comment)) !!}

@if (!empty($comment->replies) and $comment->replies->count() > 0)
@foreach ($comment->replies as $reply) @include('web.default.course.learningPage.components.comments.nested-replies-mobile', [ 'reply' => $reply, 'replies' => $comment->replies, 'inputValue' => $inputValue, 'inputName' => $inputName, ]) @endforeach
@endif
@endforeach @endif