|
|
|
|
@ -67,7 +67,7 @@ class ProjectController extends CommonController
|
|
|
|
|
}]);
|
|
|
|
|
}])->find($id);
|
|
|
|
|
|
|
|
|
|
$data = (new Bed())->where("project_id", $id)->with(["project", "building", "area", "room"])->paginate(10);
|
|
|
|
|
$data = (new Bed())->where("project_id", $id)->orderBy("id","desc")->with(["project", "building", "area", "room"])->paginate(10);
|
|
|
|
|
|
|
|
|
|
return view($this->bladePath . ".beds", compact("project", "data"));
|
|
|
|
|
}
|
|
|
|
|
|