filter.blade.php 2.25 KB
Newer Older
1
2
3
@if(sizeof($metager->getAvailableParameterFilter()) > 0)
	<div id="options">
		<div id="toggle-box">
4
5
6
7
8
9
10
11
12
13
14
15
16
			<div id="filter-toggle">
				@if(sizeof($metager->getAvailableParameterFilter()) > 0)
				<div class="option-toggle">
					<label class="navigation-element" for="options-toggle">
						<i class="fas fa-filter"></i> Filter&hellip;
					</label>
				</div>
				@endif
				@if($metager->getManualParameterFilterSet())
				<div id="options-reset">
					<a href="{{$metager->generateSearchLink($metager->getFokus())}}"><nobr>{{ trans('metaGer.filter.reset') }}</nobr></a>
				</div>
				@endif
17
			</div>
18
19
20
21
22
23
			<div id="settings">
				<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), route('settings', ["fokus" => $metager->getFokus(), "url" => url()->full()])) }}">
					<i class="fas fa-cogs"></i>
					@if($metager->getSavedSettingCount() > 0) <span class="badge badge-primary">{{ $metager->getSavedSettingCount() }}@endif</span>
					Einstellungen&hellip;
				</a>
24
25
26
			</div>
			@if($metager->getTotalResultCount() > 0)
			<div id="result-count">
27
				<nobr>~ {{$metager->getTotalResultCount()}}</nobr> {{ trans('metaGer.results') }}
28
29
30
31
32
33
34
35
36
37
			</div>
			@endif
		</div>
		<input type="checkbox" id="options-toggle" @if(sizeof($metager->getParameterFilter()) > 0)checked @endif />
		<div class="scrollbox">
			<div id="options-box">
				<div id="options-items">
				@foreach($metager->getAvailableParameterFilter() as $filterName => $filter)
					<div class="option-selector">
					<label for="{{$filterName}}">@lang($filter->name)</label>
38
					<select name="{{$filter->{'get-parameter'} }}" class="custom-select custom-select-sm" form="searchForm" onchange="this.form.submit()">
39
						@foreach($filter->values as $value => $text)
40
41
42
43
44
						@if($value === "" && Cookie::get($metager->getFokus() . "_setting_" . $filter->{"get-parameter"}) !== null)
						<option value="off" @if(empty($filter->value) || $filter->value === "off")selected @endif>{{trans($text)}}</option>
						@else
						<option value="{{$value}}" @if(!empty($filter->value) && $filter->value === $value)selected @endif>{{trans($text)}}</option>
						@endif
45
46
47
48
49
50
51
52
53
						@endforeach
					</select>
					</div>
				@endforeach
				</div>

			</div>
			<div class="scrollfade-right"></div>
		</div>
54

55
56
	</div>
	@endif