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

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

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