2018-05-28 05:33:38 -04:00
|
|
|
<div class="sort-box" data-type="book" data-id="{{ $book->id }}">
|
2018-02-17 08:30:52 -05:00
|
|
|
<h3 class="text-book">@icon('book'){{ $book->name }}</h3>
|
2015-09-06 09:35:53 -04:00
|
|
|
<ul class="sortable-page-list sort-list">
|
2015-11-29 12:33:25 -05:00
|
|
|
@foreach($bookChildren as $bookChild)
|
2015-12-05 09:41:51 -05:00
|
|
|
<li data-id="{{$bookChild->id}}" data-type="{{ $bookChild->getClassName() }}" class="text-{{ $bookChild->getClassName() }}">
|
2018-02-17 14:49:00 -05:00
|
|
|
@icon($bookChild->isA('chapter') ? 'chapter' : 'page'){{ $bookChild->name }}
|
2015-09-06 09:35:53 -04: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 08:30:52 -05:00
|
|
|
@icon('page')
|
2015-09-06 09:35:53 -04:00
|
|
|
{{ $page->name }}
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|