name('login'); Route::post('/login', [AuthenticatedSessionController::class, 'store']); Route::post('/logout', [AuthenticatedSessionController::class, 'destroy']) ->name('logout'); Route::get('/register', [RegisteredUserController::class, 'create']) ->name('register'); Route::post('/register', [RegisteredUserController::class, 'store']); // Password reset routes Route::get('/forgot-password', [PasswordResetLinkController::class, 'create']) ->name('password.request'); Route::post('/forgot-password', [PasswordResetLinkController::class, 'store']) ->name('password.email'); Route::get('/reset-password/{token}', [NewPasswordController::class, 'create']) ->name('password.reset'); Route::post('/reset-password', [NewPasswordController::class, 'store']) ->name('password.update'); // Family routes Route::middleware(['auth'])->group(function () { Route::get('/profile', [FamilyController::class, 'profile'])->name('profile.show'); Route::get('/family', [FamilyController::class, 'dashboard'])->name('family.dashboard'); Route::get('/family/create', [FamilyController::class, 'create'])->name('family.create'); Route::post('/family', [FamilyController::class, 'store'])->name('family.store'); Route::get('/family/{id}', [FamilyController::class, 'show'])->name('family.show'); Route::get('/family/{id}/edit', [FamilyController::class, 'edit'])->name('family.edit'); Route::put('/family/{id}', [FamilyController::class, 'update'])->name('family.update'); Route::delete('/family/{id}', [FamilyController::class, 'destroy'])->name('family.destroy'); // Invoice routes Route::get('/invoices', [InvoiceController::class, 'index'])->name('invoices.index'); Route::get('/invoices/{id}', [InvoiceController::class, 'show'])->name('invoices.show'); Route::get('/invoices/{id}/pay', [InvoiceController::class, 'pay'])->name('invoices.pay'); Route::get('/invoices/pay-all', [InvoiceController::class, 'payAll'])->name('invoices.pay-all'); });