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