2023-01-27 06:16:17 -05:00
|
|
|
<details class="sort-box" data-type="book" data-id="{{ $book->id }}" open>
|
|
|
|
<summary>
|
|
|
|
<h5 class="flex-container-row items-center justify-flex-start gap-xs">
|
|
|
|
<div class="text-book text-bigger caret-container">
|
|
|
|
@icon('caret-right')
|
|
|
|
</div>
|
|
|
|
<div class="entity-list-item no-hover py-s text-book px-none">
|
|
|
|
<span>@icon('book')</span>
|
|
|
|
<span>{{ $book->name }}</span>
|
|
|
|
</div>
|
|
|
|
</h5>
|
|
|
|
</summary>
|
2019-02-17 06:44:02 -05:00
|
|
|
<div class="sort-box-options pb-sm">
|
2022-11-15 06:24:31 -05:00
|
|
|
<button type="button" data-sort="name" class="button outline small">{{ trans('entities.books_sort_name') }}</button>
|
|
|
|
<button type="button" data-sort="created" class="button outline small">{{ trans('entities.books_sort_created') }}</button>
|
|
|
|
<button type="button" data-sort="updated" class="button outline small">{{ trans('entities.books_sort_updated') }}</button>
|
|
|
|
<button type="button" data-sort="chaptersFirst" class="button outline small">{{ trans('entities.books_sort_chapters_first') }}</button>
|
|
|
|
<button type="button" data-sort="chaptersLast" class="button outline small">{{ trans('entities.books_sort_chapters_last') }}</button>
|
2019-02-17 06:44:02 -05:00
|
|
|
</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() }}"
|
2023-01-27 11:25:06 -05:00
|
|
|
data-id="{{$bookChild->id}}"
|
|
|
|
data-type="{{ $bookChild->getType() }}"
|
|
|
|
data-name="{{ $bookChild->name }}"
|
|
|
|
data-created="{{ $bookChild->created_at->timestamp }}"
|
|
|
|
data-updated="{{ $bookChild->updated_at->timestamp }}"
|
2023-01-27 12:06:39 -05:00
|
|
|
tabindex="-1">
|
2023-01-27 11:25:06 -05:00
|
|
|
<div class="flex-container-row items-center">
|
|
|
|
<div class="text-muted sort-list-handle px-s py-m">@icon('grip')</div>
|
|
|
|
<div class="entity-list-item px-none no-hover">
|
|
|
|
<span>@icon($bookChild->getType()) </span>
|
2019-02-17 06:44:02 -05:00
|
|
|
<div>
|
2023-01-27 11:25:06 -05:00
|
|
|
{{ $bookChild->name }}
|
|
|
|
<div>
|
2019-02-17 06:44:02 -05:00
|
|
|
|
2023-01-27 11:25:06 -05:00
|
|
|
</div>
|
2019-02-17 06:44:02 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-27 11:25:06 -05:00
|
|
|
@include('books.parts.sort-box-actions')
|
2019-02-17 06:44:02 -05:00
|
|
|
</div>
|
2015-09-06 09:35:53 -04:00
|
|
|
@if($bookChild->isA('chapter'))
|
2023-01-27 08:26:58 -05:00
|
|
|
<ul class="sortable-page-sublist">
|
2020-12-17 12:31:18 -05:00
|
|
|
@foreach($bookChild->visible_pages as $page)
|
2023-01-27 11:25:06 -05:00
|
|
|
<li class="text-page flex-container-row items-center"
|
2019-02-17 06:44:02 -05:00
|
|
|
data-id="{{$page->id}}" data-type="page"
|
|
|
|
data-name="{{ $page->name }}" data-created="{{ $page->created_at->timestamp }}"
|
2023-01-27 08:08:35 -05:00
|
|
|
data-updated="{{ $page->updated_at->timestamp }}"
|
2023-01-27 12:06:39 -05:00
|
|
|
tabindex="-1">
|
2023-01-27 11:25:06 -05:00
|
|
|
<div class="text-muted sort-list-handle px-s py-m">@icon('grip')</div>
|
|
|
|
<div class="entity-list-item px-none no-hover">
|
2019-02-17 06:44:02 -05:00
|
|
|
<span>@icon('page')</span>
|
|
|
|
<span>{{ $page->name }}</span>
|
|
|
|
</div>
|
2023-01-27 08:08:35 -05:00
|
|
|
@include('books.parts.sort-box-actions')
|
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>
|
2023-01-27 06:16:17 -05:00
|
|
|
</details>
|