5 <div class="faded-small">
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">
33 <div class="col-md-3">
34 @include('pages/sidebar-tree-list', ['book' => $book])
36 <div class="col-md-9">
37 <div class="page-content">
38 <h1>{{ $chapter->name }}</h1>
39 <p class="text-muted">{{ $chapter->description }}</p>
41 @if(count($chapter->pages) > 0)
42 <div class="page-list">
44 @foreach($chapter->pages as $page)
47 <a href="{{ $page->getUrl() }}">
48 <i class="zmdi zmdi-file-text"></i>{{ $page->name }}
51 <p class="text-muted">
52 {{$page->getExcerpt(180)}}
60 <p class="text-muted">No pages are currently in this chapter.</p>
62 <a href="{{$chapter->getUrl() . '/create-page'}}" class="text-page"><i class="zmdi zmdi-file-text"></i>Create a new page</a>
63 <em class="text-muted">-or-</em>
64 <a href="{{$book->getUrl() . '/sort'}}" class="text-book"><i class="zmdi zmdi-book"></i>Sort the current book</a>
69 <p class="text-muted small">
70 Created {{$chapter->created_at->diffForHumans()}} @if($chapter->createdBy) by {{$chapter->createdBy->name}} @endif
72 Last Updated {{$chapter->updated_at->diffForHumans()}} @if($chapter->createdBy) by {{$chapter->updatedBy->name}} @endif