5 <div class="faded-small" ng-non-bindable>
6 <div class="container">
8 <div class="col-md-4 faded">
9 <div class="breadcrumbs">
10 <a href="{{$book->getUrl()}}" class="text-book text-button"><i class="zmdi zmdi-book"></i>{{ $book->name }}</a>
13 <div class="col-md-8 faded">
14 <div class="action-buttons">
15 @if($currentUser->can('chapter-create'))
16 <a href="{{$chapter->getUrl() . '/create-page'}}" class="text-pos text-button"><i class="zmdi zmdi-plus"></i>New Page</a>
18 @if($currentUser->can('chapter-update'))
19 <a href="{{$chapter->getUrl() . '/edit'}}" class="text-primary text-button"><i class="zmdi zmdi-edit"></i>Edit</a>
21 @if($currentUser->can('chapter-delete'))
22 <a href="{{$chapter->getUrl() . '/delete'}}" class="text-neg text-button"><i class="zmdi zmdi-delete"></i>Delete</a>
31 <div class="container" ng-non-bindable>
33 <div class="col-md-8">
34 <h1>{{ $chapter->name }}</h1>
35 <p class="text-muted">{{ $chapter->description }}</p>
37 @if(count($chapter->pages) > 0)
38 <div class="page-list">
40 @foreach($chapter->pages as $page)
41 @include('pages/list-item', ['page' => $page])
47 <p class="text-muted">No pages are currently in this chapter.</p>
49 <a href="{{$chapter->getUrl() . '/create-page'}}" class="text-page"><i class="zmdi zmdi-file-text"></i>Create a new page</a>
50 <em class="text-muted">-or-</em>
51 <a href="{{$book->getUrl() . '/sort'}}" class="text-book"><i class="zmdi zmdi-book"></i>Sort the current book</a>
56 <p class="text-muted small">
57 Created {{$chapter->created_at->diffForHumans()}} @if($chapter->createdBy) by {{$chapter->createdBy->name}} @endif
59 Last Updated {{$chapter->updated_at->diffForHumans()}} @if($chapter->updatedBy) by {{$chapter->updatedBy->name}} @endif
62 <div class="col-md-3 col-md-offset-1">
63 @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree])