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

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

@endif
@if(count($chapters) > 0)
@foreach($chapters as $chapterIndex => $chapter)
@include('chapters.list-item', ['chapter' => $chapter, 'hidePages' => true])
@endforeach
@endif