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
41fa880f
Commit
41fa880f
authored
May 19, 2022
by
unknown
Browse files
Merge branch 'master' of
https://github.com/antonioDurval/submeta
parents
38cd807d
311314ac
Changes
26
Hide whitespace changes
Inline
Side-by-side
app/AreaTematica.php
0 → 100644
View file @
41fa880f
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
AreaTematica
extends
Model
{
protected
$fillable
=
[
'nome'
,
];
public
function
trabalho
(){
return
$this
->
hasMany
(
'App\Trabalho'
,
'area_tematica_id'
);
}
}
app/Arquivo.php
View file @
41fa880f
...
@@ -32,4 +32,8 @@ class Arquivo extends Model
...
@@ -32,4 +32,8 @@ class Arquivo extends Model
public
function
avaliadors
(){
public
function
avaliadors
(){
return
$this
->
belongsToMany
(
'App\Avaliador'
,
'avaliadors_plano_trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
return
$this
->
belongsToMany
(
'App\Avaliador'
,
'avaliadors_plano_trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
}
}
public
function
avaliacao_relatorios
(){
return
$this
->
hasMany
(
'App\AvaliacaoRelatorio'
,
'arquivo_id'
);
}
}
}
app/AvaliacaoRelatorio.php
0 → 100644
View file @
41fa880f
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
AvaliacaoRelatorio
extends
Model
{
protected
$fillable
=
[
'tipo'
,
'comentario'
,
'nota'
,
'user_id'
,
'arquivo_id'
];
public
function
plano
(){
return
$this
->
belongsTo
(
Arquivo
::
class
,
'arquivo_id'
,
'id'
);
}
public
function
user
(){
return
$this
->
belongsTo
(
User
::
class
,
'user_id'
,
'id'
);
}
}
app/Http/Controllers/AdministradorController.php
View file @
41fa880f
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
App\AvaliacaoRelatorio
;
use
App\Notificacao
;
use
App\Notificacao
;
use
App\Substituicao
;
use
App\Substituicao
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
...
@@ -111,7 +112,21 @@ class AdministradorController extends Controller
...
@@ -111,7 +112,21 @@ class AdministradorController extends Controller
$avalSelecionadosId
=
$trabalho
->
avaliadors
->
pluck
(
'id'
);
$avalSelecionadosId
=
$trabalho
->
avaliadors
->
pluck
(
'id'
);
$avalProjeto
=
Avaliador
::
whereNotIn
(
'id'
,
$avalSelecionadosId
)
->
get
();
$avalProjeto
=
Avaliador
::
whereNotIn
(
'id'
,
$avalSelecionadosId
)
->
get
();
$trabalho
->
aval
=
$avalProjeto
;
$trabalho
->
aval
=
$avalProjeto
;
// Usuarios que possuem avaliações de relatório
//$avaliacoesRelatorio = [];->join('users','users.id','=','candidatos.user_id')
$AvalRelatParcial
=
[];
$AvalRelatFinal
=
[];
foreach
(
$trabalho
->
participantes
as
$participante
)
{
$avals
=
AvaliacaoRelatorio
::
where
(
'arquivo_id'
,
$participante
->
planoTrabalho
->
id
)
->
get
();
foreach
(
$avals
as
$aval
){
if
(
$aval
->
tipo
==
"Parcial"
){
array_push
(
$AvalRelatParcial
,
$aval
);
}
else
{
array_push
(
$AvalRelatFinal
,
$aval
);
}
}
}
//
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
...
@@ -124,7 +139,10 @@ class AdministradorController extends Controller
...
@@ -124,7 +139,10 @@ class AdministradorController extends Controller
'substituicoesPendentes'
=>
$substituicoesPendentes
,
'substituicoesPendentes'
=>
$substituicoesPendentes
,
'substituicoesProjeto'
=>
$substituicoesProjeto
,
'substituicoesProjeto'
=>
$substituicoesProjeto
,
'grandeAreas'
=>
$grandeAreas
,
'grandeAreas'
=>
$grandeAreas
,
'AvalRelatParcial'
=>
$AvalRelatParcial
,
'AvalRelatFinal'
=>
$AvalRelatFinal
,
'hoje'
=>
$hoje
,]);
'hoje'
=>
$hoje
,]);
}
}
public
function
showProjetos
(
Request
$request
){
public
function
showProjetos
(
Request
$request
){
...
...
app/Http/Controllers/AreaTematicaController.php
0 → 100644
View file @
41fa880f
<?php
namespace
App\Http\Controllers
;
use
App\AreaTematica
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Http\Request
;
class
AreaTematicaController
extends
Controller
{
public
function
destroy
(
$id
)
{
$areaTematica
=
AreaTematica
::
find
(
$id
);
$areaTematica
->
delete
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tematica excluida com sucesso'
]);
}
public
function
update
(
Request
$request
,
$id
)
{
$areaTematica
=
AreaTematica
::
find
(
$id
);
$areaTematica
->
nome
=
$request
->
nome
;
$areaTematica
->
update
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tematica editada com sucesso'
]);
}
public
function
edit
(
$id
)
{
$areaTematica
=
AreaTematica
::
find
(
$id
);
return
view
(
'areaTematica.editar'
)
->
with
([
'areaTematica'
=>
$areaTematica
]);
}
public
function
create
()
{
return
view
(
'areaTematica.create'
);
}
public
function
store
(
Request
$request
)
{
$validatedData
=
$request
->
validate
([
'nome'
=>
'required'
,
]);
$areaTematica
=
new
AreaTematica
();
$areaTematica
->
nome
=
$request
->
nome
;
$areaTematica
->
save
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tematica cadastrada com sucesso'
]);
}
}
app/Http/Controllers/AvaliacaoRelatorioController.php
0 → 100644
View file @
41fa880f
<?php
namespace
App\Http\Controllers
;
use
App\Arquivo
;
use
App\AvaliacaoRelatorio
;
use
App\Avaliador
;
use
App\Evento
;
use
App\Trabalho
;
use
App\User
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Storage
;
use
Auth
;
class
AvaliacaoRelatorioController
extends
Controller
{
public
function
create
()
{
}
public
function
listarUser
(
Request
$request
){
$planos
=
Arquivo
::
where
(
'trabalhoId'
,
$request
->
trabalho_id
)
->
get
();
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
$request
->
user_id
)
->
get
();
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
$evento
=
$trabalho
->
evento
;
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
if
(
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
){
$tipoRelatorio
=
"Parcial"
;
}
else
{
$tipoRelatorio
=
"Final"
;
}
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
,
"evento"
=>
$evento
,
"tipoRelatorio"
=>
$tipoRelatorio
]);
}
public
function
index
(
Request
$request
){
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
get
();
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'avaliacaoRelatorio.index'
,
[
"avaliacoes"
=>
$avaliacoes
,
"hoje"
=>
$hoje
]);
}
public
function
listarProjeto
(
Request
$request
){
$planos
=
Arquivo
::
where
(
'trabalhoId'
,
$request
->
trabalho_id
)
->
get
();
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
$request
->
user_id
)
->
get
();
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
]);
}
public
function
listarGeral
(
Request
$request
){
$planos
=
Arquivo
::
all
();
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
$request
->
user_id
)
->
get
();
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"planos"
=>
$planos
]);
}
public
function
criar
(
Request
$request
){
$validatedData
=
$request
->
validate
([
'nota'
=>
[
'required'
,
'integer'
,],
'comentario'
=>
[
'required'
],
]);
$avaliacao
=
AvaliacaoRelatorio
::
find
(
$request
->
avaliacao_id
);
if
(
$request
->
arquivo
!=
null
){
$pasta
=
'planoTrabalho/'
.
$request
->
plano_id
.
'avaliacao/'
.
$request
->
avaliacao_id
;
$avaliacao
->
arquivoAvaliacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
arquivo
,
"AvaliacaoRelatorio.pdf"
);
}
$plano
=
Arquivo
::
find
(
$request
->
plano_id
);
$avaliacao
->
nota
=
$request
->
nota
;
$avaliacao
->
comentario
=
$request
->
comentario
;
$avaliacao
->
update
();
$planos
=
Arquivo
::
where
(
'trabalhoId'
,
$request
->
trabalho_id
)
->
get
();
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
$request
->
user_id
)
->
get
();
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
$evento
=
$trabalho
->
evento
;
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
if
(
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
){
$tipoRelatorio
=
"Parcial"
;
}
else
{
$tipoRelatorio
=
"Final"
;
}
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
,
"evento"
=>
$evento
,
"tipoRelatorio"
=>
$tipoRelatorio
,
'sucesso'
=>
'Avaliação do relatório '
.
$tipoRelatorio
.
" do plano "
.
$plano
->
titulo
.
' realizada com sucesso.'
]);
}
public
function
atribuicaoAvaliador
(
Request
$request
){
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
foreach
(
$trabalho
->
participantes
as
$participante
){
$avaliadoresId
=
$request
->
input
(
'avaliadores_'
.
$participante
->
planoTrabalho
->
id
.
'_id'
);
// utilizado desta forma pois a versão do PHP 7.2 é preciso que o $array usado na função count($array) não pode ser um valor NULL.
$numeroDeItens
=
is_countable
(
$avaliadoresId
)
?
count
(
$avaliadoresId
)
:
0
;
for
(
$i
=
0
;
$i
<
$numeroDeItens
;
$i
++
){
$avaliacao
=
AvaliacaoRelatorio
::
create
([
'tipo'
=>
$request
->
tipo_relatorio
,
'comentario'
=>
''
,
'nota'
=>
null
,
'user_id'
=>
$avaliadoresId
[
$i
],
'arquivo_id'
=>
$participante
->
planoTrabalho
->
id
,
]);
$avaliacao
->
save
();
if
(
Avaliador
::
where
(
'user_id'
,
$avaliadoresId
[
$i
])
->
get
()
->
count
()
==
0
){
$userTemp
=
User
::
find
(
$avaliadoresId
[
$i
]);
if
(
$userTemp
->
instituicao
==
null
||
$userTemp
->
instituicao
==
"UFAPE"
||
$userTemp
->
instituicao
==
"Universidade Federal do Agreste de Pernambuco"
){
$tipoAvaliador
=
"Interno"
;
}
else
{
$tipoAvaliador
=
"Externo"
;
}
$avaliador
=
new
Avaliador
();
$avaliador
->
tipo
=
$tipoAvaliador
;
$avaliador
->
user_id
=
$avaliadoresId
[
$i
];
$avaliador
->
save
();
}
}
}
return
redirect
()
->
back
();
}
}
app/Http/Controllers/GrandeAreaController.php
View file @
41fa880f
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
App\AreaTematica
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
App\GrandeArea
;
use
App\GrandeArea
;
use
App\Area
;
use
App\Area
;
...
@@ -16,7 +17,8 @@ class GrandeAreaController extends Controller
...
@@ -16,7 +17,8 @@ class GrandeAreaController extends Controller
public
function
index
()
public
function
index
()
{
{
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'naturezas.grandeArea.index'
)
->
with
([
'grandesAreas'
=>
$grandesAreas
]);
$areasTematicas
=
AreaTematica
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'naturezas.grandeArea.index'
)
->
with
([
'grandesAreas'
=>
$grandesAreas
,
'areasTematicas'
=>
$areasTematicas
]);
}
}
/**
/**
...
...
app/Http/Controllers/TrabalhoController.php
View file @
41fa880f
...
@@ -9,6 +9,7 @@ use Auth;
...
@@ -9,6 +9,7 @@ use Auth;
use
App\Area
;
use
App\Area
;
use
App\User
;
use
App\User
;
use
App\Evento
;
use
App\Evento
;
use
App\AreaTematica
;
use
App\Arquivo
;
use
App\Arquivo
;
use
App\Coautor
;
use
App\Coautor
;
use
App\Revisor
;
use
App\Revisor
;
...
@@ -88,6 +89,7 @@ class TrabalhoController extends Controller
...
@@ -88,6 +89,7 @@ class TrabalhoController extends Controller
{
{
$edital
=
Evento
::
find
(
$id
);
$edital
=
Evento
::
find
(
$id
);
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$areaTematicas
=
AreaTematica
::
orderBy
(
'nome'
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
orderBy
(
'nome'
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
orderBy
(
'nome'
)
->
get
();
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
...
@@ -108,6 +110,7 @@ class TrabalhoController extends Controller
...
@@ -108,6 +110,7 @@ class TrabalhoController extends Controller
'rascunho'
=>
$rascunho
,
'rascunho'
=>
$rascunho
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'estados'
=>
$this
->
estados
,
'estados'
=>
$this
->
estados
,
'areaTematicas'
=>
$areaTematicas
,
]);
]);
}
}
...
@@ -398,6 +401,7 @@ class TrabalhoController extends Controller
...
@@ -398,6 +401,7 @@ class TrabalhoController extends Controller
}
}
$edital
=
Evento
::
find
(
$projeto
->
evento_id
);
$edital
=
Evento
::
find
(
$projeto
->
evento_id
);
$grandeAreas
=
GrandeArea
::
all
();
$grandeAreas
=
GrandeArea
::
all
();
$areaTematicas
=
AreaTematica
::
orderBy
(
'nome'
)
->
get
();
$areas
=
Area
::
all
();
$areas
=
Area
::
all
();
$subareas
=
Subarea
::
all
();
$subareas
=
Subarea
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
...
@@ -420,6 +424,7 @@ class TrabalhoController extends Controller
...
@@ -420,6 +424,7 @@ class TrabalhoController extends Controller
'arquivos'
=>
$arquivos
,
'arquivos'
=>
$arquivos
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'estados'
=>
$this
->
estados
,
'estados'
=>
$this
->
estados
,
'areaTematicas'
=>
$areaTematicas
,
]);
]);
}
}
...
...
app/Trabalho.php
View file @
41fa880f
...
@@ -38,6 +38,7 @@ class Trabalho extends Model
...
@@ -38,6 +38,7 @@ class Trabalho extends Model
'coordenador_id'
,
'coordenador_id'
,
'proponente_id'
,
'proponente_id'
,
'pivot'
,
'pivot'
,
'area_tematica_id'
,
];
];
...
@@ -64,6 +65,10 @@ class Trabalho extends Model
...
@@ -64,6 +65,10 @@ class Trabalho extends Model
return
$this
->
belongsTo
(
'App\SubArea'
);
return
$this
->
belongsTo
(
'App\SubArea'
);
}
}
public
function
areaTematica
(){
return
$this
->
belongsTo
(
'App\AreaTematica'
);
}
public
function
autor
(){
public
function
autor
(){
return
$this
->
belongsTo
(
'App\User'
,
'autorId'
);
return
$this
->
belongsTo
(
'App\User'
,
'autorId'
);
}
}
...
...
database/migrations/2022_05_02_184435_avaliacao_relatorio.php
0 → 100644
View file @
41fa880f
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AvaliacaoRelatorio
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'avaliacao_relatorios'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
integer
(
'user_id'
);
$table
->
integer
(
'arquivo_id'
);
$table
->
integer
(
'nota'
)
->
nullable
();
$table
->
text
(
'comentario'
)
->
nullable
();
$table
->
string
(
'arquivoAvaliacao'
)
->
nullable
();
$table
->
enum
(
'tipo'
,
[
'Parcial'
,
'Final'
]);
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
foreign
(
'arquivo_id'
)
->
references
(
'id'
)
->
on
(
'arquivos'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'avaliacao_relatorios'
);
}
}
database/migrations/2022_05_18_055323_create_area_tematicas_table.php
0 → 100644
View file @
41fa880f
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateAreaTematicasTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'area_tematicas'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'area_tematicas'
);
}
}
database/migrations/2022_05_18_055612_add_area_tematica_to_trabalhos_table.php
0 → 100644
View file @
41fa880f
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddAreaTematicaToTrabalhosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
$table
->
integer
(
'area_tematica_id'
)
->
nullable
();
$table
->
foreign
(
'area_tematica_id'
)
->
references
(
'id'
)
->
on
(
'area_tematicas'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
//
});
}
}
database/seeds/AreaTematicaSeeder.php
0 → 100644
View file @
41fa880f
<?php
use
Illuminate\Database\Seeder
;
class
AreaTematicaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Erradicação da Pobreza'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Fome zero e agricultura sustentável'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Saúde e bem-estar'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Educação de qualidade'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Igualdade de gênero'
]);
}
}
database/seeds/DatabaseSeeder.php
View file @
41fa880f
...
@@ -25,6 +25,7 @@ class DatabaseSeeder extends Seeder
...
@@ -25,6 +25,7 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
RecomendacaoSeeder
::
class
);
$this
->
call
(
RecomendacaoSeeder
::
class
);
$this
->
call
(
AvaliadorSeeder
::
class
);
$this
->
call
(
AvaliadorSeeder
::
class
);
$this
->
call
(
AreaTematicaSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
// $this->call(UsersTableSeeder::class);
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
41fa880f
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
@
section
(
'content'
)
@
section
(
'content'
)
@
php
@
php
$grandesAreas
=
\
App\GrandeArea
::
all
();
$grandesAreas
=
\
App\GrandeArea
::
all
();
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
@
endphp
@
endphp
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 100px;"
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 100px;"
>
...
@@ -24,7 +26,9 @@
...
@@ -24,7 +26,9 @@
</
div
>
</
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #1492E6;"
>
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #1492E6;"
>
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem; font-weight: bold"
>
{{
$evento
->
nome
}}
</
h6
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem; font-weight: bold"
>
{{
$evento
->
nome
}}
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -36,11 +40,13 @@
...
@@ -36,11 +40,13 @@
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Área
de
Ensino
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Área
de
Ensino
</
h5
>
</
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem"
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem"
>
{{
App\GrandeArea
::
where
(
'id'
,
$trabalho
->
grande_area_id
)
->
first
()
->
nome
}}
>
{{
App\GrandeArea
::
where
(
'id'
,
$trabalho
->
grande_area_id
)
->
first
()
->
nome
}}
>
{{
App\Area
::
where
(
'id'
,
$trabalho
->
area_id
)
->
first
()
->
nome
}}
{{
App\Area
::
where
(
'id'
,
$trabalho
->
area_id
)
->
first
()
->
nome
}}
@
if
(
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
!=
null
)
>
{{
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
->
nome
}}
@
endif
@
if
(
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
!=
null
)
>
{{
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
->
nome
}}
@
endif
</
h6
></
div
>
</
h6
></
div
>
</
div
>
</
div
>
...
@@ -57,36 +63,39 @@
...
@@ -57,36 +63,39 @@
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Informações
do
Proponente
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Informações
do
Proponente
</
h5
></
div
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Nome
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
>
<
b
>
Nome
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
</
div
>
</
div
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
b
style
=
"color: #4D4D4D;"
>
Lattes
:</
b
>
<
b
style
=
"color: #4D4D4D;"
>
Lattes
:</
b
>
@
if
(
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
!=
null
)
@
if
(
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
!=
null
)
<
a
style
=
"color: #4D4D4D;"
href
=
"{{ App\Proponente::where('id',
$trabalho->proponente_id
)->first()->linkLattes }}"
<
a
style
=
"color: #4D4D4D;"
href
=
"{{ App\Proponente::where('id',
$trabalho->proponente_id
)->first()->linkLattes }}"
target
=
"_blank"
target
=
"_blank"
>
{{
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
}}
</
a
>
>
{{
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
}}
</
a
>
@
endif
@
endif
</
div
>
</
div
>
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
br
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Grupo
de
Pesquisa
:
</
b
>
<
b
style
=
"color: #4D4D4D;"
>
Grupo
de
Pesquisa
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
href
=
"{{
$trabalho->linkGrupoPesquisa
}}"
<
a
style
=
"color: #4D4D4D;"
href
=
"{{
$trabalho->linkGrupoPesquisa
}}"
target
=
"_blank"
target
=
"_blank"
>
{{
$trabalho
->
linkGrupoPesquisa
}}
</
a
>
>
{{
$trabalho
->
linkGrupoPesquisa
}}
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
br
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Valor
da
Planilha
de
Pontuação
:
</
b
>
<
b
style
=
"color: #4D4D4D;"
>
Valor
da
Planilha
de
Pontuação
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
pontuacaoPlanilha
}}
</
a
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
pontuacaoPlanilha
}}
</
a
>
</
div
>
</
div
>
@
endif
@
endif
@
if
(
$trabalho
->
modalidade
!=
null
)
@
if
(
$trabalho
->
modalidade
!=
null
)
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
...
@@ -101,7 +110,6 @@
...
@@ -101,7 +110,6 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Discentes
-->
<!--
Discentes
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-10"
>
<
div
class
=
"col-md-10"
>
...
@@ -110,9 +118,10 @@
...
@@ -110,9 +118,10 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Discentes
</
h5
></
div
>
<
div
class
=
"col-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Discentes
</
h5
></
div
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
div
class
=
"col-sm-3 text-sm-right"
>
@
if
(
$substituicoesPendentes
->
count
()
>
0
)
@
if
(
$substituicoesPendentes
->
count
()
>
0
)
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
Pendentes
</
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
Pendentes
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/warning.ico')}
}
"
style
=
"width:15px"
alt
=
""
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/warning.ico')}
}
"
style
=
"width:15px"
alt
=
""
>
@
else
@
else
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
/
Desligamentos
</
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
/
Desligamentos
</
a
>
...
@@ -129,28 +138,33 @@
...
@@ -129,28 +138,33 @@
<
div
class
=
"col-sm-5"
>
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$participante
->
user
->
name
}}
</
h5
>
<
h5
>
{{
$participante
->
user
->
name
}}
</
h5
>
<
h9
>
<
h9
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
>
Informações
</
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
>
Informações
</
a
>
</
h9
>
</
h9
>
<
br
>
<
br
>
<
a
href
=
""
>
<
a
href
=
""
>
Remover
Remover
</
a
>
</
a
>
</
div
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipante
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuParticipante
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'administrador.substituirParticipanteForm'
,
[
'visualizarOnly'
=>
1
,
'edital'
=>
$evento
])
@
include
(
'administrador.substituirParticipanteForm'
,
[
'visualizarOnly'
=>
1
,
'edital'
=>
$evento
])
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -159,19 +173,26 @@
...
@@ -159,19 +173,26 @@
@
foreach
(
$substituicoesProjeto
as
$subs
)
@
foreach
(
$substituicoesProjeto
as
$subs
)
<!--
Modal
vizualizar
info
participante
substituido
-->
<!--
Modal
vizualizar
info
participante
substituido
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituido
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituido
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
, 1)"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
, 1)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'administrador.vizualizarParticipante'
,
[
'visualizarSubstituido'
=>
1
])
@
include
(
'administrador.vizualizarParticipante'
,
[
'visualizarSubstituido'
=>
1
])
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -179,19 +200,26 @@
...
@@ -179,19 +200,26 @@
</
div
>
</
div
>
<!--
Modal
vizualizar
info
participante
substituto
-->
<!--
Modal
vizualizar
info
participante
substituto
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituto
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituto
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
, 2)"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
, 2)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'administrador.vizualizarParticipante'
)
@
include
(
'administrador.vizualizarParticipante'
)
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -199,39 +227,50 @@
...
@@ -199,39 +227,50 @@
</
div
>
</
div
>
@
endforeach
@
endforeach
<!--
Modal
reprovar
substituição
-->
<!--
Modal
reprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Cancelar
Substituição
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Cancelar
Substituição
</
h5
>
<
button
type
=
"button"
class
=
"close"
id
=
"closeCancel"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
id
=
"closeCancel"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"CancelarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
<
form
method
=
"POST"
id
=
"CancelarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"negaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"negaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"false"
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"false"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-12"
>
<
div
class
=
"col-12"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
></
textarea
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
></
textarea
>
</
div
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"col-md-auto"
>
<
div
class
=
"col-md-auto"
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Cancelar
Substituição
</
button
></
div
>
<
div
>
<
button
type
=
"submit"
class
=
"btn btn-success"
>
Cancelar
Substituição
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
form
>
</
form
>
...
@@ -241,20 +280,24 @@
...
@@ -241,20 +280,24 @@
</
div
>
</
div
>
<!--
Modal
aprovar
substituição
-->
<!--
Modal
aprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalResultadoSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalResultadoSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Proceder
Com
Substituição
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Proceder
Com
Substituição
</
h5
>
<
button
id
=
"closeAcept"
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
id
=
"closeAcept"
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"aprovaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"aprovaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"true"
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"true"
>
...
@@ -263,16 +306,23 @@
...
@@ -263,16 +306,23 @@
<
div
class
=
"col-12"
>
<
div
class
=
"col-12"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
>
Substituição
cumpre
com
todos
os
requisitos
</
textarea
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
>
Substituição
cumpre
com
todos
os
requisitos
</
textarea
>
</
div
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"col-md-auto"
>
<
div
class
=
"col-md-auto"
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Aprovar
Substituição
</
button
></
div
>
<
div
>
<
button
type
=
"submit"
class
=
"btn btn-success"
>
Aprovar
Substituição
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
form
>
</
form
>
...
@@ -303,54 +353,75 @@
...
@@ -303,54 +353,75 @@
<
div
class
=
"row justify-content-start"
>
<
div
class
=
"row justify-content-start"
>
{{
--
Arquivo
--
}}
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
</
div
>
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoLatterCoordenador"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Lattes do Coordenador: '
)
}}
</
label
>
<
label
for
=
"anexoLatterCoordenador"
class
=
"col-form-label font-tam"
<
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
style
=
"font-weight: bold"
>
{{
__
(
'Lattes do Coordenador: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
</
div
>
@
endif
@
endif
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
@
else
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
-
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
@
endif
alt
=
""
></
a
>
</
div
>
@
else
-
@
endif
</
div
>
@
endif
@
endif
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Planilha de Pontuação: '
)
}}
</
label
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label font-tam"
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/xlsx.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
style
=
"font-weight: bold"
>
{{
__
(
'Planilha de Pontuação: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/xlsx.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
</
div
>
@
endif
@
endif
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Grupo de Pesquisa: '
)
}}
</
label
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
@
if
(
$trabalho
->
anexoGrupoPesquisa
!=
null
)
style
=
"font-weight: bold"
>
{{
__
(
'Grupo de Pesquisa: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexoGrupoPesquisa', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
if
(
$trabalho
->
anexoGrupoPesquisa
!=
null
)
@
else
<
a
href
=
"{{ route('baixar.anexoGrupoPesquisa', ['id' =>
$trabalho->id
]) }}"
><
img
-
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
@
endif
alt
=
""
></
a
>
</
div
>
@
else
-
@
endif
</
div
>
@
endif
@
endif
@
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
||
$evento
->
tipo
==
"PIBEX"
)
@
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
||
$evento
->
tipo
==
"PIBEX"
)
{{
--
Decisão
do
CONSU
--
}}
{{
--
Decisão
do
CONSU
--
}}
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoCONSU"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Decisão do CONSEPE: '
)
}}
</
label
>
<
label
for
=
"anexoCONSU"
class
=
"col-form-label font-tam"
<
a
href
=
"{{ route('baixar.anexo.consu', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
style
=
"font-weight: bold"
>
{{
__
(
'Decisão do CONSEPE: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.consu', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
</
div
>
@
endif
@
endif
...
@@ -369,8 +440,9 @@
...
@@ -369,8 +440,9 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Relatórios
</
h5
></
div
>
<
div
class
=
"col-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Relatórios
</
h5
></
div
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
a
href
=
"{{route('planos.listar', ['id' =>
$trabalho->id
])}}"
class
=
"button"
>
Listar
Relatórios
</
a
>
<
a
href
=
"{{route('planos.listar', ['id' =>
$trabalho->id
])}}"
class
=
"button"
>
Listar
Relatórios
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
...
@@ -378,31 +450,241 @@
...
@@ -378,31 +450,241 @@
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
{{
--
Relatório
Parcial
--
}}
{{
--
Relatório
Parcial
--
}}
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_inicioRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Parcial: '
)
}}
</
label
>
<
label
for
=
"dt_inicioRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Parcial: '
)
}}
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_inicioRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioParcial"
value
=
"
{
{$evento->dt_inicioRelatorioParcial}
}
"
required
autocomplete
=
"dt_inicioRelatorioParcial"
disabled
autofocus
>
<
input
id
=
"dt_inicioRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioParcial"
value
=
"
{
{$evento->dt_inicioRelatorioParcial}
}
"
required
autocomplete
=
"dt_inicioRelatorioParcial"
disabled
autofocus
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_fimRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Parcial: '
)
}}
</
label
>
<
label
for
=
"dt_fimRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Parcial: '
)
}}
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_fimRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioParcial"
value
=
"
{
{$evento->dt_fimRelatorioParcial}
}
"
required
autocomplete
=
"dt_fimRelatorioParcial"
disabled
autofocus
>
<
input
id
=
"dt_fimRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioParcial"
value
=
"
{
{$evento->dt_fimRelatorioParcial}
}
"
required
autocomplete
=
"dt_fimRelatorioParcial"
disabled
autofocus
>
</
div
>
</
div
>
{{
--
Relatório
Final
--
}}
{{
--
Relatório
Final
--
}}
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_inicioRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Final:'
)
}}
</
label
>
<
label
for
=
"dt_inicioRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Final:'
)
}}
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_inicioRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioFinal"
value
=
"
{
{$evento->dt_inicioRelatorioFinal}
}
"
required
autocomplete
=
"dt_inicioRelatorioFinal"
disabled
autofocus
>
<
input
id
=
"dt_inicioRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioFinal"
value
=
"
{
{$evento->dt_inicioRelatorioFinal}
}
"
required
autocomplete
=
"dt_inicioRelatorioFinal"
disabled
autofocus
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_fimRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Final:'
)
}}
</
label
>
<
label
for
=
"dt_fimRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Final:'
)
}}
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_fimRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioFinal"
value
=
"
{
{$evento->dt_fimRelatorioFinal}
}
"
required
autocomplete
=
"dt_fimRelatorioFinal"
disabled
autofocus
>
<
input
id
=
"dt_fimRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioFinal"
value
=
"
{
{$evento->dt_fimRelatorioFinal}
}
"
required
autocomplete
=
"dt_fimRelatorioFinal"
disabled
autofocus
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-sm-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliações
de
Relatórios
</
h5
></
div
>
@
if
((
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
)
||
(
$hoje
>
$evento
->
dt_fimRelatorioFinal
))
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliacaoModalCenter"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
</
a
>
</
div
>
@
else
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
</
a
>
</
div
>
@
endif
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"avaliacaoModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
<
div
class
=
"modal-content modal-submeta modal-xl"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"col-md-8"
style
=
"padding-left: 0px"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliacaoModalLongTitle"
>
Seleciones
o
(
s
)
avaliador
(
es
)
</
h5
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"text-align: right"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
data
-
dismiss
=
"modal"
style
=
"color: rgb(182, 182, 182);padding-right: 0px;"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
@
if
(
session
(
'error'
))
<
div
class
=
"col-md-12"
>
<
div
class
=
"alert alert-danger"
role
=
"alert"
>
<
p
>
{{
session
(
'error'
)
}}
</
p
>
</
div
>
</
div
>
@
endif
<
form
action
=
"{{ route('avaliacaoRelatorio.atribuicao.avaliador') }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
@
if
(
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
)
<
input
type
=
"hidden"
name
=
"tipo_relatorio"
value
=
"Parcial"
>
@
php
$tipoTemp
=
"Parcial"
;
@
endphp
@
else
<
input
type
=
"hidden"
name
=
"tipo_relatorio"
value
=
"Final"
>
@
php
$tipoTemp
=
"Final"
;
@
endphp
@
endif
<
div
class
=
"form-group"
>
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"col-md-6"
>
@
if
(
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
)
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
a
(
s
)
avaliacões
de
relatorio
parcial
</
label
>
@
else
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
a
(
s
)
avaliacões
de
relatorio
final
</
label
>
@
endif
</
div
>
</
div
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
<
div
class
=
"col-md-6"
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
</
div
>
@
php
$avaliacoesId
=
\
App\AvaliacaoRelatorio
::
where
(
"arquivo_id"
,
$participante
->
planoTrabalho
->
id
)
->
where
(
"tipo"
,
$tipoTemp
)
->
pluck
(
'user_id'
);
$avalProjeto
=
\
App\User
::
whereNotIn
(
'id'
,
$avaliacoesId
)
->
where
(
'tipo'
,
'!='
,
'participante'
)
->
where
(
'id'
,
'!='
,
$trabalho
->
proponente_id
)
->
get
();
@
endphp
<
select
name
=
"avaliadores_
{
{$participante->planoTrabalho->id}
}
_id[]"
multiple
class
=
"form-control"
id
=
"avaliacaoSelect"
style
=
"height: 200px;font-size:15px"
>
@
foreach
(
$avalProjeto
as
$avaliador
)
<
option
value
=
"{{
$avaliador->id
}}"
>
{{
$avaliador
->
name
}}
>
{{
$avaliador
->
instituicao
??
'Instituição Indefinida'
}}
>
{{
$avaliador
->
tipo
}}
>
{{
$avaliador
->
email
}}
</
option
>
@
endforeach
</
select
>
@
endforeach
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
teclado
para
selecionar
mais
de
um
.
</
small
>
</
div
>
<
div
>
<
button
type
=
"submit"
class
=
"btn btn-info"
style
=
"width: 100%"
>
Atribuir
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
@
if
(
count
(
$AvalRelatParcial
)
>
0
)
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliações
de
Relatórios
Parciais
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$AvalRelatParcial
as
$aval
)
<
div
class
=
"col-sm-1"
style
=
"margin-bottom: 7px"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
h5
>
{{
\
App\User
::
find
(
$aval
->
user_id
)
->
name
}}
</
h5
>
<
h9
><
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuRelatParcial
{
{$aval->id}
}
"
class
=
"button"
>
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>
</
a
>@
else
Avaliação
</
a
>
@
endif
</
h9
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuRelatParcial
{
{$aval->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Avaliação
do
relatório
parcial
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>@
endif
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'avaliacaoRelatorio.avaliacao'
,
[
'avaliacao'
=>
$aval
])
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
@
endif
@
if
(
count
(
$AvalRelatFinal
)
>
0
)
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliações
de
Relatórios
Finais
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$AvalRelatFinal
as
$aval
)
<
div
class
=
"col-sm-1"
style
=
"margin-bottom: 7px"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
h5
>
{{
\
App\User
::
find
(
$aval
->
user_id
)
->
name
}}
</
h5
>
<
h9
><
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuRelatFinal
{
{$aval->id}
}
"
class
=
"button"
>
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>
</
a
>@
else
Avaliação
</
a
>
@
endif
</
h9
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuRelatFinal
{
{$aval->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Avaliação
do
relatório
final
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>@
endif
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'avaliacaoRelatorio.avaliacao'
,
[
'avaliacao'
=>
$aval
])
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -417,7 +699,7 @@
...
@@ -417,7 +699,7 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
</
h5
></
div
>
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
</
h5
></
div
>
<!--
AKI
MUDEI
(
06
/
05
)
-->
@
if
(
$hoje
<=
$evento
->
fimSubmissao
)
@
if
(
$hoje
<=
$evento
->
fimSubmissao
)
<
div
class
=
"col-md-1 text-sm-right"
>
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliadorModalCenter"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliadorModalCenter"
>
...
@@ -426,18 +708,24 @@
...
@@ -426,18 +708,24 @@
</
div
>
</
div
>
@
endif
@
endif
<!--
Modal
-->
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
<
div
class
=
"modal-content modal-submeta modal-xl"
>
<
div
class
=
"modal-content modal-submeta modal-xl"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"col-md-8"
style
=
"padding-left: 0px"
>
<
div
class
=
"col-md-8"
style
=
"padding-left: 0px"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliadorModalLongTitle"
>
Seleciones
o
(
s
)
avaliador
(
es
)
</
h5
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliadorModalLongTitle"
>
Seleciones
o
(
s
)
avaliador
(
es
)
</
h5
>
</
div
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"text-align: right"
>
<
div
class
=
"col-md-4"
style
=
"text-align: right"
>
<
button
type
=
"button"
id
=
"enviarConviteButton"
class
=
"btn btn-info"
data
-
toggle
=
"modal"
onclick
=
"abrirModalConvite()"
>
<
button
type
=
"button"
id
=
"enviarConviteButton"
class
=
"btn btn-info"
data
-
toggle
=
"modal"
onclick
=
"abrirModalConvite()"
>
Enviar
Convites
Enviar
Convites
</
button
>
</
button
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
data
-
dismiss
=
"modal"
style
=
"color: rgb(182, 182, 182);padding-right: 0px;"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
data
-
dismiss
=
"modal"
style
=
"color: rgb(182, 182, 182);padding-right: 0px;"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
...
@@ -459,57 +747,83 @@
...
@@ -459,57 +747,83 @@
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
esse
projeto
</
label
>
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
esse
projeto
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
style
=
"text-align: center;overflow-y: auto;overflow-x: auto"
>
<
div
class
=
"col-md-3"
style
=
"text-align: center;overflow-y: auto;overflow-x: auto"
>
<
select
class
=
"form-control"
id
=
"grandeArea"
name
=
"grande_area_id"
onchange
=
"areasFiltro()"
>
<
select
class
=
"form-control"
id
=
"grandeArea"
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
name
=
"grande_area_id"
onchange
=
"areasFiltro()"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--
</
option
>
@
foreach
(
$grandesAreas
as
$grandeArea
)
@
foreach
(
$grandesAreas
as
$grandeArea
)
<
option
title
=
"
{
{$grandeArea->nome}
}
"
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
<
option
title
=
"
{
{$grandeArea->nome}
}
"
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
@endforeach
</select>
</select>
</div>
</div>
<div class="
col
-
md
-
3
" style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
<div class="
col
-
md
-
3
"
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
" >
style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
area_id
" onchange="
(
consultaExterno
(),
consultaInterno
())
" >
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
">
<option value="" disabled selected hidden>-- Área --</option>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
"
id="
area
" name="
area_id
"
onchange="
(
consultaExterno
(),
consultaInterno
())
">
<option value="" disabled selected hidden>-- Área --
</option>
</select>
</select>
</div>
</div>
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">Externos</label>
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">Externos</label>
</div>
</div>
<input type="
hidden
" id="
trab
" value="
{{
$trabalho
->
id
}}
">
<input type="
hidden
" id="
trab
" value="
{{
$trabalho
->
id
}}
">
<input type="
hidden
" id="
oldAvalExterno
" value="
{{
old
(
'exampleFormControlSelect3'
)
}}
" >
<input type="
hidden
" id="
oldAvalExterno
"
<select name="
avaliadores_externos_id
[]
" multiple class="
form
-
control
" id="
exampleFormControlSelect3
" style="
height
:
200
px
;
font
-
size
:
15
px
">
value="
{{
old
(
'exampleFormControlSelect3'
)
}}
">
<select name="
avaliadores_externos_id
[]
" multiple
class="
form
-
control
" id="
exampleFormControlSelect3
"
style="
height
:
200
px
;
font
-
size
:
15
px
">
@foreach (
$trabalho->aval
as
$avaliador
)
@foreach (
$trabalho->aval
as
$avaliador
)
@if(
$avaliador->tipo
== "
Externo
")
@if(
$avaliador->tipo
== "
Externo
")
<option value="
{{
$avaliador
->
id
}}
" > {{
$avaliador->user
->name }} > {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}} > {{$avaliador->area->nome ?? 'Indefinida'}} >
{
{$avaliador->user->email}
}
</option>
<option value="
{{
$avaliador
->
id
}}
"> {{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
>
{
{$avaliador->user->email}
}
</option>
@endif
@endif
@endforeach
@endforeach
</select>
</select>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">Internos</label>
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">Internos</label>
</div>
</div>
<input type="
hidden
" id="
oldAvalInterno
" value="
{{
old
(
'exampleFormControlSelect2'
)
}}
" >
<input type="
hidden
" id="
oldAvalInterno
"
<select name="
avaliadores_internos_id
[]
" multiple class="
form
-
control
" id="
exampleFormControlSelect2
" style="
height
:
200
px
;
font
-
size
:
15
px
">
value="
{{
old
(
'exampleFormControlSelect2'
)
}}
">
<select name="
avaliadores_internos_id
[]
" multiple
class="
form
-
control
" id="
exampleFormControlSelect2
"
style="
height
:
200
px
;
font
-
size
:
15
px
">
@foreach (
$trabalho->aval
as
$avaliador
)
@foreach (
$trabalho->aval
as
$avaliador
)
@if(
$avaliador->tipo
== "
Interno
")
@if(
$avaliador->tipo
== "
Interno
")
<option value="
{{
$avaliador
->
id
}}
" > {{
$avaliador->user
->name }} > {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}} > {{$avaliador->area->nome ?? 'Indefinida'}} >
{
{$avaliador->user->email}
}
</option>
<option value="
{{
$avaliador
->
id
}}
"> {{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
>
{
{$avaliador->user->email}
}
</option>
@endif
@endif
@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>
</div>
</div>
<div>
<div>
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">Atribuir</button>
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">
Atribuir
</button>
</div>
</div>
</form>
</form>
...
@@ -523,7 +837,8 @@
...
@@ -523,7 +837,8 @@
<hr style="
border
-
top
:
1
px
solid
#1492E6">
<hr style="
border
-
top
:
1
px
solid
#1492E6">
<!--
Comissão
Externa
-->
<!--
Comissão
Externa
-->
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Externos
</
h6
></
div
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Externos
</
h6
></
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
...
@@ -534,17 +849,22 @@
...
@@ -534,17 +849,22 @@
<
div
class
=
"col-sm-5"
>
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$avaliador
->
user
->
name
}}
</
h5
>
<
h5
>
{{
$avaliador
->
user
->
name
}}
</
h5
>
@
if
(
$avaliador
->
tipo
==
'Externo'
||
$avaliador
->
tipo
==
null
)
@
if
(
$avaliador
->
tipo
==
'Externo'
||
$avaliador
->
tipo
==
null
)
<
h9
>@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecer', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
h9
>@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecer', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
@
else
@
else
@
php
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
endphp
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
@
endif
@
endif
{{
--
<
br
>
{{
--
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
Remover
</
a
>--
}}
</
a
>--
}}
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
Reenviar
convite
...
@@ -556,7 +876,8 @@
...
@@ -556,7 +876,8 @@
<
br
>
<
br
>
<!--
Comissão
Interna
-->
<!--
Comissão
Interna
-->
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Internos
</
h6
></
div
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Internos
</
h6
></
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
...
@@ -569,11 +890,13 @@
...
@@ -569,11 +890,13 @@
@
php
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
endphp
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
br
>
<
br
>
{{
--
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
{{
--
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
Remover
</
a
>--
}}
</
a
>--
}}
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
Reenviar
convite
</
a
>
</
a
>
...
@@ -597,52 +920,63 @@
...
@@ -597,52 +920,63 @@
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Recomendação
</
h5
></
div
>
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Recomendação
</
h5
></
div
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
form
action
=
"{{ route('trabalho.aprovarProposta', ['id' =>
$trabalho->id
]) }}"
method
=
"post"
>
<
form
action
=
"{{ route('trabalho.aprovarProposta', ['id' =>
$trabalho->id
]) }}"
method
=
"post"
>
@
csrf
@
csrf
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
div
class
=
"col-md-9"
>
<
a
class
=
"col-md-12 text-left"
style
=
"padding-left: 0px;color: #234B8B; font-weight: bold;"
>
Comentário
</
a
>
<
a
class
=
"col-md-12 text-left"
<
textarea
class
=
"col-md-12"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
style
=
"padding-left: 0px;color: #234B8B; font-weight: bold;"
>
Comentário
</
a
>
<
textarea
class
=
"col-md-12"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
>@
if
(
$trabalho
->
comentario
!=
null
){{
$trabalho
->
comentario
}}
@
endif
</
textarea
>
>@
if
(
$trabalho
->
comentario
!=
null
){{
$trabalho
->
comentario
}}
@
endif
</
textarea
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
style
=
"margin-top: 15px"
>
<
div
class
=
"col-md-3"
style
=
"margin-top: 15px"
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"aprovado"
name
=
"statusProp"
value
=
"aprovado"
required
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"aprovado"
name
=
"statusProp"
value
=
"aprovado"
required
@
if
(
$trabalho
->
status
==
"aprovado"
)
checked
@
endif
>
@
if
(
$trabalho
->
status
==
"aprovado"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendado
</
a
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendado
</
a
>
<
br
>
<
br
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"parcialAprovado"
name
=
"statusProp"
value
=
"corrigido"
required
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"parcialAprovado"
name
=
"statusProp"
value
=
"corrigido"
required
@
if
(
$trabalho
->
status
==
"corrigido"
)
checked
@
endif
>
@
if
(
$trabalho
->
status
==
"corrigido"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Parcialmente
Recomendado
</
a
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Parcialmente
Recomendado
</
a
>
<
br
>
<
br
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"reprovado"
name
=
"statusProp"
value
=
"reprovado"
required
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"reprovado"
name
=
"statusProp"
value
=
"reprovado"
required
@
if
(
$trabalho
->
status
==
"reprovado"
)
checked
@
endif
>
@
if
(
$trabalho
->
status
==
"reprovado"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não
Recomendado
</
a
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não
Recomendado
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
button
id
=
"enviar"
name
=
"enviar"
type
=
"submit"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;font-size: 18px;"
>
<
button
id
=
"enviar"
name
=
"enviar"
type
=
"submit"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;font-size: 18px;"
>
Salvar
Salvar
</
button
>
</
button
>
</
form
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
a
href
=
"{{ route('admin.analisar', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
style
=
"font-size: 16px; float: right; margin-top: 10px;"
>
Voltar
</
a
>
<
a
href
=
"{{ route('admin.analisar', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
style
=
"font-size: 16px; float: right; margin-top: 10px;"
>
Voltar
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
visualizar
substituição
-->
<!--
Modal
visualizar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalVizuSubstituicao"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuSubstituicao"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color: #234B8B; font-weight: bold"
>
Substituição
de
Discentes
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color: #234B8B; font-weight: bold"
>
Substituição
de
Discentes
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
...
@@ -668,42 +1002,61 @@
...
@@ -668,42 +1002,61 @@
</
ul
>
</
ul
>
</
div
>
</
div
>
<
div
id
=
"content"
>
<
div
id
=
"content"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela1"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela1"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"col-md-12"
id
=
"tela1"
style
=
"padding: 0px"
>
<
div
class
=
"col-md-12"
id
=
"tela1"
style
=
"padding: 0px"
>
<
div
class
=
"card"
id
=
"tela1"
style
=
"border-radius: 5px"
>
<
div
class
=
"card"
id
=
"tela1"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
id
=
"tela1"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
"card-body"
id
=
"tela1"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
""
id
=
"tela1"
>
<
div
class
=
""
id
=
"tela1"
>
<
div
class
=
"justify-content-start"
id
=
"tela1"
style
=
"alignment: center"
>
<
div
class
=
"justify-content-start"
id
=
"tela1"
style
=
"alignment: center"
>
@
foreach
(
$substituicoesPendentes
as
$subs
)
@
foreach
(
$substituicoesPendentes
as
$subs
)
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
div
class
=
"col-md-9"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Substituição
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Substituição
</
h5
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-1"
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
div
class
=
"col-md-4"
<
a
onclick
=
"vizuParticipante(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
onclick
=
"vizuParticipante(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-md-1 text-left"
style
=
"padding-left: 0px;"
>
<
div
class
=
"col-md-1 text-left"
<
img
src
=
"
{
{asset('img/seta.png')}
}
"
style
=
"width:40px;margin-left: 5px;margin-right: 10px;"
alt
=
""
>
style
=
"padding-left: 0px;"
>
<
img
src
=
"
{
{asset('img/seta.png')}
}
"
style
=
"width:40px;margin-left: 5px;margin-right: 10px;"
alt
=
""
>
</
div
>
</
div
>
<
div
class
=
"col-md-1"
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
div
class
=
"col-md-4"
<
a
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
>
<
div
class
=
"col-md-3"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
<
div
class
=
"col-md-12 text-center"
id
=
"tela1"
style
=
"border: solid#1111; padding: 10px; "
>
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
form
>
<
div
class
=
"col-md-12 text-center"
id
=
"tela1"
<
input
type
=
"radio"
id
=
"aceitar"
name
=
"opcao"
value
=
"aceitar"
>
Aprovar
style
=
"border: solid#1111; padding: 10px; "
>
<
input
type
=
"radio"
id
=
"negar"
name
=
"opcao"
value
=
"negar"
>
Negar
<
form
>
<
input
type
=
"radio"
id
=
"aceitar"
name
=
"opcao"
value
=
"aceitar"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar"
name
=
"opcao"
value
=
"negar"
>
Negar
<
br
>
<
br
>
<
button
id
=
"submeter"
name
=
"submeter"
type
=
"button"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;"
value
=
"
{
{$subs->id}
}
"
>
<
button
id
=
"submeter"
name
=
"submeter"
type
=
"button"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;"
value
=
"
{
{$subs->id}
}
"
>
Submeter
Submeter
</
button
>
</
button
>
</
form
>
</
form
>
...
@@ -719,7 +1072,8 @@
...
@@ -719,7 +1072,8 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela2"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela2"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
{{
--<
div
class
=
"col-md-12"
id
=
"tela2"
style
=
"padding: 0px"
>
{{
--<
div
class
=
"col-md-12"
id
=
"tela2"
style
=
"padding: 0px"
>
<
div
class
=
"card"
id
=
"tela2"
style
=
"border-radius: 5px"
>
<
div
class
=
"card"
id
=
"tela2"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
id
=
"tela2"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
"card-body"
id
=
"tela2"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
...
@@ -782,31 +1136,31 @@
...
@@ -782,31 +1136,31 @@
<
div
style
=
"margin-top: 5px"
>
<
div
style
=
"margin-top: 5px"
>
<
div
class
=
"card-header"
>
<
div
class
=
"card-header"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-3"
>
<
div
class
=
"col-3"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Participante
Substituído
Participante
Substituído
</
h6
>
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-3"
>
<
div
class
=
"col-3"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Participante
Substituto
Participante
Substituto
</
h6
>
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-2"
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Tipo
Tipo
</
h6
>
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-2"
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Status
Status
</
h6
>
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-2"
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Justificativa
Justificativa
</
h6
>
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -814,12 +1168,22 @@
...
@@ -814,12 +1168,22 @@
@
foreach
(
$substituicoesProjeto
as
$subs
)
@
foreach
(
$substituicoesProjeto
as
$subs
)
<
div
class
=
"row"
style
=
"margin-bottom: 20px;"
>
<
div
class
=
"row"
style
=
"margin-bottom: 20px;"
>
<
div
class
=
"col-3"
>
<
div
class
=
"col-3"
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"fecharModalSubstituido(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
><
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
></
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
onclick
=
"fecharModalSubstituido(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
>
<
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
>
</
a
>
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-3"
>
<
div
class
=
"col-3"
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
><
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
></
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
>
<
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
>
</
a
>
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-2"
>
<
div
class
=
"col-2"
>
@
if
(
$subs
->
tipo
==
'ManterPlano'
)
@
if
(
$subs
->
tipo
==
'ManterPlano'
)
...
@@ -843,7 +1207,9 @@
...
@@ -843,7 +1207,9 @@
@
if
(
$subs
->
status
==
'Em Aguardo'
)
@
if
(
$subs
->
status
==
'Em Aguardo'
)
<
h6
>
Pendente
</
h6
>
<
h6
>
Pendente
</
h6
>
@
else
@
else
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"vizuJustificativa('
{
{$subs->justificativa}
}
')"
><
h5
style
=
"font-size:18px"
>
Visualizar
</
h5
></
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"vizuJustificativa('
{
{$subs->justificativa}
}
')"
><
h5
style
=
"font-size:18px"
>
Visualizar
</
h5
></
a
>
@
endif
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -851,43 +1217,69 @@
...
@@ -851,43 +1217,69 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela3"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela3"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"col-md-12"
style
=
"padding: 0px"
>
<
div
class
=
"col-md-12"
style
=
"padding: 0px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
""
>
<
div
class
=
""
>
<
div
class
=
"justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
desligamentos
as
$desligamento
)
@
foreach
(
$trabalho
->
desligamentos
as
$desligamento
)
<
div
class
=
"row justify-content-between"
>
<
div
class
=
"row justify-content-between"
>
<
div
class
=
"col-md-9"
>
<
div
class
=
"col-md-9"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Desligamento
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Desligamento
</
h5
>
<
div
class
=
"d-flex justify-content-between"
>
<
div
class
=
"d-flex justify-content-between"
>
<
div
class
=
"col-md-2"
>
<
div
class
=
"col-md-2"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
class
=
"img-flex"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
class
=
"img-flex"
>
</
div
>
</
div
>
<
div
class
=
"col-md-10"
>
<
div
class
=
"col-md-10"
>
<
a
onclick
=
"vizuParticipante(
{
{$desligamento->participante()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$desligamento
->
participante
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
<
a
onclick
=
"vizuParticipante(
{
{$desligamento->participante()->withTrashed()->first()->id}
}
)"
<
br
><
label
for
=
"justificativa"
>
Justificativa
:
</
label
>
class
=
"button"
>
{{
$desligamento
->
participante
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
<
br
><
label
for
=
"justificativa"
>
Justificativa
:
</
label
>
{{
$desligamento
->
justificativa
}}
{{
$desligamento
->
justificativa
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
>
<
div
class
=
"col-md-3"
>
@
if
(
$desligamento
->
status
==
\
App\Desligamento
::
STATUS_ENUM
[
'solicitado'
])
@
if
(
$desligamento
->
status
==
\
App\Desligamento
::
STATUS_ENUM
[
'solicitado'
])
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
form
id
=
"resposta-desligamento
{
{$desligamento->id}
}
"
method
=
"POST"
action
=
"{{route('coordenador.resposta.desligamento', ['desligamento_id' =>
$desligamento->id
]) }}"
>
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
<
form
id
=
"resposta-desligamento
{
{$desligamento->id}
}
"
method
=
"POST"
action
=
"{{route('coordenador.resposta.desligamento', ['desligamento_id' =>
$desligamento->id
]) }}"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
id
=
"desligamento"
name
=
"desligamento"
value
=
"
{
{$desligamento->id}
}
"
>
<
input
type
=
"hidden"
id
=
"desligamento"
<
input
type
=
"radio"
id
=
"aceitar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['aceito']}
}
"
>
Aprovar
name
=
"desligamento"
<
input
type
=
"radio"
id
=
"negar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['recusado']}
}
"
>
Negar
value
=
"
{
{$desligamento->id}
}
"
>
<
input
type
=
"radio"
id
=
"aceitar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['aceito']}
}
"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['recusado']}
}
"
>
Negar
<
br
>
<
br
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
form
=
"resposta-desligamento
{
{$desligamento->id}
}
"
>
Submeter
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
form
=
"resposta-desligamento
{
{$desligamento->id}
}
"
>
Submeter
</
button
>
</
form
>
</
form
>
</
div
>
</
div
>
@
else
@
else
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Status
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
class
=
"col-md-12 text-center"
>
Status
</
h5
>
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
{{
$desligamento
->
getStatus
()}}
{{
$desligamento
->
getStatus
()}}
</
div
>
</
div
>
@
endif
@
endif
...
@@ -915,12 +1307,14 @@
...
@@ -915,12 +1307,14 @@
</
div
>
</
div
>
<!--
Modal
vizualizar
justificativa
-->
<!--
Modal
vizualizar
justificativa
-->
<
div
class
=
"modal fade"
id
=
"modalVizuJustificativa"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuJustificativa"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Justificativa
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Justificativa
</
h5
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"closeJustificativa()"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"closeJustificativa()"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
...
@@ -932,108 +1326,174 @@
...
@@ -932,108 +1326,174 @@
</
div
>
</
div
>
<!--
Modal
enviar
convite
e
atribuir
-->
<!--
Modal
enviar
convite
e
atribuir
-->
<
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 modal-submeta"
>
<
div
class
=
"modal-content modal-submeta"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"exampleModalLongTitle"
style
=
"font-size: 20px;"
>
Enviar
Convite
</
h5
>
<
h5
class
=
"modal-title titulo-table"
id
=
"exampleModalLongTitle"
style
=
"font-size: 20px;"
>
Enviar
<
button
type
=
"button"
class
=
"close"
onclick
=
"fecharModalConvite()"
aria
-
label
=
"Close"
style
=
"color: rgb(182, 182, 182)"
>
Convite
</
h5
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"fecharModalConvite()"
aria
-
label
=
"Close"
</
button
>
style
=
"color: rgb(182, 182, 182)"
>
</
div
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
div
class
=
"modal-body"
style
=
"margin-left: 20px; margin-right: 20px;"
>
</
button
>
<
form
action
=
"{{ route('admin.convite.atribuicao.projeto') }}"
method
=
"POST"
class
=
"labels-blue"
>
@
csrf
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Email
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
select
class
=
"form-control"
id
=
"grandeAreaConvite"
name
=
"grande_area_id"
onchange
=
"areas()"
required
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
<
option
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
</select>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área') }} <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
areaConvite
" name="
area_id
" required>
<option value="" disabled selected hidden>-- Área --</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Tipo</label>
<select class="
form
-
control
" name="
tipo
" id="
exampleFormControlSelect1
" disabled>
<option value="
avaliador
" >Avaliador</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
" >Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
" >Outra</option>
</select>
</div>
<div class="
form
-
group
" id="
div
-
outra
" style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
<label for="
outra
">{{ __('Digite o nome da instituição') }}<span style="
color
:
red
;
font
-
weight
:
bold
;
"> *</span></label>
<input id="
outra
" class="
form
-
control
@
error
(
'outra'
)
is
-
invalid
@
enderror
" type="
text
" name="
outra
" value="
{{
old
(
'outra'
)}}
" autocomplete="
outra
" placeholder="
Universidade
Federal
...
">
@error('outra')
<div id="
validationServer03Feedback
" class="
invalid
-
feedback
">
{{
$message
}}
</div>
@enderror
</
div
>
</
div
>
<
div
class
=
"modal-body"
style
=
"margin-left: 20px; margin-right: 20px;"
>
<div class="
form
-
group
" style="
margin
-
top
:
40
px
;
margin
-
bottom
:
40
px
;
">
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">Enviar</button>
<
form
action
=
"{{ route('admin.convite.atribuicao.projeto') }}"
method
=
"POST"
class
=
"labels-blue"
>
</div>
@
csrf
<div class="
form
-
group
texto
-
info
">
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
O convite será enviador por e-mail e o preenchimento dos dados será de inteira responsabilidade do usuário convidado.
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Email
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
select
class
=
"form-control"
id
=
"grandeAreaConvite"
name
=
"grande_area_id"
onchange
=
"areas()"
required
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
<
option
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
</select>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área') }} <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
areaConvite
"
name="
area_id
" required>
<option value="" disabled selected hidden>-- Área --</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Tipo</label>
<select class="
form
-
control
" name="
tipo
" id="
exampleFormControlSelect1
" disabled>
<option value="
avaliador
">Avaliador</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required
onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
">Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
">Outra</option>
</select>
</div>
<div class="
form
-
group
" id="
div
-
outra
"
style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
<label for="
outra
">{{ __('Digite o nome da instituição') }}<span
style="
color
:
red
;
font
-
weight
:
bold
;
"> *</span></label>
<input id="
outra
" class="
form
-
control
@
error
(
'outra'
)
is
-
invalid
@
enderror
" type="
text
"
name="
outra
" value="
{{
old
(
'outra'
)}}
" autocomplete="
outra
"
placeholder="
Universidade
Federal
...
">
@error('outra')
<div id="
validationServer03Feedback
" class="
invalid
-
feedback
">
{{
$message
}}
</div>
@enderror
</div>
<div class="
form
-
group
" style="
margin
-
top
:
40
px
;
margin
-
bottom
:
40
px
;
">
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">Enviar</button>
</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>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<style>
<style>
body{font-family:Calibri, Tahoma, Arial}
body {
.TabControl{ width:100%; overflow:hidden; height:400px}
font-family: Calibri, Tahoma, Arial
.TabControl #header{ width:100%; overflow:hidden}
}
.TabControl #content{ width:100%; overflow:hidden; height:100%; }
.TabControl .abas
{
display:inline;
}
.TabControl {
.TabControl .abas li
{
float:left
}
width: 100%;
.aba{width:100px; height:30px; border-radius:5px 5px 0 0;
overflow: hidden;
text-align:center; padding-top:5px;}
height: 400px
.ativa{width:100px; height:30px; border-radius:5px 5px 0 0;
}
text-align:center; padding-top:5px; background:#27408B;}
.ativa span, .selected span
{
color:#fff
}
.TabControl #header {
.TabControl .conteudo{width:100%; display:none; height:100%;}
width: 100%;
.selected{width:100px; height:30px; border-radius:5px 5px 0 0;
overflow: hidden
text-align:center; padding-top:5px; background:#27408B}
}
.TabControl #content {
width: 100%;
overflow: hidden;
height: 100%;
}
.TabControl .abas {
display: inline;
}
.TabControl .abas li {
float: left
}
.aba {
width: 100px;
height: 30px;
border-radius: 5px 5px 0 0;
text-align: center;
padding-top: 5px;
}
.ativa {
width: 100px;
height: 30px;
border-radius: 5px 5px 0 0;
text-align: center;
padding-top: 5px;
background: #27408B;
}
.ativa span, .selected span {
color: #fff
}
.TabControl .conteudo {
width: 100%;
display: none;
height: 100%;
}
.selected {
width: 100px;
height: 30px;
border-radius: 5px 5px 0 0;
text-align: center;
padding-top: 5px;
background: #27408B
}
</style>
</style>
@endsection
@endsection
@section('javascript')
@section('javascript')
<script type="
text
/
javascript
" src="
http
://
code
.
jquery
.
com
/
jquery
-
1.7.2.
min
.
js
"></script>
<script type="
text
/
javascript
" src="
http
://
code
.
jquery
.
com
/
jquery
-
1.7.2.
min
.
js
"></script>
<script type="
text
/
javascript
">
<script type="
text
/
javascript
">
$(document).ready(function(){
$(document).ready(function
()
{
$("
#content div:nth-child(1)").show();
$("
#content div:nth-child(1)").show();
$
(
".abas li:first div"
)
.
addClass
(
"selected"
);
$
(
".abas li:first div"
)
.
addClass
(
"selected"
);
$
(
".aba2"
)
.
click
(
function
(){
$
(
".aba2"
)
.
click
(
function
()
{
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
".aba3"
)
.
removeClass
(
"selected"
);
$
(
".aba3"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
...
@@ -1041,7 +1501,7 @@
...
@@ -1041,7 +1501,7 @@
$
(
"#tela3"
)
.
hide
();
$
(
"#tela3"
)
.
hide
();
$
(
"#tela2"
)
.
show
();
$
(
"#tela2"
)
.
show
();
});
});
$
(
".aba1"
)
.
click
(
function
(){
$
(
".aba1"
)
.
click
(
function
()
{
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
".aba3"
)
.
removeClass
(
"selected"
);
$
(
".aba3"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
...
@@ -1049,7 +1509,7 @@
...
@@ -1049,7 +1509,7 @@
$
(
"#tela3"
)
.
hide
();
$
(
"#tela3"
)
.
hide
();
$
(
"#tela1"
)
.
show
();
$
(
"#tela1"
)
.
show
();
});
});
$
(
".aba3"
)
.
click
(
function
(){
$
(
".aba3"
)
.
click
(
function
()
{
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
...
@@ -1078,73 +1538,93 @@
...
@@ -1078,73 +1538,93 @@
</
script
>
</
script
>
<
script
>
<
script
>
function
vizuParticipante
(
id
){
function
vizuParticipante
(
id
)
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipante"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipante"
+
id
)
.
modal
();
},
500
);
}
}
function
vizuPartici
(
id
){
function
vizuPartici
(
id
)
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
}
}
function
vizuJustificativa
(
texto
){
function
vizuJustificativa
(
texto
)
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
document
.
getElementById
(
"conteudoJustificativa"
)
.
innerHTML
=
texto
;
document
.
getElementById
(
"conteudoJustificativa"
)
.
innerHTML
=
texto
;
setTimeout
(()
=>
{
$
(
"#modalVizuJustificativa"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuJustificativa"
)
.
modal
();
},
500
);
}
}
function
closeJustificativa
(){
function
closeJustificativa
()
{
$
(
"#modalVizuJustificativa"
)
.
modal
(
'hide'
);
$
(
"#modalVizuJustificativa"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
}
}
</
script
>
</
script
>
<
style
>
<
style
>
h6
,
a
,
b
,
p
,
.
font
-
tam
{
h6
,
a
,
b
,
p
,
.
font
-
tam
{
font
-
size
:
16.4
px
;
font
-
size
:
16.4
px
;
}
}
h5
{
h5
{
font
-
size
:
20
px
;
font
-
size
:
20
px
;
}
}
</
style
>
</
style
>
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
var
e
=
document
.
getElementById
(
"submeter"
);
var
e
=
document
.
getElementById
(
"submeter"
);
e
.
onclick
=
function
(){
myFunction
(
e
.
value
)};
e
.
onclick
=
function
()
{
document
.
getElementById
(
"closeAcept"
)
.
onclick
=
function
(){
myFunction
(
e
.
value
)
};
document
.
getElementById
(
"closeAcept"
)
.
onclick
=
function
()
{
$
(
"#modalResultadoSubst"
)
.
modal
(
'hide'
);
$
(
"#modalResultadoSubst"
)
.
modal
(
'hide'
);
};
};
document
.
getElementById
(
"closeCancel"
)
.
onclick
=
function
(){
document
.
getElementById
(
"closeCancel"
)
.
onclick
=
function
()
{
$
(
"#modalCancelarSubst"
)
.
modal
(
'hide'
);
$
(
"#modalCancelarSubst"
)
.
modal
(
'hide'
);
};
};
document
.
getElementById
(
"teste"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
};
document
.
getElementById
(
"teste2"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste2"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
};
document
.
getElementById
(
"teste3"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste3"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
};
document
.
getElementById
(
"teste4"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste4"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
};
function
myFunction
(
id
)
{
function
myFunction
(
id
)
{
if
(
document
.
getElementById
(
"aceitar"
)
.
checked
){
if
(
document
.
getElementById
(
"aceitar"
)
.
checked
)
{
document
.
getElementById
(
"aprovaId"
)
.
value
=
id
;
document
.
getElementById
(
"aprovaId"
)
.
value
=
id
;
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalResultadoSubst"
)
.
modal
();
$
(
"#modalResultadoSubst"
)
.
modal
();
}
else
if
(
document
.
getElementById
(
"negar"
)
.
checked
){
}
else
if
(
document
.
getElementById
(
"negar"
)
.
checked
)
{
document
.
getElementById
(
"negaId"
)
.
value
=
id
;
document
.
getElementById
(
"negaId"
)
.
value
=
id
;
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalCancelarSubst"
)
.
modal
();
$
(
"#modalCancelarSubst"
)
.
modal
();
...
@@ -1156,7 +1636,7 @@
...
@@ -1156,7 +1636,7 @@
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
data
:
'id='
+
grandeArea
,
data
:
'id='
+
grandeArea
,
headers
:
headers
:
{
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
...
@@ -1164,13 +1644,13 @@
...
@@ -1164,13 +1644,13 @@
success
:
(
dados
)
=>
{
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
)
{
var
option
=
'<option selected disabled>-- Área --</option>'
;
var
option
=
'<option selected disabled>-- Área --</option>'
;
}
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
){
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
)
{
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
}
})
})
...
@@ -1194,7 +1674,7 @@
...
@@ -1194,7 +1674,7 @@
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'{{ route('
aval
.
consultaExterno
') }}'
,
url
:
'{{ route('
aval
.
consultaExterno
') }}'
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
headers
:
headers
:
{
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
...
@@ -1202,12 +1682,12 @@
...
@@ -1202,12 +1682,12 @@
success
:
(
dados
)
=>
{
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
dados
.
length
>
0
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
obj
.
instituicao
==
null
){
if
(
obj
.
instituicao
==
null
)
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
else
{
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
}
})
})
...
@@ -1229,7 +1709,7 @@
...
@@ -1229,7 +1709,7 @@
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'{{ route('
aval
.
consultaInterno
') }}'
,
url
:
'{{ route('
aval
.
consultaInterno
') }}'
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
headers
:
headers
:
{
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
...
@@ -1237,13 +1717,13 @@
...
@@ -1237,13 +1717,13 @@
success
:
(
dados
)
=>
{
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
dados
.
length
>
0
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
obj
.
instituicao
==
null
){
if
(
obj
.
instituicao
==
null
)
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
else
{
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
}
})
})
}
else
{
}
else
{
...
@@ -1258,48 +1738,58 @@
...
@@ -1258,48 +1738,58 @@
})
})
}
}
</
script
>
</
script
>
<
script
>
<
script
>
if
({
!!
json_encode
(
session
(
'error'
),
JSON_HEX_TAG
)
!!
})
if
({
!!
json_encode
(
session
(
'error'
),
JSON_HEX_TAG
)
!!
})
{
{
$
(
document
)
.
ready
(
function
()
{
$
(
document
)
.
ready
(
function
(){
$
(
'#avaliadorModalCenter'
)
.
modal
(
'show'
);
$
(
'#avaliadorModalCenter'
)
.
modal
(
'show'
);
});
});
}
}
</
script
>
</
script
>
<
script
>
<
script
>
function
fecharModalSubstituido
(
id
){
function
fecharModalSubstituido
(
id
)
{
$
(
'#modalVizuSubstituicao'
)
.
modal
(
'toggle'
);
$
(
'#modalVizuSubstituicao'
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituido"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituido"
+
id
)
.
modal
();
},
500
);
}
}
function
fecharModalSubstituto
(
id
){
function
fecharModalSubstituto
(
id
)
{
$
(
'#modalVizuSubstituicao'
)
.
modal
(
'toggle'
);
$
(
'#modalVizuSubstituicao'
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
}
}
function
abrirHistorico
(
id
,
modal
){
function
abrirHistorico
(
id
,
modal
)
{
if
(
modal
==
1
){
if
(
modal
==
1
)
{
$
(
'#modalVizuParticipanteSubstituido'
+
id
)
.
modal
(
'hide'
);
$
(
'#modalVizuParticipanteSubstituido'
+
id
)
.
modal
(
'hide'
);
}
else
if
(
modal
==
2
){
}
else
if
(
modal
==
2
)
{
$
(
'#modalVizuParticipanteSubstituto'
+
id
)
.
modal
(
'hide'
);
$
(
'#modalVizuParticipanteSubstituto'
+
id
)
.
modal
(
'hide'
);
}
else
if
(
modal
==
0
){
}
else
if
(
modal
==
0
)
{
$
(
'#modalVizuParticipante'
+
id
)
.
modal
(
'hide'
);
$
(
'#modalVizuParticipante'
+
id
)
.
modal
(
'hide'
);
}
}
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
}
}
</
script
>
</
script
>
<
script
>
<
script
>
function
abrirModalConvite
(){
function
abrirModalConvite
()
{
$
(
"#avaliadorModalCenter"
)
.
modal
(
'toggle'
);
$
(
"#avaliadorModalCenter"
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#exampleModalCenter"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#exampleModalCenter"
)
.
modal
();
},
500
);
$
(
'#exampleModalCenter'
)
.
focus
();
$
(
'#exampleModalCenter'
)
.
focus
();
}
}
function
fecharModalConvite
(){
function
fecharModalConvite
()
{
$
(
'#exampleModalCenter'
)
.
modal
(
'toggle'
);
$
(
'#exampleModalCenter'
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#avaliadorModalCenter"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#avaliadorModalCenter"
)
.
modal
();
},
500
);
$
(
'#avaliadorModalCenter'
)
.
focus
();
$
(
'#avaliadorModalCenter'
)
.
focus
();
}
}
...
@@ -1308,42 +1798,43 @@
...
@@ -1308,42 +1798,43 @@
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
data
:
'id='
+
grandeArea
,
data
:
'id='
+
grandeArea
,
headers
:
headers
:
{
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
},
},
success
:
(
dados
)
=>
{
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
)
{
var
option
=
'<option selected disabled>-- Área --</option>'
;
var
option
=
'<option selected disabled>-- Área --</option>'
;
}
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
){
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
)
{
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
})
}
else
{
var
option
=
"<option selected disabled>-- Área --</option>"
;
}
}
})
$
(
'#areaConvite'
)
.
html
(
option
)
.
show
();
}
else
{
},
var
option
=
"<option selected disabled>-- Área --</option>"
;
}
$
(
'#areaConvite'
)
.
html
(
option
)
.
show
();
},
error
:
(
data
)
=>
{
error
:
(
data
)
=>
{
console
.
log
(
data
);
console
.
log
(
data
);
}
}
})
})
}
}
function
mostrarDiv
(
select
)
{
function
mostrarDiv
(
select
)
{
if
(
select
.
value
==
"outra"
)
{
if
(
select
.
value
==
"outra"
)
{
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"block"
;
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"block"
;
$
(
"#outra"
)
.
prop
(
'required'
,
true
);
$
(
"#outra"
)
.
prop
(
'required'
,
true
);
}
else
if
(
select
.
value
==
"ufape"
){
}
else
if
(
select
.
value
==
"ufape"
)
{
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"none"
;
$
(
"#outra"
)
.
prop
(
'required'
,
false
);
$
(
"#outra"
)
.
prop
(
'required'
,
false
);
}
}
}
}
</
script
>
</
script
>
...
...
resources/views/administrador/usersAdmin.blade.php
View file @
41fa880f
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
@
if
(
$user
->
tipo
!=
"avaliador"
)
@
if
(
$user
->
tipo
!=
"avaliador"
)
<
td
>
{{
$user
->
tipo
}}
</
td
>
<
td
>
{{
$user
->
tipo
}}
</
td
>
@
else
@
else
<
td
>
{{
$user
->
tipo
}}
-
{{
$user
->
avaliadors
->
tipo
}}
</
td
>
<
td
>
{{
$user
->
tipo
}}
-
@
if
(
isset
(
$user
->
avaliadors
->
tipo
))
{{
$user
->
avaliadors
->
tipo
}}
@
else
Indefinido
@
endif
</
td
>
@
endif
@
endif
<
td
>
{{
$user
->
creaet_at
}}
</
td
>
<
td
>
{{
$user
->
creaet_at
}}
</
td
>
...
...
resources/views/areaTematica/create.blade.php
0 → 100644
View file @
41fa880f
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 50px; margin-bottom: 305px "
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Criar uma nova área temática'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('areaTematica.salvar')}}"
>
@
csrf
<
div
class
=
"col-sm-12"
>
<
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
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-info"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/areaTematica/editar.blade.php
0 → 100644
View file @
41fa880f
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 50px; margin-bottom: 305px "
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Editar uma área temática'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('areaTematica.atualizar', ['id' =>
$areaTematica->id
])}}"
>
@
csrf
<
div
class
=
"col-sm-12"
>
<
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
=
"{{
$areaTematica->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-info"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/avaliacaoRelatorio/avaliacao.blade.php
0 → 100644
View file @
41fa880f
@
php
$arquivo
=
\
App\Arquivo
::
find
(
$aval
->
arquivo_id
);
@
endphp
<
div
class
=
"container-fluid"
>
<
div
class
=
"row"
>
<
h5
><
b
>
Discente
:</
b
>
{{
\
App\Participante
::
find
(
$arquivo
->
participanteId
)
->
user
->
name
}}
</
h5
>
</
div
>
<
div
class
=
"row"
>
<
h5
><
b
>
Plano
:</
b
>
{{
$arquivo
->
titulo
}}
</
h5
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Nota: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-6 text-center padEsquerda"
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px"
@
if
(
isset
(
$aval
))
value
=
"
{
{$aval->nota}
}
"
@
endif
disabled
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
disabled
>@
if
(
isset
(
$aval
)){{
$aval
->
comentario
}}
</
textarea
>@
else
</
textarea
>@
endif
</
div
>
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
isset
(
$aval
))
@
if
(
$aval
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$aval->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
@
endif
</
div
>
</
div
>
<
style
>
.
padEsquerda
{
padding
-
left
:
0
px
}
</
style
>
\ No newline at end of file
resources/views/avaliacaoRelatorio/index.blade.php
0 → 100644
View file @
41fa880f
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-bottom: 295px"
>
@
if
(
isset
(
$mensagem
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
$mensagem
}}
</
p
>
</
div
>
</
div
>
@
endif
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 3rem;"
>
<
div
class
=
"col-md-12"
style
=
"margin-bottom: -3rem"
>
<
div
class
=
"card card_conteudo shadow bg-white"
style
=
"border-radius:12px; border-width:0px;"
>
<
div
class
=
"card-header"
style
=
"border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff"
>
<
div
class
=
"d-flex justify-content-between align-items-center"
style
=
"margin-top: 9px; margin-bottom:-1rem"
>
<
div
class
=
"bottomVoltar"
style
=
"margin-top: -20px"
>
<
a
href
=
"javascript:history.back()"
class
=
"btn btn-secondary"
style
=
""
><
img
src
=
"
{
{asset('img/icons/logo_esquerda.png')}
}
"
alt
=
""
width
=
"15px"
></
a
>
</
div
>
<
div
class
=
"form-group"
>
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Avaliações
de
Planos
de
Trabalhos
</
h5
>
</
div
>
<
div
style
=
"margin-top: -2rem"
>
<
div
class
=
"form-group"
>
<
div
style
=
"margin-top:30px;"
>
{{
--
Pesquisar
--
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered table-hover"
style
=
" white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
class
=
"text-center"
>
<
th
scope
=
"col"
>
Nome
do
Evento
</
th
>
<
th
scope
=
"col"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Nome
do
plano
</
th
>
<
th
scope
=
"col"
>
Discente
</
th
>
<
th
scope
=
"col"
>
Avaliar
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$avaliacoes
as
$avaliacao
)
<
tr
class
=
"text-center"
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
evento
->
nome
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
titulo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
titulo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
participante
->
user
->
name
}}
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
<
form
action
=
"
{
{route('planos.avaliacoesUser')}
}
"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$avaliacao->plano
->trabalho->id }}"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"
{
{Auth::user()->id}
}
"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Avaliar
</
button
>
</
form
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
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