2015-12-31 05:38:20 +08:00
|
|
|
<div class="sort-box" data-type="book" data-id="{{ $book->id }}" ng-non-bindable>
|
2018-02-17 21:30:52 +08:00
|
|
|
<h3 class="text-book">@icon('book'){{ $book->name }}</h3>
|
2015-09-06 21:35:53 +08:00
|
|
|
<ul class="sortable-page-list sort-list">
|
2015-11-30 01:33:25 +08:00
|
|
|
@foreach($bookChildren as $bookChild)
|
2015-12-05 22:41:51 +08:00
|
|
|
<li data-id="{{$bookChild->id}}" data-type="{{ $bookChild->getClassName() }}" class="text-{{ $bookChild->getClassName() }}">
|
2018-02-18 03:49:00 +08:00
|
|
|
@icon($bookChild->isA('chapter') ? 'chapter' : 'page'){{ $bookChild->name }}
|
2015-09-06 21:35:53 +08:00
|
|
|
@if($bookChild->isA('chapter'))
|
|
|
|
<ul>
|
|
|
|
@foreach($bookChild->pages as $page)
|
|
|
|
<li data-id="{{$page->id}}" class="text-page" data-type="page">
|
2018-02-17 21:30:52 +08:00
|
|
|
@icon('page')
|
2015-09-06 21:35:53 +08:00
|
|
|
{{ $page->name }}
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|