cody 2 years ago
parent 566f72c9da
commit 7b9f127ffc

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

@ -244,9 +244,11 @@
@endpush @endpush
@section("content") @section("content")
@foreach($projects as $project)
<select class="hospital-select" name="hospital-select"> <select class="hospital-select" name="hospital-select">
<option value="1">1</option> <option value="{{$project->id}}">{{$project->name}}</option>
</select> </select>
@endforeach
<div class="static-container"> <div class="static-container">
<div class="card1"> <div class="card1">

Loading…
Cancel
Save