metager3.blade.php 1.53 KB
Newer Older
1
2
3
@extends('layouts.resultPage')

@section('results')
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@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
22
23
24
25
	@if( $metager->showQuicktips() )
		<div class="col-xs-12 col-md-8 resultContainer">
	@else
		<div class="col-xs-12 col-md-12 resultContainer">
26
	@endif
27
28
29
30
			{{-- 3-Mal Werbung --}}
			@for($i = 0; $i <= 2; $i++)
				@include('layouts.ad', ['ad' => $metager->popAd()])
			@endfor
31
			@foreach($metager->getResults() as $result)
32
33
34
35
36
				@if($result->number % 7 === 0)
					@include('layouts.ad', ['ad' => $metager->popAd()])
				@endif
				@include('layouts.result', ['result' => $result])
			@endforeach
37
38
			<nav aria-label="...">
				<ul class="pager">
39
				    <li @if($metager->getPage() === 1) class="disabled" @endif><a href="@if($metager->getPage() === 1) # @else javascript:history.back() @endif">{{ trans('results.zurueck') }}</a></li>
40
					<li @if($metager->nextSearchLink() === "#") class="disabled" @endif><a href="{{ $metager->nextSearchLink() }}">{{ trans('results.weiter') }}</a></li>
41
42
				</ul>
			</nav>
43
		</div>
44

45
46
47
48
49
	@if( $metager->showQuicktips() )
		<div class="hidden-xs col-md-4" id="quicktips">
			<iframe class="col-mod-4 hidden-xs hidden-sm" src="/qt?q={{ $metager->getQ() }}&sprueche={{ $metager->getSprueche() }}"></iframe>
		</div>
	@endif
50
@endsection