|
|
|
@ -251,7 +251,7 @@ class OrdersController extends CommonController
|
|
|
|
->having('beds_count', '>', 0)
|
|
|
|
->having('beds_count', '>', 0)
|
|
|
|
->leftJoin("building", "area.building_id", "=", "building.id")
|
|
|
|
->leftJoin("building", "area.building_id", "=", "building.id")
|
|
|
|
->addSelect("building.name as building_name")
|
|
|
|
->addSelect("building.name as building_name")
|
|
|
|
->withCount("beds")
|
|
|
|
// ->withCount("beds")
|
|
|
|
->paginate(10);
|
|
|
|
->paginate(10);
|
|
|
|
// if ($has_ongoing_order) {
|
|
|
|
// if ($has_ongoing_order) {
|
|
|
|
// $areas = $areas->filter(function ($item) {
|
|
|
|
// $areas = $areas->filter(function ($item) {
|
|
|
|
|