@extends('layouts.resultPage') @section('results') {{-- Show all errors --}} @if(sizeof($errors) > 0)
@endif {{-- Show all warnings --}} @if(sizeof($warnings) > 0)
@endif
{{-- Show initial ads --}} @if($mobile) @include('layouts.ad', ['ad' => $metager->popAd()]) @else @for($i = 0; $i <= 2; $i++) @include('layouts.ad', ['ad' => $metager->popAd()]) @endfor @endif {{-- Show map --}} {{-- 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 {{-- Show pagination --}}
@endsection