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