-
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
elyambay
committed
Aug 31, 2017
0 parents
commit 47158b6
Showing
588 changed files
with
166,329 additions
and
0 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,32 @@ | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_LOG_LEVEL=debug | ||
APP_URL=http://localhost | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=homestead | ||
DB_USERNAME=homestead | ||
DB_PASSWORD=secret | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
SESSION_DRIVER=file | ||
QUEUE_DRIVER=sync | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_HOST=mailtrap.io | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_KEY= | ||
PUSHER_SECRET= |
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,3 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored |
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,7 @@ | ||
/node_modules | ||
/public/storage | ||
/vendor | ||
/.idea | ||
Homestead.json | ||
Homestead.yaml | ||
.env |
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,10 @@ | ||
Verificar que los mensajes flash no se vuelvan a mostrar con el botón atrás | ||
Hacer funcionar cambiar contraseña | ||
Probar la captura de errores desde app/Exceptions con flash message | ||
|
||
Crear menu para abrir periodo con filtro por rubro | ||
Agregar filtro por rubro y periodo en listado de encuestas | ||
|
||
Cargos consultora completar resources | ||
Verificar funcionamiento de la edición de usuarios | ||
Envío de mails |
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 extends Model | ||
{ | ||
protected $table = "areas"; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Aseguradora extends Model | ||
{ | ||
protected $table = "aseguradoras"; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Autos_marca extends Model | ||
{ | ||
protected $table = "autos_marcas"; | ||
|
||
protected $fillable = ["descripcion"]; | ||
|
||
public function modelo(){ | ||
return $this->hasMany("App\Autos_modelo"); | ||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Autos_modelo extends Model | ||
{ | ||
protected $table = "autos_modelos"; | ||
|
||
protected $fillable = ["descripcion", "autos_marca_id"]; | ||
|
||
public function modelo(){ | ||
return $this->belongsTo("App\Autos_marca"); | ||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Cabecera_encuesta extends Model | ||
{ | ||
protected $table = "cabecera_encuestas"; | ||
|
||
protected $fillable = ["empresa_id", "rubro_id", "sub_rubro_id", "cantidad_empleados", "cantidad_sucursales", "periodo", "finalizada"]; | ||
|
||
public function empresa(){ | ||
return $this->belongsTo('App\Empresa'); | ||
} | ||
|
||
public function rubro(){ | ||
return $this->belongsTo('App\Rubro'); | ||
} | ||
|
||
public function subRubro(){ | ||
return $this->belongsTo('App\Sub_rubro'); | ||
} | ||
|
||
public function encuestasCargo(){ | ||
return $this->hasMany("App\Encuestas_cargo"); | ||
} | ||
|
||
public function detalleEncuesta(){ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Cargo extends Model | ||
{ | ||
protected $table = "cargos"; | ||
|
||
protected $fillable = ["descripcion", "area_id", "nivel_id", "detalle"]; | ||
|
||
public function encuestasCargo(){ | ||
return $this->hasMany("App\Encuestas_cargo"); | ||
} | ||
|
||
public function area(){ | ||
return $this->belongsTo("App\Area"); | ||
} | ||
|
||
public function nivel(){ | ||
return $this->belongsTo("App\Nivel"); | ||
} | ||
} |
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,40 @@ | ||
<?php | ||
|
||
namespace App\Console; | ||
|
||
use Illuminate\Console\Scheduling\Schedule; | ||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | ||
|
||
class Kernel extends ConsoleKernel | ||
{ | ||
/** | ||
* The Artisan commands provided by your application. | ||
* | ||
* @var array | ||
*/ | ||
protected $commands = [ | ||
// | ||
]; | ||
|
||
/** | ||
* Define the application's command schedule. | ||
* | ||
* @param \Illuminate\Console\Scheduling\Schedule $schedule | ||
* @return void | ||
*/ | ||
protected function schedule(Schedule $schedule) | ||
{ | ||
// $schedule->command('inspire') | ||
// ->hourly(); | ||
} | ||
|
||
/** | ||
* Register the Closure based commands for the application. | ||
* | ||
* @return void | ||
*/ | ||
protected function commands() | ||
{ | ||
require base_path('routes/console.php'); | ||
} | ||
} |
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,144 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Detalle_encuesta extends Model | ||
{ | ||
protected $table = "detalle_encuestas"; | ||
|
||
protected $fillable = ['encuesta_cabecera_id', | ||
'encuestas_cargo_id', | ||
'cantidad_ocupantes', | ||
'area_id', | ||
'nivel_id', | ||
'salario_base', | ||
'cantidad_salarios', | ||
'gratificacion', | ||
'aguinaldo', | ||
'comision', | ||
'cantidad_comision', | ||
'plus_rendimiento', | ||
'cantidad_plus_rendimiento', | ||
'fallo_caja', | ||
'cantidad_fallo_caja', | ||
'fallo_caja_ext', | ||
'cantidad_fallo_caja_ext', | ||
'gratificacion_contrato', | ||
'cantidad_gratificacion_contrato', | ||
'adicional_nivel_cargo', | ||
'cantidad_adicional_nivel_cargo', | ||
'adicional_titulo', | ||
'cantidad_adicional_titulo', | ||
'adicional_amarre', | ||
'cantidad_adicional_amarre', | ||
'adicional_tipo_combustible', | ||
'cantidad_adicional_tipo_combustible', | ||
'adicional_embarque', | ||
'cantidad_adicional_embarque', | ||
'adicional_carga', | ||
'cantidad_adicional_carga', | ||
'bono_anual', | ||
'bono_anual_salarios', | ||
'incentivo_largo_plazo', | ||
'refrigerio', | ||
'costo_seguro_medico', | ||
'cobertura_seguro_medico', | ||
'costo_seguro_vida', | ||
'costo_poliza_muerte_natural', | ||
'costo_poliza_muerte_accidente', | ||
'aseguradora_id', | ||
'car_company', | ||
'movilidad_full', | ||
'flota', | ||
'autos_marca_id', | ||
'autos_modelo_id', | ||
'tarjeta_flota', | ||
'monto_movil', | ||
'seguro_movil', | ||
'mantenimiento_movil', | ||
'monto_km_recorrido', | ||
'monto_ayuda_escolar', | ||
'monto_comedor_interno', | ||
'monto_curso_idioma', | ||
'cobertura_curso_idioma', | ||
'tipo_clase_idioma', | ||
'monto_post_grado', | ||
'cobertura_post_grado', | ||
'monto_celular_corporativo', | ||
'monto_vivienda', | ||
'monto_colegiatura_hijos', | ||
'condicion_ocupante', | ||
'zona_id']; | ||
|
||
public function cabeceraEncuesta(){ | ||
return $this->belongsTo("App\Cabecera_encuesta"); | ||
} | ||
|
||
public function encuestasCargo(){ | ||
return $this->belongsTo("App\Encuestas_cargo"); | ||
} | ||
|
||
public function area(){ | ||
return $this->belongsTo("App\Area"); | ||
} | ||
|
||
public function aseguradora(){ | ||
return $this->belongsTo("App\Aseguradora"); | ||
} | ||
|
||
public function autosMarca(){ | ||
return $this->belongsTo("App\Autos_marca"); | ||
} | ||
|
||
public function autosModelo(){ | ||
return $this->belongsTo("App\Autos_modelo"); | ||
} | ||
|
||
public function zona(){ | ||
return $this->belongsTo("App\Zonas"); | ||
} | ||
|
||
public function getBeneficiosBancosAttribute(){ | ||
$beneficios = $this->refrigerio + | ||
$this->costo_seguro_medico + | ||
$this->costo_seguro_vida + | ||
//$this->costo_poliza_muerte_accidente + | ||
//$this->costo_poliza_muerte_natural + | ||
$this->monto_movil / 60 + | ||
$this->flota+ | ||
$this->seguro_movil + | ||
$this->monto_km_recorrido + | ||
$this->monto_ayuda_escolar + | ||
$this->monto_comedor_interno + | ||
$this->monto_curso_idioma * $this->cobertura_curso_idioma + | ||
$this->monto_post_grado / 24 + | ||
$this->monto_celular_corporativo + | ||
$this->monto_vivienda + | ||
$this->monto_colegiatura_hijos; | ||
|
||
return $beneficios; | ||
} | ||
|
||
public function getBeneficiosNavierasAttribute(){ | ||
$beneficios = $this->refrigerio + | ||
$this->costo_seguro_medico + | ||
$this->costo_seguro_vida + | ||
//$this->costo_poliza_muerte_accidente + | ||
//$this->costo_poliza_muerte_natural + | ||
$this->monto_movil / 60 + | ||
$this->flota+ | ||
$this->seguro_movil + | ||
$this->monto_km_recorrido + | ||
$this->monto_ayuda_escolar + | ||
$this->monto_comedor_interno + | ||
$this->monto_curso_idioma * $this->cobertura_curso_idioma + | ||
$this->monto_post_grado / 24 + | ||
$this->monto_celular_corporativo + | ||
$this->monto_vivienda + | ||
$this->monto_colegiatura_hijos; | ||
|
||
return $beneficios; | ||
} | ||
} |
Oops, something went wrong.