-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
1,855 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Area_en extends Model | ||
{ | ||
protected $table = "areas_en"; | ||
|
||
protected $fillable = ["descripcion"]; | ||
|
||
public function detalleEncuestas(){ | ||
return $this->hasMany("App\Detalle_encuesta"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Cargo_en extends Model | ||
{ | ||
protected $table = "cargos_en"; | ||
|
||
protected $fillable = ["descripcion", "area_id", "nivel_id", "is_temporal", "detalle"]; | ||
|
||
public function encuestasCargo(){ | ||
return $this->hasMany("App\Encuestas_cargo"); | ||
} | ||
|
||
public function cargosRubro(){ | ||
return $this->hasMany("App\Cargos_rubro"); | ||
} | ||
|
||
public function area(){ | ||
return $this->belongsTo("App\Area"); | ||
} | ||
|
||
public function nivel(){ | ||
return $this->belongsTo("App\Nivel_en"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use Illuminate\Support\Facades\Lang; | ||
use Session; | ||
|
||
|
||
class LanguageController extends Controller | ||
{ | ||
public function switchLang($lang){ | ||
|
||
if (array_key_exists($lang, config('languages'))) { | ||
session()->put('applocale', $lang); | ||
} | ||
return redirect()->back(); | ||
} | ||
|
||
public function switchLangReport($lang){ | ||
if (array_key_exists($lang, config('languages'))) { | ||
session()->put('applocale', $lang); | ||
} | ||
return "true"; | ||
} | ||
} |
Oops, something went wrong.