@if(count($pages) > 0)
@foreach($pages as $pageIndex => $page)
@include('pages/list-item', ['page' => $page])
@endforeach
@else
No pages matched this search
@endif
@if(count($chapters) > 0)
@foreach($chapters as $chapterIndex => $chapter)
@include('chapters/list-item', ['chapter' => $chapter, 'hidePages' => true])
@endforeach
@endif