1
This commit is contained in:
@@ -338,7 +338,7 @@ class VehicleController
|
|||||||
$navigate = LogisticsShip::where(['status' => 0])->get();
|
$navigate = LogisticsShip::where(['status' => 0])->get();
|
||||||
$pending = LogisticsShip::where(['status' => 1])->get();
|
$pending = LogisticsShip::where(['status' => 1])->get();
|
||||||
foreach ($pending as &$val) {
|
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];
|
$result = ['navigate' => $navigate,'pending' => $pending];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user