{{--This view display child pages in a list if pre-loaded onto a 'visible_pages' property,--}} {{--To ensure that the pages have been loaded efficiently with permissions taken into account.--}}
@icon('chapter')
{{ $chapter->name }}
{{ $chapter->getExcerpt() }}
@if ($chapter->visible_pages->count() > 0)
@icon('page')
@icon('caret-right')
{{ trans_choice('entities.x_pages', $chapter->visible_pages->count()) }}
@include('entities.list', ['entities' => $chapter->visible_pages])
@endif