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