|
|
|
|
@ -25,6 +25,7 @@ class HomeController extends CommonController
|
|
|
|
|
public function index()
|
|
|
|
|
{
|
|
|
|
|
$project_id = request()->project_id;
|
|
|
|
|
$projects = (new StatisticsController())->_checkProjects();
|
|
|
|
|
if (empty($project_id)) {
|
|
|
|
|
$project_id = Project::first()->id;
|
|
|
|
|
}
|
|
|
|
|
@ -107,7 +108,7 @@ class HomeController extends CommonController
|
|
|
|
|
if (is_mobile()) {
|
|
|
|
|
return view($this->bladePath . ".mobile_home");
|
|
|
|
|
} else {
|
|
|
|
|
return view($this->bladePath . ".home", compact('counts', 'lies', 'saleList', 'orderList'));
|
|
|
|
|
return view($this->bladePath . ".home", compact('projects','counts', 'lies', 'saleList', 'orderList'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|