@extends('layouts.demo10.base') @section('content')

All Pivot Tables

Showing all pivot tables from dashboard_builder.json

Back to Pivot List
@if(empty($pivots))
No pivots found in dashboard_builder.json
@else
@foreach($pivots as $item) @php $pivot = $item['pivot'] ?? []; $metricIds = $pivot['metric_ids'] ?? []; $colHeaders = $pivot['col_headers'] ?? []; $matrix = $pivot['matrix'] ?? []; $hasCols = !empty($pivot['col_key'] ?? null); $queryError = $item['queryError'] ?? null; @endphp

{{ $item['title'] }}

{{ $item['logic_id'] }}
Open Single
Y-axis: {{ $pivot['row_key'] ?? 'Category' }} | X-axis: {{ $pivot['col_key'] ?? 'Metrics' }}
@if($queryError)
{{ $queryError }}
@elseif(empty($matrix))
No data available for this pivot.
@else
@if($hasCols) @foreach($colHeaders as $ch) @endforeach @else @foreach($metricIds as $mId) @endforeach @endif @if($hasCols) @foreach($colHeaders as $ch) @foreach($metricIds as $mId) @endforeach @endforeach @endif @foreach($matrix as $rowLabel => $cols) @if($hasCols) @foreach($colHeaders as $ch) @foreach($metricIds as $mId) @endforeach @endforeach @else @foreach($metricIds as $mId) @endforeach @endif @endforeach
{{ $pivot['row_key'] ?? 'Category' }} {{ $ch ?: '(blank)' }} {{ $mId }}
{{ $mId }}
{{ $rowLabel ?: '(blank)' }} {{ $cols[$ch][$mId] ?? 0 }} {{ $cols['__single__'][$mId] ?? 0 }}
@endif
@endforeach
@endif
@endsection