This commit is contained in:
2025-06-10 17:54:57 +08:00
parent d373a66a35
commit 9fd2b78a9e
+1 -1
View File
@@ -338,7 +338,7 @@ class VehicleController
$navigate = LogisticsShip::where(['status' => 0])->get();
$pending = LogisticsShip::where(['status' => 1])->get();
foreach ($pending as &$val) {
$pending['count'] = Vehicle::where(['locations_id' => $val->id])->count();
$val['count'] = Vehicle::where(['ship_id' => $val->id])->count();
}
$result = ['navigate' => $navigate,'pending' => $pending];