@extends($layout) @section('content') @php $comments = app()->make(Leantime\Domain\Comments\Repositories\Comments::class); $formUrl = CURRENT_URL; // Controller may not redirect. Make sure delComment is only added once if (str_contains($formUrl, '?delComment=')) { $urlParts = explode('?delComment=', $formUrl); $deleteUrlBase = $urlParts[0] . '?delComment='; } else { $deleteUrlBase = $formUrl . '?delComment='; } @endphp

{!! __('subtitles.discussion') !!}




@foreach ($__get_comments as $row)
{!! sprintf(__('text.written_on'), format($row['date'])->date(), format($row['date'])->time()) !!}
{!! sprintf(__('text.full_name'), $tpl->escape($row['firstname']), $tpl->escape($row['lastname'])) !!}
{!! $row['text'] !!}
@if ($comments->getReplies($row['id'])) @foreach ($comments->getReplies($row['id']) as $comment)
{!! sprintf(__('text.written_on'), format($comment['date'])->date(), format($comment['date'])->time()) !!}
{!! sprintf(__('text.full_name'), $tpl->escape($comment['firstname']), $tpl->escape($comment['lastname'])) !!}

{!! nl2br($comment['text']) !!}

@endforeach @endif @endforeach
@if (count($__get_comments) == 0)
{!! file_get_contents(ROOT . '/dist/images/svg/undraw_real_time_collaboration_c62i.svg') !!} {{ $tpl->escape($language->__('text.no_comments')) }}
@endif
@once @push('scripts') @endpush @endonce @endsection