5 <div class="row faded-small">
6 <div class="col-md-6 faded">
7 <div class="breadcrumbs padded-horizontal">
8 <a href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i>{{ $book->name }}</a>
11 <div class="col-md-6 faded">
12 <div class="action-buttons">
13 @if($currentUser->can('chapter-create'))
14 <a href="{{$chapter->getUrl() . '/create-page'}}" class="text-pos"><i class="zmdi zmdi-plus"></i>New Page</a>
16 @if($currentUser->can('chapter-update'))
17 <a href="{{$chapter->getUrl() . '/edit'}}" class="text-primary"><i class="zmdi zmdi-edit"></i>Edit</a>
19 @if($currentUser->can('chapter-delete'))
20 <a href="{{$chapter->getUrl() . '/delete'}}" class="text-neg"><i class="zmdi zmdi-delete"></i>Delete</a>
27 <div class="page-content">
28 <h1>{{ $chapter->name }}</h1>
29 <p class="text-muted">{{ $chapter->description }}</p>
31 @if(count($chapter->pages) > 0)
32 <div class="page-list">
34 @foreach($chapter->pages as $page)
37 <a href="{{ $page->getUrl() }}">
38 <i class="zmdi zmdi-file-text"></i>{{ $page->name }}
41 <p class="text-muted">
42 {{$page->getExcerpt(180)}}
49 <p class="text-muted">No pages are in this chapter</p>
52 <p class="text-muted small">
53 Created {{$chapter->created_at->diffForHumans()}} @if($chapter->createdBy) by {{$chapter->createdBy->name}} @endif
55 Last Updated {{$chapter->updated_at->diffForHumans()}} @if($chapter->createdBy) by {{$chapter->updatedBy->name}} @endif