metager3.blade.php 2.18 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
35
			@if($metager->getMaps())
Dominik Hebeler's avatar
Dominik Hebeler committed
36
			<div class="result row" id="map">
37 38
				<div class="number col-sm-1 hidden-xs"></div>
				<div class="resultInformation col-xs-12 col-sm-11">
Dominik Hebeler's avatar
Dominik Hebeler committed
39
					<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
40 41
				</div>
			</div>
42
			@endif
43
			@foreach($metager->getResults() as $result)
44 45 46 47 48
				@if($result->number % 7 === 0)
					@include('layouts.ad', ['ad' => $metager->popAd()])
				@endif
				@include('layouts.result', ['result' => $result])
			@endforeach
49 50
			<nav aria-label="...">
				<ul class="pager">
51
				    <li @if($metager->getPage() === 1) class="disabled" @endif><a href="@if($metager->getPage() === 1) # @else javascript:history.back() @endif">{{ trans('results.zurueck') }}</a></li>
52
					<li @if($metager->nextSearchLink() === "#") class="disabled" @endif><a href="{{ $metager->nextSearchLink() }}">{{ trans('results.weiter') }}</a></li>
53 54
				</ul>
			</nav>
55
		</div>
56

57 58
	@if( $metager->showQuicktips() )
		<div class="hidden-xs col-md-4" id="quicktips">
59
			<iframe class="col-mod-4 hidden-xs hidden-sm" src="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/qt") }}?q={{ $metager->getQ() }}&sprueche={{ $metager->getSprueche() }}&lang={{ Request::input('lang', 'all') }}&unfilteredLink={{ base64_encode($metager->getUnfilteredLink()) }}"></iframe>
60 61
		</div>
	@endif
62
@endsection