results.blade.php 732 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@include('parts.errors')
@include('parts.warnings')
<div id="results">
	@if($mobile)
		@include('layouts.ad', ['ad' => $metager->popAd()])
	@else
		@for($i = 0; $i <= 2; $i++)
			@include('layouts.ad', ['ad' => $metager->popAd()])
		@endfor
	@endif
	{{-- Create results and ongoing ads --}}
	@foreach($metager->getResults() as $result)
		@if($mobile)
			@if($result->number % 4 === 0)
				@include('layouts.ad', ['ad' => $metager->popAd()])
			@endif
		@else
			@if($result->number % 7 === 0)
				@include('layouts.ad', ['ad' => $metager->popAd()])
			@endif
		@endif
		@include('layouts.result', ['result' => $result])
	@endforeach
	@include('parts.pager')
</div>
@if( $metager->showQuicktips() )
	<div id="quicktips"></div>
@endif