@extends('school.layouts.app') @section('content')

School Command Center

Welcome, {{ Auth::user()->name }}. Select a module to begin.

New

AI-Powered Admissions

Instant Aadhar/Certificate OCR Scanning

Launch
@foreach($activeModules as $module) @php // ✅ SAFE CHECK: Check if the route exists before trying to generate the URL $routeExists = isset($module['route']) && Route::has($module['route']); $finalUrl = $routeExists ? route($module['route']) : '#'; @endphp

{{ $module['name'] }} @if(!$routeExists) Coming Soon @endif

@endforeach
@endsection