1
0
cms11/resources/views/components/table-of-contents.blade.php

15 lines
507 B
PHP
Raw Normal View History

2024-04-25 00:57:06 +02:00
<ul>
@foreach ($toc as $item)
<li>
@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()))
@include('components.table-of-contents', ['toc' => $item->getDirectChildren(), 'bundle' => $bundle])
2024-04-25 00:57:06 +02:00
@endif
</li>
@endforeach
</ul>