@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; $sourcesForJs = collect($dataSources)->map(fn ($s) => [ 'label' => $s['label'], 'columns' => $s['columns'], 'filters' => collect($s['filters'])->map(fn ($f) => ['type' => $f['type'], 'options' => $f['options'] ?? []]), ]); @endphp
@if($canBuild) @endif @unless($canBuild)
Building custom reports requires the bi_report_builder feature. You can still run the reports below.
@endunless
@forelse($reports as $index => $report) @empty @endforelse
# Name Data Source Chart
{{ $index + 1 }} {{ $report->name }} @if($report->description) {{ $report->description }} @endif {{ $report->data_source }} {{ $report->chart_type ? ucfirst($report->chart_type) : '—' }}
Run CSV @if($canBuild) @endif
No reports defined yet.

A custom report builder — pick a data source (students, attendance, staff, etc.), choose which columns to include, filter the results, and optionally chart them.

How it works

  • New Report — pick a data source, select columns, add filters, and optionally choose a chart type, then save it.
  • Run — opens the report and shows the live results as a table (and chart, if one is set).
  • CSV — downloads the same results as a spreadsheet file.
  • Edit — change the columns, filters, or chart of a saved report at any time.
  • A saved report always re-runs against current data — it's a live query, not a snapshot.

When it's needed

Whenever you need a specific slice of school data — a filtered list, a breakdown, a chart — that isn't already covered by one of the built-in pages.

@unless($canBuild)

Building new reports requires the bi_report_builder feature on your plan — you can still run and export the reports already saved here.

@endunless
@if($canBuild)
@csrf @include('tenant.reports._form-fields', ['isNew' => true])
@endif