diff --git a/app/Http/Controllers/CargosController.php b/app/Http/Controllers/CargosController.php index cbcc9ad..abd5274 100644 --- a/app/Http/Controllers/CargosController.php +++ b/app/Http/Controllers/CargosController.php @@ -136,7 +136,11 @@ public function destroy($id){ } public function getDetalle(Request $request){ - $cargo = Cargo::find($request->id); + if(app()->getLocale() == "en"){ + $cargo = Cargo_en::find($request->id); + }else{ + $cargo = Cargo::find($request->id); + } return $cargo->detalle; }