1
This commit is contained in:
@@ -60,6 +60,7 @@ class LocationController
|
|||||||
|
|
||||||
$locations = Location::with('vehicles')
|
$locations = Location::with('vehicles')
|
||||||
->with('fboVehicles')
|
->with('fboVehicles')
|
||||||
|
->where(['type' => 'production'])
|
||||||
->whereIn('id',$locations_id)
|
->whereIn('id',$locations_id)
|
||||||
->get()
|
->get()
|
||||||
->map(function ($location) {
|
->map(function ($location) {
|
||||||
|
|||||||
@@ -413,15 +413,12 @@ class VehicleController
|
|||||||
case 'zh':
|
case 'zh':
|
||||||
$vehicle = Vehicle::with('location')->find($id);
|
$vehicle = Vehicle::with('location')->find($id);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'en':
|
case 'en':
|
||||||
$vehicle = VehicleEn::with('location')->find($id);
|
$vehicle = VehicleEn::with('location')->find($id);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'ru':
|
case 'ru':
|
||||||
$vehicle = VehicleRu::with('location')->find($id);
|
$vehicle = VehicleRu::with('location')->find($id);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'ar':
|
case 'ar':
|
||||||
$vehicle = VehicleAr::with('location')->find($id);
|
$vehicle = VehicleAr::with('location')->find($id);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user