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])
33 {{--TODO - Empty States --}}
34 <p class="text-muted italic">{{ trans('entities.books_empty_contents') }}</p>
35 @if(userCan('page-create', $book))
36 <a href="{{ $book->getUrl('/create-page') }}" class="button outline">@icon('page'){{ trans('entities.books_empty_create_page') }}</a>
38 @if(userCan('page-create', $book) && userCan('chapter-create', $book))
39 <em class="text-muted">-{{ trans('entities.books_empty_or') }}-</em>
41 @if(userCan('chapter-create', $book))
42 <a href="{{ $book->getUrl('/create-chapter') }}" class="button outline">@icon('chapter'){{ trans('entities.books_empty_add_chapter') }}</a>
48 @include('partials.entity-dashboard-search-results')
57 <h5>{{ trans('common.details') }}</h5>
58 <div class="text-small text-muted blended-links">
59 @include('partials.entity-meta', ['entity' => $book])
60 @if($book->restricted)
61 <div class="active-restriction">
62 @if(userCan('restrictions-manage', $book))
63 <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
65 @icon('lock'){{ trans('entities.books_permissions_active') }}
73 <div class="actions mb-xl">
74 <h5>{{ trans('common.actions') }}</h5>
75 <div class="icon-list text-primary">
76 <div dropdown class="dropdown-container">
77 <div dropdown-toggle class="icon-list-item">
78 <span>@icon('export')</span>
79 <span>{{ trans('entities.export') }}</span>
82 <li><a href="{{ $book->getUrl('/export/html') }}" target="_blank">{{ trans('entities.export_html') }} <span class="text-muted float right">.html</span></a></li>
83 <li><a href="{{ $book->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
84 <li><a href="{{ $book->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.export_text') }} <span class="text-muted float right">.txt</span></a></li>
88 @if(userCan('page-create', $book))
89 <a href="{{ $book->getUrl('/create-page') }}" class="icon-list-item">
90 <span>@icon('add')</span>
91 <span>{{ trans('entities.pages_new') }}</span>
94 @if(userCan('chapter-create', $book))
95 <a href="{{ $book->getUrl('/create-chapter') }}" class="icon-list-item">
96 <span>@icon('add')</span>
97 <span>{{ trans('entities.chapters_new') }}</span>
100 @if(userCan('book-update', $book))
101 <a href="{{ $book->getUrl('/edit') }}" class="icon-list-item">
102 <span>@icon('edit')</span>
103 <span>{{ trans('common.edit') }}</span>
105 <a href="{{ $book->getUrl('/sort') }}" class="icon-list-item">
106 <span>@icon('sort')</span>
107 <span>{{ trans('common.sort') }}</span>
110 @if(userCan('restrictions-manage', $book))
111 <a href="{{ $book->getUrl('/permissions') }}" class="icon-list-item">
112 <span>@icon('lock')</span>
113 <span>{{ trans('entities.permissions') }}</span>
116 @if(userCan('book-delete', $book))
117 <a href="{{ $book->getUrl('/delete') }}" class="icon-list-item">
118 <span>@icon('delete')</span>
119 <span>{{ trans('common.delete') }}</span>
129 @include('partials.entity-dashboard-search-box')
131 @if($book->tags->count() > 0)
133 @include('components.tag-list', ['entity' => $book])
137 @if(count($activity) > 0)
139 <h5>{{ trans('entities.recent_activity') }}</h5>
140 @include('partials.activity-list', ['activity' => $activity])