group(function () { route::get('/admin/login',[SesiLoginController::class, 'login'])->name('login'); route::post('/admin/login',[SesiLoginController::class, 'ceklogin'])->name('admin.ceklogin'); }); route::get('/', function(){ return "PROGRESS"; })->name('laman-awal'); Route::get('/home', function(){ return redirect('/admin'); }); Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () { Route::get('/', [AdminController::class, 'index'])->name('admin.dashboard'); Route::get('/logout', [SesiLoginController::class, 'logout'])->name('admin.logout'); //layanan Pengajuan DPU DPA Route::get('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'index'])->name('layanan-dpudpa.index'); Route::DELETE('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'destroy'])->name('layanan-dpudpa.destroy'); Route::POST('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'terima'])->name('layanan-dpudpa.terima'); //User Route::get('/users', [UserController::class, 'index'])->name('users.index'); Route::POST('/users', [UserController::class, 'store'])->name('users.store'); Route::PUT('/users', [UserController::class, 'update'])->name('users.update'); Route::DELETE('/users', [UserController::class, 'destroy'])->name('users.destroy'); //Mahasiswa Route::get('/mahasiswa', [MahasiswaController::class, 'index'])->name('mahasiswa.index'); Route::POST('/mahasiswa', [MahasiswaController::class, 'store'])->name('mahasiswa.store'); Route::PUT('/mahasiswa', [MahasiswaController::class, 'update'])->name('mahasiswa.update'); Route::DELETE('/mahasiswa', [MahasiswaController::class, 'destroy'])->name('mahasiswa.destroy'); //User Roles Route::get('/users-roles', [UserController::class, 'userroles_index'])->name('users-roles.index'); Route::POST('/users-roles', [UserController::class, 'userroles_store'])->name('users-roles.store'); Route::POST('/users-roles/assign', [UserController::class, 'userroles_assign'])->name('users-roles.assign'); }); //Layanan Pengajuan DPU/DPA Route::get('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'tambah'])->name('layanan-dpudpa.tambah'); Route::post('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'store'])->name('layanan-dpudpa.store'); Route::get('/layanan-dpudpa/{url}/{caseid}', [LayananPengajuanDpuDpaController::class, 'ettd'])->name('layanan-dpudpa.ettd'); Route::POST('/layanan-dpudpa/{url}/{caseid}', [LayananPengajuanDpuDpaController::class, 'submitettd'])->name('layanan-dpudpa.submitettd');