@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; @endphp
@if ($errors->any()) @endif
@forelse($imports as $import) @empty @endforelse
Previous data imports
File Type Rows Imported Status Actions
{{ $import->original_filename }} {{ $types[$import->type]['label'] ?? $import->type }} {{ $import->total_rows }} {{ $import->success_count }} @if($import->error_count > 0) ({{ $import->error_count }} skipped) @endif {{ ucfirst($import->status) }} @if($import->status !== 'completed') Continue @endif
@csrf @method('DELETE')
No imports yet.

Data Import lets you bulk-load existing records from a spreadsheet instead of adding them one by one through the normal forms. Upload a CSV file and it walks you through four steps:

  1. Upload — pick what you're importing and attach the CSV file (max 10 MB).
  2. Map columns — match your CSV's column headers to the system's fields. Common headers are matched automatically; you can correct any mapping.
  3. Preview — every row is checked before anything is saved. You'll see how many rows are ready and which ones have problems, and why.
  4. Commit — valid rows are imported (new records created, or existing ones updated by their code/number). Rows with errors are automatically skipped — one bad row never blocks the rest of the file.

When to use it

Typically when setting up a new school with records already kept in a spreadsheet, or bulk-loading historical exam results or fee records from another system — anywhere re-typing hundreds of rows by hand would be impractical.

What you can import

@foreach($types as $key => $meta)

{{ $meta['label'] }}

Download template

Required columns: {{ collect($meta['fields'])->filter(fn ($f) => $f['required'] ?? false)->map(fn ($f) => $f['label'])->implode(', ') ?: 'none' }}

@endforeach
@csrf

Download a template for this type

First row must contain column headers. Max 10 MB.