metager3.blade.php 1.99 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
Dominik Hebeler's avatar
Dominik Hebeler committed
27
28
29
30
31
32
33
34
			@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
Dominik Hebeler's avatar
Dominik Hebeler committed
35
			<div class="result row" id="map">
Dominik Hebeler's avatar
Dominik Hebeler committed
36
37
				<div class="col-sm-1"></div>
				<div class="col-sm-11">
Dominik Hebeler's avatar
Dominik Hebeler committed
38
					<iframe class="" src="https://maps.metager.de/metager/{{ $metager->getQ() }}" style="width: 100%; height:0; border:0;"></iframe>
Dominik Hebeler's avatar
Dominik Hebeler committed
39
40
				</div>
			</div>
41
			@foreach($metager->getResults() as $result)
42
43
44
45
46
				@if($result->number % 7 === 0)
					@include('layouts.ad', ['ad' => $metager->popAd()])
				@endif
				@include('layouts.result', ['result' => $result])
			@endforeach
47
48
			<nav aria-label="...">
				<ul class="pager">
49
				    <li @if($metager->getPage() === 1) class="disabled" @endif><a href="@if($metager->getPage() === 1) # @else javascript:history.back() @endif">{{ trans('results.zurueck') }}</a></li>
50
					<li @if($metager->nextSearchLink() === "#") class="disabled" @endif><a href="{{ $metager->nextSearchLink() }}">{{ trans('results.weiter') }}</a></li>
51
52
				</ul>
			</nav>
53
		</div>
54

55
56
	@if( $metager->showQuicktips() )
		<div class="hidden-xs col-md-4" id="quicktips">
57
			<iframe class="col-mod-4 hidden-xs hidden-sm" src="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/qt") }}?q={{ $metager->getQ() }}&sprueche={{ $metager->getSprueche() }}"></iframe>
58
59
		</div>
	@endif
60
@endsection