3 @section('container-attrs')
5 entity-id="{{ $book->id }}"
12 @include('partials.breadcrumbs', ['crumbs' => [
17 <div 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')
64 <h5>{{ trans('common.details') }}</h5>
65 <div class="text-small text-muted blended-links">
66 @include('partials.entity-meta', ['entity' => $book])
67 @if($book->restricted)
68 <div class="active-restriction">
69 @if(userCan('restrictions-manage', $book))
70 <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
72 @icon('lock'){{ trans('entities.books_permissions_active') }}
80 <div class="actions mb-xl">
81 <h5>{{ trans('common.actions') }}</h5>
82 <div class="icon-list text-primary">
84 @if(userCan('page-create', $book))
85 <a href="{{ $book->getUrl('/create-page') }}" class="icon-list-item">
86 <span>@icon('add')</span>
87 <span>{{ trans('entities.pages_new') }}</span>
90 @if(userCan('chapter-create', $book))
91 <a href="{{ $book->getUrl('/create-chapter') }}" class="icon-list-item">
92 <span>@icon('add')</span>
93 <span>{{ trans('entities.chapters_new') }}</span>
97 <hr class="primary-background">
99 @if(userCan('book-update', $book))
100 <a href="{{ $book->getUrl('/edit') }}" class="icon-list-item">
101 <span>@icon('edit')</span>
102 <span>{{ trans('common.edit') }}</span>
104 <a href="{{ $book->getUrl('/sort') }}" class="icon-list-item">
105 <span>@icon('sort')</span>
106 <span>{{ trans('common.sort') }}</span>
109 @if(userCan('restrictions-manage', $book))
110 <a href="{{ $book->getUrl('/permissions') }}" class="icon-list-item">
111 <span>@icon('lock')</span>
112 <span>{{ trans('entities.permissions') }}</span>
115 @if(userCan('book-delete', $book))
116 <a href="{{ $book->getUrl('/delete') }}" class="icon-list-item">
117 <span>@icon('delete')</span>
118 <span>{{ trans('common.delete') }}</span>
122 <hr class="primary-background">
124 <div dropdown class="dropdown-container">
125 <div dropdown-toggle class="icon-list-item">
126 <span>@icon('export')</span>
127 <span>{{ trans('entities.export') }}</span>
129 <ul class="wide dropdown-menu">
130 <li><a href="{{ $book->getUrl('/export/html') }}" target="_blank">{{ trans('entities.export_html') }} <span class="text-muted float right">.html</span></a></li>
131 <li><a href="{{ $book->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
132 <li><a href="{{ $book->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.export_text') }} <span class="text-muted float right">.txt</span></a></li>
142 @include('partials.entity-dashboard-search-box')
144 @if($book->tags->count() > 0)
146 @include('components.tag-list', ['entity' => $book])
150 @if(count($activity) > 0)
152 <h5>{{ trans('entities.recent_activity') }}</h5>
153 @include('partials.activity-list', ['activity' => $activity])