mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-14 15:13:37 +08:00
10 lines
441 B
PHP
10 lines
441 B
PHP
|
@if(count($children) > 0)
|
||
|
<ul class="contents">
|
||
|
@foreach($children as $bookChild)
|
||
|
<li><a href="#{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</a></li>
|
||
|
@if($bookChild->isA('chapter') && count($bookChild->visible_pages) > 0)
|
||
|
@include('exports.parts.chapter-contents-menu', ['pages' => $bookChild->visible_pages])
|
||
|
@endif
|
||
|
@endforeach
|
||
|
</ul>
|
||
|
@endif
|