refactor: unify bag and admin layout routing
This commit is contained in:
@@ -16,11 +16,16 @@ class Home extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인 후 원래 메인 화면 (admin 유사 레이아웃 + site 메뉴 호버 드롭다운)
|
||||
* 로그인 후 메인 — site 메뉴 레이아웃 + 종합·그래프(blend) 본문
|
||||
*/
|
||||
public function dashboard()
|
||||
{
|
||||
return view('bag/daily_inventory');
|
||||
return view('bag/layout/main', [
|
||||
'title' => '업무 현황 · 종합·그래프',
|
||||
'content' => view('bag/dashboard_blend_inner', [
|
||||
'lgLabel' => $this->resolveLgLabel(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,13 +67,11 @@ class Home extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* dense(표·KPI) + charts(Chart.js) 혼합. URL: /dashboard/blend
|
||||
* /dashboard 와 동일 본문(호환 URL)
|
||||
*/
|
||||
public function dashboardBlend()
|
||||
{
|
||||
return view('bag/lg_dashboard_blend', [
|
||||
'lgLabel' => $this->resolveLgLabel(),
|
||||
]);
|
||||
return $this->dashboard();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,4 +117,5 @@ class Home extends BaseController
|
||||
|
||||
return '북구 (데모)';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user