liyinglin 2 years ago
parent dd812d893b
commit 1426c4c744

@ -249,11 +249,11 @@ class OrdersController extends CommonController
->addSelect("building.name as building_name")
->withCount("beds")
->paginate(10);
if ($has_ongoing_order) {
$data = $data->filter(function ($item) {
return $item->beds->count();
});
}
// if ($has_ongoing_order) {
// $data = $data->filter(function ($item) {
// return $item->beds->count();
// });
// }
$projects = (new StatisticsController())->_checkProjects();
return view($this->bladePath . ".artboard", compact("data", "projects", "project_id"));

Loading…
Cancel
Save