@php use Leantime\Domain\Comments\Repositories\Comments; @endphp

@if(isset($canvasTypes[$elementName]['icon'])) @endif {{ $canvasTypes[$elementName]['title'] }}

@foreach($canvasItems as $row) @php $filterStatus = $filter['status'] ?? 'all'; $filterRelates = $filter['relates'] ?? 'all'; @endphp @if($row['box'] === $elementName && ($filterStatus == 'all' || $filterStatus == $row['status']) && ($filterRelates == 'all' || $filterRelates == $row['relates'])) @php $comments = app()->make(Comments::class); $nbcomments = $comments->countComments(moduleId: $row['id']); @endphp
@if($login::userIsAtLeast($roles::$editor)) @endif @if($login::userIsAtLeast($roles::$editor))     @endif

{{ $row['description'] }}

@if($row['conclusion'] != '') {!! $tpl->convertRelativePaths($row['conclusion']) !!} @endif
@if(! empty($statusLabels)) @endif @if(! empty($relatesLabels)) @endif
{{ $nbcomments }}
@if($row['milestoneHeadline'] != '')
{!! __('label.loading_milestone') !!}
@endif
@endif @endforeach
@if($login::userIsAtLeast($roles::$editor)) {!! __('links.add_new_canvas_item') !!} @endif