diff --git a/app/Http/Controllers/BeneficiosAdminController.php b/app/Http/Controllers/BeneficiosAdminController.php index 66d4b16..245e5b0 100644 --- a/app/Http/Controllers/BeneficiosAdminController.php +++ b/app/Http/Controllers/BeneficiosAdminController.php @@ -272,6 +272,7 @@ public function storeConclusion(Request $request){ $dbData->rubro_id = $request->rubro; $dbData->periodo = $request->periodo; $dbData->conclusion = $request->conclusion; + $dbData->conclusion_en = $request->conclusion_en; $dbData->save(); return redirect()->route('home'); @@ -287,7 +288,7 @@ public function getConclusion(Request $request) if(!$dbData){ return null; } - return $dbData->conclusion; + return $dbData; } public function panel($id){ diff --git a/app/beneficios_conclusion_abierta.php b/app/beneficios_conclusion_abierta.php index 3c3ece9..e229a77 100644 --- a/app/beneficios_conclusion_abierta.php +++ b/app/beneficios_conclusion_abierta.php @@ -8,7 +8,7 @@ class beneficios_conclusion_abierta extends Model { protected $table = "beneficios_conclusion_abiertas"; - protected $fillable = ["beneficios_pregunta_id", "rubro_id", "conclusion", "periodo"]; + protected $fillable = ["beneficios_pregunta_id", "rubro_id", "conclusion", "conclusion_en", "periodo"]; public function pregunta(){ return $this->belongsTo("App\beneficios_pregunta"); diff --git a/resources/views/beneficios_admin/create_conclusion.blade.php b/resources/views/beneficios_admin/create_conclusion.blade.php index 161b2a9..794d588 100644 --- a/resources/views/beneficios_admin/create_conclusion.blade.php +++ b/resources/views/beneficios_admin/create_conclusion.blade.php @@ -51,6 +51,12 @@ +