@foreach($categories as $category) @endforeach @foreach($categories as $key => $category) @foreach($locations as $location) @endforeach @endforeach @foreach($_metrics as $_metric_label => $_metric) @foreach($categories as $category) @foreach($locations as $location) @endforeach @endforeach @endforeach
 {{$category->label}}
{{-- {{ $domain_data->domain }}
--}} {{-- Primary Ranking Page--}}
{{$location->label}}
{{$_metric_label}} @if($_metric == 'ranking_page') {{$totals['current_data'][$category->id][$location->id][$_metric]}} @else {{--{{$totals['previous_data'][$category->id][$location->id][$_metric]}} ---}} @if ($_metric === 'maps_rank') @if ($totals['current_data'][$category->id][$location->id][$_metric]) {!! ordinal($totals['current_data'][$category->id][$location->id][$_metric]) !!} @endif @else {{$totals['current_data'][$category->id][$location->id][$_metric]}} @endif @if(isset($totals['previous_data'][$category->id][$location->id]) && $totals['previous_data'][$category->id][$location->id][$_metric] != 0 && $totals['current_data'][$category->id][$location->id][$_metric]) {!! kw_rank_compare($totals['current_data'][$category->id][$location->id], $totals['previous_data'][$category->id][$location->id], $_metric, $show_down) !!} @endif @endif