@extends('layouts.simple') @section('body')
{{ trans('entities.search_advanced') }}
{{ trans('entities.search_terms') }}
{{ trans('entities.search_content_type') }}
@include('search.parts.type-filter', ['checked' => !$hasTypes || in_array('page', $types), 'entity' => 'page', 'transKey' => 'page']) @include('search.parts.type-filter', ['checked' => !$hasTypes || in_array('chapter', $types), 'entity' => 'chapter', 'transKey' => 'chapter'])
@include('search.parts.type-filter', ['checked' => !$hasTypes || in_array('book', $types), 'entity' => 'book', 'transKey' => 'book']) @include('search.parts.type-filter', ['checked' => !$hasTypes || in_array('bookshelf', $types), 'entity' => 'bookshelf', 'transKey' => 'shelf'])
{{ trans('entities.search_exact_matches') }}
@include('search.parts.term-list', ['type' => 'exact', 'currentList' => $options->exacts])
{{ trans('entities.search_tags') }}
@include('search.parts.term-list', ['type' => 'tags', 'currentList' => $options->tags]) @if(signedInUser())
{{ trans('entities.search_options') }}
@component('search.parts.boolean-filter', ['filters' => $options->filters, 'name' => 'viewed_by_me', 'value' => null]) {{ trans('entities.search_viewed_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $options->filters, 'name' => 'not_viewed_by_me', 'value' => null]) {{ trans('entities.search_not_viewed_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $options->filters, 'name' => 'is_restricted', 'value' => null]) {{ trans('entities.search_permissions_set') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $options->filters, 'name' => 'created_by', 'value' => 'me']) {{ trans('entities.search_created_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $options->filters, 'name' => 'updated_by', 'value' => 'me']) {{ trans('entities.search_updated_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $options->filters, 'name' => 'owned_by', 'value' => 'me']) {{ trans('entities.search_owned_by_me') }} @endcomponent @endif
{{ trans('entities.search_date_options') }}
@include('search.parts.date-filter', ['name' => 'updated_after', 'filters' => $options->filters]) @include('search.parts.date-filter', ['name' => 'updated_before', 'filters' => $options->filters]) @include('search.parts.date-filter', ['name' => 'created_after', 'filters' => $options->filters]) @include('search.parts.date-filter', ['name' => 'created_before', 'filters' => $options->filters]) @if(isset($options->filters['created_by']) && $options->filters['created_by'] !== "me") @endif @if(isset($options->filters['updated_by']) && $options->filters['updated_by'] !== "me") @endif

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

{{ trans_choice('entities.search_total_results_found', $totalResults, ['count' => $totalResults]) }}
@include('entities.list', ['entities' => $entities, 'showPath' => true, 'showTags' => true])
@if($hasNextPage) @endif
@stop