mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
20 lines
1022 B
PHP
20 lines
1022 B
PHP
|
<div class="sort-box" data-type="book" data-id="{{ $book->id }}">
|
||
|
<h3 class="text-book"><i class="zmdi zmdi-book"></i>{{ $book->name }}</h3>
|
||
|
<ul class="sortable-page-list sort-list">
|
||
|
@foreach($book->children() as $bookChild)
|
||
|
<li data-id="{{$bookChild->id}}" data-type="{{ $bookChild->getName() }}" class="text-{{ $bookChild->getName() }}">
|
||
|
<i class="zmdi {{ $bookChild->isA('chapter') ? 'zmdi-collection-bookmark':'zmdi-file-text'}}"></i>{{ $bookChild->name }}
|
||
|
@if($bookChild->isA('chapter'))
|
||
|
<ul>
|
||
|
@foreach($bookChild->pages as $page)
|
||
|
<li data-id="{{$page->id}}" class="text-page" data-type="page">
|
||
|
<i class="zmdi zmdi-file-text"></i>
|
||
|
{{ $page->name }}
|
||
|
</li>
|
||
|
@endforeach
|
||
|
</ul>
|
||
|
@endif
|
||
|
</li>
|
||
|
@endforeach
|
||
|
</ul>
|
||
|
</div>
|