2015-09-01 16:35:11 +02:00
|
|
|
<div class="page-list">
|
|
|
|
@if(count($pages) > 0)
|
2015-09-03 20:05:45 +02:00
|
|
|
@foreach($pages as $pageIndex => $page)
|
|
|
|
<div class="anim searchResult" style="animation-delay: {{$pageIndex*50 . 'ms'}};">
|
|
|
|
@include('pages/list-item', ['page' => $page])
|
2015-09-01 16:35:11 +02:00
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<p class="text-muted">No pages matched this search</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if(count($chapters) > 0)
|
|
|
|
<div class="page-list">
|
2015-09-03 20:05:45 +02:00
|
|
|
@foreach($chapters as $chapterIndex => $chapter)
|
|
|
|
<div class="anim searchResult" style="animation-delay: {{($chapterIndex+count($pages))*50 . 'ms'}};">
|
|
|
|
@include('chapters/list-item', ['chapter' => $chapter, 'hidePages' => true])
|
2015-09-01 16:35:11 +02:00
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|