2018-05-28 05:33:38 -04:00
|
|
|
<div class="sort-box" data-type="book" data-id="{{ $book->id }}">
|
2019-02-17 06:44:02 -05:00
|
|
|
<h5 class="text-book entity-list-item no-hover py-xs pl-none">
|
|
|
|
<span>@icon('book')</span>
|
|
|
|
<span>{{ $book->name }}</span>
|
|
|
|
</h5>
|
|
|
|
<div class="sort-box-options pb-sm">
|
|
|
|
<a href="#" data-sort="name" class="button outline small">{{ trans('entities.books_sort_name') }}</a>
|
|
|
|
<a href="#" data-sort="created" class="button outline small">{{ trans('entities.books_sort_created') }}</a>
|
|
|
|
<a href="#" data-sort="updated" class="button outline small">{{ trans('entities.books_sort_updated') }}</a>
|
|
|
|
<a href="#" data-sort="chaptersFirst" class="button outline small">{{ trans('entities.books_sort_chapters_first') }}</a>
|
|
|
|
<a href="#" data-sort="chaptersLast" class="button outline small">{{ trans('entities.books_sort_chapters_last') }}</a>
|
|
|
|
</div>
|
2015-09-06 09:35:53 -04:00
|
|
|
<ul class="sortable-page-list sort-list">
|
2019-02-17 06:44:02 -05:00
|
|
|
|
2015-11-29 12:33:25 -05:00
|
|
|
@foreach($bookChildren as $bookChild)
|
2020-12-08 18:46:38 -05:00
|
|
|
<li class="text-{{ $bookChild->getType() }}"
|
|
|
|
data-id="{{$bookChild->id}}" data-type="{{ $bookChild->getType() }}"
|
2019-02-17 06:44:02 -05:00
|
|
|
data-name="{{ $bookChild->name }}" data-created="{{ $bookChild->created_at->timestamp }}"
|
|
|
|
data-updated="{{ $bookChild->updated_at->timestamp }}">
|
|
|
|
<div class="entity-list-item">
|
|
|
|
<span>@icon($bookChild->getType()) </span>
|
|
|
|
<div>
|
|
|
|
{{ $bookChild->name }}
|
|
|
|
<div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-06 09:35:53 -04:00
|
|
|
@if($bookChild->isA('chapter'))
|
|
|
|
<ul>
|
2020-12-17 12:31:18 -05:00
|
|
|
@foreach($bookChild->visible_pages as $page)
|
2019-02-17 06:44:02 -05:00
|
|
|
<li class="text-page"
|
|
|
|
data-id="{{$page->id}}" data-type="page"
|
|
|
|
data-name="{{ $page->name }}" data-created="{{ $page->created_at->timestamp }}"
|
|
|
|
data-updated="{{ $page->updated_at->timestamp }}">
|
|
|
|
<div class="entity-list-item">
|
|
|
|
<span>@icon('page')</span>
|
|
|
|
<span>{{ $page->name }}</span>
|
|
|
|
</div>
|
2015-09-06 09:35:53 -04:00
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
@endforeach
|
2019-02-17 06:44:02 -05:00
|
|
|
|
2015-09-06 09:35:53 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|