@extends($layout) @section('content') @php $currentArticle = $article ?? null; $wikiHL = $wikiHeadlines ?? []; $wikiHeadlines = []; function createTree($id, $parentId, &$wikiHeadlines, &$wikiHL, $indent) { $articles = array_filter($wikiHL, function ($v) use ($parentId) { return $v->parent == $parentId; }); if (count($articles) > 0) { usort($articles, function ($a1, $a2) { return $a1->title > $a2->title; }); if ($parentId != null) { $indent = $indent . '-'; } foreach ($articles as $article) { if ($article->id != $id) { $art = $article; $art->title = $indent . $article->title; $wikiHeadlines[] = $art; createTree($id, $article->id, $wikiHeadlines, $wikiHL, $indent); } } } } if (!isset($_GET['closeModal'])) { echo $tpl->displayNotification(); } $id = ''; if (isset($currentArticle->id)) { $id = $currentArticle->id; } // Populates the options tree createTree($id, null, $wikiHeadlines, $wikiHL, ''); @endphp

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

@if ($id !== '')

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

    @if ($currentArticle->milestoneId == '')
  • {!! __('headlines.no_milestone_link') !!}

    {!! __('text.use_milestone_to_track_leancanvas') !!}
    @if ($login::userIsAtLeast($roles::$editor)) @endif
  • @else
  • {!! __('label.loading_milestone') !!}
    {!! __('links.remove') !!}
  • @endif
@endif


@if (isset($currentArticle->id) && $currentArticle->id != '' && $login::userIsAtLeast($roles::$editor))
{!! __('links.delete_article') !!} @endif
@once @push('scripts') @endpush @endonce @endsection