@extends('layouts.simple') @section('body')
{{ trans('entities.search_advanced') }}
@php $filterMap = $options->filters->toValueMap(); @endphp
{{ 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->toValueArray()])
{{ trans('entities.search_tags') }}
@include('search.parts.term-list', ['type' => 'tags', 'currentList' => $options->tags->toValueArray()]) @if(!user()->isGuest())
{{ trans('entities.search_options') }}
@component('search.parts.boolean-filter', ['filters' => $filterMap, 'name' => 'viewed_by_me', 'value' => null]) {{ trans('entities.search_viewed_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $filterMap, 'name' => 'not_viewed_by_me', 'value' => null]) {{ trans('entities.search_not_viewed_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $filterMap, 'name' => 'is_restricted', 'value' => null]) {{ trans('entities.search_permissions_set') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $filterMap, 'name' => 'created_by', 'value' => 'me']) {{ trans('entities.search_created_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $filterMap, 'name' => 'updated_by', 'value' => 'me']) {{ trans('entities.search_updated_by_me') }} @endcomponent @component('search.parts.boolean-filter', ['filters' => $filterMap, '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' => $filterMap]) @include('search.parts.date-filter', ['name' => 'updated_before', 'filters' => $filterMap]) @include('search.parts.date-filter', ['name' => 'created_after', 'filters' => $filterMap]) @include('search.parts.date-filter', ['name' => 'created_before', 'filters' => $filterMap])

{{ 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