name('home'); Route::get('dashboard', function () { return Inertia::render('dashboard'); })->name('dashboard'); // Tracker routes Route::get('/tracker', [TrackerController::class, 'show'])->name('tracker.show'); Route::post('/tracker', [TrackerController::class, 'store'])->name('tracker.store'); Route::patch('/tracker', [TrackerController::class, 'update'])->name('tracker.update'); // Asset routes Route::prefix('assets')->name('assets.')->group(function () { Route::get('/', [AssetController::class, 'index'])->name('index'); Route::post('/', [AssetController::class, 'store'])->name('store'); Route::get('/search', [AssetController::class, 'search'])->name('search'); Route::get('/{asset}', [AssetController::class, 'show'])->name('show'); }); // Entry routes (replaces purchases) Route::prefix('entries')->name('entries.')->group(function () { Route::get('/', [EntryController::class, 'index'])->name('index'); Route::post('/', [EntryController::class, 'store'])->name('store'); Route::get('/summary', [EntryController::class, 'summary'])->name('summary'); Route::delete('/{entry}', [EntryController::class, 'destroy'])->name('destroy'); }); // Pricing routes Route::prefix('pricing')->name('pricing.')->group(function () { Route::get('/current', [PricingController::class, 'current'])->name('current'); Route::post('/update', [PricingController::class, 'update'])->name('update'); Route::get('/history', [PricingController::class, 'history'])->name('history'); Route::get('/date/{date}', [PricingController::class, 'forDate'])->name('for-date'); }); // Milestone routes Route::prefix('milestones')->name('milestones.')->group(function () { Route::get('/', [MilestoneController::class, 'index'])->name('index'); Route::post('/', [MilestoneController::class, 'store'])->name('store'); }); require __DIR__.'/auth.php';