@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $chartColumn = $report->chart_type ? ($columns[0] ?? null) : null; $chartData = $chartColumn ? $rows->groupBy($chartColumn)->map->count() : collect(); @endphp Export CSV Print / PDF
← All reports
@if($report->chart_type && $chartData->isNotEmpty())
@endif
@foreach($columns as $column) @endforeach @forelse($rows as $row) @foreach($columns as $column) @endforeach @empty @endforelse
{{ $source['columns'][$column] ?? $column }}
{{ $row[$column] ?? '—' }}
No rows matched this report's filters.
@if($report->chart_type && $chartData->isNotEmpty()) @endif