2015-08-31 21:11:44 +02:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2015-12-30 22:38:20 +01:00
|
|
|
<div class="container anim fadeIn" ng-non-bindable>
|
2015-08-31 21:11:44 +02:00
|
|
|
|
|
|
|
<h1>Search Results <span class="text-muted">{{$searchTerm}}</span></h1>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h3>Matching Pages</h3>
|
|
|
|
<div class="page-list">
|
|
|
|
@if(count($pages) > 0)
|
|
|
|
@foreach($pages as $page)
|
2015-10-14 22:55:56 +02:00
|
|
|
@include('pages/list-item', ['page' => $page, 'showMeta' => true])
|
2015-09-03 20:05:45 +02:00
|
|
|
<hr>
|
2015-08-31 21:11:44 +02:00
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<p class="text-muted">No pages matched this search</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-5 col-md-offset-1">
|
|
|
|
|
|
|
|
@if(count($books) > 0)
|
|
|
|
<h3>Matching Books</h3>
|
|
|
|
<div class="page-list">
|
|
|
|
@foreach($books as $book)
|
2015-09-03 20:05:45 +02:00
|
|
|
@include('books/list-item', ['book' => $book])
|
|
|
|
<hr>
|
2015-08-31 21:11:44 +02:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if(count($chapters) > 0)
|
|
|
|
<h3>Matching Chapters</h3>
|
|
|
|
<div class="page-list">
|
|
|
|
@foreach($chapters as $chapter)
|
2015-09-03 20:05:45 +02:00
|
|
|
@include('chapters/list-item', ['chapter' => $chapter, 'hidePages' => true])
|
2015-08-31 21:11:44 +02:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
@stop
|