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
37220c29
Commit
37220c29
authored
May 22, 2020
by
Gabriel-31415
Browse files
funcionalidade submeter edital
parent
381d10f5
Changes
41
Expand all
Hide whitespace changes
Inline
Side-by-side
database/migrations/2020_05_2
0_211049_create_pro_reitor
s_table.php
→
database/migrations/2020_05_2
2_031644_create_grande_area
s_table.php
View file @
37220c29
...
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
Create
ProReitor
sTable
extends
Migration
class
Create
GrandeArea
sTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,8 +13,9 @@ class CreateProReitorsTable extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'
pro_reitor
s'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'
grande_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
...
...
@@ -26,6 +27,6 @@ class CreateProReitorsTable extends Migration
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'
pro_reitor
s'
);
Schema
::
dropIfExists
(
'
grande_area
s'
);
}
}
database/migrations/2020_05_2
0_210104_create_reitor
s_table.php
→
database/migrations/2020_05_2
2_031838_create_sub_area
s_table.php
View file @
37220c29
...
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
Create
Reitor
sTable
extends
Migration
class
Create
SubArea
sTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,8 +13,9 @@ class CreateReitorsTable extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'
reitor
s'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'
sub_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
"nome"
);
$table
->
timestamps
();
});
}
...
...
@@ -26,6 +27,6 @@ class CreateReitorsTable extends Migration
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'
reitor
s'
);
Schema
::
dropIfExists
(
'
sub_area
s'
);
}
}
database/migrations/2020_05_22_032714_add_grande_areas_to_areas_table.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddGrandeAreasToAreasTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'areas'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'grande_area_id'
);
$table
->
foreign
(
'grande_area_id'
)
->
references
(
'id'
)
->
on
(
'grande_areas'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'areas'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'areas_grande_area_id_foreign'
);
$table
->
dropColumn
(
'grande_area_id'
);
});
}
}
database/migrations/2020_05_2
0_211027
_add_
user
s_to_
reitor
s_table.php
→
database/migrations/2020_05_2
2_032753
_add_
area
s_to_
sub_area
s_table.php
View file @
37220c29
...
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
Add
UsersToReitor
sTable
extends
Migration
class
Add
AreasToSubArea
sTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,9 +13,9 @@ class AddUsersToReitorsTable extends Migration
*/
public
function
up
()
{
Schema
::
table
(
'
reitor
s'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'
user
_id'
);
$table
->
foreign
(
'
user
_id'
)
->
references
(
'id'
)
->
on
(
'
user
s'
);
Schema
::
table
(
'
sub_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'
area
_id'
);
$table
->
foreign
(
'
area
_id'
)
->
references
(
'id'
)
->
on
(
'
area
s'
);
});
}
...
...
@@ -26,9 +26,9 @@ class AddUsersToReitorsTable extends Migration
*/
public
function
down
()
{
Schema
::
table
(
'
reitor
s'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'
reitors_user
_id_foreign'
);
$table
->
dropColumn
(
'
user
_id'
);
Schema
::
table
(
'
sub_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'
sub_areas_area
_id_foreign'
);
$table
->
dropColumn
(
'
area
_id'
);
});
}
}
database/migrations/2020_05_22_044450_create_funcao_participantes_table.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateFuncaoParticipantesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'funcao_participantes'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'funcao_participantes'
);
}
}
database/migrations/2020_05_22_044629_add_users_to_funcao_participantes_table.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddUsersToFuncaoParticipantesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'funcao_participante_id'
)
->
nullable
();;
$table
->
foreign
(
'funcao_participante_id'
)
->
references
(
'id'
)
->
on
(
'funcao_participantes'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'users_funcao_participante_id_foreign'
);
$table
->
dropColumn
(
'funcao_participante_id'
);
});
}
}
database/seeds/AdministradorResponsavelSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
AdministradorResponsavelSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'AdministradorResponsavel'
)
->
pluck
(
'id'
);
DB
::
table
(
'administrador_responsavels'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
]);
}
}
database/seeds/AdministradorSeeder.php
View file @
37220c29
...
...
@@ -12,12 +12,11 @@ class AdministradorSeeder extends Seeder
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Administrador'
)
->
pluck
(
'id'
);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Administrador'
)
->
pluck
(
'id'
);
DB
::
table
(
'administradors'
)
->
insert
([
'matricula'
=>
'123456789'
,
'user_id'
=>
$user_id
[
0
],
]);
}
}
database/seeds/AreaSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
AreaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Matemática'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Probabilidade e Estatística'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência da Computação'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Astronomia'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Física'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Química'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'GeoCiências'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Oceanografia'
,
'grande_area_id'
=>
'1'
]);
// Ciências Biológicas ----------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Biologia Geral'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Genética'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Botânica'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Zoologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ecologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Morfologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Bioquímica'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Fisiologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Biofísica'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Farmacologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Imunologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Microbiologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Parasitologia'
,
'grande_area_id'
=>
'2'
]);
//Engenharias --------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Civil'
,
'grande_area_id'
=>
'3'
]);
// Ciências da Saúde -----------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Medicina'
,
'grande_area_id'
=>
'4'
]);
//Ciências Agrárias ------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Agronomia'
,
'grande_area_id'
=>
'5'
]);
//Ciências Sociais Aplicadas ----------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Direito'
,
'grande_area_id'
=>
'6'
]);
//Ciências Humanas ----------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Filosofia'
,
'grande_area_id'
=>
'7'
]);
//Lingüística, Letras e Artes-----------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Lingüística'
,
'grande_area_id'
=>
'8'
]);
}
}
database/seeds/DatabaseSeeder.php
View file @
37220c29
...
...
@@ -11,49 +11,56 @@ class DatabaseSeeder extends Seeder
*/
public
function
run
()
{
$this
->
call
(
UsuarioSeeder
::
class
);
$this
->
call
(
AdministradorSeeder
::
class
);
$this
->
call
(
AdministradorResponsavelSeeder
::
class
);
$this
->
call
(
GrandeAreaSeeder
::
class
);
$this
->
call
(
AreaSeeder
::
class
);
$this
->
call
(
SubAreaSeeder
::
class
);
$this
->
call
(
FuncaoParticipanteSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
DB
::
table
(
'enderecos'
)
->
insert
([
// 1
'rua'
=>
'a'
,
'numero'
=>
1
,
'bairro'
=>
'b'
,
'cidade'
=>
'c'
,
'uf'
=>
'd'
,
'cep'
=>
2
,
]);
DB
::
table
(
'enderecos'
)
->
insert
([
// 1
'rua'
=>
'R. Manoel Clemente'
,
'numero'
=>
'161'
,
'bairro'
=>
'Santo Antônio'
,
'cidade'
=>
'Garanhuns'
,
'uf'
=>
'PE'
,
'cep'
=>
'55293-040'
,
]);
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'coord'
,
'email'
=>
'teste@teste'
,
'password'
=>
bcrypt
(
'12345678'
),
'cpf'
=>
123132131
,
'instituicao'
=>
'd'
,
'celular'
=>
2
,
'especProfissional'
=>
'e'
,
'enderecoId'
=>
1
,
'email_verified_at'
=>
'2020-02-15'
,
]);
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'Felipe'
,
'email'
=>
'felipeaquac@yahoo.com.br'
,
'password'
=>
bcrypt
(
'guedes80'
),
'cpf'
=>
'999.999.999-99'
,
'instituicao'
=>
'UFAPE'
,
'celular'
=>
'(99) 99999-9999'
,
'especProfissional'
=>
' '
,
'enderecoId'
=>
1
,
'email_verified_at'
=>
'2020-02-15'
,
]);
//
DB::table('enderecos')->insert([ // 1
//
'rua' => 'a',
//
'numero' => 1,
//
'bairro' => 'b',
//
'cidade' => 'c',
//
'uf' => 'd',
//
'cep' => 2,
//
]);
//
DB::table('enderecos')->insert([ // 1
//
'rua' => 'R. Manoel Clemente',
//
'numero' => '161',
//
'bairro' => 'Santo Antônio',
//
'cidade' => 'Garanhuns',
//
'uf' => 'PE',
//
'cep' => '55293-040',
//
]);
//
DB::table('users')->insert([ //
//
'name' => 'coord',
//
'email' => 'teste@teste',
//
'password' => bcrypt('12345678'),
//
'cpf' => 123132131,
//
'instituicao' => 'd',
//
'celular' => 2,
//
'especProfissional' => 'e',
//
'enderecoId' => 1,
//
'email_verified_at' => '2020-02-15',
//
]);
//
DB::table('users')->insert([ //
//
'name' => 'Felipe',
//
'email' => 'felipeaquac@yahoo.com.br',
//
'password' => bcrypt('guedes80'),
//
'cpf' => '999.999.999-99',
//
'instituicao' => 'UFAPE',
//
'celular' => '(99) 99999-9999',
//
'especProfissional' => ' ',
//
'enderecoId' => 1,
//
'email_verified_at' => '2020-02-15',
//
]);
DB
::
table
(
'eventos'
)
->
insert
([
'nome'
=>
'II CONGRESSO REGIONAL DE ZOOTECNIA'
,
...
...
@@ -65,116 +72,112 @@ Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo u
'dataInicio'
=>
'2020-07-01'
,
'dataFim'
=>
'2020-07-03'
,
'inicioSubmissao'
=>
'2020-03-30'
,
'fimSubmissao'
=>
'2020-0
4
-20'
,
'fimSubmissao'
=>
'2020-0
9
-20'
,
'inicioRevisao'
=>
'2020-04-21'
,
'fimRevisao'
=>
'2020-05-21'
,
'inicioResultado'
=>
'2020-05-22'
,
'fimResultado'
=>
'2020-05-23'
,
'numMaxTrabalhos'
=>
2
,
'numMaxCoautores'
=>
5
,
// 'possuiTaxa'=>true,
// 'valorTaxa'=>10,
'enderecoId'
=>
2
,
'coordenadorId'
=>
1
,
'hasResumo'
=>
false
,
]);
$areasEventoZoo
=
[
'Produção e nutrição de ruminantes'
,
'Produção e nutrição de não-ruminantes'
,
'Reprodução e melhoramento de ruminantes'
,
'Reprodução e melhoramento de não-ruminantes'
,
'Tecnologia de produtos de origem animal'
,
'Nutrição e Criação de Animais Pet'
,
'Apicultura e Meliponicultura'
,
'Animais Silvestres'
,
'Extensão rural e Desenvolvimento Sustentável'
,
'Forragicultura'
];
for
(
$i
=
0
;
$i
<
sizeof
(
$areasEventoZoo
);
$i
++
){
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
$areasEventoZoo
[
$i
],
'eventoId'
=>
1
,
]);
}
DB
::
table
(
'modalidades'
)
->
insert
([
'nome'
=>
'Resumo'
]);
for
(
$i
=
0
;
$i
<
sizeof
(
$areasEventoZoo
);
$i
++
){
DB
::
table
(
'area_modalidades'
)
->
insert
([
'areaId'
=>
$i
+
1
,
'modalidadeId'
=>
1
,
]);
}
for
(
$i
=
0
;
$i
<
40
;
$i
++
){
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'teste'
,
'email'
=>
'teste@teste'
.
$i
,
'password'
=>
bcrypt
(
'12345678'
),
'cpf'
=>
''
.
$i
,
'instituicao'
=>
'd'
,
'celular'
=>
2
,
'especProfissional'
=>
'e'
,
'enderecoId'
=>
1
,
]);
if
(
$i
<
20
){
DB
::
table
(
'trabalhos'
)
->
insert
([
'titulo'
=>
'trabalho'
.
$i
,
'autores'
=>
'-'
,
'data'
=>
'2020-02-15'
,
'modalidadeId'
=>
1
,
'areaId'
=>
1
,
'autorId'
=>
$i
+
2
,
'eventoId'
=>
1
,
'avaliado'
=>
'nao'
]);
}
if
(
$i
>=
20
&&
$i
<
30
){
DB
::
table
(
'trabalhos'
)
->
insert
([
'titulo'
=>
'trabalho'
.
$i
,
'autores'
=>
'-'
,
'data'
=>
'2020-02-15'
,
'modalidadeId'
=>
1
,
'areaId'
=>
2
,
'eventoId'
=>
1
,
'autorId'
=>
$i
+
2
,
'avaliado'
=>
'nao'
]);
}
if
(
$i
>=
30
){
DB
::
table
(
'trabalhos'
)
->
insert
([
'titulo'
=>
'trabalho'
.
$i
,
'autores'
=>
'-'
,
'data'
=>
'2020-02-15'
,
'modalidadeId'
=>
1
,
'areaId'
=>
3
,
'eventoId'
=>
1
,
'autorId'
=>
$i
+
2
,
'avaliado'
=>
'nao'
]);
}
}
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'eu'
,
'email'
=>
'asd@asd'
,
'password'
=>
bcrypt
(
'12345678'
),
'cpf'
=>
123132131
,
'instituicao'
=>
'd'
,
'celular'
=>
2
,
'especProfissional'
=>
'e'
,
'email_verified_at'
=>
'2020-02-15'
,
'enderecoId'
=>
1
,
]);
$this
->
call
(
UsuarioSeeder
::
class
);
$this
->
call
(
AdministradorSeeder
::
class
);
// $areasEventoZoo = [
// 'Produção e nutrição de ruminantes',
// 'Produção e nutrição de não-ruminantes',
// 'Reprodução e melhoramento de ruminantes',
// 'Reprodução e melhoramento de não-ruminantes',
// 'Tecnologia de produtos de origem animal',
// 'Nutrição e Criação de Animais Pet',
// 'Apicultura e Meliponicultura',
// 'Animais Silvestres',
// 'Extensão rural e Desenvolvimento Sustentável',
// 'Forragicultura'
// ];
// for($i = 0; $i < sizeof($areasEventoZoo); $i++){
// DB::table('areas')->insert([
// 'nome' => $areasEventoZoo[$i],
// 'eventoId' => 1,
// ]);
// }
// DB::table('modalidades')->insert([
// 'nome' => 'Resumo'
// ]);
// for($i = 0; $i < sizeof($areasEventoZoo); $i++){
// DB::table('area_modalidades')->insert([
// 'areaId' => $i + 1,
// 'modalidadeId' => 1,
// ]);
// }
// for($i = 0; $i < 40; $i++){
// DB::table('users')->insert([ //
// 'name' => 'teste',
// 'email' => 'teste@teste'.$i,
// 'password' => bcrypt('12345678'),
// 'cpf' => ''.$i,
// 'instituicao' => 'd',
// 'celular' => 2,
// 'especProfissional' => 'e',
// 'enderecoId' => 1,
// ]);
// if($i < 20){
// DB::table('trabalhos')->insert([
// 'titulo' => 'trabalho' . $i,
// 'autores' => '-',
// 'data' => '2020-02-15',
// 'modalidadeId' => 1,
// 'areaId' => 1,
// 'autorId' => $i+2,
// 'eventoId' => 1,
// 'avaliado' => 'nao'
// ]);
// }
// if($i >= 20 && $i < 30){
// DB::table('trabalhos')->insert([
// 'titulo' => 'trabalho' . $i,
// 'autores' => '-',
// 'data' => '2020-02-15',
// 'modalidadeId' => 1,
// 'areaId' => 2,
// 'eventoId' => 1,
// 'autorId' => $i+2,
// 'avaliado' => 'nao'
// ]);
// }
// if($i >= 30){
// DB::table('trabalhos')->insert([
// 'titulo' => 'trabalho' . $i,
// 'autores' => '-',
// 'data' => '2020-02-15',
// 'modalidadeId' => 1,
// 'areaId' => 3,
// 'eventoId' => 1,
// 'autorId' => $i+2,
// 'avaliado' => 'nao'
// ]);
// }
// }
// DB::table('users')->insert([ //
// 'name' => 'eu',
// 'email' => 'asd@asd',
// 'password' => bcrypt('12345678'),
// 'cpf' => 123132131,
// 'instituicao' => 'd',
// 'celular' => 2,
// 'especProfissional' => 'e',
// 'email_verified_at' => '2020-02-15',
// 'enderecoId' => 1,
// ]);
}
}
database/seeds/FuncaoParticipanteSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
FuncaoParticipanteSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Vice-coordenador'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Colaborador'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Consultor'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Bolsista'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Estudante'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Voluntário'
,
]);
}
}
database/seeds/GrandeAreaSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
GrandeAreaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Exatas e da Terra'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Biológicas'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Engenharias'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências da Saúde '
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Agrárias'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Sociais Aplicadas'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Humanas'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Lingüística, Letras e Artes'
,
]);
}
}
database/seeds/ProponenteSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
ProponenteSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Proponente'
)
->
pluck
(
'id'
);
DB
::
table
(
'proponentes'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
]);
}
}
database/seeds/SubAreaSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
SubAreaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
//------------------ Ciências Exatas e da Terra ---------
//Matemática ------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Álgebra'
,
'area_id'
=>
'1'
]);
//------------------ Ciências Biológicas ----------------
//Genética --------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Quantitativa'
,
'area_id'
=>
'2'
]);
//------------------ Engenharias ----------------
//Engenharia Civil --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Álgebra'
,
'area_id'
=>
'3'
]);
//------------------ Ciências da Saúde ----------------
//Medicina--------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Clínica Médica'
,
'area_id'
=>
'4'
]);
//------------------ Ciências Agrárias ----------------
//Agronomia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ciência do Solo'
,
'area_id'
=>
'5'
]);
//------------------ Ciências Sociais Aplicadas ----------------
//Direito --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria do Direito'
,
'area_id'
=>
'6'
]);
//------------------ Ciências Humanas ----------------
//Filosofia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
' História da Filosofia'
,
'area_id'
=>
'7'
]);
//------------------ Lingüística, Letras e Artes ----------------
//Lingüística ------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria e Análise Lingüística'
,
'area_id'
=>
'8'
]);
}
}
database/seeds/UsuarioSeeder.php
View file @
37220c29
...
...
@@ -17,9 +17,27 @@ class UsuarioSeeder extends Seeder
'name'
=>
'Administrador'
,
'email'
=>
'admin@ufrpe.br'
,
'password'
=>
Hash
::
make
(
'123456'
),
'password'
=>
Hash
::
make
(
'123456
78
'
),
'tipo'
=>
'administrador'
,
'email_verified_at'
=>
'2020-01-01'
]);
DB
::
table
(
'users'
)
->
insert
([
'name'
=>
'AdministradorResponsavel'
,
'email'
=>
'adminResp@ufrpe.br'
,
'password'
=>
Hash
::
make
(
'12345678'
),
'tipo'
=>
'administradorResponsavel'
,
'email_verified_at'
=>
'2020-01-01'
]);
DB
::
table
(
'users'
)
->
insert
([
'name'
=>
'Proponente'
,
'email'
=>
'usuario@ufrpe.br'
,
'password'
=>
Hash
::
make
(
'12345678'
),
'tipo'
=>
'proponente'
,
'email_verified_at'
=>
'2020-01-01'
]);
}
}
resources/views/coordenador/home.blade.php
View file @
37220c29
...
...
@@ -8,18 +8,48 @@
<
div
class
=
"row justify-content-center titulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-
8
"
>
<
div
class
=
"col-sm-
10
"
>
<
h1
>
Eventos
</
h1
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('comissoes')}
}
"
class
=
"btn btn-primary"
>
Comissões
</
a
>
</
div
>
@
if
(
Auth
::
check
())
@
if
(
Auth
::
user
()
->
tipo
==
'administrador'
)
<!--
Carrega
component
contendo
navbar
do
administrador
-->
<
div
class
=
"col-sm-2"
>
<
a
href
=
""
class
=
"btn btn-primary"
>
Ver
Editais
</
a
>
</
div
>
{{
--
editar
/
Deletar
projetos
cadastrados
editar
/
Deletar
proponentes
ja
cadastrados
editar
/
Deletar
editais
já
cadastrados
Configurações
do
sistema
--
}}
@
endif
@
if
(
Auth
::
user
()
->
tipo
==
'administradorResponsavel'
)
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Novo
E
vento
</
a
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Novo
E
dital
</
a
>
</
div
>
{{
--
Criar
/
Editar
/
Deletar
editais
Criar
datas
e
anexar
documentos
no
sistema
Distribuir
os
projetos
com
os
avaliadores
Gerar
Resultado
--
}}
@
endif
@
if
(
Auth
::
user
()
->
tipo
==
'proponente'
)
{{
--
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Submeter
Projeto
</
a
>
</
div
>
--
}}
{{
--
projetos
perfil
participantes
de
projeto
submeter
projetos
anexar
documentos
--
}}
@
endif
@
endif
...
...
@@ -79,17 +109,17 @@
</
div
>
</
div
>
<
p
class
=
"card-text"
>
<
strong
>
Realização
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
<
br
>
{{
--
<
strong
>
Realização
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
<
br
>
<
strong
>
Submissão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
--
}}
</
p
>
<
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
{{
--
<
div
class
=
"col-sm-12"
>
<
img
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
style
=
"width:15px"
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
</
div
>
</
div
>
--
}}
</
div
>
</
p
>
<
p
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
37220c29
...
...
@@ -3,7 +3,7 @@
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
<
h1
>
Novo
E
vento
</
h1
>
<
h1
>
Novo
E
dital
</
h1
>
</
div
>
<
form
action
=
"
{
{route('evento.criar')}
}
"
method
=
"POST"
enctype
=
"multipart/form-data"
>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
37220c29
This diff is collapsed.
Click to expand it.
resources/views/evento/visualizarEvento.blade.php
View file @
37220c29
...
...
@@ -118,21 +118,21 @@
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Revisão
de
Trabalhos
</
h4
>
{{
--
<
h4
>
Revisão
de
Trabalhos
</
h4
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
</
p
>
</
p
>
--
}}
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Endereço
</
h4
>
{{
--
<
h4
>
Endereço
</
h4
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
</
p
>
</
p
>
--
}}
</
div
>
</
div
>
@
if
(
$hasFile
==
true
)
...
...
resources/views/layouts/app.blade.php
View file @
37220c29
...
...
@@ -69,22 +69,13 @@
{{-- @component('componentes.navbarServidor')
@endcomponent --}}
@endif
@if(Auth::user()->tipo == 'proReitor')
<!-- Carrega component contendo navbar do administrador -->
{{-- @component('componentes.navbarAdministrador')
@endcomponent --}}
@endif
@if(Auth::user()->tipo == 'proponente')
<!-- Carrega component contendo navbar do administrador -->
{{-- @component('componentes.navbarAdministrador')
@endcomponent --}}
@endif
@if(Auth::user()->tipo == 'coordenadorComite')
<!-- Carrega component contendo navbar do administrador -->
{{-- @component('componentes.navbarAdministrador')
@endcomponent --}}
@endif
<li
class=
"nav-item dropdown"
>
...
...
Prev
1
2
3
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