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
c76b836e
Unverified
Commit
c76b836e
authored
Jun 05, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 05, 2020
Browse files
Merge pull request #11 from lmts-ufape/comissao
pareceres
parents
e845ab51
b1f14492
Changes
22
Hide whitespace changes
Inline
Side-by-side
app/Area.php
View file @
c76b836e
...
@@ -34,4 +34,7 @@ class Area extends Model
...
@@ -34,4 +34,7 @@ class Area extends Model
public
function
revisor
(){
public
function
revisor
(){
return
$this
->
hasMany
(
'App\User'
,
'eventoId'
);
return
$this
->
hasMany
(
'App\User'
,
'eventoId'
);
}
}
public
function
avaliador
(){
return
$this
->
hasMany
(
'App\Area'
);
}
}
}
app/Avaliador.php
View file @
c76b836e
...
@@ -16,9 +16,13 @@ class Avaliador extends Model
...
@@ -16,9 +16,13 @@ class Avaliador extends Model
return
$this
->
belongsTo
(
'App\User'
);
return
$this
->
belongsTo
(
'App\User'
);
}
}
public
function
trabalhos
(){
public
function
trabalhos
(){
return
$this
->
belongsToMany
(
'App\Trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
);
return
$this
->
belongsToMany
(
'App\Trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
);
}
}
public
function
eventos
(){
public
function
eventos
(){
return
$this
->
belongsToMany
(
'App\Evento'
);
return
$this
->
belongsToMany
(
'App\Evento'
);
}
}
public
function
area
(){
return
$this
->
belongsTo
(
'App\Area'
);
}
}
}
app/Http/Controllers/AdministradorController.php
View file @
c76b836e
...
@@ -42,6 +42,24 @@ class AdministradorController extends Controller
...
@@ -42,6 +42,24 @@ class AdministradorController extends Controller
return
view
(
'administrador.editais'
,
[
'eventos'
=>
$eventos
]);
return
view
(
'administrador.editais'
,
[
'eventos'
=>
$eventos
]);
}
}
public
function
pareceres
(
Request
$request
){
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$evento
->
trabalhos
;
return
view
(
'administrador.projetos'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
]);
}
public
function
visualizarParecer
(
Request
$request
){
$avaliador
=
Avaliador
::
find
(
$request
->
avaliador_id
);
$trabalho
=
$avaliador
->
trabalhos
->
where
(
'id'
,
$request
->
trabalho_id
)
->
first
();
$parecer
=
$avaliador
->
trabalhos
->
where
(
'id'
,
$request
->
trabalho_id
)
->
first
()
->
pivot
;
//dd($parecer);
return
view
(
'administrador.visualizarParecer'
)
->
with
([
'trabalho'
=>
$trabalho
,
'parecer'
=>
$parecer
,
'avaliador'
=>
$avaliador
]);
}
public
function
create
()
{
public
function
create
()
{
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'administrador.novo_user'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
return
view
(
'administrador.novo_user'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
...
...
app/Http/Controllers/AvaliadorController.php
View file @
c76b836e
...
@@ -5,6 +5,10 @@ namespace App\Http\Controllers;
...
@@ -5,6 +5,10 @@ namespace App\Http\Controllers;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Auth
;
use
Auth
;
use
App\Trabalho
;
use
App\Trabalho
;
use
App\Evento
;
use
App\Recomendacao
;
use
App\User
;
use
App\Avaliador
;
class
AvaliadorController
extends
Controller
class
AvaliadorController
extends
Controller
{
{
...
@@ -13,37 +17,60 @@ class AvaliadorController extends Controller
...
@@ -13,37 +17,60 @@ class AvaliadorController extends Controller
return
view
(
'avaliador.index'
);
return
view
(
'avaliador.index'
);
}
}
public
function
editais
(){
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$eventos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
eventos
;
return
view
(
'avaliador.editais'
,
[
"eventos"
=>
$eventos
]);
}
public
function
visualizarTrabalhos
(
Request
$request
){
public
function
visualizarTrabalhos
(
Request
$request
){
$trabalhos
=
Auth
::
user
()
->
avaliadors
->
first
()
->
trabalhos
;
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
//dd($trabalhos);
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
trabalhos
;
return
view
(
'avaliador.listarTrabalhos'
,
[
'trabalhos'
=>
$trabalhos
]);
//dd();
return
view
(
'avaliador.listarTrabalhos'
,
[
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
]);
}
}
public
function
parecer
(
Request
$request
){
public
function
parecer
(
Request
$request
){
//$trabalho = Trabalho::find($request->trabalho_id);
//$trabalho = Trabalho::find($request->trabalho_id);
$avaliador
=
Auth
::
user
()
->
avaliadors
->
first
();
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$avaliador
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
();
$trabalho
=
$avaliador
->
trabalhos
->
find
(
$request
->
trabalho_id
);
$trabalho
=
$avaliador
->
trabalhos
->
find
(
$request
->
trabalho_id
);
$evento
=
Evento
::
find
(
$request
->
evento
);
$recomendacaos
=
Recomendacao
::
all
();
return
view
(
'avaliador.parecer'
,
[
'trabalho'
=>
$trabalho
]);
//dd($request->all());
return
view
(
'avaliador.parecer'
,
[
'trabalho'
=>
$trabalho
,
'evento'
=>
$evento
,
'recomendacaos'
=>
$recomendacaos
]);
}
}
public
function
enviarParecer
(
Request
$request
){
public
function
enviarParecer
(
Request
$request
){
$trabalhos
=
Auth
::
user
()
->
avaliadors
->
first
()
->
trabalhos
;
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$avaliador
=
Auth
::
user
()
->
avaliadors
->
first
();
$trabalho
=
$avaliador
->
trabalhos
->
find
(
1
);
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,
$evento
=
Evento
::
find
(
$request
->
evento_id
);
[
'status'
=>
1
,
$trabalhos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
trabalhos
;
'parecer'
=>
$request
->
textParecer
,
$avaliador
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
();
'AnexoParecer'
=>
$request
->
anexoParecer
]);
$trabalho
=
$avaliador
->
trabalhos
->
find
(
$request
->
trabalho_id
);
if
(
$request
->
anexoParecer
==
''
){
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'recomendacao'
=>
$request
->
recomendacao
]);
}
else
{
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'AnexoParecer'
=>
$request
->
anexoParecer
,
'recomendacao'
=>
$request
->
recomendacao
]);
}
// dd($trabalho);
// dd($trabalho);
return
view
(
'avaliador.listarTrabalhos'
,
[
'trabalhos'
=>
$trabalhos
]);
return
view
(
'avaliador.listarTrabalhos'
,
[
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
]);
}
}
}
}
app/Recomendacao.php
0 → 100644
View file @
c76b836e
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
Recomendacao
extends
Model
{
protected
$fillable
=
[
'nome'
];
}
app/Trabalho.php
View file @
c76b836e
...
@@ -50,7 +50,7 @@ class Trabalho extends Model
...
@@ -50,7 +50,7 @@ class Trabalho extends Model
}
}
public
function
area
(){
public
function
area
(){
return
$this
->
belongsTo
(
'App\Area'
,
'areaId'
);
return
$this
->
belongsTo
(
'App\Area'
);
}
}
public
function
autor
(){
public
function
autor
(){
...
@@ -85,6 +85,6 @@ class Trabalho extends Model
...
@@ -85,6 +85,6 @@ class Trabalho extends Model
return
$this
->
belongsTo
(
'App\CoordenadorComissao'
);
return
$this
->
belongsTo
(
'App\CoordenadorComissao'
);
}
}
public
function
avaliadors
(){
public
function
avaliadors
(){
return
$this
->
belongsToMany
(
'App\Avaliador'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
);
return
$this
->
belongsToMany
(
'App\Avaliador'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
);
}
}
}
}
database/migrations/2020_05_23_054805_create_avaliadors_table.php
View file @
c76b836e
...
@@ -19,6 +19,9 @@ class CreateAvaliadorsTable extends Migration
...
@@ -19,6 +19,9 @@ class CreateAvaliadorsTable extends Migration
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
unsignedBigInteger
(
'area_id'
)
->
nullable
();
$table
->
foreign
(
'area_id'
)
->
references
(
'id'
)
->
on
(
'areas'
);
});
});
}
}
...
...
database/migrations/2020_05_26_223341_create_avaliadors_trabalhos_table.php
View file @
c76b836e
...
@@ -20,6 +20,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
...
@@ -20,6 +20,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
$table
->
text
(
'parecer'
)
->
nullable
();
$table
->
text
(
'parecer'
)
->
nullable
();
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
string
(
'recomendacao'
)
->
nullable
();
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
...
...
database/migrations/2020_06_04_054313_create_recomendacaos_table.php
0 → 100644
View file @
c76b836e
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateRecomendacaosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'recomendacaos'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'recomendacaos'
);
}
}
database/seeds/AvaliadorSeeder.php
View file @
c76b836e
...
@@ -16,6 +16,7 @@ class AvaliadorSeeder extends Seeder
...
@@ -16,6 +16,7 @@ class AvaliadorSeeder extends Seeder
DB
::
table
(
'avaliadors'
)
->
insert
([
DB
::
table
(
'avaliadors'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
'user_id'
=>
$user_id
[
0
],
'area_id'
=>
1
,
]);
]);
$aval
=
App\Avaliador
::
find
(
1
);
$aval
=
App\Avaliador
::
find
(
1
);
...
@@ -35,6 +36,7 @@ class AvaliadorSeeder extends Seeder
...
@@ -35,6 +36,7 @@ class AvaliadorSeeder extends Seeder
DB
::
table
(
'avaliadors'
)
->
insert
([
DB
::
table
(
'avaliadors'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
'user_id'
=>
$user_id
[
0
],
'area_id'
=>
1
,
]);
]);
$aval
=
App\Avaliador
::
find
(
2
);
$aval
=
App\Avaliador
::
find
(
2
);
$evento
=
App\Evento
::
find
(
1
);
$evento
=
App\Evento
::
find
(
1
);
...
@@ -49,6 +51,7 @@ class AvaliadorSeeder extends Seeder
...
@@ -49,6 +51,7 @@ class AvaliadorSeeder extends Seeder
DB
::
table
(
'avaliadors'
)
->
insert
([
DB
::
table
(
'avaliadors'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
'user_id'
=>
$user_id
[
0
],
'area_id'
=>
1
,
]);
]);
// $aval = App\Avaliador::find(2);
// $aval = App\Avaliador::find(2);
...
@@ -61,6 +64,7 @@ class AvaliadorSeeder extends Seeder
...
@@ -61,6 +64,7 @@ class AvaliadorSeeder extends Seeder
DB
::
table
(
'avaliadors'
)
->
insert
([
DB
::
table
(
'avaliadors'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
'user_id'
=>
$user_id
[
0
],
'area_id'
=>
1
,
]);
]);
}
}
}
}
database/seeds/DatabaseSeeder.php
View file @
c76b836e
...
@@ -23,6 +23,7 @@ class DatabaseSeeder extends Seeder
...
@@ -23,6 +23,7 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
CoordenadorComissaoSeeder
::
class
);
$this
->
call
(
CoordenadorComissaoSeeder
::
class
);
$this
->
call
(
ParticipanteSeeder
::
class
);
$this
->
call
(
ParticipanteSeeder
::
class
);
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
RecomendacaoSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
// $this->call(UsersTableSeeder::class);
...
...
database/seeds/RecomendacaoSeeder.php
0 → 100644
View file @
c76b836e
<?php
use
Illuminate\Database\Seeder
;
class
RecomendacaoSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'Aceitacao Forte'
,
]);
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'Aceitacao Média'
,
]);
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'Aceitacao Fraca'
,
]);
}
}
resources/views/administrador/editais.blade.php
View file @
c76b836e
...
@@ -46,19 +46,23 @@
...
@@ -46,19 +46,23 @@
{{
--
<
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('coord.detalhesEvento', ['eventoId' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
a
href
=
"{{ route('coord.detalhesEvento', ['eventoId' =>
$evento->id
]) }}"
class
=
"dropdown-item
text-center
"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
Edital
Editar
Edital
</
a
>
</
a
>
<
a
href
=
"{{route('admin.atribuir', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item"
>
<
a
href
=
"{{route('admin.atribuir', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item
text-center
"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Atribuir
Avaliadores
Atribuir
Avaliadores
</
a
>
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
<
a
href
=
"{{route('admin.pareceres', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Visualizar
Pareceres
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
class
=
"text-center"
>
{{
csrf_field
()
}}
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
...
...
resources/views/administrador/projetos.blade.php
0 → 100644
View file @
c76b836e
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Trabalhos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
div
class
=
"accordion"
id
=
"accordionExample"
>
@
foreach
(
$trabalhos
as
$trabalho
)
<
div
class
=
"card "
>
<
div
class
=
"card-header "
id
=
"headingOne"
>
<
h2
class
=
"mb-0"
>
<
a
class
=
"btn btn-link btn-block text-left"
type
=
"button"
data
-
toggle
=
"collapse"
data
-
target
=
"#collapseOne{{
$trabalho->id
}}"
aria
-
expanded
=
"true"
aria
-
controls
=
"collapseOne"
>
<
h5
>
Titulo
:
{{
$trabalho
->
titulo
}}
</
h5
>
</
a
>
</
h2
>
</
div
>
<
div
id
=
"collapseOne{{
$trabalho->id
}}"
class
=
"collapse "
aria
-
labelledby
=
"headingOne"
data
-
parent
=
"#accordionExample"
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
<
form
action
=
"{{ route('admin.visualizarParecer') }}"
method
=
"post"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
button
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
disabled
=
"disabled"
@
endif
>
Visualizar
</
button
>
</
form
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
c76b836e
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
...
@@ -34,6 +35,7 @@
...
@@ -34,6 +35,7 @@
<
tr
>
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$avaliador
->
area
->
nome
}}
</
td
>
<
td
style
=
"text-align:center"
>
<
td
style
=
"text-align:center"
>
<
form
action
=
"{{ route('admin.adicionar') }}"
method
=
"POST"
>
<
form
action
=
"{{ route('admin.adicionar') }}"
method
=
"POST"
>
@
csrf
@
csrf
...
@@ -76,7 +78,7 @@
...
@@ -76,7 +78,7 @@
@
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"
>
Remover
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
>
Remover
</
button
>
</
form
>
</
form
>
</
td
>
</
td
>
</
tr
>
</
tr
>
...
...
resources/views/administrador/selecionarProjetos.blade.php
View file @
c76b836e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<
thead
>
<
thead
>
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
tr
>
...
@@ -32,6 +33,7 @@
...
@@ -32,6 +33,7 @@
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
tr
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
style
=
"text-align:center"
>
<
td
style
=
"text-align:center"
>
<
button
type
=
"button"
class
=
"btn btn-primary"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter{{
$trabalho->id
}}"
>
<
button
type
=
"button"
class
=
"btn btn-primary"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter{{
$trabalho->id
}}"
>
...
@@ -57,7 +59,7 @@
...
@@ -57,7 +59,7 @@
<
label
for
=
"exampleFormControlSelect2"
>
Example
multiple
select
</
label
>
<
label
for
=
"exampleFormControlSelect2"
>
Example
multiple
select
</
label
>
<
select
name
=
"avaliadores_id[]"
multiple
class
=
"form-control"
id
=
"exampleFormControlSelect2"
>
<
select
name
=
"avaliadores_id[]"
multiple
class
=
"form-control"
id
=
"exampleFormControlSelect2"
>
@
foreach
(
$trabalho
->
aval
as
$avaliador
)
@
foreach
(
$trabalho
->
aval
as
$avaliador
)
<
option
value
=
"{{
$avaliador->id
}}"
>
{{
$avaliador
->
user
->
name
}}
</
option
>
<
option
value
=
"{{
$avaliador->id
}}"
>
{{
$avaliador
->
user
->
name
}}
({{
$avaliador
->
area
->
nome
}})
</
option
>
@
endforeach
@
endforeach
</
select
>
</
select
>
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
teclado
para
selecionar
mais
de
um
.
</
small
>
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
teclado
para
selecionar
mais
de
um
.
</
small
>
...
@@ -91,17 +93,23 @@
...
@@ -91,17 +93,23 @@
<
thead
>
<
thead
>
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Total
</
th
>
<
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
>
@
foreach
(
$avaliadores
as
$avaliador
)
@
foreach
(
$avaliadores
as
$avaliador
)
@
php
$contador
=
0
;
@
endphp
@
foreach
(
$avaliador
->
trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
pivot
->
status
==
true
)
@
php
$contador
++
;
@
endphp
@
endif
@
endforeach
<
tr
>
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
trabalhos
->
count
()
}}
/
{{
$avaliador
->
trabalhos
->
count
()
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$avaliador
->
trabalhos
->
count
()
}}
</
td
>
<
td
>
{{
$contador
}}
/
{{
$avaliador
->
trabalhos
->
count
()
}}
</
td
>
<
td
style
=
"text-align:center"
>
...
</
td
>
<
td
style
=
"text-align:center"
>
...
</
td
>
</
tr
>
</
tr
>
@
endforeach
@
endforeach
...
...
resources/views/administrador/visualizarParecer.blade.php
0 → 100644
View file @
c76b836e
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
h5
class
=
"card-title"
>
Parecer
do
avaliador
:
{{
$avaliador
->
user
->
name
}}
</
h5
>
<
h6
class
=
"card-title"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
>
<
p
class
=
"card-text"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Parecer
</
label
>
<
textarea
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
disabled
=
"disabled"
rows
=
"3"
>
{{
$parecer
->
parecer
}}
</
textarea
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Recomendação
:
<
strong
>
{{
$parecer
->
recomendacao
}}
</
strong
>
</
label
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Anexo
:
</
label
>
</
div
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary"
>
Voltar
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
resources/views/avaliador/editais.blade.php
View file @
c76b836e
...
@@ -6,12 +6,9 @@
...
@@ -6,12 +6,9 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1
0
"
>
<
div
class
=
"col-sm-1
2
"
>
<
h3
>
Meus
Editais
</
h3
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
...
@@ -26,10 +23,8 @@
...
@@ -26,10 +23,8 @@
<
tbody
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
tr
>
<
td
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
{{
$evento
->
nome
}}
</
a
>
</
td
>
</
td
>
<
td
>
10
/
05
/
2020
</
td
>
<
td
>
10
/
05
/
2020
</
td
>
<
td
>
<
td
>
...
@@ -38,23 +33,11 @@
...
@@ -38,23 +33,11 @@
{{
--
<
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('
coord.detalhesEvent
o', ['evento
I
d' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
a
href
=
"{{ route('
avaliador.visualizarTrabalh
o', ['evento
_i
d' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
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
Projetos
para
avaliar
</
a
>
</
a
>
<
a
href
=
"
{
{route('evento.editar',$evento->id)}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
td
>
</
td
>
...
...
resources/views/avaliador/index.blade.php
View file @
c76b836e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
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
=
"
#
"
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 "
style
=
"border-radius: 30px; width: 18rem;"
>
<
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
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
@@ -17,25 +17,6 @@
...
@@ -17,25 +17,6 @@
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('avaliador.visualizarTrabalho') }}"
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"
>
Trabalhos
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.usuarios') }}"
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"
>
Usuários
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/avaliador/listarTrabalhos.blade.php
View file @
c76b836e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Trabalhos
</
h3
>
<
h3
>
Trabalhos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</
td
>
</
td
>
<
td
>
<
td
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
action
=
"{{ route('avaliador.parecer') }}"
method
=
"POST"
>
<
form
action
=
"{{ route('avaliador.parecer'
, ['evento' =>
$evento
]
) }}"
method
=
"POST"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
...
...
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