2024-04-25 00:57:06 +02:00
|
|
|
<ul>
|
|
|
|
@foreach ($toc as $item)
|
|
|
|
<li>
|
2024-04-26 23:26:45 +02:00
|
|
|
@if ($bundle->getPath() === $item->getPath())
|
2024-04-25 00:57:06 +02:00
|
|
|
<strong>{{ $item->getArticleTitle() }}</strong>
|
|
|
|
@else
|
|
|
|
<a href="{{ $item->getPath() }}">{{ $item->getArticleTitle() }}</a>
|
|
|
|
@endif
|
|
|
|
@if (!empty($item->getDirectChildren()))
|
2024-04-26 23:26:45 +02:00
|
|
|
@include('components.table-of-contents', ['toc' => $item->getDirectChildren(), 'bundle' => $bundle])
|
2024-04-25 00:57:06 +02:00
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|