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
c6fe4274
Unverified
Commit
c6fe4274
authored
May 12, 2021
by
carlos1270
Committed by
GitHub
May 12, 2021
Browse files
Merge pull request #75 from carlos1270/master
Design do adm e crud função participante
parents
6afb8fb7
3a3fbf80
Changes
35
Hide whitespace changes
Inline
Side-by-side
app/Area.php
View file @
c6fe4274
...
@@ -37,4 +37,7 @@ class Area extends Model
...
@@ -37,4 +37,7 @@ class Area extends Model
public
function
avaliador
(){
public
function
avaliador
(){
return
$this
->
hasMany
(
'App\Area'
);
return
$this
->
hasMany
(
'App\Area'
);
}
}
public
function
grandeArea
()
{
return
$this
->
belongsTo
(
'App\GrandeArea'
,
'grande_area_id'
);
}
}
}
app/FuncaoParticipantes.php
View file @
c6fe4274
...
@@ -6,5 +6,7 @@ use Illuminate\Database\Eloquent\Model;
...
@@ -6,5 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class
FuncaoParticipantes
extends
Model
class
FuncaoParticipantes
extends
Model
{
{
//
public
function
participantes
()
{
return
$this
->
hasMany
(
"\App\Participante"
,
'funcao_participante_id'
);
}
}
}
app/Http/Controllers/AdministradorController.php
View file @
c6fe4274
...
@@ -29,7 +29,8 @@ class AdministradorController extends Controller
...
@@ -29,7 +29,8 @@ class AdministradorController extends Controller
}
}
public
function
naturezas
(){
public
function
naturezas
(){
$naturezas
=
Natureza
::
orderBy
(
'nome'
)
->
get
();
$naturezas
=
Natureza
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'naturezas.index'
)
->
with
([
'naturezas'
=>
$naturezas
]);
$funcoesParticipante
=
FuncaoParticipantes
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'naturezas.index'
)
->
with
([
'naturezas'
=>
$naturezas
,
'funcoes'
=>
$funcoesParticipante
]);
}
}
public
function
usuarios
(){
public
function
usuarios
(){
$users
=
User
::
orderBy
(
'name'
)
->
get
();
$users
=
User
::
orderBy
(
'name'
)
->
get
();
...
...
app/Http/Controllers/ParticipanteController.php
View file @
c6fe4274
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
use
App\Evento
;
use
App\Evento
;
use
App\Trabalho
;
use
App\Trabalho
;
use
App\Participante
;
use
App\Participante
;
use
App\FuncaoParticipantes
;
use
Auth
;
use
Auth
;
class
ParticipanteController
extends
Controller
class
ParticipanteController
extends
Controller
...
@@ -33,4 +34,45 @@ class ParticipanteController extends Controller
...
@@ -33,4 +34,45 @@ class ParticipanteController extends Controller
return
view
(
'participante.projetos'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
]);
return
view
(
'participante.projetos'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
]);
}
}
public
function
storeFuncao
(
Request
$request
)
{
$validated
=
$request
->
validate
([
'newFuncao'
=>
'required'
,
'nome_da_função'
=>
'required'
,
]);
$funcao
=
new
FuncaoParticipantes
();
$funcao
->
nome
=
$request
->
input
(
'nome_da_função'
);
$funcao
->
save
();
return
redirect
()
->
back
()
->
with
([
'mensagem'
=>
'Função de participante cadastrada com sucesso!'
]);
}
public
function
updateFuncao
(
Request
$request
,
$id
)
{
$validated
=
$request
->
validate
([
'editFuncao'
=>
'required'
,
'nome_da_função'
.
$id
=>
'required'
,
]);
$funcao
=
FuncaoParticipantes
::
find
(
$id
);
if
(
$funcao
->
participantes
->
count
()
>
0
)
{
return
redirect
()
->
back
()
->
with
([
'error'
=>
'Essa função não pode ser editada pois participantes estão vinculados a ela!'
]);
}
$funcao
->
nome
=
$request
->
input
(
'nome_da_função'
.
$id
);
$funcao
->
update
();
return
redirect
()
->
back
()
->
with
([
'mensagem'
=>
'Função de participante salva com sucesso!'
]);
}
public
function
destroyFuncao
(
$id
)
{
$funcao
=
FuncaoParticipantes
::
find
(
$id
);
if
(
$funcao
->
participantes
->
count
()
>
0
)
{
return
redirect
()
->
back
()
->
with
([
'error'
=>
'Essa função não pode ser excluída pois participantes estão vinculados a ela!'
]);
}
$funcao
->
delete
();
return
redirect
()
->
back
()
->
with
([
'mensagem'
=>
'Função de participante deletada com sucesso!'
]);
}
}
}
app/Http/Controllers/TrabalhoController.php
View file @
c6fe4274
...
@@ -104,7 +104,7 @@ class TrabalhoController extends Controller
...
@@ -104,7 +104,7 @@ class TrabalhoController extends Controller
}
}
//--Salvando os dados da submissão temporariamente
//--Salvando os dados da submissão temporariamente
$trabalho
=
$this
->
armazenarInfoTemp
(
$request
,
$proponente
);
//
$trabalho = $this->armazenarInfoTemp($request, $proponente);
//O anexo de Decisão do CONSU dependo do tipo de edital
//O anexo de Decisão do CONSU dependo do tipo de edital
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
){
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
){
...
@@ -134,9 +134,9 @@ class TrabalhoController extends Controller
...
@@ -134,9 +134,9 @@ class TrabalhoController extends Controller
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2048'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2048'
],
]);
]);
if
(
gettype
(
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
))
!=
'integer'
){
//
if(gettype($this->validarAnexosRascunho($request, $trabalho)) != 'integer'){
return
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
);
//
return $this->validarAnexosRascunho($request, $trabalho);
}
//
}
//$trabalho = Trabalho::create([
//$trabalho = Trabalho::create([
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
...
@@ -181,9 +181,9 @@ class TrabalhoController extends Controller
...
@@ -181,9 +181,9 @@ class TrabalhoController extends Controller
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2048'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2048'
],
]);
]);
if
(
gettype
(
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
))
!=
'integer'
){
//
if(gettype($this->validarAnexosRascunho($request, $trabalho)) != 'integer'){
return
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
);
//
return $this->validarAnexosRascunho($request, $trabalho);
}
//
}
//$trabalho = Trabalho::create([
//$trabalho = Trabalho::create([
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'coordenador_id'
]
=
$coordenador
->
id
;
$trabalho
[
'coordenador_id'
]
=
$coordenador
->
id
;
...
...
database/seeds/AvaliadorSeeder.php
View file @
c6fe4274
...
@@ -47,7 +47,7 @@ class AvaliadorSeeder extends Seeder
...
@@ -47,7 +47,7 @@ class AvaliadorSeeder extends Seeder
// $aval->eventos()->attach($evento);
// $aval->eventos()->attach($evento);
// $aval->save();
// $aval->save();
//
$user_id = DB::table('users')->where('name','Avaliador3')->pluck('id');
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Avaliador3'
)
->
pluck
(
'id'
);
DB
::
table
(
'avaliadors'
)
->
insert
([
DB
::
table
(
'avaliadors'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
'user_id'
=>
$user_id
[
0
],
...
...
public/css/layout.css
View file @
c6fe4274
...
@@ -199,6 +199,7 @@ body{
...
@@ -199,6 +199,7 @@ body{
background-color
:
rgb
(
0
,
140
,
255
);
background-color
:
rgb
(
0
,
140
,
255
);
margin-top
:
8px
;
margin-top
:
8px
;
margin-bottom
:
8px
;
margin-bottom
:
8px
;
border-radius
:
3px
;
}
}
.li-editais
{
.li-editais
{
...
@@ -216,7 +217,8 @@ body{
...
@@ -216,7 +217,8 @@ body{
.flexcroll
{
width
:
500px
;
.flexcroll
{
width
:
500px
;
height
:
400px
;
height
:
400px
;
overflow
:
scroll
;
overflow-y
:
inherit
;
overflow-x
:
hidden
;
}
}
.flexcroll
{
.flexcroll
{
...
@@ -237,14 +239,14 @@ body{
...
@@ -237,14 +239,14 @@ body{
/* Track */
/* Track */
.flexcroll
::-webkit-scrollbar-track
{
.flexcroll
::-webkit-scrollbar-track
{
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
-webkit-border-radius
:
10
px
;
-webkit-border-radius
:
5
px
;
border-radius
:
10
px
;
border-radius
:
5
px
;
}
}
/* Handle */
/* Handle */
.flexcroll
::-webkit-scrollbar-thumb
{
.flexcroll
::-webkit-scrollbar-thumb
{
-webkit-border-radius
:
10
px
;
-webkit-border-radius
:
5
px
;
border-radius
:
10
px
;
border-radius
:
5
px
;
background
:
rgb
(
0
,
140
,
255
);
background
:
rgb
(
0
,
140
,
255
);
box-shadow
:
currentColor
0
0
6px
rgba
(
0
,
0
,
0
,
0.5
);
box-shadow
:
currentColor
0
0
6px
rgba
(
0
,
0
,
0
,
0.5
);
}
}
...
@@ -286,3 +288,176 @@ section {
...
@@ -286,3 +288,176 @@ section {
position
:
relative
;
position
:
relative
;
margin
:
10px
;
margin
:
10px
;
}
}
.card-menu
{
color
:
rgb
(
0
,
140
,
255
);
border-radius
:
15px
;
width
:
14rem
;
height
:
16rem
;
border-color
:
rgb
(
0
,
140
,
255
);
}
.titulo-menu
{
color
:
rgb
(
0
,
140
,
255
);
;
margin-top
:
50px
;
margin-bottom
:
50px
;
}
.titulo-card-menu
{
margin-bottom
:
10px
;
}
.info-card
{
margin-top
:
45px
;
}
.quant-titulo-card
{
font-size
:
60px
;
}
.btn-info
{
border-radius
:
5px
;
background-color
:
rgb
(
55
,
187
,
55
);
color
:
white
;
font-weight
:
bolder
;
border-color
:
rgb
(
55
,
187
,
55
);
}
.btn-info
:hover
{
border-radius
:
5px
;
background-color
:
rgb
(
172
,
172
,
172
);
color
:
black
;
font-weight
:
bolder
;
border-color
:
rgb
(
172
,
172
,
172
);
}
.btn-primary
{
border-radius
:
5px
;
font-weight
:
bolder
;
}
.btn-secondary
{
border-radius
:
5px
;
font-weight
:
bolder
;
}
.btn-danger
{
border-radius
:
5px
;
font-weight
:
bolder
;
}
.btn-success
{
border-radius
:
5px
;
font-weight
:
bolder
;
}
.dropdown-item
{
color
:
rgb
(
0
,
140
,
255
);
}
.dropdown-item
:hover
{
color
:
rgb
(
0
,
140
,
255
);
}
.dropdown-item-delete
{
background-color
:
red
;
width
:
155px
;
border-radius
:
5px
;
margin-left
:
10px
;
margin-right
:
10px
;
color
:
white
;
}
.dropdown-item-delete
:hover
{
background-color
:
rgb
(
207
,
0
,
0
);
color
:
white
;
}
.dropdown-options
a
:hover
{
text-decoration
:
none
;
}
.dropdown-hr
{
margin-top
:
0px
;
margin-bottom
:
0px
;
width
:
80%
;
}
.titulo-table
{
color
:
rgb
(
0
,
140
,
255
);
}
.table
th
{
color
:
rgb
(
0
,
140
,
255
);
}
.form-control-edit
{
border-top
:
none
;
border-left
:
none
;
border-right
:
none
;
border-radius
:
0px
;
border-color
:
rgb
(
0
,
140
,
255
);
}
.form-control-edit
:focus
{
border-color
:
none
;
box-shadow
:
none
;
border-top
:
none
;
border-left
:
none
;
border-right
:
none
;
border-radius
:
0px
;
}
.form-control-edit
:hover
{
border-color
:
none
;
box-shadow
:
none
;
border-top
:
none
;
border-left
:
none
;
border-right
:
none
;
border-radius
:
0px
;
border-color
:
rgb
(
0
,
140
,
255
);
}
.modal-header-submeta
{
border-bottom
:
1px
solid
rgb
(
0
,
140
,
255
);
padding-bottom
:
5px
;
margin-left
:
20px
;
margin-right
:
20px
;
}
.labels-blue
label
{
color
:
rgb
(
0
,
140
,
255
);
font-weight
:
500
;
}
.modal-submeta
{
border-radius
:
20px
;
border-color
:
rgba
(
204
,
204
,
204
,
0.555
);
}
.texto-info
{
color
:
rgba
(
102
,
102
,
102
,
0.555
);
text-align
:
justify
;
font-size
:
12px
;
padding-top
:
0px
;
margin-bottom
:
40px
;
border-top
:
1px
solid
rgba
(
102
,
102
,
102
,
0.555
)
;
}
button
.close
{
padding
:
0
;
font-size
:
35px
;
background-color
:
transparent
;
border
:
none
;
-webkit-appearance
:
none
;
}
.close
:hover
,
.close
:focus
{
color
:
none
;
text-decoration
:
none
;
text-shadow
:
none
;
box-shadow
:
none
;
border
:
none
;
}
resources/views/administrador/atribuirAvaliadores.blade.php
View file @
c6fe4274
...
@@ -4,37 +4,69 @@
...
@@ -4,37 +4,69 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
</
h2
>
<
div
class
=
"row justify-content-center titulo-menu"
>
<
div
class
=
"container"
>
<
h4
>
Edital
Selecionado
:
{{
$evento
->
nome
}}
</
h4
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
h3
>
Edital
Selecionado
:
{{
$evento
->
nome
}}
</
h3
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center "
>
<
div
class
=
"col-sm-3 d-flex justify-content-center "
>
<
a
href
=
"{{route('admin.selecionar', ['evento_id' =>
$evento->id
])}}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{route('admin.selecionar', ['evento_id' =>
$evento->id
])}}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Selecionar
Avaliadores
</
h2
>
<
div
class
=
"container"
>
</
div
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"col-md-12"
>
<
h2
style
=
"padding-top:15px"
>
Selecionar
avaliadores
</
h2
>
</
div
>
</
div
>
@
php
$avaliadores
=
\
App\Avaliador
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h5
>
Nº
total
de
avaliadores
:</
h5
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$avaliadores
}}
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.projetos', ['evento_id' =>
$evento->id
]) }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('admin.projetos', ['evento_id' =>
$evento->id
]) }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Selecionar
Projetos
</
h2
>
<
div
class
=
"container"
>
</
div
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"col-md-12"
>
<
h2
style
=
"padding-top:15px"
>
Selecionar
projetos
</
h2
>
</
div
>
</
div
>
@
php
$projetos
=
\
App\Trabalho
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h5
>
Nº
total
de
projetos
:</
h5
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$projetos
}}
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
{{
--
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"#"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"#"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
...
@@ -42,7 +74,7 @@
...
@@ -42,7 +74,7 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
--
}}
</
div
>
</
div
>
...
...
resources/views/administrador/editais.blade.php
View file @
c6fe4274
...
@@ -6,11 +6,25 @@
...
@@ -6,11 +6,25 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
div
class
=
"col-sm-4"
>
<
h3
>
Meus
Editais
</
h3
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-2"
>
<
button
class
=
"btn"
onclick
=
"buscarEdital(this.parentElement.parentElement.children[1].children[0])"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
button
>
</
div
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Digite o nome do edital"
onkeyup
=
"buscarEdital(this)"
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-1"
>
</
div
>
<
div
class
=
"col-sm-5"
style
=
"float: center;"
>
<
h4
class
=
"titulo-table"
>
Editais
</
h4
>
</
div
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-
primary
"
style
=
"float: right;"
>
Criar
Edital
</
a
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-
info
"
style
=
"float: right;"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
...
@@ -22,7 +36,7 @@
...
@@ -22,7 +36,7 @@
<
th
scope
=
"col"
>
Opção
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
>
<
tbody
id
=
"eventos"
>
@
foreach
(
$eventos
as
$evento
)
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
tr
>
<
td
>
<
td
>
...
@@ -35,29 +49,29 @@
...
@@ -35,29 +49,29 @@
@
if
(
auth
()
->
user
()
->
id
==
$evento
->
criador_id
)
@
if
(
auth
()
->
user
()
->
id
==
$evento
->
criador_id
)
<
div
class
=
"btn-group dropright dropdown-options"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
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"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('evento.editar', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item text-center"
>
<
a
href
=
"{{ route('evento.editar', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item text-center"
>
Editar
Edital
Editar
Edital
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.atribuir', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
<
a
href
=
"{{route('admin.atribuir', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Atribuir
Avaliadores
Atribuir
Avaliadores
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.pareceres', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
<
a
href
=
"{{route('admin.pareceres', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Visualizar
Pareceres
Visualizar
Pareceres
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
<
a
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Analisar
projetos
Analisar
projetos
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<!--
Button
trigger
modal
-->
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"dropdown-item text-center"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModal{{
$evento->id
}}"
>
<
button
type
=
"button"
class
=
"dropdown-item
dropdown-item-delete
text-center"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModal{{
$evento->id
}}"
>
Deletar
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
</
button
>
</
button
>
</
div
>
</
div
>
...
@@ -104,6 +118,22 @@
...
@@ -104,6 +118,22 @@
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
>
<
script
>
function
buscarEdital
(
input
)
{
var
editais
=
document
.
getElementById
(
'eventos'
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
var
nomeEvento
=
editais
[
i
]
.
children
[
0
]
.
children
[
0
]
.
textContent
;
if
(
nomeEvento
.
substr
(
0
)
.
indexOf
(
input
.
value
)
>=
0
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
else
{
editais
[
i
]
.
style
.
display
=
"none"
;
}
}
}
else
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
}
}
</
script
>
</
script
>
@
endsection
@
endsection
resources/views/administrador/index.blade.php
View file @
c6fe4274
...
@@ -4,46 +4,137 @@
...
@@ -4,46 +4,137 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
-
Perfil
:
Administrador
</
h2
>
<
div
class
=
"row justify-content-center titulo-menu"
>
<
h4
>
Página
Principal
-
Administrador
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-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('admin.editais') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
<
div
class
=
"container"
>
</
div
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"col-md-12"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
</
div
>
</
div
>
@
php
$eventos
=
\
App\Evento
::
all
();
$quantAberta
=
0
;
$quantEncerrada
=
0
;
$hoje
=
today
();
foreach
(
$eventos
as
$evento
)
{
if
(
$evento
->
fimSubmissao
>=
$hoje
)
{
$quantAberta
++
;
}
else
{
$quantEncerrada
++
;
}
}
@
endphp
<
div
class
=
"info-card"
>
<
div
class
=
"row"
style
=
"text-align: left;"
>
<
div
class
=
"col-md-12"
>
Total
:
{{
$quantAberta
+
$quantEncerrada
}}
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"text-align: left;"
>
<
div
class
=
"col-md-12"
>
Aberto
:
{{
$quantAberta
}}
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"text-align: left;"
>
<
div
class
=
"col-md-12"
>
Encerrado
:
{{
$quantEncerrada
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.naturezas') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('admin.naturezas') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"container"
>
<
h2
style
=
"padding-top:15px"
>
Natureza
</
h2
>
<
div
class
=
"row titulo-card-menu"
>
</
div
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Natureza
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h6
>
Nº
total
de
naturezas
:</
h6
>
</
div
>
</
div
>
@
php
$naturezas
=
\
App\Natureza
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$naturezas
}}
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('grandearea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('grandearea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"container"
>
<
h2
style
=
"padding-top:15px"
>
Áreas
</
h2
>
<
div
class
=
"row titulo-card-menu"
>
</
div
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Áreas
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h6
>
Nº
total
de
áreas
:</
h6
>
</
div
>
</
div
>
@
php
$grandeAreas
=
\
App\GrandeArea
::
count
();
$areas
=
\
App\Area
::
count
();
$grandeAreas
=
\
App\SubArea
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$grandeAreas
+
$areas
+
$grandeAreas
}}
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('admin.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"container"
>
<
h2
style
=
"padding-top:15px"
>
Usuários
</
h2
>
<
div
class
=
"row titulo-card-menu"
>
</
div
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Usuários
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h6
>
Nº
total
de
usuários
:</
h6
>
</
div
>
</
div
>
@
php
$usuarios
=
\
App\User
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$usuarios
}}
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
...
...
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
c6fe4274
...
@@ -2,30 +2,41 @@
...
@@ -2,30 +2,41 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top:
10
0px;"
>
<
div
class
=
"container"
style
=
"margin-top:
3
0px;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
style
=
"margin-bottom: 50px;"
>
<
div
class
=
"col-md-9"
>
<
h3
>
Avaliadores
</
h3
>
</
div
>
<
div
class
=
"col-md-1"
>
<
div
class
=
"col-md-1"
>
<
a
href
=
"{{ route('admin.atribuir', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-
prim
ary"
>
<
a
href
=
"{{ route('admin.atribuir', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-
second
ary"
>
Voltar
Voltar
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-md-9"
style
=
"text-align: center;"
>
<
h3
class
=
"titulo-table"
>
Avaliadores
</
h3
>
</
div
>
<
div
class
=
"col-md-2"
>
<
div
class
=
"col-md-2"
>
<!--
Button
trigger
modal
-->
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"btn btn-
primary
"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter"
>
<
button
type
=
"button"
class
=
"btn btn-
info
"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter"
>
Enviar
Convite
Enviar
Convite
</
button
>
</
button
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-8"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1"
>
<
button
class
=
"btn"
onclick
=
"buscar(this.parentElement.parentElement.children[1].children[0])"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
button
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Digite o e-mail do avaliador"
onkeyup
=
"buscar(this)"
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
thead
>
...
@@ -36,7 +47,7 @@
...
@@ -36,7 +47,7 @@
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
>
<
tbody
id
=
"avaliadores"
>
@
foreach
(
$avaliadores
as
$avaliador
)
@
foreach
(
$avaliadores
as
$avaliador
)
<
tr
>
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
...
@@ -62,11 +73,9 @@
...
@@ -62,11 +73,9 @@
</
tbody
>
</
tbody
>
</
table
>
</
table
>
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px;"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center"
>
<
h4
class
=
"titulo-table"
>
Avaliadores
Selecionados
para
o
Edital
:
<
span
style
=
"color: black;"
>
{{
$evento
->
nome
}}
</
span
>
</
h4
>
<
h4
>
Avaliadores
Selecionados
para
o
Edital
:
{{
$evento
->
nome
}}
</
h4
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
...
@@ -84,22 +93,21 @@
...
@@ -84,22 +93,21 @@
<
tr
>
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
@
if
(
$avaliador
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
@
if
(
$avaliador
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
td
style
=
"color: rgb(3, 189, 3);"
>
Aceito
</
td
>
Aceito
@
elseif
(
is_null
(
$avaliador
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
))
@
elseif
(
is_null
(
$avaliador
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
))
<
td
>
A
confirmar
</
td
>
Pendente
@
else
@
else
<
td
style
=
"color: red;"
>
Recusado
</
td
>
Recusado
@
endif
@
endif
</
td
>
<
td
style
=
"text-align:center"
>
<
td
style
=
"text-align:center"
>
<
form
action
=
"{{ route('admin.remover') }}"
method
=
"POST"
>
<
form
action
=
"{{ route('admin.remover') }}"
method
=
"POST"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
@
if
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
>
Remover
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
danger
"
@
if
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
>
Remover
</
button
>
</
form
>
</
form
>
</
td
>
</
td
>
</
tr
>
</
tr
>
...
@@ -114,36 +122,39 @@
...
@@ -114,36 +122,39 @@
<!--
Modal
-->
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"exampleModalCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"exampleModalCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content
modal-submeta
"
>
<
div
class
=
"modal-header"
>
<
div
class
=
"modal-header
modal-header-submeta
"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
Enviar
Convite
</
h5
>
<
h5
class
=
"modal-title
titulo-table
"
id
=
"exampleModalLongTitle"
style
=
"font-size: 20px;"
>
Enviar
Convite
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"color: rgb(182, 182, 182)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"modal-body"
style
=
"margin-left: 20px; margin-right: 20px;"
>
<
form
action
=
"{{ route('admin.enviarConvite') }}"
method
=
"POST"
>
<
form
action
=
"{{ route('admin.enviarConvite') }}"
method
=
"POST"
class
=
"labels-blue"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
</
label
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
<
span
style
=
"color: red;"
>*</
span
>
</
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Email
</
label
>
<
label
for
=
"exampleInputEmail1"
>
Email
<
span
style
=
"color: red;"
>*</
span
>
</
label
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Tipo
</
label
>
<
label
for
=
"exampleFormControlSelect1"
>
Tipo
</
label
>
<
select
class
=
"form-control"
name
=
"tipo"
id
=
"exampleFormControlSelect1"
>
<
select
class
=
"form-control"
name
=
"tipo"
id
=
"exampleFormControlSelect1"
disabled
>
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
<
div
class
=
"mx-auto"
>
<
div
class
=
"form-group"
style
=
"margin-top: 40px; margin-bottom: 40px;"
>
<
button
type
=
"submit"
class
=
"btn btn-success mx-auto"
>
Enviar
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-info"
style
=
"width: 100%"
>
Enviar
</
button
>
</
div
>
</
div
>
<
div
class
=
"form-group texto-info"
>
O
convite
será
enviador
por
e
-
mail
e
o
preenchimento
dos
dados
será
de
inteira
responsabilidade
do
usuário
convidado
.
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
@@ -157,6 +168,24 @@
...
@@ -157,6 +168,24 @@
<
script
>
<
script
>
$
(
'#myModal'
)
.
on
(
'shown.bs.modal'
,
function
()
{
$
(
'#myModal'
)
.
on
(
'shown.bs.modal'
,
function
()
{
$
(
'#myInput'
)
.
trigger
(
'focus'
)
$
(
'#myInput'
)
.
trigger
(
'focus'
)
})
});
function
buscar
(
input
)
{
var
editais
=
document
.
getElementById
(
'avaliadores'
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
var
nomeEvento
=
editais
[
i
]
.
children
[
1
]
.
textContent
;
if
(
nomeEvento
.
substr
(
0
)
.
indexOf
(
input
.
value
)
>=
0
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
else
{
editais
[
i
]
.
style
.
display
=
"none"
;
}
}
}
else
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
}
}
</
script
>
</
script
>
@
endsection
@
endsection
resources/views/administrador/selecionarProjetos.blade.php
View file @
c6fe4274
...
@@ -2,27 +2,41 @@
...
@@ -2,27 +2,41 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top:
10
0px;"
>
<
div
class
=
"container"
style
=
"margin-top:
3
0px;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center"
style
=
"margin-bottom: 50px;"
>
{{
--
<
div
class
=
"col-md-12"
>
--
}}
<
div
class
=
"col-md-1"
>
<
h3
>
Lista
de
Projetos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
<
a
href
=
"{{ route('admin.atribuir', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-secondary"
>
{{
--
</
div
>
--
}}
Voltar
</
a
>
</
div
>
<
div
class
=
"col-md-10"
style
=
"text-align: center;"
>
<
h3
class
=
"titulo-table"
>
Lista
de
Projetos
do
Edital
:
<
span
style
=
"color: black;"
>
{{
$evento
->
nome
}}
</
span
>
</
h3
>
</
div
>
<
div
class
=
"col-md-1"
>
<!--
Button
trigger
modal
-->
{{
--
<
button
type
=
"button"
class
=
"btn btn-info"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter"
>
Enviar
Convite
</
button
>
--
}}
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row"
>
{{
--
<
div
class
=
"col-md-12"
>
--
}}
<
div
class
=
"col-md-8"
>
<
h5
>
Total
:
</
h5
>
<
div
class
=
"row"
>
{{
--
</
div
>
--
}}
<
div
class
=
"col-sm-1"
>
<
button
class
=
"btn"
onclick
=
"buscar(this.parentElement.parentElement.children[1].children[0])"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
button
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Digite o nome do projeto"
onkeyup
=
"buscar(this)"
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
a
href
=
"{{ route('admin.atribuir', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
>
Voltar
</
a
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
thead
>
...
@@ -33,7 +47,7 @@
...
@@ -33,7 +47,7 @@
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
>
<
tbody
id
=
"projetos"
>
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
tr
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
...
@@ -85,10 +99,10 @@
...
@@ -85,10 +99,10 @@
</
tbody
>
</
tbody
>
</
table
>
</
table
>
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px;"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
h3
>
Status
dos
Projetos
em
Avaliação
:
{{
$evento
->
nome
}}
</
h3
>
<
h3
class
=
"titulo-table"
>
Status
dos
Projetos
em
Avaliação
do
edital
:
<
span
style
=
"color: black;"
>
{{
$evento
->
nome
}}
</
span
>
</
h3
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -134,7 +148,24 @@
...
@@ -134,7 +148,24 @@
<
script
>
<
script
>
$
(
'#myModal'
)
.
on
(
'shown.bs.modal'
,
function
()
{
$
(
'#myModal'
)
.
on
(
'shown.bs.modal'
,
function
()
{
$
(
'#myInput'
)
.
trigger
(
'focus'
)
$
(
'#myInput'
)
.
trigger
(
'focus'
)
})
});
function
buscar
(
input
)
{
var
editais
=
document
.
getElementById
(
'projetos'
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
var
nomeEvento
=
editais
[
i
]
.
children
[
0
]
.
textContent
;
if
(
nomeEvento
.
substr
(
0
)
.
indexOf
(
input
.
value
)
>=
0
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
else
{
editais
[
i
]
.
style
.
display
=
"none"
;
}
}
}
else
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
}
}
</
script
>
</
script
>
@
endsection
@
endsection
resources/views/administrador/usersAdmin.blade.php
View file @
c6fe4274
...
@@ -2,26 +2,31 @@
...
@@ -2,26 +2,31 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top:
10
0px;"
>
<
div
class
=
"container"
style
=
"margin-top:
3
0px;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Usuários
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('admin.user.create')}
}
"
class
=
"btn btn-primary"
style
=
"float: right;"
>
{{
__
(
'Criar usuário'
)
}}
</
a
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top:
10
0px;"
>
<
div
class
=
"col-md-12"
style
=
"margin-top:
3
0px;"
>
<
div
class
=
"alert alert-success"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1"
>
<
a
href
=
"{{ route('admin.index') }}"
class
=
"btn btn-secondary"
>
Voltar
</
a
>
</
div
>
<
div
class
=
"col-sm-9"
style
=
"text-align: center;"
>
<
h3
class
=
"titulo-table"
>
Usuários
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('admin.user.create')}
}
"
class
=
"btn btn-info"
style
=
"float: right;"
>
{{
__
(
'Criar usuário'
)
}}
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
table
class
=
"table table-bordered"
>
...
@@ -49,14 +54,14 @@
...
@@ -49,14 +54,14 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{route('admin.user.edit',
$user->id
)}}"
class
=
"dropdown-item"
>
<
a
href
=
"{{route('admin.user.edit',
$user->id
)}}"
class
=
"dropdown-item text-center"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
Editar
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
form
method
=
"POST"
action
=
"{{route('admin.user.destroy',
$user->id
)}}"
>
<
form
method
=
"POST"
action
=
"{{route('admin.user.destroy',
$user->id
)}}"
>
{{
csrf_field
()
}}
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
button
type
=
"submit"
class
=
"dropdown-item
dropdown-item-delete text-center
"
>
<
img
src
=
"
{
{asset('img/icons/
trash-alt-regular.svg')}
}
"
class
=
"icon-card
"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/
logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
...
@@ -79,14 +84,14 @@
...
@@ -79,14 +84,14 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{route('admin.user.edit',
$user->id
)}}"
class
=
"dropdown-item"
>
<
a
href
=
"{{route('admin.user.edit',
$user->id
)}}"
class
=
"dropdown-item text-center"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
Editar
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
form
method
=
"POST"
action
=
"{{route('admin.user.destroy',
$user->id
)}}"
>
<
form
method
=
"POST"
action
=
"{{route('admin.user.destroy',
$user->id
)}}"
>
{{
csrf_field
()
}}
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
button
type
=
"submit"
class
=
"dropdown-item
dropdown-item-delete text-center
"
>
<
img
src
=
"
{
{asset('img/icons/
trash-alt-regular.svg')}
}
"
class
=
"icon-card
"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/
logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
...
...
resources/views/administradorResponsavel/editais.blade.php
View file @
c6fe4274
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<
h3
>
Meus
Editais
</
h3
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-
primary
"
>
Criar
Edital
</
a
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-
info
"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/avaliador/editais.blade.php
View file @
c6fe4274
...
@@ -23,45 +23,43 @@
...
@@ -23,45 +23,43 @@
</
thead
>
</
thead
>
<
tbody
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
@
foreach
(
$eventos
as
$evento
)
<
tr
>
@
if
(
$evento
->
pivot
->
convite
!==
false
)
<
td
>
<
tr
>
{{
$evento
->
nome
}}
<
td
>
</
td
>
{{
$evento
->
nome
}}
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))
}}
</
td
>
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))
}}
</
td
>
<
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))
}}
</
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
td
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
div
class
=
"dropdown-menu"
>
</
a
>
@
if
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
@
if
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
Projetos
para
avaliar
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
</
a
>
Projetos
para
avaliar
@
elseif
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
false
)
</
a
>
<
button
disabled
=
"disabled"
class
=
"dropdown-item"
>
@
elseif
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
false
)
Convite
recusado
<
button
disabled
=
"disabled"
class
=
"dropdown-item"
>
</
button
>
Convite
recusado
@
elseif
(
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
)
</
button
>
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>true]) }}"
class
=
"dropdown-item"
>
@
elseif
(
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
)
<
img
src
=
"
{
{asset('img/icons/confirm.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>true]) }}"
class
=
"dropdown-item"
>
Aceitar
Convite
<
img
src
=
"
{
{asset('img/icons/confirm.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
</
a
>
Aceitar
Convite
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>false]) }}"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/recuse.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>false]) }}"
class
=
"dropdown-item"
>
Recusar
Convite
<
img
src
=
"
{
{asset('img/icons/recuse.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
</
a
>
Recusar
Convite
@
endif
</
a
>
@
endif
</
div
>
</
div
>
</
td
>
</
div
>
</
tr
>
</
div
>
@
endif
</
td
>
</
tr
>
@
endforeach
@
endforeach
</
tbody
>
</
tbody
>
</
table
>
</
table
>
...
...
resources/views/avaliador/index.blade.php
View file @
c6fe4274
...
@@ -4,16 +4,56 @@
...
@@ -4,16 +4,56 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
-
Perfil
:
Avaliador
</
h2
>
<
div
class
=
"row justify-content-center titulo-menu"
>
<
h4
>
Página
Principal
-
Avaliador
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"{{ route('avaliador.editais') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('avaliador.editais') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
<
div
class
=
"container"
>
</
div
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"col-md-12"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
</
div
>
</
div
>
@
php
$eventos
=
auth
()
->
user
()
->
avaliadors
->
eventos
;
$quantAberta
=
0
;
$quantEncerrada
=
0
;
$hoje
=
today
();
foreach
(
$eventos
as
$evento
)
{
if
(
$evento
->
pivot
->
convite
===
null
||
$evento
->
pivot
->
convite
)
{
if
(
$evento
->
fimSubmissao
>=
$hoje
)
{
$quantAberta
++
;
}
else
{
$quantEncerrada
++
;
}
}
}
@
endphp
<
div
class
=
"info-card"
>
<
div
class
=
"row"
style
=
"text-align: left;"
>
<
div
class
=
"col-md-12"
>
Total
:
{{
$quantAberta
+
$quantEncerrada
}}
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"text-align: left;"
>
<
div
class
=
"col-md-12"
>
Aberto
:
{{
$quantAberta
}}
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"text-align: left;"
>
<
div
class
=
"col-md-12"
>
Encerrado
:
{{
$quantEncerrada
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
c6fe4274
...
@@ -584,22 +584,28 @@
...
@@ -584,22 +584,28 @@
<hr>
<hr>
</p>
</p>
<div class="
row
justify
-
content
-
center
">
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
md
-
6
">
{{--
<div class="
col
-
md
-
6
">
<button type="
submit
" formaction="
{{
route
(
'trabalho.storeParcial'
)}}
" class="
btn
btn
-
primary
" style="
width
:
100
%
;
margin
-
bottom
:
10
px
">
<button type="
submit
" formaction="
{{
route
(
'trabalho.storeParcial'
)}}
" class="
btn
btn
-
primary
" style="
width
:
100
%
;
margin
-
bottom
:
10
px
">
{{ __('Salvar como Rascunho') }}
{{ __('Salvar como Rascunho') }}
</button>
</button>
</div>
</div>
--}}
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
12
">
<button type="
submit
" class="
btn
btn
-
success
" style="
width
:
100
%
">
<button type="
submit
" class="
btn
btn
-
success
" style="
width
:
100
%
">
{{ __('Enviar Projeto') }}
{{ __('Enviar Projeto') }}
</button>
</button>
</div>
</div>
</div>
<br>
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
12
">
@if (Auth()->user()->administradors != null)
<a href="
{{
route
(
'admin.editais'
)
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@else
<a href="
{{
route
(
'proponente.projetosEdital'
,
[
'id'
=>
$edital
->
id
])
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@endif
</div>
</div>
</div>
@if (Auth()->user()->administradors != null)
<a href="
{{
route
(
'admin.editais'
)
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@else
<a href="
{{
route
(
'proponente.projetosEdital'
,
[
'id'
=>
$edital
->
id
])
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@endif
</form>
</form>
</div>
</div>
</div>
</div>
...
...
resources/views/naturezas/area/detalhes.blade.php
View file @
c6fe4274
...
@@ -5,59 +5,69 @@
...
@@ -5,59 +5,69 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top:
10
0px;"
>
<
div
class
=
"col-md-12"
style
=
"margin-top:
3
0px;"
>
<
div
class
=
"alert alert-success"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Subáreas de '
)
.
$area
->
nome
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
"{{ route('subarea.criar', ['id' =>
$area->id
]) }}"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px; float: right;"
>
{{
__
(
'Criar subárea'
)
}}
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"margin-top: 30px;"
>
<
div
class
=
"col-sm-1"
>
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$area->grandeArea
->id]) }}"
class
=
"btn btn-secondary"
>
Voltar
</
a
>
</
div
>
<
div
class
=
"col-sm-9"
style
=
"text-align: center;"
>
<
h2
class
=
"titulo-table"
>
{{
__
(
'Subáreas de '
)
.
$area
->
nome
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"{{ route('subarea.criar', ['id' =>
$area->id
]) }}"
class
=
"btn btn-info"
style
=
"float: right;"
>
{{
__
(
'Criar subárea'
)
}}
</
a
>
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
div
class
=
"row"
style
=
"margin-bottom: 200px;"
>
<
thead
>
<
div
class
=
"col-md-12"
>
<
tr
>
<
table
class
=
"table table-bordered"
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
thead
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
tr
>
</
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
</
thead
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
tbody
>
</
tr
>
@
foreach
(
$subAreas
as
$subArea
)
</
thead
>
<
tr
>
<
tbody
>
<
td
>
@
foreach
(
$subAreas
as
$subArea
)
{{
$subArea
->
nome
}}
<
tr
>
</
td
>
<
td
>
<
td
>
{{
$subArea
->
nome
}}
<
div
class
=
"btn-group dropright dropdown-options"
>
</
td
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
td
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
</
a
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
div
class
=
"dropdown-menu"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
div
class
=
"dropdown-menu"
>
Editar
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item text-center"
>
</
a
>
Editar
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
</
a
>
{{
csrf_field
()
}}
<
hr
class
=
"dropdown-hr"
>
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
csrf_field
()
}}
Deletar
<
button
type
=
"submit"
class
=
"dropdown-item dropdown-item-delete text-center"
>
</
button
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
</
form
>
</
button
>
</
div
>
</
div
>
</
form
>
</
td
>
</
div
>
</
tr
>
</
div
>
@
endforeach
</
td
>
</
tbody
>
</
tr
>
</
table
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
endsection
\ No newline at end of file
resources/views/naturezas/area/editar_area.blade.php
View file @
c6fe4274
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px; "
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('area.atualizar', ['id' =>
$area->id
])}}"
>
<
form
method
=
"POST"
action
=
"{{ route('area.atualizar', ['id' =>
$area->id
])}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$area->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$area->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
resources/views/naturezas/area/index.blade.php
View file @
c6fe4274
...
@@ -33,18 +33,20 @@
...
@@ -33,18 +33,20 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('area.show', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item"
>
<
a
href
=
"{{ route('area.show', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item
text-center
"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
Detalhes
</
a
>
</
a
>
<
a
href
=
"{{ route('area.editar', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item"
>
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{ route('area.editar', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item text-center"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
Editar
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
form
method
=
"POST"
action
=
"{{ route('area.deletar', ['id' =>
$area->id
]) }}"
>
<
form
method
=
"POST"
action
=
"{{ route('area.deletar', ['id' =>
$area->id
]) }}"
>
{{
csrf_field
()
}}
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
button
type
=
"submit"
class
=
"dropdown-item
dropdown-item-delete text-center
"
>
<
img
src
=
"
{
{asset('img/icons/
trash-alt-regular.svg')}
}
"
class
=
"icon-card
"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/
logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment