metager3results.blade.php 1.93 KB
Newer Older
1
@if( sizeof($errors) > 0 )
2
3
4
	<div class="alert alert-danger">
		<ul>
			@foreach($errors as $error)
5
				<li>{!! $error !!}</li>
6
7
8
9
10
11
12
13
14
15
16
17
18
			@endforeach
		</ul>
	</div>
@endif
@if( sizeof($warnings) > 0)
	<div class="alert alert-warning">
		<ul>
			@foreach($warnings as $warning)
				<li>{!! $warning !!}</li>
			@endforeach
		</ul>
	</div>
@endif
19
<div class="col-xs-12 col-md-8">
20
	@if(!$apiAuthorized && !$metager->validated && LaravelLocalization::getCurrentLocale() == "de" && strpos(url()->current(), '/beitritt') === false && strpos(url()->current(), '/spendenaufruf') === false)
21
22
23
24
25
26
27
28
29
30
31
32
33
34
			<div class="row" style="margin-bottom: 10px">
				<div class="col-sm-1">
				</div>
				<div class="col-sm-10">
				<a href="/spendenaufruf" target="_blank" style="
			    background-color: white;
			    display: inline-block;
			    width: 100%;
			    ">
			    	<img src="/img/aufruf.png" alt="Spendenaufruf SuMa eV" width="100%">
			    </a>
			</div>
			</div>
		@endif
35
	@if($metager->hasProducts())
Phil Höfer's avatar
Phil Höfer committed
36
37
38
	    @if( $metager->getFokus() !== "produktsuche" && !$apiAuthorized)
		    @include('layouts.products', ['products' => $metager->getProducts()])
		@endif
39
	@else
40
		@for($i = 0; $i <= 1; $i++)
41
42
43
			@include('layouts.ad', ['ad' => $metager->popAd()])
		@endfor
	@endif
44
	@foreach($metager->getResults() as $result)
45
		@if($result->number % 7 === 0)
46
			@include('layouts.ad', ['ad' => $metager->popAd()])
47
48
49
		@endif
		@include('layouts.result', ['result' => $result])
	@endforeach
50
51
	<nav aria-label="...">
		<ul class="pager">
52
			<li @if($metager->getPage() === 1) class="disabled" @endif><a href="@if($metager->getPage() === 1) # @else javascript:history.back() @endif">{{ trans('results.zurueck') }}</a></li>
53
			<li @if($metager->nextSearchLink() === "#") class="disabled" @endif><a href="{{ $metager->nextSearchLink() }}">{{ trans('results.weiter') }}</a></li>
54
		</ul>
55
	</nav>
56
</div>
57
@if( $metager->showQuicktips() )
58
	<div class="col-md-4 hidden-xs hidden-sm" id="quicktips"></div>
59
@endif
60
</div>