so I am trying to route gayahidup.blade.php to berpakaian.blade.php but it gives me an error “Undefined variable $berpakaian”
it gives me an error like this and then if you take a look at my code in controller and web.php Route::get('/gayahidup/{id}',[GayaHidupController::class,'showGayaHidup'])>name('gayahidup.show'); Route::get('gayahidup', [GayaHidupController::class, 'index'])->name('gayahidup.index'); Route::get('gayahidup/create', [GayaHidupController::class, 'create'])->name('gayahidup.create'); Route::post('gayahidup/store', [GayaHidupController::class, 'store'])->name('gayahidup.store'); Route::delete('gayahidup/{id}', [GayaHidupController::class, 'destroy'])->name('gayahidup.destroy'); Route::get('/gayahidup/berpakaian/{id}', [GayaHidupController::class, 'showBerpakaian'])->name('gayahidup.berpakaian.detail'); Route::get('/gayahidup/kecantikan/{id}', [GayaHidupController::class, 'showKecantikan'])->name('gayahidup.kecantikan.detail'); Route::get('/gayahidup/traveling/{id}', [GayaHidupController::class, 'showTraveling'])->name('gayahidup.traveling.detail'); Route::get('/gayahidup/kuliner/{id}', [GayaHidupController::class, 'showKuliner'])->name('gayahidup.kuliner.detail'); Route::get('/gayahidup/berpakaian', [GayaHidupController::class, 'berpakaian'])->name('gayahidup.berpakaian'); and if you look my controller