mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-29 20:23:52 +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
|