@foreach($categories as $key => $category) @if($compact_view == 1)
@else
@endif
{{strtoupper($category->label)}}
{{-- {{clean_location($location->label)}}--}}
@foreach($locations as $location)

{{clean_location($location->label)}}

@foreach($_metrics as $_metric_label => $_metric) @if($_metric == 'ranking_page') @else
@if ($_metric === 'maps_rank') {!! ordinal($totals['current_data'][$category->id][$location->id][$_metric]) !!} @elseif ($_metric === 'organic_top_rank') {!! ordinal($totals['current_data'][$category->id][$location->id][$_metric]) !!} @else {{$totals['current_data'][$category->id][$location->id][$_metric]}} @endif {!! $_metric_label !!} {{-- @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 @endforeach
Primary Ranking Page: {{$primary_ranking_page}}
@endforeach
@endforeach