@extends('tri-layout') @section('container-attrs') component="entity-search" option:entity-search:entity-id="{{ $chapter->id }}" option:entity-search:entity-type="chapter" @stop @section('body')

{{ $chapter->name }}

{!! nl2br(e($chapter->description)) !!}

@if(count($pages) > 0)
@foreach($pages as $page) @include('pages.list-item', ['page' => $page]) @endforeach
@else

{{ trans('entities.chapters_empty') }}

@endif
@include('partials.entity-search-results')
@stop @section('right')
{{ trans('common.details') }}
{{ trans('common.actions') }}
@if(userCan('page-create', $chapter)) @icon('add') {{ trans('entities.pages_new') }} @endif
@if(userCan('chapter-update', $chapter)) @icon('edit') {{ trans('common.edit') }} @endif @if(userCan('chapter-update', $chapter) && userCan('chapter-delete', $chapter)) @icon('folder') {{ trans('common.move') }} @endif @if(userCan('restrictions-manage', $chapter)) @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('chapter-delete', $chapter)) @icon('delete') {{ trans('common.delete') }} @endif
@if(signedInUser()) @include('partials.entity-favourite-action', ['entity' => $chapter]) @endif @include('partials.entity-export-menu', ['entity' => $chapter])
@stop @section('left') @include('partials.entity-search-form', ['label' => trans('entities.chapters_search_this')]) @if($chapter->tags->count() > 0)
@include('components.tag-list', ['entity' => $chapter])
@endif @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) @stop