@extends('school.layouts.app')
@section('content')
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
@endforeach
@endsection