name('landingpage'); Route::get('/login', function () { return view('auth.login'); })->name('login'); Route::get('/panduan', [PanduanController::class, 'showPanduan'])->name('panduan'); Route::prefix('student')->name('student.')->group(function () { Route::get('/profile', [StudentDashboardController::class, 'profile'])->name('profile'); Route::get('/prediction', [RecommendationController::class, 'prediction'])->name('prediction'); Route::get('/result/{id}', [RecommendationController::class, 'result'])->name('result'); }); Route::prefix('admin')->name('admin.')->group(function () { Route::get('/dashboard', [AdminDashboardController::class, 'index'])->name('dashboard'); // PERBAIKAN: Format names menggunakan string tunggal 'siswa' seperti milik prospek-kerja Route::resource('siswa', SiswaController::class)->only(['index', 'create', 'edit'])->names(['index' => 'siswa']); Route::resource('alumni', AlumniController::class)->only(['index', 'create', 'edit'])->names(['index' => 'alumni']); Route::resource('jurusan', JurusanController::class)->only(['index', 'create', 'edit'])->names(['index' => 'jurusan']); Route::resource('guru', GuruController::class)->only(['index', 'create', 'edit'])->names(['index' => 'guru']); Route::resource('prospek-kerja', ProspekKerjaController::class)->only(['index', 'create', 'edit'])->names(['index' => 'prospek-kerja']); Route::get('/riwayat', [RiwayatController::class, 'index'])->name('riwayat'); Route::get('/latih-model', function() { // Logika latih model Anda })->name('latih-model'); });