metager3results.blade.php 1.72 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@if( sizeof($errors) > 0 )
		<div class="alert alert-danger">
			<ul>
				@foreach($errors as $error)
				<li>{!! $error !!}</li>
				@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
21
22
23
24
25
26
27
	@if($metager->hasProducts())
		@include('layouts.products', ['products' => $metager->getProducts()])
	@else
		{{-- 3-Mal Werbung --}}
		@for($i = 0; $i <= 2; $i++)
			@include('layouts.ad', ['ad' => $metager->popAd()])
		@endfor
	@endif
28
29
30
31
32
33
	<div class="result row">
		<div class="col-sm-1"></div>
		<div class="col-sm-11">
			<iframe class="" src="https://maps.metager.de/?q={{ $metager->getQ() }}&controls=false&limit=3" style="width: 100%; height:0; border:0;"></iframe>
		</div>
	</div>
34
	@foreach($metager->getResults() as $result)
35
		@if($result->number % 7 === 0)
36
			@include('layouts.ad', ['ad' => $metager->popAd()])
37
38
39
		@endif
		@include('layouts.result', ['result' => $result])
	@endforeach
40
41
	<nav aria-label="...">
		<ul class="pager">
42
		    <li @if($metager->getPage() === 1) class="disabled" @endif><a href="@if($metager->getPage() === 1) # @else javascript:history.back() @endif">{{ trans('results.zurueck') }}</a></li>
43
			<li @if($metager->nextSearchLink() === "#") class="disabled" @endif><a href="{{ $metager->nextSearchLink() }}">{{ trans('results.weiter') }}</a></li>
44
		</ul>
45
	</nav>
46
</div>
47
<div class="hidden-xs col-md-4" id="quicktips">
48
	<iframe class="col-mod-4 hidden-xs hidden-sm" src="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/qt") }}?q={{ $metager->getQ() }}&sprueche={{ $metager->getSprueche() }}"></iframe>
49
</div>