@ -248,7 +248,7 @@ class OrdersController extends CommonController
->addSelect([
'beds_count' => Bed::whereColumn('area_id', 'area.id')->selectRaw('count(1)'),
])
->having('beds_count', '>', 0)
->whereRaw('beds_count > 0')
->leftJoin("building", "area.building_id", "=", "building.id")
->addSelect("building.name as building_name")
// ->withCount("beds")