2015-08-31 15:11:44 -04:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2015-09-01 10:35:11 -04:00
|
|
|
<div class="container anim fadeIn">
|
2015-08-31 15:11:44 -04: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-09-03 14:05:45 -04:00
|
|
|
@include('pages/list-item', ['page' => $page])
|
|
|
|
<hr>
|
2015-08-31 15:11:44 -04: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 14:05:45 -04:00
|
|
|
@include('books/list-item', ['book' => $book])
|
|
|
|
<hr>
|
2015-08-31 15:11:44 -04:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if(count($chapters) > 0)
|
|
|
|
<h3>Matching Chapters</h3>
|
|
|
|
<div class="page-list">
|
|
|
|
@foreach($chapters as $chapter)
|
2015-09-03 14:05:45 -04:00
|
|
|
@include('chapters/list-item', ['chapter' => $chapter, 'hidePages' => true])
|
2015-08-31 15:11:44 -04:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@stop
|