@php $types = \App\Support\Institutions\ModuleRegistry::types(); $moduleGroups = \App\Support\Institutions\ModuleRegistry::grouped(); $typeDefaults = collect($types)->map(fn ($type) => $type['modules'])->all(); $initialType = old('institution_type', $tenant->institution_type); $initialModules = old('modules', $tenant->enabledModules()); @endphp
@csrf @method('PUT')

Changing the type resets the modules below to that type's defaults. No data is deleted — hidden modules simply stop showing.

Modules

Controls which menus and pages this tenant's admins, teachers, students and parents see. Items marked custom differ from the type's defaults.

@error('modules')

{{ $message }}

@enderror @error('modules.*')

{{ $message }}

@enderror
@foreach($moduleGroups as $groupLabel => $modules)
{{ $groupLabel }}
@foreach($modules as $key => $label) @endforeach
@endforeach