@extends('admin.layout.app') @section('title', 'Module & Visibility Settings') @section('body')

Module & Visibility Settings

Control module access, sidebar visibility, dashboard sections, frontend sections, and public online forms from Settings.

Open System Guide
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif
@csrf
Dashboard Sections Show / Hide
Choose which blocks appear on the admin dashboard.
@foreach($visibilityDashboardSections ?? [] as $section) @endforeach
Dashboard Section Hidden
{{ $section['label'] }}
{{ $section['key'] }}
Website Frontend Sections Show / Hide
Choose which homepage sections appear on the public website.
@foreach($visibilityFrontendSections ?? [] as $section) @endforeach
Frontend Section Hidden
{{ $section['label'] }}
{{ $section['key'] }}
Module Access Settings
Control complete parent modules and their related submodules. If a parent module is inactive or hidden, its child modules are also blocked.
Complete Module Control
Use these parent modules to show or hide a whole area such as Finance, Student Management, Academic, Administrative, Online Forms, or Reports.
@foreach($moduleHierarchy ?? [] as $parentKey => $childKeys) @php($module = $modules[$parentKey] ?? null) @continue(!$module) @endforeach
Complete Module Related Submodules Active Visible Allowed Roles Allowed Users Notes
{{ $module->module_name }}
{{ $module->module_key }}
@foreach($childKeys as $childKey) @php($child = $modules[$childKey] ?? null) {{ $child?->module_name ?? $childKey }} @endforeach
is_active)> is_visible)>
@foreach($sidebarGroups ?? [] as $group => $items)
{{ $group }}
@foreach($items as $item) @php($key = $item['key']) @continue(array_key_exists($key, $moduleHierarchy ?? [])) @php($module = $modules[$key] ?? null) @continue(!$module) @endforeach
Sidebar Option Active Visible Allowed Roles Allowed Users Notes
{{ implode(', ', $item['labels']) }}
{{ $module->module_name }} / {{ $module->module_key }}
is_active)> is_visible)>
@endforeach @php($sidebarModuleKeys = collect($sidebarGroups ?? [])->flatMap(fn ($items) => collect($items)->pluck('key'))->unique()) @foreach($groups as $group => $keys) @php($visibleKeys = collect($keys)->reject(fn ($key) => $sidebarModuleKeys->contains($key))->values()) @continue($visibleKeys->isEmpty())
{{ $group }}
@foreach($visibleKeys as $key) @continue(array_key_exists($key, $moduleHierarchy ?? [])) @php($module = $modules[$key] ?? null) @continue(!$module) @endforeach
Module / Form Active Visible Allowed Roles Allowed Users Notes
{{ $module->module_name }}
{{ $module->module_key }}
is_active)> is_visible)>
@endforeach
Online Admission Form Configuration
Control labels, help text, required status, and field visibility for the public online admission form.
@foreach(($formSettings['online_admission'] ?? collect()) as $field) @endforeach
Field Visible Required Label / Text Help Text Order
{{ ucwords(str_replace('_', ' ', $field->field_key)) }}
{{ $field->field_key }}
is_visible)> is_required)>
Save visibility and module access changes
Changes apply to sidebar, dashboard, frontend, modules, and form fields.
@endsection