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
1fcf4410
Commit
1fcf4410
authored
Jun 23, 2020
by
Gabriel-31415
Browse files
algumas correcoes
parent
39a8716a
Changes
13
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AreaController.php
View file @
1fcf4410
...
...
@@ -118,8 +118,10 @@ class AreaController extends Controller
return
redirect
(
route
(
'grandearea.show'
,
[
'id'
=>
$id
])
)
->
with
([
'grandeArea'
=>
$grandeArea
,
'mensagem'
=>
'Área deletada com sucesso'
]);
}
public
function
consulta
(
$id
)
{
public
function
consulta
(
Request
$request
)
{
$id
=
json_decode
(
$request
->
id
)
;
$areas
=
Area
::
where
(
'grande_area_id'
,
$id
)
->
orderBy
(
'nome'
)
->
get
();
return
response
()
->
json
(
$areas
);
return
$areas
->
toJson
();
}
}
app/Http/Controllers/ParticipanteController.php
View file @
1fcf4410
...
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
use
App\Evento
;
use
App\Trabalho
;
use
App\Participante
;
use
Auth
;
class
ParticipanteController
extends
Controller
{
...
...
@@ -25,6 +26,8 @@ class ParticipanteController extends Controller
$meusTrabalhosId
=
Participante
::
where
(
'user_id'
,
'='
,
Auth
()
->
user
()
->
id
)
->
whereIn
(
'trabalho_id'
,
$trabalhosId
)
->
select
(
'trabalho_id'
)
->
get
();
$projetos
=
Trabalho
::
whereIn
(
'id'
,
$meusTrabalhosId
)
->
get
();
//$projetos = Auth::user()->participantes->where('user_id', Auth::user()->id)->first()->trabalhos;
//dd($projetos);
...
...
app/Http/Controllers/ProponenteController.php
View file @
1fcf4410
...
...
@@ -70,7 +70,7 @@ class ProponenteController extends Controller
$user
->
save
();
$eventos
=
Evento
::
all
();
return
redirect
(
route
(
'
admin.editais'
,
[
'eventos'
=>
$eventos
]
))
->
with
([
'mensagem'
=>
'Cadastro feito com sucesso! Você já pode criar projetos'
]);
return
redirect
(
route
(
'
home'
))
->
with
([
'mensagem'
=>
'Cadastro feito com sucesso! Você já pode criar projetos'
]);
}
}
else
{
return
redirect
(
route
(
'proponente.create'
))
->
with
([
'mensagem'
=>
'Você já é proponente!'
]);
...
...
app/Http/Controllers/SubAreaController.php
View file @
1fcf4410
...
...
@@ -107,8 +107,11 @@ class SubAreaController extends Controller
return
redirect
(
route
(
'area.show'
,
[
'id'
=>
$areaId
])
)
->
with
([
'mensagem'
=>
'Subárea deletada com sucesso'
]);
}
public
function
consulta
(
$id
)
{
public
function
consulta
(
Request
$request
)
{
$id
=
json_decode
(
$request
->
id
)
;
$subAreas
=
SubArea
::
where
(
'area_id'
,
$id
)
->
orderBy
(
'nome'
)
->
get
();
return
response
()
->
json
(
$subAreas
);
return
$subAreas
->
toJson
();
}
}
app/Http/Controllers/TrabalhoController.php
View file @
1fcf4410
...
...
@@ -112,7 +112,7 @@ class TrabalhoController extends Controller
'area'
=>
[
'required'
,
'string'
],
'subArea'
=>
[
'required'
,
'string'
],
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
'linkGrupo'
=>
[
'required'
,
'string'
,
'link_grupo'
],
'linkGrupo'
=>
[
'required'
,
'string'
],
'linkLattesEstudante'
=>
[
'required'
,
'string'
,
'link_lattes'
],
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
...
...
@@ -125,7 +125,7 @@ class TrabalhoController extends Controller
'anexoComiteEtica'
=>
[(
$request
->
anexoComitePreenchido
!==
'sim'
&&
$request
->
anexoJustificativaPreenchido
!==
'sim'
?
'required_without:justificativaAutorizacaoEtica'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'justificativaAutorizacaoEtica'
=>
[(
$request
->
anexoJustificativaPreenchido
!==
'sim'
&&
$request
->
anexoComitePreenchido
!==
'sim'
?
'required_without:anexoComiteEtica'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLattesCoordenador'
=>
[(
$request
->
anexoLattesPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf
,xls
'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
]);
//dd($request->all());
...
...
@@ -161,7 +161,7 @@ class TrabalhoController extends Controller
'area'
=>
[
'required'
,
'string'
],
'subArea'
=>
[
'required'
,
'string'
],
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
'linkGrupo'
=>
[
'required'
,
'string'
,
'link_grupo'
],
'linkGrupo'
=>
[
'required'
,
'string'
],
'linkLattesEstudante'
=>
[
'required'
,
'string'
,
'link_lattes'
],
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
...
...
@@ -169,7 +169,7 @@ class TrabalhoController extends Controller
'nomePlanoTrabalho.*'
=>
[
'nullable'
,
'string'
],
'anexoProjeto'
=>
[(
$request
->
anexoProjetoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLattesCoordenador'
=>
[(
$request
->
anexoLattesPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf
,xls
'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
]);
...
...
@@ -218,6 +218,8 @@ class TrabalhoController extends Controller
$participante
->
trabalho_id
=
$trabalho
->
id
;
$participante
->
funcao_participante_id
=
$request
->
funcaoParticipante
[
$key
];
$participante
->
save
();
$usuario
->
participantes
()
->
save
(
$participante
);
$usuario
->
save
();
$participante
->
trabalhos
()
->
save
(
$trabalho
);
}
else
{
...
...
@@ -226,6 +228,8 @@ class TrabalhoController extends Controller
$participante
->
trabalho_id
=
$trabalho
->
id
;
$participante
->
funcao_participante_id
=
$request
->
funcaoParticipante
[
$key
];
$participante
->
save
();
$userParticipante
->
participantes
()
->
save
(
$participante
);
$userParticipante
->
save
();
$participante
->
trabalhos
()
->
save
(
$trabalho
);
...
...
@@ -352,10 +356,10 @@ class TrabalhoController extends Controller
$trabalho
->
anexoProjeto
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoProjeto
,
"Projeto.pdf"
);
}
if
(
!
(
is_null
(
$request
->
anexoLattesCoordenador
)))
{
$trabalho
->
anexoLattesCoordenador
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoLattesCoordenador
,
"Latte
r
_Coordenador.pdf"
);
$trabalho
->
anexoLattesCoordenador
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoLattesCoordenador
,
"Latte
s
_Coordenador.pdf"
);
}
if
(
!
(
is_null
(
$request
->
anexoPlanilha
)))
{
$trabalho
->
anexoPlanilhaPontuacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoPlanilha
,
"Planilha.
pdf"
);
$trabalho
->
anexoPlanilhaPontuacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoPlanilha
,
"Planilha.
"
.
$request
->
file
(
'anexoPlanilha'
)
->
extension
()
);
}
$trabalho
->
update
();
...
...
@@ -389,12 +393,12 @@ class TrabalhoController extends Controller
//Anexo Lattes
if
(
(
!
isset
(
$request
->
anexoLattesCoordenador
)
&&
$request
->
anexoLattesPreenchido
==
'sim'
)
||
isset
(
$request
->
anexoLattesCoordenador
)){
$trabalho
->
anexoLattesCoordenador
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoLattesCoordenador
,
'Latte
r
_Coordenador.pdf'
);
$trabalho
->
anexoLattesCoordenador
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoLattesCoordenador
,
'Latte
s
_Coordenador.pdf'
);
}
//Anexo Planilha
if
(
(
!
isset
(
$request
->
anexoPlanilha
)
&&
$request
->
anexoPlanilhaPreenchido
==
'sim'
)
||
isset
(
$request
->
anexoPlanilha
)){
$trabalho
->
anexoPlanilhaPontuacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoPlanilha
,
'
Planilha.
pdf'
);
$trabalho
->
anexoPlanilhaPontuacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoPlanilha
,
"
Planilha.
"
.
$request
->
file
(
'anexoPlanilha'
)
->
extension
()
);
}
$trabalho
->
update
();
...
...
@@ -450,7 +454,7 @@ class TrabalhoController extends Controller
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
//dd(Participante::all());
return
view
(
'projeto.editar'
)
->
with
([
'projeto'
=>
$projeto
,
'grandeAreas'
=>
$grandeAreas
,
'areas'
=>
$areas
,
...
...
app/Http/Controllers/UserController.php
View file @
1fcf4410
...
...
@@ -39,8 +39,8 @@ class UserController extends Controller
function
perfil
(){
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$end
=
$user
->
endereco
;
return
view
(
'user.perfilUser'
,[
'user'
=>
$user
,
'end'
=>
$end
]);
return
view
(
'user.perfilUser'
,[
'user'
=>
$user
]);
}
function
editarPerfil
(
Request
$request
){
$id
=
Auth
()
->
user
()
->
id
;
...
...
@@ -129,9 +129,16 @@ class UserController extends Controller
$proponente
->
update
();
break
;
case
"participante"
:
$participante
=
Participante
::
where
(
'user_id'
,
'='
,
$id
)
->
first
();
$participante
=
Participante
::
where
(
'user_id'
,
'='
,
$id
)
->
first
();
//$participante = $user->participantes->where('user_id', Auth::user()->id)->first();
$participante
->
user_id
=
$user
->
id
;
//dd($participante);
if
(
$user
->
usuarioTemp
==
true
){
$user
->
usuarioTemp
=
false
;
}
$participante
->
update
();
break
;
}
...
...
database/seeds/DatabaseSeeder.php
View file @
1fcf4410
...
...
@@ -15,13 +15,13 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
UsuarioSeeder
::
class
);
$this
->
call
(
AdministradorSeeder
::
class
);
$this
->
call
(
AdministradorResponsavelSeeder
::
class
);
$this
->
call
(
ProponenteSeeder
::
class
);
//
$this->call(ProponenteSeeder::class);
$this
->
call
(
GrandeAreaSeeder
::
class
);
$this
->
call
(
AreaSeeder
::
class
);
$this
->
call
(
SubAreaSeeder
::
class
);
$this
->
call
(
FuncaoParticipanteSeeder
::
class
);
$this
->
call
(
CoordenadorComissaoSeeder
::
class
);
$this
->
call
(
ParticipanteSeeder
::
class
);
//
$this->call(ParticipanteSeeder::class);
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
RecomendacaoSeeder
::
class
);
...
...
@@ -69,63 +69,63 @@ class DatabaseSeeder extends Seeder
// 'email_verified_at' => '2020-02-15',
// ]);
DB
::
table
(
'eventos'
)
->
insert
([
'nome'
=>
'I CONGRESSO REGIONAL DE ZOOTECNIA'
,
// 'numeroParticipantes'=>60,
'descricao'
=>
'Cada autor inscrito poderá submeter até dois (2) resumos;
O número máximo de autores por trabalho será seis autores;
Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo uma (01) página, no formato PDF;'
,
'tipo'
=>
'PIBIC'
,
'natureza_id'
=>
'1'
,
'inicioSubmissao'
=>
'2020-03-30'
,
'fimSubmissao'
=>
'2020-09-20'
,
'inicioRevisao'
=>
'2020-04-21'
,
'fimRevisao'
=>
'2020-05-21'
,
'resultado'
=>
'2020-05-22'
,
'numMaxTrabalhos'
=>
2
,
'numMaxCoautores'
=>
5
,
'coordenadorId'
=>
1
,
'created_at'
=>
'2020-03-30'
,
'criador_id'
=>
1
,
]);
//
DB::table('eventos')->insert([
//
'nome'=>'I CONGRESSO REGIONAL DE ZOOTECNIA',
//
// 'numeroParticipantes'=>60,
//
'descricao'=>'Cada autor inscrito poderá submeter até dois (2) resumos;
//
O número máximo de autores por trabalho será seis autores;
//
Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo uma (01) página, no formato PDF;',
//
'tipo'=>'PIBIC',
//
'natureza_id'=>'1',
//
'inicioSubmissao'=>'2020-03-30',
//
'fimSubmissao'=>'2020-09-20',
//
'inicioRevisao'=>'2020-04-21',
//
'fimRevisao'=>'2020-05-21',
//
'resultado'=>'2020-05-22',
//
'numMaxTrabalhos' => 2,
//
'numMaxCoautores' => 5,
//
'coordenadorId'=>1,
//
'created_at'=>'2020-03-30',
//
'criador_id'=>1,
//
]);
DB
::
table
(
'eventos'
)
->
insert
([
'nome'
=>
'II CONGRESSO REGIONAL DE ZOOTECNIA'
,
// 'numeroParticipantes'=>60,
'descricao'
=>
'Cada autor inscrito poderá submeter até dois (2) resumos;
O número máximo de autores por trabalho será seis autores;
Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo uma (01) página, no formato PDF;'
,
'tipo'
=>
'PIBIC'
,
'natureza_id'
=>
'2'
,
'inicioSubmissao'
=>
'2020-03-30'
,
'fimSubmissao'
=>
'2020-09-20'
,
'inicioRevisao'
=>
'2020-04-21'
,
'fimRevisao'
=>
'2020-05-21'
,
'resultado'
=>
'2020-05-22'
,
'numMaxTrabalhos'
=>
2
,
'numMaxCoautores'
=>
5
,
'coordenadorId'
=>
1
,
'criador_id'
=>
2
,
]);
//
DB::table('eventos')->insert([
//
'nome'=>'II CONGRESSO REGIONAL DE ZOOTECNIA',
//
// 'numeroParticipantes'=>60,
//
'descricao'=>'Cada autor inscrito poderá submeter até dois (2) resumos;
//
O número máximo de autores por trabalho será seis autores;
//
Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo uma (01) página, no formato PDF;',
//
'tipo'=>'PIBIC',
//
'natureza_id'=>'2',
//
'inicioSubmissao'=>'2020-03-30',
//
'fimSubmissao'=>'2020-09-20',
//
'inicioRevisao'=>'2020-04-21',
//
'fimRevisao'=>'2020-05-21',
//
'resultado'=>'2020-05-22',
//
'numMaxTrabalhos' => 2,
//
'numMaxCoautores' => 5,
//
'coordenadorId'=>1,
//
'criador_id'=>2,
//
]);
DB
::
table
(
'eventos'
)
->
insert
([
'nome'
=>
'III CONGRESSO REGIONAL DE ZOOTECNIA'
,
// 'numeroParticipantes'=>60,
'descricao'
=>
'Cada autor inscrito poderá submeter até dois (2) resumos;
O número máximo de autores por trabalho será seis autores;
Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo uma (01) página, no formato PDF;'
,
'tipo'
=>
'PIBIC'
,
'natureza_id'
=>
'3'
,
'inicioSubmissao'
=>
'2020-03-30'
,
'fimSubmissao'
=>
'2020-09-20'
,
'inicioRevisao'
=>
'2020-04-21'
,
'fimRevisao'
=>
'2020-05-21'
,
'resultado'
=>
'2020-05-22'
,
'numMaxTrabalhos'
=>
2
,
'numMaxCoautores'
=>
5
,
'coordenadorId'
=>
1
,
'criador_id'
=>
3
,
]);
//
DB::table('eventos')->insert([
//
'nome'=>'III CONGRESSO REGIONAL DE ZOOTECNIA',
//
// 'numeroParticipantes'=>60,
//
'descricao'=>'Cada autor inscrito poderá submeter até dois (2) resumos;
//
O número máximo de autores por trabalho será seis autores;
//
Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo uma (01) página, no formato PDF;',
//
'tipo'=>'PIBIC',
//
'natureza_id'=>'3',
//
'inicioSubmissao'=>'2020-03-30',
//
'fimSubmissao'=>'2020-09-20',
//
'inicioRevisao'=>'2020-04-21',
//
'fimRevisao'=>'2020-05-21',
//
'resultado'=>'2020-05-22',
//
'numMaxTrabalhos' => 2,
//
'numMaxCoautores' => 5,
//
'coordenadorId'=>1,
//
'criador_id'=>3,
//
]);
// $areasEventoZoo = [
// 'Produção e nutrição de ruminantes',
...
...
@@ -141,7 +141,7 @@ class DatabaseSeeder extends Seeder
// ];
$this
->
call
(
TrabalhoSeeder
::
class
);
$this
->
call
(
AvaliadorSeeder
::
class
);
//
$this->call(TrabalhoSeeder::class);
//
$this->call(AvaliadorSeeder::class);
}
}
database/seeds/UsuarioSeeder.php
View file @
1fcf4410
...
...
@@ -48,14 +48,14 @@ class UsuarioSeeder extends Seeder
'email_verified_at'
=>
'2020-01-01'
]);
DB
::
table
(
'users'
)
->
insert
([
'name'
=>
'Gabriel'
,
'email'
=>
'gabriel.uag.ufrpe@gmail.com'
,
'password'
=>
Hash
::
make
(
'12345678'
),
'tipo'
=>
'proponente'
,
'email_verified_at'
=>
'2020-01-01'
]);
//
DB::table('users')->insert([
//
'name'=>'Gabriel',
//
'email'=>'gabriel.uag.ufrpe@gmail.com',
//
'password'=>Hash::make('12345678'),
//
'tipo'=>'proponente',
//
'email_verified_at'=>'2020-01-01'
//
]);
DB
::
table
(
'users'
)
->
insert
([
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
1fcf4410
...
...
@@ -221,7 +221,7 @@
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanilha'
)
is
-
invalid
@
enderror
" id="
anexoPlanilha
" aria-describedby="
anexoPlanilhaDescribe
" name="
anexoPlanilha
" onchange="
exibirAnexoTemp
(
this
)
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoPlanilha
">O arquivo deve ser no formato PDF de até 2mb.</label>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoPlanilha
">O arquivo deve ser no formato PDF
ou XLS
de até 2mb.</label>
</div>
</div>
@error('anexoPlanilha')
...
...
@@ -665,8 +665,16 @@
function
areas
()
{
var
grandeArea
=
$
(
'#grandeArea'
)
.
val
();
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/areas/"
+
grandeArea
,
function
(
dados
)
{
$
.
ajax
({
type
:
'POST'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
data
:
'id='
+
grandeArea
,
headers
:
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
},
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
var
option
=
'<option selected disabled>-- Área --</option>'
;
...
...
@@ -683,13 +691,25 @@
}
$
(
'#area'
)
.
html
(
option
)
.
show
();
subareas
();
})
},
error
:
(
data
)
=>
{
console
.
log
(
data
);
}
})
}
function
subareas
()
{
var
area
=
$
(
'#area'
)
.
val
();
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/subarea/"
+
area
,
function
(
dados
)
{
$
.
ajax
({
type
:
'POST'
,
url
:
'{{ route('
subarea
.
consulta
') }}'
,
data
:
'id='
+
area
,
headers
:
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
},
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldSubArea'
)
.
val
()
==
null
||
$
(
'#oldSubArea'
)
.
val
()
==
""
){
var
option
=
'<option selected disabled>-- Sub Área --</option>'
;
...
...
@@ -705,7 +725,13 @@
var
option
=
"<option selected disabled>-- Sub Área --</option>"
;
}
$
(
'#subArea'
)
.
html
(
option
)
.
show
();
})
},
error
:
(
dados
)
=>
{
console
.
log
(
dados
);
}
})
}
function
exibirAnexoTemp
(
file
){
...
...
resources/views/projeto/editar.blade.php
View file @
1fcf4410
No preview for this file type
resources/views/proponente/projetos.blade.php
View file @
1fcf4410
...
...
@@ -30,6 +30,8 @@
<
td
style
=
"color: rgb(6, 85, 6)"
>
Avaliado
</
td
>
@
elseif
(
$projeto
->
status
==
'Submetido'
)
<
td
style
=
"color: rgb(0, 0, 0)"
>
Submetido
</
td
>
@
elseif
(
$projeto
->
status
==
'Rascunho'
)
<
td
style
=
"color: rgb(0, 0, 0)"
>
Rascunho
</
td
>
@
endif
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
<
td
>
...
...
@@ -44,12 +46,12 @@
<
a
href
=
"{{ route('trabalho.show', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
projeto
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Recorrer
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
</
a
>
</
a
>
--
}}
@
if
(
$projeto
->
status
==
'Submetido'
)
<
a
href
=
"{{ route('trabalho.destroy', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Excluir
projeto
...
...
resources/views/user/perfilUser.blade.php
View file @
1fcf4410
...
...
@@ -81,7 +81,7 @@
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"email"
class
=
"col-form-label"
>
{{
__
(
'E-
M
ail*'
)
}}
</
label
>
<
label
for
=
"email"
class
=
"col-form-label"
>
{{
__
(
'E-
m
ail*'
)
}}
</
label
>
<
input
id
=
"email"
type
=
"email"
class
=
"form-control @error('email') is-invalid @enderror"
name
=
"email"
value
=
"{{
$user->email
}}"
disabled
>
@
error
(
'email'
)
...
...
@@ -133,7 +133,7 @@
</
div
>
</
div
>
@
if
(
!
(
is_null
(
$proponente
))
)
@
if
(
isset
(
$proponente
))
<
div
id
=
"proponente"
style
=
"display: block;"
>
<
div
>
...
...
routes/web.php
View file @
1fcf4410
...
...
@@ -17,7 +17,7 @@ Route::get('/home', 'HomeController@index'
Route
::
get
(
'/evento/visualizar/naologado/{id}'
,
'EventoController@showNaoLogado'
)
->
name
(
'evento.visualizarNaoLogado'
);
Route
::
get
(
'/editais/home'
,
'EventoController@index'
)
->
name
(
'coord.home'
);
Route
::
get
(
'/perfil'
,
'UserController@perfil'
)
->
name
(
'perfil'
);
Auth
::
routes
([
'verify'
=>
true
]);
//######## Rotas Avaliador ####################################
...
...
@@ -35,9 +35,6 @@ Route::get('/proponente/cadastro', 'ProponenteController@create'
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
Route
::
get
(
'/proponente/editais'
,
'ProponenteController@editais'
)
->
name
(
'proponente.editais'
);
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
//######### Rotas Administrador #################################
Route
::
get
(
'/perfil-usuario'
,
'UserController@minhaConta'
)
->
name
(
'user.perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
...
...
@@ -45,6 +42,7 @@ Route::post('/perfil-usuario', 'UserController@editarPerfil'
Route
::
group
([
'middleware'
=>
[
'isTemp'
,
'auth'
,
'verified'
]],
function
(){
Route
::
get
(
'/home/edital'
,
'EventoController@index'
)
->
name
(
'visualizarEvento'
);
...
...
@@ -65,6 +63,9 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
//######### Area do participante ###############################
Route
::
get
(
'/participante'
,
'EventoController@areaParticipante'
)
->
name
(
'area.participante'
);
Route
::
get
(
'participante/editais'
,
'ParticipanteController@editais'
)
->
name
(
'participante.editais'
);
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
//########## Area da comissao ###################################
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
...
...
@@ -74,9 +75,6 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
delete
(
'/evento/apagar-comissao/'
,
'ComissaoController@destroy'
)
->
name
(
'delete.comissao'
);
Route
::
post
(
'/evento/numTrabalhos'
,
'EventoController@numTrabalhos'
)
->
name
(
'trabalho.numTrabalhos'
);
//########## Modalidade #######################################
Route
::
post
(
'/modalidade/criar'
,
'ModalidadeController@store'
)
->
name
(
'modalidade.store'
);
//########## Area ###########################################
Route
::
post
(
'/area/criar'
,
'AreaController@store'
)
->
name
(
'area.store'
);
...
...
@@ -179,7 +177,7 @@ Route::prefix('naturezas')->group(function(){
Route
::
get
(
'/area/editar/{id}'
,
'AreaController@edit'
)
->
name
(
'area.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/area/atualizar/{id}'
,
'AreaController@update'
)
->
name
(
'area.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/area/excluir/{id}'
,
'AreaController@destroy'
)
->
name
(
'area.deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
ge
t
(
'/areas/
{id}'
,
'AreaController@consulta'
)
->
name
(
'area.consulta'
);
Route
::
pos
t
(
'/areas/
'
,
'AreaController@consulta'
)
->
name
(
'area.consulta'
);
//### Rotas das subareas, id's de nova e salvar são os ids da área a qual a nova subárea pertence #####
Route
::
get
(
'/subareas'
,
'SubAreaController@index'
)
->
name
(
'subarea.index'
)
->
middleware
(
'checkAdministrador'
);
...
...
@@ -189,7 +187,7 @@ Route::prefix('naturezas')->group(function(){
Route
::
get
(
'/subarea/editar/{id}'
,
'SubAreaController@edit'
)
->
name
(
'subarea.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/atualizar/{id}'
,
'SubAreaController@update'
)
->
name
(
'subarea.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/excluir/{id}'
,
'SubAreaController@destroy'
)
->
name
(
'subarea.deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
ge
t
(
'/subarea/
{id}'
,
'SubAreaController@consulta'
)
->
name
(
'subarea.consulta'
);
Route
::
pos
t
(
'/subarea/
'
,
'SubAreaController@consulta'
)
->
name
(
'subarea.consulta'
);
});
...
...
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