5 <div class="row faded-small">
6 <div class="col-md-6"></div>
8 <div class="action-buttons faded">
9 @if($currentUser->can('page-create'))
10 <a href="{{$book->getUrl() . '/page/create'}}" class="text-pos"><i class="zmdi zmdi-plus"></i> New Page</a>
12 @if($currentUser->can('chapter-create'))
13 <a href="{{$book->getUrl() . '/chapter/create'}}" class="text-pos"><i class="zmdi zmdi-plus"></i> New Chapter</a>
15 @if($currentUser->can('book-update'))
16 <a href="{{$book->getEditUrl()}}" class="text-primary"><i class="zmdi zmdi-edit"></i>Edit</a>
17 <a href="{{ $book->getUrl() }}/sort" class="text-primary"><i class="zmdi zmdi-sort"></i>Sort</a>
19 @if($currentUser->can('book-delete'))
20 <a href="{{ $book->getUrl() }}/delete" class="text-neg"><i class="zmdi zmdi-delete"></i>Delete</a>
27 <div class="col-md-6 col-md-offset-1">
29 <div class="page-content">
30 <h1>{{$book->name}}</h1>
31 <p class="text-muted">{{$book->description}}</p>
33 <div class="page-list">
35 @foreach($book->children() as $childElement)
36 <div class="book-child">
38 <a href="{{ $childElement->getUrl() }}">
39 @if(is_a($childElement, 'Oxbow\Chapter'))
40 <i class="zmdi zmdi-collection-bookmark chapter-toggle"></i>
42 <i class="zmdi zmdi-file-text"></i>
44 {{ $childElement->name }}
47 <p class="text-muted">
48 {{$childElement->getExcerpt()}}
51 @if(is_a($childElement, 'Oxbow\Chapter') && count($childElement->pages) > 0)
52 <div class="inset-list">
53 @foreach($childElement->pages as $page)
54 <h4><a href="{{$page->getUrl()}}"><i class="zmdi zmdi-file-text"></i> {{$page->name}}</a></h4>
63 <p class="text-muted small">
64 Created {{$book->created_at->diffForHumans()}} @if($book->createdBy) by {{$book->createdBy->name}} @endif
66 Last Updated {{$book->updated_at->diffForHumans()}} @if($book->createdBy) by {{$book->updatedBy->name}} @endif
73 <div class="col-md-3 col-md-offset-1">
74 <div class="margin-top large"><br></div>
75 <h3>Recent Activity</h3>
76 @include('partials/activity-list', ['activity' => Activity::entityActivity($book, 20, 0)])
86 $('.chapter-toggle').click(function(e) {
88 $(this).closest('.book-child').find('.inset-list').slideToggle(180);