2015-12-30 22:38:20 +01:00
|
|
|
<div class="sort-box" data-type="book" data-id="{{ $book->id }}" ng-non-bindable>
|
2015-09-06 15:35:53 +02:00
|
|
|
<h3 class="text-book"><i class="zmdi zmdi-book"></i>{{ $book->name }}</h3>
|
|
|
|
<ul class="sortable-page-list sort-list">
|
2015-11-29 18:33:25 +01:00
|
|
|
@foreach($bookChildren as $bookChild)
|
2015-12-05 15:41:51 +01:00
|
|
|
<li data-id="{{$bookChild->id}}" data-type="{{ $bookChild->getClassName() }}" class="text-{{ $bookChild->getClassName() }}">
|
2015-09-06 15:35:53 +02:00
|
|
|
<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>
|