Features::enabled(Features::registration()), ])->name('home'); Route::prefix('{current_team}') ->middleware(['auth', 'verified', EnsureTeamMembership::class]) ->group(function () { Route::inertia('dashboard', 'Dashboard')->name('dashboard'); Route::prefix('references')->name('references.')->group(function () { Route::get('departments', [DepartmentController::class, 'index'])->name('departments.index'); Route::post('department-profiles', [DepartmentController::class, 'storeProfile'])->name('department-profiles.store'); Route::post('departments', [DepartmentController::class, 'store'])->name('departments.store'); }); Route::prefix('reports')->name('reports.')->group(function () { Route::get('periods', [ReportPeriodController::class, 'index'])->name('periods.index'); Route::post('periods', [ReportPeriodController::class, 'store'])->name('periods.store'); Route::patch('periods/{report_period}/approve', [ReportPeriodController::class, 'approve'])->name('periods.approve'); Route::get('operations', [OperationalReportController::class, 'index'])->name('operations.index'); Route::post('operations/services', [OperationalReportController::class, 'storeService'])->name('operations.services.store'); Route::post('operations', [OperationalReportController::class, 'storeEntries'])->name('operations.store'); Route::get('medication-expenses', [MedicationExpenseController::class, 'index'])->name('medication-expenses.index'); Route::post('medication-expenses', [MedicationExpenseController::class, 'storeValues'])->name('medication-expenses.store'); Route::get('analysis', [AnalysisController::class, 'index'])->name('analysis.index'); }); }); Route::middleware(['auth'])->group(function () { Route::get('invitations/{invitation}/accept', [TeamInvitationController::class, 'accept'])->name('invitations.accept'); }); require __DIR__.'/settings.php';