metager3results.blade.php 1.48 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
	@foreach($metager->getResults() as $result)
29
		@if($result->number % 7 === 0)
30
			@include('layouts.ad', ['ad' => $metager->popAd()])
31
32
33
		@endif
		@include('layouts.result', ['result' => $result])
	@endforeach
34
35
	<nav aria-label="...">
		<ul class="pager">
36
		    <li @if($metager->getPage() === 1) class="disabled" @endif><a href="@if($metager->getPage() === 1) # @else javascript:history.back() @endif">{{ trans('results.zurueck') }}</a></li>
37
			<li @if($metager->nextSearchLink() === "#") class="disabled" @endif><a href="{{ $metager->nextSearchLink() }}">{{ trans('results.weiter') }}</a></li>
38
		</ul>
39
	</nav>
40
</div>
41
<div class="hidden-xs col-md-4" id="quicktips">
42
	<iframe class="col-mod-4 hidden-xs hidden-sm" src="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/qt") }}?q={{ $metager->getQ() }}&sprueche={{ $metager->getSprueche() }}"></iframe>
43
</div>