3 @section('container-attrs')
5 entity-id="{{ $chapter->id }}"
11 <div class="mb-m print-hidden">
12 @include('partials.breadcrumbs', ['crumbs' => [
18 <main class="content-wrap card">
19 <h1 class="break-text" v-pre>{{ $chapter->name }}</h1>
20 <div class="chapter-content" v-show="!searching">
21 <p v-pre class="text-muted break-text">{!! nl2br(e($chapter->description)) !!}</p>
22 @if(count($pages) > 0)
23 <div v-pre class="entity-list book-contents">
24 @foreach($pages as $page)
25 @include('pages.list-item', ['page' => $page])
29 <div class="mt-xl" v-pre>
31 <p class="text-muted italic mb-m mt-xl">{{ trans('entities.chapters_empty') }}</p>
33 <div class="icon-list block inline">
34 @if(userCan('page-create', $chapter))
35 <a href="{{ $chapter->getUrl('/create-page') }}" class="icon-list-item text-page">
36 <span class="icon">@icon('page')</span>
37 <span>{{ trans('entities.books_empty_create_page') }}</span>
40 @if(userCan('book-update', $book))
41 <a href="{{ $book->getUrl('/sort') }}" class="icon-list-item text-book">
42 <span class="icon">@icon('book')</span>
43 <span>{{ trans('entities.books_empty_sort_current_book') }}</span>
52 @include('partials.entity-dashboard-search-results')
60 <h5>{{ trans('common.details') }}</h5>
61 <div class="blended-links text-small text-muted">
62 @include('partials.entity-meta', ['entity' => $chapter])
64 @if($book->restricted)
65 <div class="active-restriction">
66 @if(userCan('restrictions-manage', $book))
67 <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
69 @icon('lock'){{ trans('entities.books_permissions_active') }}
74 @if($chapter->restricted)
75 <div class="active-restriction">
76 @if(userCan('restrictions-manage', $chapter))
77 <a href="{{ $chapter->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.chapters_permissions_active') }}</a>
79 @icon('lock'){{ trans('entities.chapters_permissions_active') }}
86 <div class="actions mb-xl">
87 <h5>{{ trans('common.actions') }}</h5>
88 <div class="icon-list text-primary">
90 @if(userCan('page-create', $chapter))
91 <a href="{{ $chapter->getUrl('/create-page') }}" class="icon-list-item">
92 <span>@icon('add')</span>
93 <span>{{ trans('entities.pages_new') }}</span>
97 <hr class="primary-background"/>
99 @if(userCan('chapter-update', $chapter))
100 <a href="{{ $chapter->getUrl('/edit') }}" class="icon-list-item">
101 <span>@icon('edit')</span>
102 <span>{{ trans('common.edit') }}</span>
105 @if(userCan('chapter-update', $chapter) && userCan('chapter-delete', $chapter))
106 <a href="{{ $chapter->getUrl('/move') }}" class="icon-list-item">
107 <span>@icon('folder')</span>
108 <span>{{ trans('common.move') }}</span>
111 @if(userCan('restrictions-manage', $chapter))
112 <a href="{{ $chapter->getUrl('/permissions') }}" class="icon-list-item">
113 <span>@icon('lock')</span>
114 <span>{{ trans('entities.permissions') }}</span>
117 @if(userCan('chapter-delete', $chapter))
118 <a href="{{ $chapter->getUrl('/delete') }}" class="icon-list-item">
119 <span>@icon('delete')</span>
120 <span>{{ trans('common.delete') }}</span>
124 <hr class="primary-background"/>
126 @include('partials.entity-export-menu', ['entity' => $chapter])
133 @include('partials.entity-dashboard-search-box')
135 @if($chapter->tags->count() > 0)
137 @include('components.tag-list', ['entity' => $chapter])
141 @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])