|
|
|
|
@ -47,6 +47,12 @@ class StatisticsController extends CommonController
|
|
|
|
|
->addSelect("building.name as building_name")
|
|
|
|
|
->get();
|
|
|
|
|
|
|
|
|
|
if ($request->has_ongoing_order) {
|
|
|
|
|
$areas = $areas->filter(function($item) {
|
|
|
|
|
return $item->beds->count();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response()->json($areas->toArray());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|