Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
44de0ba1
Unverified
Commit
44de0ba1
authored
Jun 10, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 10, 2020
Browse files
Merge branch 'master' into carlos
parents
68954a6f
873445f4
Changes
26
Hide whitespace changes
Inline
Side-by-side
app/Avaliador.php
View file @
44de0ba1
...
@@ -3,9 +3,11 @@
...
@@ -3,9 +3,11 @@
namespace
App
;
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Avaliador
extends
Model
class
Avaliador
extends
Model
{
{
use
SoftDeletes
;
protected
$fillable
=
[
protected
$fillable
=
[
'status'
,
'status'
,
'parecer'
,
'parecer'
,
...
...
app/Http/Controllers/AdministradorController.php
View file @
44de0ba1
...
@@ -5,7 +5,6 @@ namespace App\Http\Controllers;
...
@@ -5,7 +5,6 @@ namespace App\Http\Controllers;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
App\Administrador
;
use
App\Administrador
;
use
App\User
;
use
App\User
;
use
App\GrandeArea
;
use
App\Avaliador
;
use
App\Avaliador
;
use
App\AdministradorResponsavel
;
use
App\AdministradorResponsavel
;
use
App\Participante
;
use
App\Participante
;
...
@@ -60,9 +59,8 @@ class AdministradorController extends Controller
...
@@ -60,9 +59,8 @@ class AdministradorController extends Controller
return
view
(
'administrador.visualizarParecer'
)
->
with
([
'trabalho'
=>
$trabalho
,
'parecer'
=>
$parecer
,
'avaliador'
=>
$avaliador
]);
return
view
(
'administrador.visualizarParecer'
)
->
with
([
'trabalho'
=>
$trabalho
,
'parecer'
=>
$parecer
,
'avaliador'
=>
$avaliador
]);
}
}
public
function
create
()
{
public
function
create
()
{
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'administrador.novo_user'
);
return
view
(
'administrador.novo_user'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
}
}
public
function
salvar
(
Request
$request
)
{
public
function
salvar
(
Request
$request
)
{
...
@@ -125,10 +123,7 @@ class AdministradorController extends Controller
...
@@ -125,10 +123,7 @@ class AdministradorController extends Controller
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
...
@@ -182,8 +177,7 @@ class AdministradorController extends Controller
...
@@ -182,8 +177,7 @@ class AdministradorController extends Controller
'cargo'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'grandeArea'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'nivel'
=>
'required'
,
'nivel'
=>
'required'
,
'linkLattes'
=>
'required'
,
'linkLattes'
=>
'required'
,
...
@@ -216,10 +210,7 @@ class AdministradorController extends Controller
...
@@ -216,10 +210,7 @@ class AdministradorController extends Controller
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
grandeArea
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
...
...
app/Http/Controllers/Auth/RegisterController.php
View file @
44de0ba1
...
@@ -7,11 +7,11 @@ use App\Providers\RouteServiceProvider;
...
@@ -7,11 +7,11 @@ use App\Providers\RouteServiceProvider;
use
Illuminate\Foundation\Auth\RegistersUsers
;
use
Illuminate\Foundation\Auth\RegistersUsers
;
use
Illuminate\Support\Facades\Hash
;
use
Illuminate\Support\Facades\Hash
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Validation\Rule
;
use
App\User
;
use
App\User
;
use
App\Participante
;
use
App\Participante
;
use
App\Proponente
;
use
App\Proponente
;
use
App\GrandeArea
;
class
RegisterController
extends
Controller
class
RegisterController
extends
Controller
{
{
...
@@ -65,16 +65,19 @@ class RegisterController extends Controller
...
@@ -65,16 +65,19 @@ class RegisterController extends Controller
'instituicao'
=>
[
'required'
,
'string'
,
'max:255'
],
'instituicao'
=>
[
'required'
,
'string'
,
'max:255'
],
'cargo'
=>
[
'required'
],
'cargo'
=>
[
'required'
],
'vinculo'
=>
[
'required'
],
'vinculo'
=>
[
'required'
],
'outro'
=>
[
'required_if:vinculo,Outro'
],
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'titulacaoMaxima'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,bolsistaProdutividade,linkLattes'
],
'grandeArea'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,area,subarea,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'area'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,subarea,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,bolsistaProdutividade,linkLattes'
],
'subarea'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,subarea,linkLattes'
],
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,linkLattes'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade'
],
'bolsistaProdutividade'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'nivel'
=>
[
'required_if:bolsistaProdutividade,sim'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,bolsistaProdutividade'
],
'linkLattes'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
]);
]);
}
}
...
@@ -106,17 +109,24 @@ class RegisterController extends Controller
...
@@ -106,17 +109,24 @@ class RegisterController extends Controller
$user
->
save
();
$user
->
save
();
$proponente
=
new
Proponente
();
$proponente
=
new
Proponente
();
$proponente
->
SIAPE
=
$data
[
'SIAPE'
];
if
(
$data
[
'SIAPE'
]
!=
null
){
$proponente
->
SIAPE
=
$data
[
'SIAPE'
];
}
$proponente
->
cargo
=
$data
[
'cargo'
];
$proponente
->
cargo
=
$data
[
'cargo'
];
$proponente
->
vinculo
=
$data
[
'vinculo'
];
if
(
$data
[
'vinculo'
]
!=
'Outro'
){
$proponente
->
vinculo
=
$data
[
'vinculo'
];
}
else
{
$proponente
->
vinculo
=
$data
[
'outro'
];
}
$proponente
->
titulacaoMaxima
=
$data
[
'titulacaoMaxima'
];
$proponente
->
titulacaoMaxima
=
$data
[
'titulacaoMaxima'
];
$proponente
->
anoTitulacao
=
$data
[
'anoTitulacao'
];
$proponente
->
anoTitulacao
=
$data
[
'anoTitulacao'
];
$proponente
->
areaFormacao
=
$data
[
'areaFormacao'
];
$proponente
->
areaFormacao
=
$data
[
'areaFormacao'
];
$proponente
->
grandeArea
=
$data
[
'grandeArea'
];
$proponente
->
area
=
$data
[
'area'
];
$proponente
->
subArea
=
$data
[
'subarea'
];
$proponente
->
bolsistaProdutividade
=
$data
[
'bolsistaProdutividade'
];
$proponente
->
bolsistaProdutividade
=
$data
[
'bolsistaProdutividade'
];
$proponente
->
nivel
=
$data
[
'nivel'
];
if
(
$data
[
'bolsistaProdutividade'
]
==
'sim'
){
$proponente
->
nivel
=
$data
[
'nivel'
];
}
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
$user
->
proponentes
()
->
save
(
$proponente
);
$user
->
proponentes
()
->
save
(
$proponente
);
...
@@ -126,8 +136,7 @@ class RegisterController extends Controller
...
@@ -126,8 +136,7 @@ class RegisterController extends Controller
return
$user
;
return
$user
;
}
}
public
function
showRegistrationForm
(){
public
function
showRegistrationForm
(){
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'auth.register'
);
return
view
(
'auth.register'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
}
}
}
}
app/Http/Controllers/ProponenteController.php
View file @
44de0ba1
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Validation\Rule
;
use
Auth
;
use
Auth
;
use
App\User
;
use
App\User
;
use
App\Proponente
;
use
App\Proponente
;
use
App\GrandeArea
;
use
App\Evento
;
use
App\Evento
;
class
ProponenteController
extends
Controller
class
ProponenteController
extends
Controller
...
@@ -17,49 +18,56 @@ class ProponenteController extends Controller
...
@@ -17,49 +18,56 @@ class ProponenteController extends Controller
}
}
public
function
create
(){
public
function
create
(){
return
view
(
'proponente.cadastro'
);
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'proponente.cadastro'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);;
}
}
public
function
store
(
Request
$request
){
public
function
store
(
Request
$request
){
if
(
Auth
::
user
()
->
proponentes
==
null
)
{
if
(
Auth
()
->
user
()
->
proponentes
==
null
)
{
$validated
=
$request
->
validate
([
$validated
=
$request
->
validate
([
'senha'
=>
'required'
,
'cargo'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'vinculo'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'outro'
=>
[
'required_if:vinculo,Outro'
],
'areaFormacao'
=>
'required'
,
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,bolsistaProdutividade,linkLattes'
],
'area'
=>
'required'
,
'titulacaoMaxima'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'bolsistaProdutividade'
=>
'required'
,
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,bolsistaProdutividade,linkLattes'
],
'nivel'
=>
'required'
,
'anoTitulacao'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'linkLattes'
=>
'required'
,
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,linkLattes'
],
'bolsistaProdutividade'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'nivel'
=>
[
'required_if:bolsistaProdutividade,sim'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,bolsistaProdutividade'
],
'linkLattes'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
]);
]);
$proponente
=
new
Proponente
();
if
(
$request
[
'cargo'
]
===
"Estudante"
&&
$request
[
'vinculo'
]
!==
"Pós-doutorando"
){
$proponente
->
SIAPE
=
$request
->
SIAPE
;
return
redirect
(
route
(
'proponente.create'
))
->
with
([
'mensagem'
=>
'Operação não permitida para seu perfil'
]);
$proponente
->
cargo
=
$request
->
cargo
;
}
else
{
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
=
new
Proponente
();
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
SIAPE
=
$request
->
SIAPE
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
cargo
=
$request
->
cargo
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
area
=
"teste"
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
user_id
=
Auth
::
user
()
->
id
;
$proponente
->
user_id
=
Auth
::
user
()
->
id
;
$proponente
->
save
();
$proponente
->
save
();
$user
=
User
::
find
(
Auth
()
->
user
()
->
id
);
$user
=
User
::
find
(
Auth
()
->
user
()
->
id
);
$user
->
tipo
=
"proponente"
;
$user
->
tipo
=
"proponente"
;
$user
->
save
();
$user
->
save
();
$eventos
=
Evento
::
all
();
return
redirect
(
route
(
'admin.editais'
,
[
'eventos'
=>
$eventos
]))
->
with
([
'mensagem'
=>
'Cadastro feito com sucesso! Você já pode criar projetos'
]);
}
}
else
{
return
redirect
(
route
(
'proponente.create'
))
->
with
([
'mensagem'
=>
'Você já é proponente!'
]);
}
}
$eventos
=
Evento
::
all
();
return
redirect
(
route
(
'admin.editais'
,
[
'eventos'
=>
$eventos
]))
->
with
([
'mensagem'
=>
'Usuário cadastrado com sucesso'
]);
}
}
}
}
app/Http/Controllers/TrabalhoController.php
View file @
44de0ba1
...
@@ -505,9 +505,12 @@ class TrabalhoController extends Controller
...
@@ -505,9 +505,12 @@ class TrabalhoController extends Controller
* @param \App\Trabalho $trabalho
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
* @return \Illuminate\Http\Response
*/
*/
public
function
destroy
(
Trabalho
$trabalho
)
public
function
destroy
(
Request
$request
)
{
{
//
$trabalho
=
Trabalho
::
find
(
$request
->
id
);
//dd($trabalho);
$trabalho
->
delete
();
return
redirect
()
->
back
();
}
}
public
function
novaVersao
(
Request
$request
){
public
function
novaVersao
(
Request
$request
){
...
...
app/Participante.php
View file @
44de0ba1
...
@@ -9,7 +9,7 @@ class Participante extends Model
...
@@ -9,7 +9,7 @@ class Participante extends Model
protected
$fillable
=
[
'name'
,
'user_id'
,
'trabalho_id'
,
'participante_id'
];
protected
$fillable
=
[
'name'
,
'user_id'
,
'trabalho_id'
,
'participante_id'
];
public
function
user
(){
public
function
user
(){
return
$this
->
belongsTo
Many
(
'App\User'
);
return
$this
->
belongsTo
(
'App\User'
);
}
}
public
function
trabalhos
(){
public
function
trabalhos
(){
return
$this
->
belongsToMany
(
'App\Trabalho'
,
'trabalho_participante'
);
return
$this
->
belongsToMany
(
'App\Trabalho'
,
'trabalho_participante'
);
...
...
app/Trabalho.php
View file @
44de0ba1
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
namespace
App
;
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Trabalho
extends
Model
class
Trabalho
extends
Model
{
{
use
SoftDeletes
;
/**
/**
* The attributes that are mass assignable.
* The attributes that are mass assignable.
*
*
...
@@ -38,6 +41,8 @@ class Trabalho extends Model
...
@@ -38,6 +41,8 @@ class Trabalho extends Model
'pivot'
,
'pivot'
,
];
];
public
function
recurso
(){
public
function
recurso
(){
return
$this
->
hasMany
(
'App\Recurso'
,
'trabalhoId'
);
return
$this
->
hasMany
(
'App\Recurso'
,
'trabalhoId'
);
}
}
...
...
database/migrations/2020_02_05_123048_create_trabalhos_table.php
View file @
44de0ba1
...
@@ -36,6 +36,7 @@ class CreateTrabalhosTable extends Migration
...
@@ -36,6 +36,7 @@ class CreateTrabalhosTable extends Migration
$table
->
unsignedBigInteger
(
'evento_id'
);
$table
->
unsignedBigInteger
(
'evento_id'
);
$table
->
unsignedBigInteger
(
'coordenador_id'
);
$table
->
unsignedBigInteger
(
'coordenador_id'
);
$table
->
unsignedBigInteger
(
'proponente_id'
);
$table
->
unsignedBigInteger
(
'proponente_id'
);
$table
->
softDeletes
();
$table
->
timestamps
();
$table
->
timestamps
();
});
});
...
...
database/migrations/2020_05_20_211421_create_proponentes_table.php
View file @
44de0ba1
...
@@ -16,18 +16,15 @@ class CreateProponentesTable extends Migration
...
@@ -16,18 +16,15 @@ class CreateProponentesTable extends Migration
Schema
::
create
(
'proponentes'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'proponentes'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
bigIncrements
(
'id'
);
//$table->string('CPF');
//$table->string('CPF');
$table
->
string
(
'SIAPE'
);
$table
->
string
(
'SIAPE'
)
->
nullable
()
;
//$table->string('email')->unique();
//$table->string('email')->unique();
$table
->
string
(
'cargo'
);
$table
->
string
(
'cargo'
);
$table
->
string
(
'vinculo'
);
$table
->
string
(
'vinculo'
);
$table
->
string
(
'titulacaoMaxima'
);
$table
->
string
(
'titulacaoMaxima'
);
$table
->
string
(
'anoTitulacao'
);
$table
->
string
(
'anoTitulacao'
);
$table
->
string
(
'areaFormacao'
);
$table
->
string
(
'areaFormacao'
);
$table
->
string
(
'grandeArea'
);
$table
->
string
(
'area'
);
$table
->
string
(
'subArea'
);
$table
->
string
(
'bolsistaProdutividade'
);
$table
->
string
(
'bolsistaProdutividade'
);
$table
->
string
(
'nivel'
);
$table
->
string
(
'nivel'
)
->
nullable
()
;
$table
->
string
(
'linkLattes'
);
$table
->
string
(
'linkLattes'
);
$table
->
timestamps
();
$table
->
timestamps
();
...
...
database/migrations/2020_05_23_054805_create_avaliadors_table.php
View file @
44de0ba1
...
@@ -16,6 +16,7 @@ class CreateAvaliadorsTable extends Migration
...
@@ -16,6 +16,7 @@ class CreateAvaliadorsTable extends Migration
Schema
::
create
(
'avaliadors'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'avaliadors'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
bigIncrements
(
'id'
);
$table
->
timestamps
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
...
...
database/migrations/2020_05_26_223341_create_avaliadors_trabalhos_table.php
View file @
44de0ba1
...
@@ -21,6 +21,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
...
@@ -21,6 +21,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
string
(
'recomendacao'
)
->
nullable
();
$table
->
string
(
'recomendacao'
)
->
nullable
();
$table
->
softDeletes
();
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
...
...
database/seeds/AreaSeeder.php
View file @
44de0ba1
...
@@ -124,6 +124,54 @@ class AreaSeeder extends Seeder
...
@@ -124,6 +124,54 @@ class AreaSeeder extends Seeder
'nome'
=>
'Engenharia Civil'
,
'nome'
=>
'Engenharia Civil'
,
'grande_area_id'
=>
'3'
'grande_area_id'
=>
'3'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Minas'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Materiais e Metalúrgica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Elétrica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Mecânica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Química'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Sanitária'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Produção'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Nuclear'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Transportes'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Naval e Oceânica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Aeroespacial'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Biomédica'
,
'grande_area_id'
=>
'3'
]);
// Ciências da Saúde -----------------
// Ciências da Saúde -----------------
...
@@ -131,6 +179,39 @@ class AreaSeeder extends Seeder
...
@@ -131,6 +179,39 @@ class AreaSeeder extends Seeder
'nome'
=>
'Medicina'
,
'nome'
=>
'Medicina'
,
'grande_area_id'
=>
'4'
'grande_area_id'
=>
'4'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Odontologia'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Farmácia'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Enfermagem'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Nutrição'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Saúde Coletiva'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Fonoaudiologia'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Fisioterapia e Terapia Ocupacional'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Educação Física'
,
'grande_area_id'
=>
'4'
]);
//Ciências Agrárias ------------------
//Ciências Agrárias ------------------
...
@@ -138,6 +219,30 @@ class AreaSeeder extends Seeder
...
@@ -138,6 +219,30 @@ class AreaSeeder extends Seeder
'nome'
=>
'Agronomia'
,
'nome'
=>
'Agronomia'
,
'grande_area_id'
=>
'5'
'grande_area_id'
=>
'5'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Recursos Florestais e Engenharia Florestal'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Agrícola'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Zootecnia'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Medicina Veterinária'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Recursos Pesqueiros e Engenharia de Pesca'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência e Tecnologia de Alimentos'
,
'grande_area_id'
=>
'5'
]);
//Ciências Sociais Aplicadas ----------
//Ciências Sociais Aplicadas ----------
...
@@ -145,6 +250,54 @@ class AreaSeeder extends Seeder
...
@@ -145,6 +250,54 @@ class AreaSeeder extends Seeder
'nome'
=>
'Direito'
,
'nome'
=>
'Direito'
,
'grande_area_id'
=>
'6'
'grande_area_id'
=>
'6'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Administração'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Economia'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Arquitetura e Urbanismo'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Planejamento Urbano e Regional'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Demografia'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência da Informação'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Museologia'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Comunicação'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Serviço Social'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Economia Doméstica'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Desenho Industrial'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Turismo'
,
'grande_area_id'
=>
'6'
]);
//Ciências Humanas ----------------------
//Ciências Humanas ----------------------
...
@@ -152,13 +305,57 @@ class AreaSeeder extends Seeder
...
@@ -152,13 +305,57 @@ class AreaSeeder extends Seeder
'nome'
=>
'Filosofia'
,
'nome'
=>
'Filosofia'
,
'grande_area_id'
=>
'7'
'grande_area_id'
=>
'7'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Sociologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Antropologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Arqueologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'História'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Geografia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Psicologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Educação'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência Política'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Teologia'
,
'grande_area_id'
=>
'7'
]);
//Lingüística, Letras e Artes-----------
//Lingüística, Letras e Artes-----------
DB
::
table
(
'areas'
)
->
insert
([
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Lingüística'
,
'nome'
=>
'Lingüística'
,
'grande_area_id'
=>
'8'
'grande_area_id'
=>
'8'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Letras'
,
'grande_area_id'
=>
'8'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Artes'
,
'grande_area_id'
=>
'8'
]);
...
...
database/seeds/ParticipanteSeeder.php
View file @
44de0ba1
...
@@ -18,6 +18,12 @@ class ParticipanteSeeder extends Seeder
...
@@ -18,6 +18,12 @@ class ParticipanteSeeder extends Seeder
]);
]);
// $participante = App\Participante::find(1);
// $user = App\User::where('name','Participante1')->first();
// $user->participantes()->save($participante);
// $user->save();
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Participante2'
)
->
pluck
(
'id'
);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Participante2'
)
->
pluck
(
'id'
);
DB
::
table
(
'participantes'
)
->
insert
([
DB
::
table
(
'participantes'
)
->
insert
([
...
...
database/seeds/ProponenteSeeder.php
View file @
44de0ba1
...
@@ -22,12 +22,9 @@ class ProponenteSeeder extends Seeder
...
@@ -22,12 +22,9 @@ class ProponenteSeeder extends Seeder
//'email' => '123123123',
//'email' => '123123123',
'cargo'
=>
'123123123'
,
'cargo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'titulacaoMaxima'
=>
'
123123123
'
,
'titulacaoMaxima'
=>
'
Mestrado
'
,
'anoTitulacao'
=>
'123123123'
,
'anoTitulacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'grandeArea'
=>
'123123123'
,
'area'
=>
'123123123'
,
'subArea'
=>
'123123123'
,
'bolsistaProdutividade'
=>
'123123123'
,
'bolsistaProdutividade'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'linkLattes'
=>
'123123123'
,
'linkLattes'
=>
'123123123'
,
...
...
database/seeds/SubAreaSeeder.php
View file @
44de0ba1
...
@@ -17,61 +17,1399 @@ class SubAreaSeeder extends Seeder
...
@@ -17,61 +17,1399 @@ class SubAreaSeeder extends Seeder
'nome'
=>
'Álgebra'
,
'nome'
=>
'Álgebra'
,
'area_id'
=>
'1'
'area_id'
=>
'1'
]);
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Análise'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geometria e Topologia'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Matemática Aplicada'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Probabilidade'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Estatística'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Probabilidade e Estatística Aplicadas'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria da Computação'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Matemática Aplicada'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Matemática Aplicada'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Matemática da Computação'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Metodologia e Técnicas da Computação'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sistemas de Computação'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Astronomia de Posição e Mecânica Celeste'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Astrofísica Estelar'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Astrofísica do Meio Interestelar'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Astrofísica Extragaláctica'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Astrofísica do Sistema Solar'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Instrumentação Astronômica'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Física Geral'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Áreas Clássicas de Fenomenologia e suas Aplicações'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Física das Partículas Elementares e Campos'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Física Nuclear'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Física Atômica e Molécular'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Física dos Fluidos, Física de Plasmas e Descargas Elétricas'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Física da Matéria Condensada'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisico-Química'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Química Analítica'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geologia'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geofísica'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geodesia'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geografia Física'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Oceanografia Biológica'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Oceanografia Física'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Oceanografia Química'
,
'area_id'
=>
'1'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Oceanografia Geológica'
,
'area_id'
=>
'1'
]);
//------------------ Ciências Biológicas ----------------
//------------------ Ciências Biológicas ----------------
//Genética --------------------
//Genética --------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Quantitativa'
,
'nome'
=>
'Genética Quantitativa'
,
'area_id'
=>
'2'
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Molecular e de Microorganismos'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Vegetal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Animal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Humana e Médica'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Mutagênese'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Paleobotânica'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Morfologia Vegetal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Morfologia Vegetal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia Vegetal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Taxonomia Vegetal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fitogeografia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Botânica Aplicada'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Paleozoologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Morfologia dos Grupos Recentes'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia dos Grupos Recentes'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Comportamento Animal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Taxonomia dos Grupos Recentes'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Zoologia Aplicada'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ecologia Teórica'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ecologia de Ecossistemas'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ecologia Aplicada'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Citologia e Biologia Celular'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Embriologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Histologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Anatomia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia Geral'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia de Órgaos e Sistemas'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia do Esforço'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia Comparada'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Química de Macromoléculas'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Bioquímica dos Microorganismos'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Metabolismo e Bioenergética'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Biologia Molecular'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enzimologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Biofísica Molecular'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Biofísica Celular'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Biofísica de Processos e Sistemas'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Radiologia e Fotobiologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacologia Geral'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacologia Autonômica'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Neuropsicofarmacologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacologia Cardiorenal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacologia Cardiorenal'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacologia Bioquímica e Molecular'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Etnofarmacologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Toxicologia'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacologia Clínica'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Imunoquímica'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Imunologia Celular'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Imunogenética'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Imunologia Aplicada'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Biologia e Fisiologia dos Microorganismos'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Microbiologia Aplicada'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Protozoologia de Parasitos'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Helmintologia de Parasitos'
,
'area_id'
=>
'2'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Entomologia e Malacologia de Parasitos e Vetores'
,
'area_id'
=>
'2'
]);
//------------------ Engenharias ----------------
//Engenharia Civil --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Construção Civil'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Estruturas'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geotécnica'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia Hidráulica'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Infra-Estrutura de Transportes'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Pesquisa Mineral'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Lavra'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tratamento de Minérios'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Instalações e Equipamentos Metalúrgicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Instalações e Equipamentos Metalúrgicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Metalurgia de Transformação'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Metalurgia Fisica'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Materiais não Metálicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Materiais Elétricos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Medidas Elétricas, Magnéticas e Eletrônicas; Instrumentação'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Circuitos Elétricos, Magnéticos e Eletrônicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sistemas Elétricos de Potência'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Eletrônica Industrial, Sistemas e Controles Eletrônicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Telecomunicações'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fenômenos de Transporte'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia Térmica'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Mecânica dos Sólidos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Projetos de Máquinas'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Processos de Fabricação'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Processos Industriais de Engenharia Química'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Operações Industriais e Equipamentos para Engenharia Química'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tecnologia Química'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Recursos Hídricos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tratamento de Águas de Abastecimento e Residuárias'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Saneamento Básico'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Saneamento Ambiental'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Gerência de Produção'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Pesquisa Operacional'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia do Produto'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia Econômica'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Aplicações de Radioisotopos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fusão Controlada'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Combustível Nuclear'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tecnologia dos Reatores'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Planejamento de Transportes'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Veículos e Equipamentos de Controle'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Operações de Transportes'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Hidrodinâmica de Navios e Sistemas Oceânicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Estruturas Navais e Oceânicas'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Máquinas Marítimas'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Projeto de Navios e de Sistemas Oceânicos'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tecnologia de Construção Naval e de Sistemas Oceânicas'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Aerodinâmica'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Dinâmica de Vôo'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Estruturas Aeroespaciais'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Materiais e Processos para Engenharia Aeronáutica e Aeroespacial'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Propulsão Aeroespacial'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sistemas Aeroespaciais'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Bioengenharia'
,
'area_id'
=>
'3'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia Médica'
,
'area_id'
=>
'3'
]);
//------------------ Ciências da Saúde ----------------
//Medicina--------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Clínica Médica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Cirurgia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Saúde Materno-Infantil'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psiquiatria'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Anatomia Patológica e Patologia Clínica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Radiologia Médica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Medicina Legal e Deontologia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Cirurgia Buco-Maxilo-Facial'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ortodontia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Odontopediatria'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Periodontia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Endodontia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Radiologia Odontológica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Odontologia Social e Preventiva'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Materiais Odontológicos'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacotecnia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Farmacognosia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Análise Toxicológica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Análise e Controle e Medicamentos'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Bromatologia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enfermagem Médico-Cirúrgica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enfermagem Obstétrica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enfermagem Pediátrica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enfermagem Psiquiátrica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enfermagem de Doenças Contagiosas'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Enfermagem de Saúde Pública'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Bioquímica da Nutrição'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Dietética'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Análise Nutricional de População'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Desnutrição e Desenvolvimento Fisiológico'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Epidemiologia'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Saúde Publica'
,
'area_id'
=>
'4'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Medicina Preventiva'
,
'area_id'
=>
'4'
]);
//------------------ Ciências Agrárias ----------------
//Agronomia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ciência do Solo'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fitossanidade'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fitotecnia'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Floricultura, Parques e Jardins'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Agrometeorologia'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Extensão Rural'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Silvicultura'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Manejo Florestal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Técnicas e Operações Florestais'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tecnologia e Utilização de Produtos Florestais'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Conservação da Natureza'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Energia de Biomassa Florestal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Máquinas e Implementos Agrícolas'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia de Água e Solo'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia de Processamento de Produtos Agrícolas'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Construções Rurais e Ambiência'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Energização Rural'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ecologia dos Animais Domésticos e Etologia'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética e Melhoramento dos Animais Domésticos'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Nutrição e Alimentação Animal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Pastagem e Forragicultura'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Produção Animal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Clínica e Cirurgia Animal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Medicina Veterinária Preventiva'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Patologia Animal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Reprodução Animal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Inspeção de Produtos de Origem Animal'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Recursos Pesqueiros de Águas Interiores'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Aqüicultura '
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia de Pesca'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ciência de Alimentos'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tecnologia de Alimentos'
,
'area_id'
=>
'5'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Engenharia de Alimentos'
,
'area_id'
=>
'5'
]);
//------------------ Ciências Sociais Aplicadas ----------------
//Direito --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria do Direito'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Direito Público'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Direito Privado'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Direitos Especiais'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Administração de Empresas'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Administração Pública'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Administração de Setores Específicos'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ciências Contábeis'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria Econômica'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Métodos Quantitativos em Economia'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economia Monetária e Fiscal'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Crescimento, Flutuações e Planejamento Econômico'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economia Internacional'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economia dos Recursos Humanos'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economia Industrial'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economia do Bem-Estar Social'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economia Regional e Urbana'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Economias Agrária e dos Recursos Naturais'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fundamentos de Arquitetura e Urbanismo'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Projeto de Arquitetuta e Urbanismo'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tecnologia de Arquitetura e Urbanismo'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Paisagismo'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fundamentos do Planejamento Urbano e Regional'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Métodos e Técnicas do Planejamento Urbano e Regional'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Serviços Urbanos e Regionais'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Distribuição Espacial'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tendência Populacional'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Componentes da Dinâmica Demográfica'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Nupcialidade e Família'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Demografia Histórica'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Política Pública e População'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fontes de Dados Demográficos'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria da Informação'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Biblioteconomia'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Arquivologia'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria da Comunicação'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Jornalismo e Editoração'
,
'area_id'
=>
'6'
]);
]);
//------------------ Engenharias ----------------
//Engenharia Civil --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'
Álgebra
'
,
'nome'
=>
'
Rádio e Televisão
'
,
'area_id'
=>
'
3
'
'area_id'
=>
'
6
'
]);
]);
//------------------ Ciências da Saúde ----------------
//Medicina--------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'
Clínica Médic
a'
,
'nome'
=>
'
Relações Públicas e Propagand
a'
,
'area_id'
=>
'
4
'
'area_id'
=>
'
6
'
]);
]);
//------------------ Ciências Agrárias ----------------
//Agronomia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'C
iência do Solo
'
,
'nome'
=>
'C
omunicação Visual
'
,
'area_id'
=>
'
5
'
'area_id'
=>
'
6
'
]);
]);
//------------------ Ciências Sociais Aplicadas ----------------
//Direito --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria do Direito'
,
'nome'
=>
'Fundamentos do Serviço Social'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Serviço Social Aplicado'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Programação Visual'
,
'area_id'
=>
'6'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Desenho de Produto'
,
'area_id'
=>
'6'
'area_id'
=>
'6'
]);
]);
//------------------ Ciências Humanas ----------------
//------------------ Ciências Humanas ----------------
//Filosofia --------------
//Filosofia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
' História da Filosofia'
,
'nome'
=>
'História da Filosofia'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Metafísica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Lógica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Epistemologia'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Filosofia Brasileira'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fundamentos da Sociologia'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sociologia do Conhecimento'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sociologia do Desenvolvimento'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sociologia Urbana'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sociologia Rural'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sociologia da Saúde'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Outras Sociologias Específicas'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria Antropológica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Etnologia Indígena'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Antropologia Urbana'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Antropologia Rural'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Antropologia das Populações Afro-Brasileiras'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria e Método em Arqueologia'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Arqueologia Pré-Histórica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Arqueologia Histórica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria e Filosofia da História'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'História Antiga e Medieval'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'História Moderna e Contemporânea'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'História da América'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'História do Brasil'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'História das Ciências'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geografia Humana'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Geografia Regional'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fundamentos e Medidas da Psicologia'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia Experimental'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia Fisiológica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia Comparativa'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia Social'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia Cognitiva'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia do Desenvolvimento Humano'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia do Ensino e da Aprendizagem'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicologia do Trabalho e Organizacional'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tratamento e Prevenção Psicológica'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fundamentos da Educação'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Administração Educacional'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Planejamento e Avaliação Educacional'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ensino-Aprendizagem'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Currículo'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Orientação e Aconselhamento'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Tópicos Específicos de Educação'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria Política'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Estado e Governo'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Comportamento Político'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Políticas Públicas'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Política Internacional'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'História da Teologia'
,
'area_id'
=>
'7'
'area_id'
=>
'7'
]);
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teologia Moral'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teologia Sistemática'
,
'area_id'
=>
'7'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teologia Pastoral'
,
'area_id'
=>
'7'
]);
//------------------ Lingüística, Letras e Artes ----------------
//------------------ Lingüística, Letras e Artes ----------------
//Lingüística ------------------
//Lingüística ------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria e Análise Lingüística'
,
'nome'
=>
'Teoria e Análise Lingüística'
,
'area_id'
=>
'8'
'area_id'
=>
'8'
]);
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fisiologia da Linguagem'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Lingüística Histórica'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Sociolingüística e Dialetologia'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Psicolingüística'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Lingüística Aplicada'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Língua Portuguesa'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Línguas Estrangeiras Modernas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Línguas Clássicas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Línguas Indígenas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria Literária'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Literatura Brasileira'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Outras Literaturas Vernáculas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Literaturas Estrangeiras Modernas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Literaturas Estrangeiras Modernas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Literaturas Clássicas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Literatura Comparada'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fundamentos e Crítica das Artes'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Artes Plásticas'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Música'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Dança'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teatro'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ópera'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Fotografia'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Cinema'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Artes do Vídeo'
,
'area_id'
=>
'8'
]);
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Educação Artística'
,
'area_id'
=>
'8'
]);
}
}
}
}
resources/lang/en/validation.php
View file @
44de0ba1
...
@@ -56,10 +56,10 @@ return [
...
@@ -56,10 +56,10 @@ return [
'not_in'
=>
'O :attribute selecionado é inválido.'
,
'not_in'
=>
'O :attribute selecionado é inválido.'
,
'numeric'
=>
':Attribute deve ser um número.'
,
'numeric'
=>
':Attribute deve ser um número.'
,
'regex'
=>
'O formato de :attribute é inválido.'
,
'regex'
=>
'O formato de :attribute é inválido.'
,
'required'
=>
'O campo
:attribute
é obrigatório.'
,
'required'
=>
'O campo é obrigatório.'
,
'required_if'
=>
'O campo
:attribute
é obrigatório
quando :other é :value
.'
,
'required_if'
=>
'O campo é obrigatório.'
,
'required_unless'
=>
'O :attribute é necessário a menos que :other esteja em :values.'
,
'required_unless'
=>
'O :attribute é necessário a menos que :other esteja em :values.'
,
'required_with'
=>
'O campo
:attribute
é obrigatório
quando :values está presente
.'
,
'required_with'
=>
'O campo é obrigatório.'
,
'required_with_all'
=>
'O campo :attribute é obrigatório quando :values estão presentes.'
,
'required_with_all'
=>
'O campo :attribute é obrigatório quando :values estão presentes.'
,
'required_without'
=>
'O campo :attribute é obrigatório quando :values não está presente.'
,
'required_without'
=>
'O campo :attribute é obrigatório quando :values não está presente.'
,
'required_without_all'
=>
'O campo :attribute é obrigatório quando nenhum destes estão presentes: :values.'
,
'required_without_all'
=>
'O campo :attribute é obrigatório quando nenhum destes estão presentes: :values.'
,
...
...
resources/views/administrador/editais.blade.php
View file @
44de0ba1
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
{{
$evento
->
nome
}}
{{
$evento
->
nome
}}
</
a
>
</
a
>
</
td
>
</
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
>
<
td
>
@
if
(
auth
()
->
user
()
->
id
==
$evento
->
criador_id
)
@
if
(
auth
()
->
user
()
->
id
==
$evento
->
criador_id
)
<
div
class
=
"btn-group dropright dropdown-options"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
...
@@ -82,7 +82,6 @@
...
@@ -82,7 +82,6 @@
<
thead
>
<
thead
>
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
...
@@ -96,8 +95,7 @@
...
@@ -96,8 +95,7 @@
{{
$evento
->
nome
}}
{{
$evento
->
nome
}}
</
a
>
</
a
>
</
td
>
</
td
>
<
td
></
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
...
...
resources/views/administrador/editar_user.blade.php
View file @
44de0ba1
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
<
option
value
=
"administrador"
>
Administrador
</
option
>
<
option
value
=
"administrador"
>
Administrador
</
option
>
@
endif
@
endif
@
if
(
$user
->
tipo
==
'administradorResponsavel'
)
@
if
(
$user
->
tipo
==
'administradorResponsavel'
)
<
option
value
=
"administradorResponsavel"
selected
>
Administrador
Respons
a
vel
</
option
>
<
option
value
=
"administradorResponsavel"
selected
>
Administrador
Respons
á
vel
</
option
>
@
else
@
else
<
option
value
=
"administradorResponsavel"
>
Administrador
Respons
a
vel
</
option
>
<
option
value
=
"administradorResponsavel"
>
Administrador
Respons
á
vel
</
option
>
@
endif
@
endif
@
endif
@
endif
@
if
(
$user
->
tipo
==
'avaliador'
)
@
if
(
$user
->
tipo
==
'avaliador'
)
...
@@ -112,25 +112,29 @@
...
@@ -112,25 +112,29 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
i
nculo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
í
nculo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->titulacaoMaxima}
}
"
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Doutorado"
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Mestrado"
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Especialização"
)
selected
@
endif
value
=
"Especialização"
>
Especialização
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Graduação"
)
selected
@
endif
value
=
"Graduação"
>
Graduação
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Técnico"
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
</
select
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'
A
rea Formação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'
Á
rea Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
i
vel'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
í
vel'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
...
@@ -144,25 +148,22 @@
...
@@ -144,25 +148,22 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
""
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
input
value
=
""
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
i
nculo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
í
nculo'
)
}}
</
label
>
<
input
value
=
""
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
input
value
=
""
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação M
a
xima'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação M
á
xima'
)
}}
</
label
>
<
input
value
=
""
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
input
value
=
""
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
""
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
""
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'
A
rea Formação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'
Á
rea Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
""
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
""
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
input
value
=
""
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
i
vel'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
í
vel'
)
}}
</
label
>
<
input
value
=
""
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
input
value
=
""
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
...
...
resources/views/administrador/novo_user.blade.php
View file @
44de0ba1
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
<
div
>
<
div
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
select
name
=
"tipo"
id
=
"tipo"
onchange
=
"mudar()"
>
<
select
name
=
"tipo"
id
=
"tipo"
onchange
=
"mudar()"
class
=
"form-control"
>
@
if
(
auth
()
->
user
()
->
tipo
==
'administrador'
)
@
if
(
auth
()
->
user
()
->
tipo
==
'administrador'
)
<
option
value
=
"administrador"
>
Administrador
</
option
>
<
option
value
=
"administrador"
>
Administrador
</
option
>
<
option
value
=
"administradorResponsavel"
>
Administrador
respons
a
vel
</
option
>
<
option
value
=
"administradorResponsavel"
>
Administrador
respons
á
vel
</
option
>
@
endif
@
endif
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
<
option
value
=
"proponente"
>
Proponente
</
option
>
<
option
value
=
"proponente"
>
Proponente
</
option
>
...
@@ -96,8 +96,9 @@
...
@@ -96,8 +96,9 @@
@
enderror
@
enderror
<
div
>
<
div
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vinculo'
)
}}
</
label
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vínculo'
)
}}
</
label
>
<
select
name
=
"vinculo"
id
=
""
>
<
select
name
=
"vinculo"
id
=
""
class
=
"form-control"
>
<
option
value
=
""
disabled
selected
hidden
>--
Vínculo
--</
option
>
<
option
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
...
@@ -105,8 +106,15 @@
...
@@ -105,8 +106,15 @@
</
select
>
</
select
>
</
div
>
</
div
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
</
label
>
<
input
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
""
autocomplete
=
"nome"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
value
=
"Especialização"
>
Especialização
</
option
>
<
option
value
=
"Graduação"
>
Graduação
</
option
>
<
option
value
=
"Técnico"
>
Técnico
</
option
>
</
select
>
@
error
(
'titulacaoMaxima'
)
@
error
(
'titulacaoMaxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -123,37 +131,28 @@
...
@@ -123,37 +131,28 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
A
rea de Formação'
)
}}
</
label
>
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
Á
rea de Formação'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
@
error
(
'areaFormacao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
@
enderror
@
enderror
<
div
>
<
label
for
=
"area"
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
select
name
=
"area"
id
=
""
>
@
foreach
(
$grandeAreas
as
$area
)
<
option
value
=
"
{
{$area->nome}}">{{$area->nome}
}
</option>
@endforeach
</select>
</div>
<
div
>
<
div
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade'
)
}}
</
label
><
br
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade'
)
}}
</
label
><
br
>
<select name="
bolsistaProdutividade
" id="">
<
select
name
=
"bolsistaProdutividade"
id
=
""
class
=
"form-control"
>
<option value="
sim
">Sim
</option>
<
option
value
=
"
"
disabled
selected
hidden
>--
Bolsista
--
</
option
>
<
option
value
=
"nao"
>
Não
</
option
>
<
option
value
=
"nao"
>
Não
</
option
>
<
option
value
=
"sim"
>
Sim
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
<
div
>
<
div
>
<label for="
nivel
" class="
col
-
form
-
label
">{{ __('Nivel') }}</label>
<
label
for
=
"nivel"
class
=
"col-form-label"
>
{{
__
(
'Nível'
)
}}
</
label
>
<select name="
nivel
" id="">
<
select
name
=
"nivel"
id
=
""
class
=
"form-control"
>
<
option
value
=
""
disabled
selected
hidden
>--
Nível
--</
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1D"
>
1
B
</
option
>
<
option
value
=
"1D"
>
1
B
</
option
>
...
@@ -162,7 +161,7 @@
...
@@ -162,7 +161,7 @@
</
select
>
</
select
>
</
div
>
</
div
>
<label for="
linkLattes
" class="
col
-
form
-
label
">{{ __('Link do curr
i
cul
um l
attes') }}</label>
<
label
for
=
"linkLattes"
class
=
"col-form-label"
>
{{
__
(
'Link do curr
í
cul
o L
attes'
)
}}
</
label
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
""
autocomplete
=
"nome"
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'linkLattes'
)
@
error
(
'linkLattes'
)
...
...
resources/views/auth/register.blade.php
View file @
44de0ba1
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
Email
|
Senha
|
Confirmar
Senha
--
}}
{{
--
Email
|
Senha
|
Confirmar
Senha
--
}}
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"password"
class
=
"col-form-label"
>
{{
__
(
'Senha*'
)
}}
</
label
>
<
label
for
=
"password"
class
=
"col-form-label"
>
{{
__
(
'Senha*'
)
}}
</
label
>
...
@@ -93,16 +93,17 @@
...
@@ -93,16 +93,17 @@
<
label
for
=
"password-confirm"
class
=
"col-form-label"
>
{{
__
(
'Confirme a Senha*'
)
}}
</
label
>
<
label
for
=
"password-confirm"
class
=
"col-form-label"
>
{{
__
(
'Confirme a Senha*'
)
}}
</
label
>
<
input
id
=
"password-confirm"
type
=
"password"
class
=
"form-control"
name
=
"password_confirmation"
required
autocomplete
=
"new-password"
>
<
input
id
=
"password-confirm"
type
=
"password"
class
=
"form-control"
name
=
"password_confirmation"
required
autocomplete
=
"new-password"
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"cargo"
class
=
"col-form-label"
>
{{
__
(
'Cargo*'
)
}}
</
label
>
<
label
for
=
"cargo"
class
=
"col-form-label"
>
{{
__
(
'Cargo*'
)
}}
</
label
>
<
select
id
=
"cargo"
name
=
"cargo"
class
=
"form-control"
onchange
=
"mudar()"
>
<
select
id
=
"cargo"
name
=
"cargo"
class
=
"form-control @error('cargo') is-invalid @enderror"
onchange
=
"mudar()"
>
<
option
@
if
(
old
(
'cargo'
)
==
'Professor'
)
selected
@
endif
value
=
"Professor"
>
Professor
</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Cargo
--</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Técnico'
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Professor'
)
selected
@
endif
value
=
"Professor"
>
Professor
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Estudante'
)
selected
@
endif
value
=
"Estudante"
>
Estudante
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Técnico'
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Estudante'
)
selected
@
endif
value
=
"Estudante"
>
Estudante
</
option
>
</
select
>
</
select
>
@
error
(
'cargo'
)
@
error
(
'cargo'
)
...
@@ -113,40 +114,47 @@
...
@@ -113,40 +114,47 @@
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vinculo*'
)
}}
</
label
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vínculo*'
)
}}
</
label
>
<
select
name
=
"vinculo"
id
=
"vinculo"
class
=
"form-control"
onchange
=
"mudar()"
>
<
select
name
=
"vinculo"
id
=
"vinculo"
class
=
"form-control @error('vinculo') is-invalid @enderror"
onchange
=
"mudar()"
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor na ativa'
)
selected
@
endif
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Vínculo
--</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor aposentado'
)
selected
@
endif
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor na ativa'
)
selected
@
endif
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Professor visitante'
)
selected
@
endif
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor aposentado'
)
selected
@
endif
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Pós-doutorando'
)
selected
@
endif
value
=
"Pós-doutorando"
>
Pós
-
doutorando
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Professor visitante'
)
selected
@
endif
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Outro'
)
selected
@
endif
value
=
"Outro"
>
Outro
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Pós-doutorando'
)
selected
@
endif
value
=
"Pós-doutorando"
>
Pós
-
doutorando
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Outro'
)
selected
@
endif
value
=
"Outro"
>
Outro
</
option
>
</
select
>
</
select
>
@
error
(
'vinculo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"display: none;"
id
=
"divOutro"
>
<
div
class
=
"col-md-4"
style
=
"display: block;"
id
=
"divOutro"
>
<
label
for
=
"outro"
class
=
"col-form-label"
>
{{
__
(
'Qual?'
)
}}
</
label
>
<
label
for
=
"outro"
class
=
"col-form-label"
>
{{
__
(
'Qual?*'
)
}}
</
label
>
<
input
id
=
"outro"
type
=
"text"
class
=
"form-control @error('outro') is-invalid @enderror"
name
=
"outro"
>
<
input
id
=
"outro"
type
=
"text"
class
=
"form-control @error('outro') is-invalid @enderror"
name
=
"outro"
value
=
"{{ old('outro') }}"
>
@
error
(
'outro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
id
=
"proponente"
style
=
"display: block;"
>
<
div
id
=
"proponente"
style
=
"display: block;"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"SIAPE"
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
input
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
value
=
"{{ old('SIAPE') }}"
autocomplete
=
"nome"
>
@
error
(
'SIAPE'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima*'
)
}}
</
label
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima*'
)
}}
</
label
>
<
input
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
"{{ old('titulacaoMaxima') }}"
autocomplete
=
"nome"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
"{{ old('titulacaoMaxima') }}"
autocomplete
=
"nome"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Doutorado'
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Mestrado'
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Especialização'
)
selected
@
endif
value
=
"Especialização"
>
Especialização
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Graduação'
)
selected
@
endif
value
=
"Graduação"
>
Graduação
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Técnico'
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
</
select
>
@
error
(
'titulacaoMaxima'
)
@
error
(
'titulacaoMaxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -165,11 +173,8 @@
...
@@ -165,11 +173,8 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
A
rea de Formação*'
)
}}
</
label
>
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
Á
rea de Formação*'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
"{{ old('areaFormacao') }}"
autocomplete
=
"nome"
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
"{{ old('areaFormacao') }}"
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
@
error
(
'areaFormacao'
)
...
@@ -178,35 +183,15 @@
...
@@ -178,35 +183,15 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área*'
)
}}
</
label
>
<
select
name
=
"grandeArea"
id
=
""
class
=
"form-control"
>
@
foreach
(
$grandeAreas
as
$area
)
<
option
@
if
(
old
(
'grandeArea'
)
==
$area
->
nome
)
selected
@
endif
value
=
"
{
{$area->nome}}">{{$area->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
md
-
4
">
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área*') }}</label>
<input id="
area
" type="
text
" class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" name="
area
" value="
{{
old
(
'area'
)
}}
">
@error('area')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<label for="
subarea
" class="
col
-
form
-
label
">{{ __('S
ubárea*
') }}</label>
<
label
for
=
"
SIAPE
"
class
=
"col-form-label"
>
{{
__
(
'S
IAPE
'
)
}}
</
label
>
<input id="
subarea
" type="
text
" class="
form
-
control
@
error
(
'
subarea
'
)
is
-
invalid
@
enderror
" name="
subarea
" value="
{{
old
(
'
subarea'
)
}}
">
<
input
id
=
"
SIAPE
"
type
=
"text"
class
=
"form-control @error('
SIAPE
') is-invalid @enderror"
name
=
"
SIAPE
"
value
=
"{{ old('
SIAPE') }}"
autocomplete
=
"nome
"
>
@error('
subarea
')
@
error
(
'
SIAPE
'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
...
@@ -214,7 +199,7 @@
...
@@ -214,7 +199,7 @@
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<label for="
linkLattes
" class="
col
-
form
-
label
">{{ __('Link do curr
i
cul
um l
attes*') }}</label>
<
label
for
=
"linkLattes"
class
=
"col-form-label"
>
{{
__
(
'Link do curr
í
cul
o L
attes*'
)
}}
</
label
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
"{{ old('linkLattes') }}"
autocomplete
=
"nome"
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
"{{ old('linkLattes') }}"
autocomplete
=
"nome"
>
@
error
(
'linkLattes'
)
@
error
(
'linkLattes'
)
...
@@ -226,25 +211,37 @@
...
@@ -226,25 +211,37 @@
<
div
class
=
"col-md-3"
>
<
div
class
=
"col-md-3"
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade*'
)
}}
</
label
><
br
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade*'
)
}}
</
label
><
br
>
<select name="
bolsistaProdutividade
" id="
bolsistaProdutividade
" class="
form
-
control
" onchange="
mudarNivel
()
">
<
select
name
=
"bolsistaProdutividade"
id
=
"bolsistaProdutividade"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
onchange
=
"mudarNivel()"
>
<option value="
sim
">Sim</option>
<
option
value
=
""
disabled
selected
hidden
>--
Bolsista
--</
option
>
<option value="
nao
">Não</option>
<
option
@
if
(
old
(
'bolsistaProdutividade'
)
==
'nao'
)
selected
@
endif
value
=
"nao"
>
Não
</
option
>
<
option
@
if
(
old
(
'bolsistaProdutividade'
)
==
'sim'
)
selected
@
endif
value
=
"sim"
>
Sim
</
option
>
</
select
>
</
select
>
@
error
(
'bolsistaProdutividade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-1"
id
=
"nivelInput"
style
=
"display: block;"
>
<
div
class
=
"col-md-1"
id
=
"nivelInput"
style
=
"display: block;"
>
<label for="
nivel
" class="
col
-
form
-
label
">{{ __('Nivel') }}</label>
<
label
for
=
"nivel"
class
=
"col-form-label"
>
{{
__
(
'Nível*'
)
}}
</
label
>
<select name="
nivel
" id="
nivel
" class="
form
-
control
">
<
select
name
=
"nivel"
id
=
"nivel"
class
=
"form-control @error('nivel') is-invalid @enderror"
>
<
option
value
=
""
disabled
selected
hidden
></
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1B"
>
1
B
</
option
>
<
option
value
=
"1B"
>
1
B
</
option
>
<
option
value
=
"1C"
>
1
C
</
option
>
<
option
value
=
"1C"
>
1
C
</
option
>
<
option
value
=
"1A"
>
1
A
</
option
>
<
option
value
=
"1A"
>
1
A
</
option
>
</
select
>
</
select
>
</div>
@
error
(
'nivel'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
...
@@ -291,27 +288,30 @@
...
@@ -291,27 +288,30 @@
outroVinculo
();
outroVinculo
();
}
}
function outroVinculo(){
function
outroVinculo
()
{
var
comboBoxVinculo
=
document
.
getElementById
(
'vinculo'
);
var
comboBoxVinculo
=
document
.
getElementById
(
'vinculo'
);
var
divOutro
=
document
.
getElementById
(
'divOutro'
);
var
divOutro
=
document
.
getElementById
(
'divOutro'
);
if(comboBoxVinculo.value === "
Outro
"){
if
(
comboBoxVinculo
.
value
===
"Outro"
)
{
divOutro
.
style
.
display
=
"block"
;
divOutro
.
style
.
display
=
"block"
;
}else{
}
else
{
divOutro
.
style
.
display
=
"none"
;
divOutro
.
style
.
display
=
"none"
;
}
}
}
}
function mudarNivel(){
window
.
onload
=
mudarNivel
();
window
.
onload
=
outroVinculo
();
window
.
onload
=
mudar
();
function
mudarNivel
()
{
var
bolsista
=
document
.
getElementById
(
'bolsistaProdutividade'
);
var
bolsista
=
document
.
getElementById
(
'bolsistaProdutividade'
);
var
nivel
=
document
.
getElementById
(
'nivelInput'
);
var
nivel
=
document
.
getElementById
(
'nivelInput'
);
if(bolsista.value === "
sim
"){
if
(
bolsista
.
value
===
"sim"
)
{
nivel
.
style
.
display
=
"block"
;
nivel
.
style
.
display
=
"block"
;
}else{
}
else
{
nivel
.
style
.
display
=
"none"
;
nivel
.
style
.
display
=
"none"
;
}
}
console.log("
a
");
}
}
</
script
>
</
script
>
@
endsection
@
endsection
\ No newline at end of file
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment