@if (@$data['is_table'])
@if (hasPermission('task_discussion_create')) {{ _trans('common.Create') }} @endif
@include('backend.partials.table')
@else

{{ @$data['discussion']->subject }}


{{ _trans('project.Posted on') }} {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $data['discussion']->created_at) }}

{{ _trans('project.Posted by') }} {{ $data['discussion']->user->name }}

{{ _trans('project.Total Comments') }}: {{ $data['discussion']->comments->count() }}


@if ($data['discussion']->comments->count() > 0) @foreach ($data['discussion']->comments as $comment) @if (is_null($comment->comment_id))
user image
{{ $comment->user->name }} {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $comment->created_at)->diffForHumans() }}

{{ $comment->childComments->count() }} {{ _trans('common.Answers') }}

@if (@$comment->childComments) @foreach ($comment->childComments as $childComment)
user image
{{ $childComment->user->name }} {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $childComment->created_at)->diffForHumans() }}

@endforeach @if (hasPermission('task_discussion_comment'))
@endif @endif @endif @endforeach @endif
@if (hasPermission('task_discussion_comment'))
@endif
@endif