|
|
|
@ -100,7 +100,7 @@ class OrdersController extends CommonController
|
|
|
|
$query->with(["room", "building", "area"]);
|
|
|
|
$query->with(["room", "building", "area"]);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"orderAgreements" => function ($query) {
|
|
|
|
"orderAgreements" => function ($query) {
|
|
|
|
$query->orderBy("id", "desc");
|
|
|
|
$query->with('file')->orderBy("id", "desc");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
])->where('status', $status)
|
|
|
|
])->where('status', $status)
|
|
|
|
->where(function ($query) use ($building_id, $area_id) {
|
|
|
|
->where(function ($query) use ($building_id, $area_id) {
|
|
|
|
|