dashboard karakteristik petani
This commit is contained in:
@@ -21,12 +21,12 @@ class DemografiPetaniController extends Controller
|
||||
abort(403);
|
||||
}
|
||||
|
||||
return redirect()->route('dashboard.profil-pertanian', array_merge($request->query(), [
|
||||
return redirect()->route('dashboard.karakteristik-petani', array_merge($request->query(), [
|
||||
'tab' => 'demografi-petani',
|
||||
]));
|
||||
}
|
||||
|
||||
public function profil(Request $request)
|
||||
public function karakteristik(Request $request)
|
||||
{
|
||||
if (!Gate::any(['super_admin', 'admin', 'fasilitator'])) {
|
||||
abort(403);
|
||||
@@ -39,9 +39,9 @@ class DemografiPetaniController extends Controller
|
||||
$demografiData = $this->contentData($request);
|
||||
$indeksData = app(IndeksPetaniController::class)->contentData($request);
|
||||
|
||||
return view('dashboard.profil-pertanian', [
|
||||
return view('dashboard.karakteristik-petani', [
|
||||
'activeTab' => $activeTab,
|
||||
'indeksFilterAction' => route('dashboard.profil-pertanian'),
|
||||
'indeksFilterAction' => route('dashboard.karakteristik-petani'),
|
||||
] + $demografiData + $indeksData);
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ class IndeksPetaniController extends Controller
|
||||
abort(403);
|
||||
}
|
||||
|
||||
return redirect()->route('dashboard.profil-pertanian', array_merge($request->query(), [
|
||||
return redirect()->route('dashboard.karakteristik-petani', array_merge($request->query(), [
|
||||
'tab' => 'indeks-petani',
|
||||
]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user