3 @section('container-attrs')
5 entity-id="{{ $book->id }}"
12 @include('partials.breadcrumbs', ['crumbs' => [
17 <main class="content-wrap card">
18 <h1 class="break-text" v-pre>{{$book->name}}</h1>
19 <div class="book-content" v-show="!searching">
20 <p class="text-muted" v-pre>{!! nl2br(e($book->description)) !!}</p>
21 @if(count($bookChildren) > 0)
22 <div class="entity-list book-contents" v-pre>
23 @foreach($bookChildren as $childElement)
24 @if($childElement->isA('chapter'))
25 @include('chapters.list-item', ['chapter' => $childElement])
27 @include('pages.list-item', ['page' => $childElement])
32 <div class="mt-xl" v-pre>
34 <p class="text-muted italic mb-m mt-xl">{{ trans('entities.books_empty_contents') }}</p>
36 <div class="icon-list block inline">
37 @if(userCan('page-create', $book))
38 <a href="{{ $book->getUrl('/create-page') }}" class="icon-list-item text-page">
39 <span class="icon">@icon('page')</span>
40 <span>{{ trans('entities.books_empty_create_page') }}</span>
43 @if(userCan('chapter-create', $book))
44 <a href="{{ $book->getUrl('/create-chapter') }}" class="icon-list-item text-chapter">
45 <span class="icon">@icon('chapter')</span>
46 <span>{{ trans('entities.books_empty_add_chapter') }}</span>
55 @include('partials.entity-dashboard-search-results')
62 <h5>{{ trans('common.details') }}</h5>
63 <div class="text-small text-muted blended-links">
64 @include('partials.entity-meta', ['entity' => $book])
65 @if($book->restricted)
66 <div class="active-restriction">
67 @if(userCan('restrictions-manage', $book))
68 <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
70 @icon('lock'){{ trans('entities.books_permissions_active') }}
77 <div class="actions mb-xl">
78 <h5>{{ trans('common.actions') }}</h5>
79 <div class="icon-list text-primary">
81 @if(userCan('page-create', $book))
82 <a href="{{ $book->getUrl('/create-page') }}" class="icon-list-item">
83 <span>@icon('add')</span>
84 <span>{{ trans('entities.pages_new') }}</span>
87 @if(userCan('chapter-create', $book))
88 <a href="{{ $book->getUrl('/create-chapter') }}" class="icon-list-item">
89 <span>@icon('add')</span>
90 <span>{{ trans('entities.chapters_new') }}</span>
94 <hr class="primary-background">
96 @if(userCan('book-update', $book))
97 <a href="{{ $book->getUrl('/edit') }}" class="icon-list-item">
98 <span>@icon('edit')</span>
99 <span>{{ trans('common.edit') }}</span>
101 <a href="{{ $book->getUrl('/sort') }}" class="icon-list-item">
102 <span>@icon('sort')</span>
103 <span>{{ trans('common.sort') }}</span>
106 @if(userCan('restrictions-manage', $book))
107 <a href="{{ $book->getUrl('/permissions') }}" class="icon-list-item">
108 <span>@icon('lock')</span>
109 <span>{{ trans('entities.permissions') }}</span>
112 @if(userCan('book-delete', $book))
113 <a href="{{ $book->getUrl('/delete') }}" class="icon-list-item">
114 <span>@icon('delete')</span>
115 <span>{{ trans('common.delete') }}</span>
119 <hr class="primary-background">
121 @include('partials.entity-export-menu', ['entity' => $book])
125 <div class="actions mb-xl">
126 <h5>{{ trans('entities.shelves_long') }}</h5>
128 @if(count($bookParentShelves) > 0)
129 @include('partials.entity-list', ['entities' => $bookParentShelves, 'style' => 'compact'])
131 <div class="body text-muted">{{ trans('entities.book_parent_shelves_empty') }}</div>
139 @include('partials.entity-dashboard-search-box')
141 @if($book->tags->count() > 0)
143 @include('components.tag-list', ['entity' => $book])
147 @if(count($activity) > 0)
149 <h5>{{ trans('entities.recent_activity') }}</h5>
150 @include('partials.activity-list', ['activity' => $activity])