|
|
|
|
@ -96,9 +96,11 @@ class StatisticsController extends CommonController
|
|
|
|
|
->whereHas("order", function ($query) use ($project_id) {
|
|
|
|
|
$query->where("project_id", $project_id);
|
|
|
|
|
})
|
|
|
|
|
->with(["order", "product", "productItem", "productParamedicLevel", "paramedic", "bed", "room", "building", "area"])
|
|
|
|
|
->with(["order", "product", "productItem", "productParamedicLevel", "paramedic" => function($query) {
|
|
|
|
|
$query->withTrashed();
|
|
|
|
|
}, "bed", "room", "building", "area"])
|
|
|
|
|
->orderBy("id");
|
|
|
|
|
}])->withTrashed()->get();
|
|
|
|
|
}])->get();
|
|
|
|
|
|
|
|
|
|
$allItems = collect();
|
|
|
|
|
foreach ($paramedics as $paramedic) {
|
|
|
|
|
|