@extends($layout) @section('content') @php $wikis = $wikis ?? []; $wikiHeadlines = $wikiHeadlines ?? []; $milestones = $milestones ?? []; $currentWiki = $currentWiki ?? false; $currentArticle = $currentArticle ?? null; /** * Creates a modern tree view for wiki navigation */ function createModernTreeView($array, $currentParent, $currentArticleId, int $currLevel = 0, ?\Leantime\Core\UI\Template $tplObject = null): void { $hasChildren = false; foreach ($array as $headline) { if ((int) $currentParent === (int) $headline->parent) { if (! $hasChildren) { echo ''; } } // Get author initials for avatar $authorInitials = ''; if ($currentArticle && ! empty($currentArticle->firstname)) { $authorInitials .= strtoupper(substr($currentArticle->firstname, 0, 1)); if (! empty($currentArticle->lastname)) { $authorInitials .= strtoupper(substr($currentArticle->lastname, 0, 1)); } } @endphp
{!! $tpl->displayNotification() !!} @if((! $currentArticle || $currentArticle->id != null) && (! $wikis || count($wikis) == 0))
{!! file_get_contents(ROOT . '/dist/images/svg/undraw_book_reading_re_fu2c.svg') !!}

{!! __('headlines.no_articles_yet') !!}

{!! __('text.create_new_wiki') !!}

{!! __('links.icon.create_new_board') !!}
@elseif($wikis && count($wikis) > 0) @if($currentArticle && $currentArticle->id != null)

Contents

@if($login::userIsAtLeast($roles::$editor)) @endif
@if($login::userIsAtLeast($roles::$editor))
@else

{{ $currentArticle->title }}

@php $tagsArray = array_filter(explode(',', $currentArticle->tags ?? '')); @endphp @if(count($tagsArray) > 0)
@foreach($tagsArray as $tag) @php $tag = trim($tag); @endphp @if(! empty($tag)) {{ $tag }} @endif @endforeach
@endif @endif
@if($login::userIsAtLeast($roles::$editor))
@else
{!! $tpl->escapeMinimal($currentArticle->description) !!}
@endif
@if(! empty($currentArticle->milestoneHeadline))
{!! __('label.loading_milestone') !!}
@endif

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

@include('comments::submodules.generalComment', ['formUrl' => BASE_URL . '/wiki/show/' . $currentArticle->id])

Details

@if($login::userIsAtLeast($roles::$editor)) @else {{ ucfirst($currentArticle->status) }} @endif
@php // Find parent article name $parentName = 'None'; if ($currentArticle->parent && $currentArticle->parent > 0) { foreach ($wikiHeadlines as $headline) { if ($headline->id == $currentArticle->parent) { $parentName = e($headline->title); break; } } } @endphp
@if($login::userIsAtLeast($roles::$editor)) @php $parentOptions = array_filter($wikiHeadlines, function ($h) use ($currentArticle) { return $h->id != $currentArticle->id; }); @endphp @else @if($currentArticle->parent && $currentArticle->parent > 0) {{ $parentName }} @else {{ $parentName }} @endif @endif
@if($login::userIsAtLeast($roles::$editor)) @else @if(! empty($currentArticle->milestoneHeadline)) {{ $currentArticle->milestoneHeadline }} @else {!! __('label.not_assigned_to_milestone') !!} @endif @endif
{{ $authorInitials }} {{ $currentArticle->firstname }} {{ $currentArticle->lastname }}
{{ format($currentArticle->modified)->diffForHumans() }}

Activity

Loading activity...
@if($login::userIsAtLeast($roles::$editor)) @endif
@else
{!! file_get_contents(ROOT . '/dist/images/svg/undraw_book_reading_re_fu2c.svg') !!}

{!! __('headlines.no_articles_yet') !!}

{!! __('text.create_new_content') !!}

@endif @endif
@once @push('scripts') @endpush @endonce @endsection