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
971e04b7
Commit
971e04b7
authored
Jun 16, 2020
by
alinetenorio
Browse files
Merge branch 'planoTrabalho' of
https://github.com/lmts-ufape/submeta
into fix-jean
parents
4f895da7
d0a573fa
Changes
18
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
971e04b7
...
...
@@ -101,7 +101,7 @@ class EventoController extends Controller
'fimRevisao'
=>
[
'required'
,
'date'
],
'resultado'
=>
[
'required'
,
'date'
],
'pdfEdital'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'modeloDocumento'
=>
[
'required'
,
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2000000'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2000000'
],
]);
}
...
...
@@ -118,7 +118,7 @@ class EventoController extends Controller
'fimRevisao'
=>
[
'required'
,
'date'
,
'after:'
.
$request
->
inicioRevisao
],
'resultado'
=>
[
'required'
,
'date'
,
'after:'
.
$yesterday
],
'pdfEdital'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'modeloDocumento'
=>
[
'required'
,
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2000000'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2000000'
],
]);
$evento
=
Evento
::
create
([
...
...
@@ -152,14 +152,17 @@ class EventoController extends Controller
$nome
=
"edital.pdf"
;
Storage
::
putFileAs
(
$path
,
$pdfEdital
,
$nome
);
$evento
->
pdfEdital
=
$path
.
$nome
;
$modeloDocumento
=
$request
->
modeloDocumento
;
$extension
=
$modeloDocumento
->
extension
();
$path
=
'modeloDocumento/'
.
$evento
->
id
.
'/'
;
$nome
=
"modelo"
.
"."
.
$extension
;
Storage
::
putFileAs
(
$path
,
$modeloDocumento
,
$nome
);
$evento
->
modeloDocumento
=
$path
.
$nome
;
if
(
isset
(
$request
->
modeloDocumento
)){
$modeloDocumento
=
$request
->
modeloDocumento
;
$extension
=
$modeloDocumento
->
extension
();
$path
=
'modeloDocumento/'
.
$evento
->
id
.
'/'
;
$nome
=
"modelo"
.
"."
.
$extension
;
Storage
::
putFileAs
(
$path
,
$modeloDocumento
,
$nome
);
$evento
->
modeloDocumento
=
$path
.
$nome
;
}
$evento
->
save
();
...
...
app/Http/Controllers/ParticipanteController.php
View file @
971e04b7
...
...
@@ -13,6 +13,11 @@ class ParticipanteController extends Controller
return
view
(
'participante.index'
);
}
public
function
editais
(){
$eventos
=
Evento
::
all
();
return
view
(
'participante.editais'
,
[
'eventos'
=>
$eventos
]
);
}
public
function
edital
(
$id
){
$edital
=
Evento
::
find
(
$id
);
...
...
app/Http/Controllers/ProponenteController.php
View file @
971e04b7
...
...
@@ -20,6 +20,11 @@ class ProponenteController extends Controller
public
function
create
(){
return
view
(
'proponente.cadastro'
);
}
public
function
editais
(){
$eventos
=
Evento
::
all
();
return
view
(
'proponente.editais'
,
[
'eventos'
=>
$eventos
]
);
}
public
function
store
(
Request
$request
){
if
(
Auth
()
->
user
()
->
proponentes
==
null
)
{
...
...
@@ -60,7 +65,7 @@ class ProponenteController extends Controller
$proponente
->
save
();
$user
=
User
::
find
(
Auth
()
->
user
()
->
id
);
$user
->
tipo
=
"proponente"
;
//
$user->tipo = "proponente";
$user
->
save
();
$eventos
=
Evento
::
all
();
...
...
app/Http/Controllers/TrabalhoController.php
View file @
971e04b7
...
...
@@ -43,7 +43,13 @@ class TrabalhoController extends Controller
{
$edital
=
Evento
::
find
(
$id
);
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
if
(
$proponente
==
null
){
return
view
(
'proponente.cadastro'
)
->
with
([
'mensagem'
=>
'Você não possui perfil de Proponente, para submeter algum projeto preencha o formulário.'
]);;
}
return
view
(
'evento.submeterTrabalho'
,[
'edital'
=>
$edital
,
'grandeAreas'
=>
$grandeAreas
,
...
...
@@ -76,8 +82,11 @@ class TrabalhoController extends Controller
$coordenador
=
CoordenadorComissao
::
find
(
$evento
->
coordenadorId
);
//Relaciona o projeto criado com o proponente que criou o projeto
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
// if($proponente == null){
// return view('proponente.cadastro');
// }
//$trabalho->proponentes()->save($proponente);
//dd($
coordenador->id
);
//dd($
proponente
);
$trabalho
=
"trabalho"
;
if
(
$evento
->
inicioSubmissao
>
$mytime
){
if
(
$mytime
>=
$evento
->
fimSubmissao
){
...
...
@@ -103,7 +112,7 @@ class TrabalhoController extends Controller
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
'funcaoParticipante.*'
=>
[
'required'
,
'string'
],
'nomePlanoTrabalho.*'
=>
[
'
required
'
,
'string'
],
'nomePlanoTrabalho.*'
=>
[
'
nullable
'
,
'string'
],
//--Verificando se anexos já foram submetidos
'anexoProjeto'
=>
[(
$request
->
anexoProjetoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoCONSU'
=>
[(
$request
->
anexoConsuPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
...
...
@@ -153,11 +162,11 @@ class TrabalhoController extends Controller
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
'funcaoParticipante.*'
=>
[
'required'
,
'string'
],
'nomePlanoTrabalho.*'
=>
[
'
required
'
,
'string'
],
'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'
],
'anexoPlanoTrabalho.*'
=>
[
'
required
'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'
nullable
'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
]);
$trabalho
=
Trabalho
::
create
([
...
...
@@ -221,24 +230,26 @@ class TrabalhoController extends Controller
$subject
=
"Participante de Projeto"
;
$email
=
$value
;
Mail
::
to
(
$email
)
->
send
(
new
SubmissaoTrabalho
(
$userParticipante
,
$subject
));
->
send
(
new
SubmissaoTrabalho
(
$userParticipante
,
$subject
,
$evento
,
$trabalho
));
}
$usuario
=
User
::
where
(
'email'
,
$value
)
->
first
();
$participante
=
Participante
::
where
([[
'user_id'
,
'='
,
$usuario
->
id
],
[
'trabalho_id'
,
'='
,
$trabalho
->
id
]])
->
first
();
$path
=
'trabalhos/'
.
$request
->
editalId
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$request
->
nomePlanoTrabalho
[
$key
]
.
".pdf"
;
$file
=
$request
->
anexoPlanoTrabalho
[
$key
];
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$arquivo
=
new
Arquivo
();
$arquivo
->
titulo
=
$request
->
nomePlanoTrabalho
[
$key
];
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
data
=
$mytime
;
$arquivo
->
participanteId
=
$participante
->
id
;
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
if
(
$request
->
nomePlanoTrabalho
[
$key
]
!=
null
){
$usuario
=
User
::
where
(
'email'
,
$value
)
->
first
();
$participante
=
Participante
::
where
([[
'user_id'
,
'='
,
$usuario
->
id
],
[
'trabalho_id'
,
'='
,
$trabalho
->
id
]])
->
first
();
$path
=
'trabalhos/'
.
$request
->
editalId
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$request
->
nomePlanoTrabalho
[
$key
]
.
".pdf"
;
$file
=
$request
->
anexoPlanoTrabalho
[
$key
];
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$arquivo
=
new
Arquivo
();
$arquivo
->
titulo
=
$request
->
nomePlanoTrabalho
[
$key
];
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
data
=
$mytime
;
$arquivo
->
participanteId
=
$participante
->
id
;
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
}
}
}
...
...
@@ -262,8 +273,10 @@ class TrabalhoController extends Controller
$subject
=
"Submissão de Trabalho"
;
$autor
=
Auth
()
->
user
();
$evento
=
$evento
;
$trabalho
=
$trabalho
;
Mail
::
to
(
$autor
->
email
)
->
send
(
new
SubmissaoTrabalho
(
$autor
,
$subject
));
->
send
(
new
SubmissaoTrabalho
(
$autor
,
$subject
,
$evento
,
$trabalho
));
return
redirect
()
->
route
(
'evento.visualizar'
,[
'id'
=>
$request
->
editalId
]);
}
...
...
app/Mail/SubmissaoTrabalho.php
View file @
971e04b7
...
...
@@ -13,18 +13,20 @@ class SubmissaoTrabalho extends Mailable
public
$user
;
public
$subject
;
public
$evento
;
public
$trabalho
;
/**
* Create a new message instance.
*
* @return void
*/
public
function
__construct
(
$user
,
$subject
)
public
function
__construct
(
$user
,
$subject
,
$evento
,
$trabalho
)
{
$this
->
user
=
$user
;
$this
->
subject
=
$subject
;
$this
->
evento
=
$evento
;
$this
->
trabalho
=
$trabalho
;
}
/**
...
...
@@ -37,6 +39,12 @@ class SubmissaoTrabalho extends Mailable
return
$this
->
from
(
'lmtsteste@gmail.com'
,
'Submeta - LMTS'
)
->
subject
(
$this
->
subject
)
->
view
(
'emails.submissaoTrabalho'
);
->
view
(
'emails.submissaoTrabalho'
)
->
with
([
'user'
=>
$this
->
user
,
'evento'
=>
$this
->
evento
,
'trabalho'
=>
$this
->
trabalho
,
]);
}
}
database/seeds/ProponenteSeeder.php
View file @
971e04b7
...
...
@@ -14,6 +14,25 @@ class ProponenteSeeder extends Seeder
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Proponente'
)
->
pluck
(
'id'
);
DB
::
table
(
'proponentes'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
//'CPF' => '123123123',
'SIAPE'
=>
'123123123'
,
//'email' => '123123123',
//'email' => '123123123',
'cargo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'titulacaoMaxima'
=>
'Mestrado'
,
'anoTitulacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'bolsistaProdutividade'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'linkLattes'
=>
'123123123'
,
'created_at'
=>
'2020-01-01 00:00:00'
]);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Gabriel'
)
->
pluck
(
'id'
);
DB
::
table
(
'proponentes'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
//'CPF' => '123123123',
...
...
database/seeds/UsuarioSeeder.php
View file @
971e04b7
...
...
@@ -48,6 +48,15 @@ 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'
=>
'Coordenador1'
,
...
...
resources/views/administrador/editais.blade.php
View file @
971e04b7
...
...
@@ -6,22 +6,13 @@
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-9"
>
@
if
(
auth
()
->
user
()
->
tipo
===
"administrador"
)
<
h3
>
Meus
Editais
</
h3
>
@
else
<
h3
>
Editais
</
h3
>
@
endif
<
div
class
=
"col-sm-10"
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Criar
Edital
</
a
>
</
div
>
@
if
(
auth
()
->
user
()
->
tipo
===
"administrador"
)
<
div
class
=
"col-sm-3"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
style
=
"float: right;"
>
Criar
Edital
</
a
>
</
div
>
@
endif
</
div
>
</
div
>
<
hr
>
@
if
(
auth
()
->
user
()
->
tipo
===
"administrador"
)
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
...
...
@@ -74,120 +65,7 @@
</
tr
>
@
endforeach
</
tbody
>
</
table
>
@
endif
@
if
(
auth
()
->
user
()
->
tipo
===
"proponente"
)
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Inicio
da
Submissão
</
th
>
<
th
scope
=
"col"
>
Fim
da
Submissão
</
th
>
<
th
scope
=
"col"
>
Data
do
Resultado
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('projetos.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Projetos
submetidos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Recurso
ao
resultado
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
@
endif
@
if
(
auth
()
->
user
()
->
tipo
===
"participante"
)
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
></
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('participante.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Meus
projetos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
@
endif
</
table
>
</
div
>
...
...
resources/views/emails/submissaoTrabalho.blade.php
View file @
971e04b7
...
...
@@ -4,6 +4,18 @@
</head>
<body>
<h4>
Seu trabalho foi recebido com sucesso.
</h4>
@if(isset($user->proponentes))
@if($user->proponentes->id == $trabalho->proponente_id)
{{-- Usuario proponente--}}
<h2>
Olá, {{ $user->name }}
</h2>
<h4>
Seu trabalho {{ $trabalho->titulo }} foi submetido com sucesso no Edital {{ $evento->nome }}
</h4>
@endif
@else
{{-- Usuario participante--}}
<h2>
Olá, {{ $user->name }}
</h2>
<h4>
Você é participante no Projeto {{ $trabalho->titulo }} que foi submetido no Edital {{ $evento->nome }}.
</h4>
@endif
</body>
</html>
\ No newline at end of file
resources/views/evento/criarEvento.blade.php
View file @
971e04b7
...
...
@@ -16,7 +16,7 @@
{{
--
nome
|
Participantes
|
Tipo
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome
*:
'
)
}}
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
...
...
@@ -27,7 +27,7 @@
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo
*:
'
)
}}
</
label
>
<
select
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
value
=
"{{ old('tipo') }}"
required
>
<
option
value
=
"PIBIC"
>
PIBIC
</
option
>
<
option
value
=
"PIBIC-EM"
>
PIBIC
-
EM
</
option
>
...
...
@@ -42,7 +42,7 @@
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"natureza"
class
=
"col-form-label"
>
{{
__
(
'Natureza'
)
}}
</
label
>
<
label
for
=
"natureza"
class
=
"col-form-label"
>
{{
__
(
'Natureza
*:
'
)
}}
</
label
>
<
select
id
=
"natureza"
type
=
"text"
class
=
"form-control @error('natureza') is-invalid @enderror"
name
=
"natureza"
value
=
"{{ old('natureza') }}"
required
>
@
foreach
(
$naturezas
as
$natureza
)
<
option
value
=
"{{
$natureza->id
}}"
>
{{
$natureza
->
nome
}}
</
option
>
...
...
@@ -61,8 +61,8 @@
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Descrição
</
label
>
<
textarea
class
=
"form-control @error('descricao') is-invalid @enderror"
value
=
""
required
autocomplete
=
"descricao"
autofocus
id
=
"descricao"
name
=
"descricao"
rows
=
"3"
>
{{
old
(
'descricao'
)
}}
</
textarea
>
<
label
for
=
"exampleFormControlTextarea1"
>
Descrição
*:
</
label
>
<
textarea
class
=
"form-control @error('descricao') is-invalid @enderror"
value
=
"
{{ old('descricao') }}
"
required
autocomplete
=
"descricao"
autofocus
id
=
"descricao"
name
=
"descricao"
rows
=
"3"
></
textarea
>
@
error
(
'descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
...
...
@@ -73,7 +73,7 @@
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"coordenador_id"
class
=
"col-form-label"
>
{{
__
(
'Coordenador:'
)
}}
</
label
>
<
label
for
=
"coordenador_id"
class
=
"col-form-label"
>
{{
__
(
'Coordenador
*
:'
)
}}
</
label
>
<
select
class
=
"form-control @error('funcaoParticipante') is-invalid @enderror"
id
=
"coordenador_id"
name
=
"coordenador_id"
>
<
option
value
=
""
disabled
selected
hidden
>--
Coordenador
da
Comissão
Avaliadora
--</
option
>
@
foreach
(
$coordenadors
as
$coordenador
)
...
...
@@ -92,7 +92,7 @@
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
6
">
<label for="
inicioSubmissao
" class="
col
-
form
-
label
">{{ __('Início da Submissão') }}</label>
<label for="
inicioSubmissao
" class="
col
-
form
-
label
">{{ __('Início da Submissão
*:
') }}</label>
<input id="
inicioSubmissao
" type="
date
" class="
form
-
control
@
error
(
'inicioSubmissao'
)
is
-
invalid
@
enderror
" name="
inicioSubmissao
" value="
{{
old
(
'inicioSubmissao'
)
}}
" required autocomplete="
inicioSubmissao
" autofocus>
@error('inicioSubmissao')
...
...
@@ -102,7 +102,7 @@
@enderror
</div>
<div class="
col
-
sm
-
6
">
<label for="
fimSubmissao
" class="
col
-
form
-
label
">{{ __('Fim da Submissão') }}</label>
<label for="
fimSubmissao
" class="
col
-
form
-
label
">{{ __('Fim da Submissão
*:
') }}</label>
<input id="
fimSubmissao
" type="
date
" class="
form
-
control
@
error
(
'fimSubmissao'
)
is
-
invalid
@
enderror
" name="
fimSubmissao
" value="
{{
old
(
'fimSubmissao'
)
}}
" required autocomplete="
fimSubmissao
" autofocus>
@error('fimSubmissao')
...
...
@@ -115,7 +115,7 @@
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
6
">
<label for="
inicioRevisao
" class="
col
-
form
-
label
">{{ __('Início da Avaliação') }}</label>
<label for="
inicioRevisao
" class="
col
-
form
-
label
">{{ __('Início da Avaliação
*:
') }}</label>
<input id="
inicioRevisao
" type="
date
" class="
form
-
control
@
error
(
'inicioRevisao'
)
is
-
invalid
@
enderror
" name="
inicioRevisao
" value="
{{
old
(
'inicioRevisao'
)
}}
" required autocomplete="
inicioRevisao
" autofocus>
@error('inicioRevisao')
...
...
@@ -125,7 +125,7 @@
@enderror
</div>
<div class="
col
-
sm
-
6
">
<label for="
fimRevisao
" class="
col
-
form
-
label
">{{ __('Fim da Avaliação') }}</label>
<label for="
fimRevisao
" class="
col
-
form
-
label
">{{ __('Fim da Avaliação
*:
') }}</label>
<input id="
fimRevisao
" type="
date
" class="
form
-
control
@
error
(
'fimRevisao'
)
is
-
invalid
@
enderror
" name="
fimRevisao
" value="
{{
old
(
'fimRevisao'
)
}}
" required autocomplete="
fimRevisao
" autofocus>
@error('fimRevisao')
...
...
@@ -138,7 +138,7 @@
<div class="
row
justify
-
content
-
left
">
<div class="
col
-
sm
-
6
">
<label for="
resultado
" class="
col
-
form
-
label
">{{ __('Data do Resultado') }}</label>
<label for="
resultado
" class="
col
-
form
-
label
">{{ __('Data do Resultado
*:
') }}</label>
<input id="
resultado
" type="
date
" class="
form
-
control
@
error
(
'resultado'
)
is
-
invalid
@
enderror
" name="
resultado
" value="
{{
old
(
'resultado'
)
}}
" required autocomplete="
resultado
" autofocus>
@error('resultado')
...
...
@@ -159,7 +159,7 @@
<div class="
row
justify
-
content
-
center
" style="
margin
-
top
:
10
px
">
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
">
<label for="
pdfEdital
">Anexar edital</label>
<label for="
pdfEdital
">Anexar edital
*:
</label>
<input type="
file
" class="
form
-
control
-
file
@
error
(
'pdfEdital'
)
is
-
invalid
@
enderror
" name="
pdfEdital
" value="
{{
old
(
'pdfEdital'
)
}}
" id="
pdfEdital
">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfEdital')
...
...
@@ -172,7 +172,7 @@
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
">
<label for="
modeloDocumento
">Arquivo com os modelos de documentos do edital</label>
<label for="
modeloDocumento
">A
nexar a
rquivo com os modelos de documentos do edital
:
</label>
<input type="
file
" class="
form
-
control
-
file
@
error
(
'modeloDocumento'
)
is
-
invalid
@
enderror
" name="
modeloDocumento
" value="
{{
old
(
'modeloDocumento'
)
}}
" id="
modeloDocumento
">
<small>O arquivo selecionado deve ter até 2mb.</small>
@error('modeloDocumento')
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
971e04b7
...
...
@@ -89,8 +89,9 @@
</div>
<div class="
col
-
sm
-
6
">
<label for="
linkLattesEstudante
" class="
col
-
form
-
label
">Link Lattes do Proponente*</label>
<input class="
form
-
control
@
error
(
'linkLattesEstudante'
)
is
-
invalid
@
enderror
" type="
text
" name="
linkLattesEstudante
" @if(Auth()->user()->proponentes->linkLattes != null)
value="
{{
Auth
()
->
user
()
->
proponentes
->
linkLattes
}}
"
<input class="
form
-
control
@
error
(
'linkLattesEstudante'
)
is
-
invalid
@
enderror
" type="
text
" name="
linkLattesEstudante
"
@if(Auth()->user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null)
value="
{{
Auth
()
->
user
()
->
proponentes
->
linkLattes
}}
"
@else
value=""
@endif >
...
...
@@ -326,58 +327,64 @@
@enderror
</select>
</div>
</div>
<h5>Dados do plano de trabalho</h5>
<div class="
row
">
<div class="
col
-
sm
-
12
">
<div id="
planoTrabalho
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label>Titulo* </label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" required value="
{{
old
(
'nomePlanoTrabalho.'
.
$i
)}}
">
@error('nomePlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
{{-- Arquivo --}}
<div class="
col
-
sm
-
7
">
<label for="
nomeTrabalho
">Anexo*</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
anexoPlanoTrabalho
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanoTrabalho'
)
is
-
invalid
@
enderror
" id="
anexoPlanoTrabalho
" aria-describedby="
anexoPlanoTrabalho
" name="
anexoPlanoTrabalho
[]
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
<h6 class="
mb
-
1
">Possui plano de trabalho?</h6>
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
simPlano
">Sim</button>
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
naoPlano
">Não</button>
<div id="
planoHabilitado
" >
<h5>Dados do plano de trabalho</h5>
<div class="
row
">
<div class="
col
-
sm
-
12
">
<div id="
planoTrabalho
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label>Titulo* </label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" value="
{{
old
(
'nomePlanoTrabalho.'
.
$i
)}}
">
@error('nomePlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
{{-- Arquivo --}}
<div class="
col
-
sm
-
7
">
<label for="
nomeTrabalho
">Anexo*</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
anexoPlanoTrabalho
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanoTrabalho'
)
is
-
invalid
@
enderror
" id="
anexoPlanoTrabalho
" aria-describedby="
anexoPlanoTrabalho
" name="
anexoPlanoTrabalho
[]
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
@error('anexoPlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
{{
asset
(
'/img/icons/user-times-solid.svg'
)
}}
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
@error('anexoPlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
{{
asset
(
'/img/icons/user-times-solid.svg'
)
}}
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
</div>
</div>
</div>
@endfor
</div>
</div>
</div>
</div>
@endfor
@endif
</div>
<input type="
hidden
" name="
countParticipante
" id="
countParticipante
" value="
{{
old
(
'countParticipante'
)
!=
null
?
old
(
'countParticipante'
)
:
1
}}
"></input>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
</
div
>
</
div
>
</
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-6"
>
...
...
@@ -421,7 +428,7 @@
e
.
preventDefault
();
if
(
qtdLinhas
<
4
)
{
linha
=
montarLinhaInputPlanoTrabalho
();
$
(
'#planoTrabalho'
)
.
append
(
linha
);
//
$('#planoTrabalho').append(linha);
qtdLinhas
++
;
}
});
...
...
@@ -471,6 +478,23 @@
exibirErro
(
'justificativa'
);
//$('#anexoComitePreenchido').val("");
});
// document.getElementsByClassName('.simPlano .naoPlano').addEventListener("click", function(event){
// event.preventDefault()
// });
$
(
document
)
.
on
(
'click'
,
'.simPlano'
,
function
(
e
)
{
e
.
preventDefault
();
var
plano
=
$
(
this
)
.
next
()
.
next
()[
0
];
plano
.
style
.
display
=
'block'
;
console
.
log
(
'button sim'
);
});
$
(
document
)
.
on
(
'click'
,
'.naoPlano'
,
function
(
e
)
{
e
.
preventDefault
();
var
plano
=
$
(
this
)
.
next
()[
0
];
plano
.
style
.
display
=
'none'
;
console
.
log
(
'button nao'
);
});
});
function
exibirErro
(
campo
)
{
...
...
@@ -554,44 +578,49 @@
"@enderror"
+
"</select>"
+
"</div>"
+
"</div>"
+
"<h5>Dados do plano de trabalho</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Titulo*</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
"form-control @error('nomePlanoTrabalho') is-invalid @enderror"
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"@error('nomePlanoTrabalho')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-7"
+
">"
+
"<label for="
+
"nomeTrabalho"
+
">Anexo* </label>"
+
"<div class="
+
"input-group"
+
">"
+
"<div class='input-group-prepend'>"
+
"<span class='input-group-text' id='inputGroupFileAddon01'>Selecione um arquivo:</span>"
+
"</div>"
+
"<h6 class='mb-1'>Possui plano de trabalho?</h6>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 mr-1 simPlano'"
+
">Sim</button>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 naoPlano'"
+
">Não</button>"
+
"<div id="
+
"planoHabilitado"
+
">"
+
"<h5>Dados do plano de trabalho</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Titulo*</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
"form-control @error('nomePlanoTrabalho') is-invalid @enderror"
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"@error('nomePlanoTrabalho')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-7"
+
">"
+
"<label for="
+
"nomeTrabalho"
+
">Anexo* </label>"
+
"<div class="
+
"input-group"
+
">"
+
"<div class='input-group-prepend'>"
+
"<span class='input-group-text' id='inputGroupFileAddon01'>Selecione um arquivo:</span>"
+
"</div>"
+
"<div class='custom-file'>"
+
"<input type='file' class='custom-file-input @error('anexoPlanoTrabalho') is-invalid @enderror"
+
"id='inputGroupFile01'"
+
"aria-describedby='inputGroupFileAddon01' name='anexoPlanoTrabalho[]'>"
+
"<label class='custom-file-label' id='custom-file-label' for='inputGroupFile01'>O arquivo deve ser no formato PDF de até 2mb.</label>"
+
"</div>"
+
"</div>"
+
"@error('anexoPlanoTrabalho')"
+
"<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"@enderror"
+
"</div>"
+
"<div class=
'custom-file'
>"
+
"<input type='file' class='custom-file-input @error('anexoPlanoTrabalho') is-invalid @enderror"
+
"id='inputGroupFile01'
"
+
"aria-describedby='inputGroupFileAddon01' name='anexoPlanoTrabalho[]'
>"
+
"<label class='custom-file-label' id='custom-file-label' for='inputGroupFile01'>O arquivo deve ser no formato PDF de até 2mb.</label
>"
+
"<div class=
"
+
"col-sm-1"
+
"
>"
+
"<a class="
+
"delete"
+
">
"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
"
>"
+
"</a
>"
+
"</div>"
+
"</div>"
+
"@error('anexoPlanoTrabalho')"
+
"<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a class="
+
"delete"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</div>"
+
"</div>"
+
"</div>"
;
"</div>"
+
"</div>"
;
}
// function montarLinhaInputPlanoTrabalho(){
...
...
resources/views/participante/editais.blade.php
0 → 100644
View file @
971e04b7
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h3
>
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
></
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('participante.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Meus
projetos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/participante/index.blade.php
View file @
971e04b7
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('
admin
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('
participante
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
resources/views/projeto/index.blade.php
View file @
971e04b7
...
...
@@ -12,9 +12,9 @@
<
div
class
=
"col-sm-2"
>
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Cria
r
projeto
</
a
>
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Submete
r
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Cria
r
projeto
</
a
>
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Submete
r
projeto
</
a
>
@
endif
</
div
>
</
div
>
...
...
resources/views/proponente/cadastro.blade.php
View file @
971e04b7
...
...
@@ -15,6 +15,14 @@
</
div
>
</
div
>
@
endif
@
if
(
isset
(
$mensagem
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-danger"
>
<
p
>
{{
$mensagem
}}
</
p
>
</
div
>
</
div
>
@
endif
</
div
>
<
br
>
<
form
method
=
"POST"
action
=
"{{ route('proponente.store') }}"
>
...
...
resources/views/proponente/editais.blade.php
0 → 100644
View file @
971e04b7
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h3
>
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Inicio
da
Submissão
</
th
>
<
th
scope
=
"col"
>
Fim
da
Submissão
</
th
>
<
th
scope
=
"col"
>
Data
do
Resultado
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('projetos.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Projetos
submetidos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Recurso
ao
resultado
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/proponente/index.blade.php
View file @
971e04b7
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('
admin
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('
proponente
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
routes/web.php
View file @
971e04b7
...
...
@@ -29,13 +29,14 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){
});
//######### Proponente ########################################
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.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'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
)
->
middleware
(
'auth'
)
;
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'
)
->
middleware
(
'auth'
)
->
name
(
'user.perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
...
...
@@ -63,6 +64,7 @@ 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'
);
//########## Area da comissao ###################################
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
...
...
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