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
c55a3b07
Unverified
Commit
c55a3b07
authored
Dec 02, 2022
by
Lucas Henrique
Committed by
GitHub
Dec 02, 2022
Browse files
Merge pull request #2 from Wolf-gangSE/feature/removendo-obrigatoriedade-discente
Feature/removendo obrigatoriedade discente
parents
b780d76a
a22c954b
Changes
32
Hide whitespace changes
Inline
Side-by-side
app/Arquivo.php
View file @
c55a3b07
...
...
@@ -15,7 +15,7 @@ class Arquivo extends Model
use
SoftDeletes
;
protected
$fillable
=
[
'nome'
,
'titulo'
,
'versao'
,
'versaoFinal'
,
'data'
,
'trabalhoId'
,
'participanteId'
'nome'
,
'titulo'
,
'versao'
,
'versaoFinal'
,
'data'
,
'trabalhoId'
,
'participanteId'
,
'proponenteId'
];
public
function
trabalho
(){
...
...
@@ -29,6 +29,11 @@ class Arquivo extends Model
public
function
participante
()
{
return
$this
->
belongsTo
(
'App\Participante'
,
'participanteId'
);
}
public
function
proponente
()
{
return
$this
->
belongsTo
(
'App\Proponente'
,
'proponenteId'
);
}
public
function
avaliadors
(){
return
$this
->
belongsToMany
(
'App\Avaliador'
,
'avaliadors_plano_trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
}
...
...
app/Http/Controllers/AdministradorController.php
View file @
c55a3b07
...
...
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use
App\Administrador
;
use
App\AdministradorResponsavel
;
use
App\Area
;
use
App\Arquivo
;
use
App\AvaliacaoRelatorio
;
use
App\Avaliador
;
use
App\CoordenadorComissao
;
...
...
@@ -123,6 +124,24 @@ class AdministradorController extends Controller
//$avaliacoesRelatorio = [];->join('users','users.id','=','candidatos.user_id')
$AvalRelatParcial
=
[];
$AvalRelatFinal
=
[];
if
(
$evento
->
numParticipantes
==
0
)
{
$arquivo
=
Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
if
(
isset
(
$arquivo
))
{
$avals
=
AvaliacaoRelatorio
::
where
(
'arquivo_id'
,
$arquivo
->
id
)
->
get
();
}
else
{
$avals
=
[];
}
foreach
(
$avals
as
$aval
)
{
if
(
$aval
->
tipo
==
'Parcial'
)
{
array_push
(
$AvalRelatParcial
,
$aval
);
}
else
{
array_push
(
$AvalRelatFinal
,
$aval
);
}
}
}
foreach
(
$trabalho
->
participantes
as
$participante
)
{
if
(
isset
(
$participante
->
planoTrabalho
))
{
$avals
=
AvaliacaoRelatorio
::
where
(
'arquivo_id'
,
$participante
->
planoTrabalho
->
id
)
->
get
();
...
...
app/Http/Controllers/ArquivoController.php
View file @
c55a3b07
...
...
@@ -124,6 +124,7 @@ class ArquivoController extends Controller
$trabalho
=
Trabalho
::
where
(
'id'
,
$id
)
->
first
();
$participantes
=
$trabalho
->
participantes
;
$evento
=
$trabalho
->
evento
;
// Verficação de pendencia de substituição
$aux
=
count
(
Substituicao
::
where
(
'status'
,
'Em Aguardo'
)
->
whereIn
(
'participanteSubstituido_id'
,
$trabalho
->
participantes
->
pluck
(
'id'
))
->
get
());
...
...
@@ -139,12 +140,18 @@ class ArquivoController extends Controller
return
redirect
()
->
back
();
}
foreach
(
$participantes
as
$participante
){
array_push
(
$arquivos
,
$participante
->
planoTrabalho
);
if
(
$evento
->
numParticipantes
!=
0
)
{
foreach
(
$participantes
as
$participante
){
array_push
(
$arquivos
,
$participante
->
planoTrabalho
);
}
}
else
{
$arquivo
=
Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
array_push
(
$arquivos
,
$arquivo
);
}
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'planosTrabalho.listar'
)
->
with
([
'arquivos'
=>
$arquivos
,
'hoje'
=>
$hoje
,
'trabalho'
=>
$trabalho
]);
return
view
(
'planosTrabalho.listar'
)
->
with
([
'arquivos'
=>
$arquivos
,
'hoje'
=>
$hoje
,
'trabalho'
=>
$trabalho
,
'evento'
=>
$evento
]);
}
public
function
anexarRelatorio
(
Request
$request
){
...
...
app/Http/Controllers/AvaliacaoRelatorioController.php
View file @
c55a3b07
...
...
@@ -86,9 +86,11 @@ class AvaliacaoRelatorioController extends Controller
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.
$evento
=
$trabalho
->
evento
;
if
(
$evento
->
numParticipantes
==
0
)
{
$arquivo
=
Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
$avaliadoresId
=
$request
->
input
(
'avaliadores_'
.
$arquivo
->
id
.
'_id'
);
$numeroDeItens
=
is_countable
(
$avaliadoresId
)
?
count
(
$avaliadoresId
)
:
0
;
for
(
$i
=
0
;
$i
<
$numeroDeItens
;
$i
++
){
...
...
@@ -97,7 +99,7 @@ class AvaliacaoRelatorioController extends Controller
'comentario'
=>
''
,
'nota'
=>
null
,
'user_id'
=>
$avaliadoresId
[
$i
],
'arquivo_id'
=>
$
p
ar
ticipante
->
planoTrabalh
o
->
id
,
'arquivo_id'
=>
$ar
quiv
o
->
id
,
]);
$avaliacao
->
save
();
Notification
::
send
(
$avaliacao
->
user
,
new
AtribuicaoAvaliadorRelatorioNotification
(
$avaliacao
->
tipo
,
$avaliacao
->
plano
,
$trabalho
,
$avaliacao
->
user
));
...
...
@@ -115,6 +117,38 @@ class AvaliacaoRelatorioController extends Controller
$avaliador
->
save
();
}
}
}
else
{
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
();
Notification
::
send
(
$avaliacao
->
user
,
new
AtribuicaoAvaliadorRelatorioNotification
(
$avaliacao
->
tipo
,
$avaliacao
->
plano
,
$trabalho
,
$avaliacao
->
user
));
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/TrabalhoController.php
View file @
c55a3b07
...
...
@@ -391,6 +391,7 @@ class TrabalhoController extends Controller
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
$proponente
=
Proponente
::
where
(
'user_id'
,
$projeto
->
proponente
->
user_id
)
->
first
();
// Verficação de pendencia de substituição
$aux
=
count
(
Substituicao
::
where
(
'status'
,
'Em Aguardo'
)
->
whereIn
(
'participanteSubstituido_id'
,
$projeto
->
participantes
->
pluck
(
'id'
))
->
get
());
...
...
@@ -413,6 +414,7 @@ class TrabalhoController extends Controller
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'areasTematicas'
=>
$areasTematicas
,
'flagSubstituicao'
=>
$flagSubstituicao
,
'proponente'
=>
$proponente
,
]);
}
...
...
@@ -480,6 +482,7 @@ class TrabalhoController extends Controller
'estados'
=>
$this
->
estados
,
'areaTematicas'
=>
$areaTematicas
,
'listaOds'
=>
$ODS
,
'proponente'
=>
$proponente
,
]);
}
...
...
@@ -850,6 +853,7 @@ class TrabalhoController extends Controller
]);
$trabalho
=
Trabalho
::
find
(
$id
);
$trabalho
->
ods
()
->
sync
(
$request
->
ods
);
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
DB
::
beginTransaction
();
if
(
!
$trabalho
)
{
...
...
@@ -872,27 +876,29 @@ class TrabalhoController extends Controller
$trabalho
=
$this
->
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
);
$trabalho
->
save
();
if
(
$request
->
marcado
==
null
)
{
$idExcluido
=
$trabalho
->
participantes
->
pluck
(
'id'
);
}
else
{
$idExcluido
=
[];
}
foreach
(
$request
->
participante_id
as
$key
=>
$value
)
{
if
(
$request
->
marcado
!=
null
&&
array_search
(
$key
,
$request
->
marcado
)
===
false
)
{
if
(
$value
!==
null
)
array_push
(
$idExcluido
,
$value
);
if
(
$evento
->
numParticipantes
!=
0
)
{
if
(
$request
->
marcado
==
null
)
{
$idExcluido
=
$trabalho
->
participantes
->
pluck
(
'id'
);
}
else
{
$idExcluido
=
[];
}
foreach
(
$request
->
participante_id
as
$key
=>
$value
)
{
if
(
$request
->
marcado
!=
null
&&
array_search
(
$key
,
$request
->
marcado
)
===
false
)
{
if
(
$value
!==
null
)
array_push
(
$idExcluido
,
$value
);
}
}
foreach
(
$idExcluido
as
$key
=>
$value
)
{
$trabalho
->
participantes
()
->
find
(
$value
)
->
delete
();
}
$trabalho
->
refresh
();
}
foreach
(
$idExcluido
as
$key
=>
$value
)
{
$trabalho
->
participantes
()
->
find
(
$value
)
->
delete
();
}
$trabalho
->
refresh
();
if
(
$request
->
has
(
'marcado'
))
{
foreach
(
$request
->
marcado
as
$key
=>
$part
)
{
$part
=
intval
(
$part
);
...
...
@@ -1015,6 +1021,39 @@ class TrabalhoController extends Controller
}
}
else
{
$data
[
'nomePlanoTrabalho'
]
=
$request
->
nomePlanoTrabalho
;
if
(
Arquivo
::
where
(
'proponenteId'
,
$proponente
->
id
)
->
where
(
'trabalhoId'
,
$trabalho
->
id
)
->
count
())
{
$arquivo
=
Arquivo
::
where
(
'proponenteId'
,
$proponente
->
id
)
->
where
(
'trabalhoId'
,
$trabalho
->
id
)
->
first
();
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$data
[
'nomePlanoTrabalho'
]
.
".pdf"
;
$titulo
=
$data
[
'nomePlanoTrabalho'
];
if
(
$request
->
has
(
'anexoPlanoTrabalho'
))
{
$file
=
$request
->
anexoPlanoTrabalho
;
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
}
else
{
Storage
::
rename
(
$arquivo
->
nome
,
$path
.
$nome
);
}
$arquivo
->
update
([
'titulo'
=>
$titulo
,
'nome'
=>
$path
.
$nome
,
'data'
=>
now
(),
]);
}
else
{
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$data
[
'nomePlanoTrabalho'
]
.
".pdf"
;
$file
=
$request
->
anexoPlanoTrabalho
;
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$arquivo
=
new
Arquivo
();
$arquivo
->
titulo
=
$data
[
'nomePlanoTrabalho'
];
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
data
=
now
();
$arquivo
->
proponenteId
=
$proponente
->
id
;
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
}
}
DB
::
commit
();
...
...
@@ -1047,6 +1086,7 @@ class TrabalhoController extends Controller
]);
}
$evento
=
Evento
::
find
(
$request
->
editalId
);
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
$request
->
merge
([
'coordenador_id'
=>
$evento
->
coordenadorComissao
->
id
]);
...
...
@@ -1146,6 +1186,23 @@ class TrabalhoController extends Controller
}
}
}
else
{
$data
[
'nomePlanoTrabalho'
]
=
$request
->
nomePlanoTrabalho
;
if
(
$request
->
has
(
'anexoPlanoTrabalho'
))
{
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$data
[
'nomePlanoTrabalho'
]
.
".pdf"
;
$file
=
$request
->
anexoPlanoTrabalho
;
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$arquivo
=
new
Arquivo
();
$arquivo
->
titulo
=
$data
[
'nomePlanoTrabalho'
];
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
data
=
now
();
$arquivo
->
proponenteId
=
$proponente
->
id
;
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
}
}
...
...
app/Http/Requests/StoreTrabalho.php
View file @
c55a3b07
...
...
@@ -31,9 +31,6 @@ class StoreTrabalho extends FormRequest
$evento
=
Evento
::
find
(
$this
->
editalId
);
$rules
=
[];
if
(
!
(
$this
->
has
(
'marcado'
))){
$rules
[
'erro'
]
=
[
'required'
];
}
if
(
$this
->
has
(
'marcado'
)){
foreach
(
$this
->
get
(
'marcado'
)
as
$key
=>
$value
)
{
if
(
intval
(
$value
)
==
$key
){
...
...
@@ -67,6 +64,9 @@ class StoreTrabalho extends FormRequest
}
}
}
else
{
$rules
[
'anexoPlanoTrabalho'
]
=
[
'required'
];
$rules
[
'nomePlanoTrabalho'
]
=
[
'required'
,
'string'
];
}
if
(
$this
->
has
(
'rascunho'
))
{
...
...
app/Http/Requests/UpdateTrabalho.php
View file @
c55a3b07
...
...
@@ -6,6 +6,7 @@ use App\Arquivo;
use
App\Evento
;
use
App\Participante
;
use
App\Trabalho
;
use
App\Proponente
;
use
Illuminate\Validation\Rule
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Foundation\Http\FormRequest
;
...
...
@@ -32,9 +33,6 @@ class UpdateTrabalho extends FormRequest
$projeto
=
Trabalho
::
find
(
$this
->
id
);
$evento
=
Evento
::
find
(
$this
->
editalId
);
if
(
!
(
$this
->
has
(
'marcado'
))){
$rules
[
'erro'
]
=
[
'required'
];
}
if
(
$this
->
has
(
'marcado'
)){
foreach
(
$this
->
get
(
'marcado'
)
as
$key
=>
$value
)
{
if
(
intval
(
$value
)
==
$key
){
...
...
@@ -67,20 +65,17 @@ class UpdateTrabalho extends FormRequest
if
(
$evento
->
tipo
!=
"PIBEX"
)
{
$rules
[
'media_do_curso.'
.
$value
]
=
[
'required'
,
'string'
];
}
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
Rule
::
requiredIf
(
$participante
->
planoTrabalho
==
null
)];
$rules
[
'nomePlanoTrabalho.'
.
$value
]
=
[
'required'
,
'string'
];
if
(
$participante
!=
null
){
$arquivo
=
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
where
(
'trabalhoId'
,
$projeto
->
id
)
->
first
();
if
(
$arquivo
==
null
||
$this
->
nomePlanoTrabalho
[
$value
]
!=
$arquivo
->
titulo
){
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
'required'
,
'mimes:pdf'
];
}
}
else
{
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
'required'
,
'mimes:pdf'
];
}
}
}
}
else
{
$arquivo
=
Arquivo
::
where
(
"trabalhoId"
,
$projeto
->
id
)
->
first
();
$rules
[
'anexoPlanoTrabalho'
]
=
[
Rule
::
requiredIf
(
$arquivo
==
null
)];
$rules
[
'nomePlanoTrabalho'
]
=
[
Rule
::
requiredIf
(
$arquivo
->
titulo
==
null
),
'string'
];
}
// dd($this->all());
if
(
$this
->
has
(
'rascunho'
))
{
$rules
=
[];
...
...
app/Proponente.php
View file @
c55a3b07
...
...
@@ -11,6 +11,9 @@ class Proponente extends Model
public
function
user
(){
return
$this
->
belongsTo
(
'App\User'
);
}
public
function
planoTrabalho
()
{
return
$this
->
hasOne
(
'App\Arquivo'
,
'proponenteId'
);
}
public
function
trabalhos
(){
return
$this
->
hasMany
(
'App\Trabalho'
);
}
...
...
database/migrations/2022_11_21_161801_alter_table_arquivos3.php
0 → 100644
View file @
c55a3b07
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AlterTableArquivos3
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'arquivos'
,
function
(
Blueprint
$table
)
{
$table
->
integer
(
'participanteId'
)
->
nullable
()
->
change
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
database/migrations/2022_11_22_115005_add_proponente_arquivos_table.php
0 → 100644
View file @
c55a3b07
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddProponenteArquivosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'arquivos'
,
function
(
Blueprint
$table
)
{
$table
->
integer
(
'proponenteId'
)
->
nullable
();
$table
->
foreign
(
'proponenteId'
)
->
references
(
'id'
)
->
on
(
'proponentes'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
resources/views/administrador/analisar.blade.php
View file @
c55a3b07
...
...
@@ -103,12 +103,13 @@
<
div
class
=
"col-md-12"
>
<
p
class
=
"proponenteProj"
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Proponente
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
</
div
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Discentes
:</
b
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
{{
$participante
->
user
->
name
}};
@
endforeach
</
div
>
@
endif
@
if
(
$trabalho
->
grande_area_id
!=
null
&&
$trabalho
->
area_id
!=
null
&&
$trabalho
->
sub_area_id
!=
null
)
<
div
class
=
"col-md-12"
>
<
h6
style
=
"color: #234B8B; font-weight: bold;font-size: 13px;"
>
{{
$trabalho
->
grandeArea
->
nome
}}
>
{{
$trabalho
->
area
->
nome
}}
>
{{
$trabalho
->
subArea
->
nome
}}
</
h6
>
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
c55a3b07
...
...
@@ -140,6 +140,24 @@
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
modalidade
}}
</
a
>
</
div
>
@
endif
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
$arquivo
=
App\Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
@
endphp
<
div
class
=
"col-md-12"
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Título
do
Plano
de
Trabalho
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$arquivo
->
titulo
}}
</
a
>
</
div
>
<
div
class
=
"col-md-12"
>
<
br
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Anexo do Plano de Trabalho: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$arquivo->id
])}}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
>
</
a
>
</
div
>
@
endif
@
if
(
$trabalho
->
conflitosInteresse
!=
null
)
<
div
class
=
"col-md-12"
>
<
br
>
...
...
@@ -154,6 +172,7 @@
</
div
>
</
div
>
<!--
Discentes
-->
@
if
(
$evento
->
numParticipantes
!=
0
)
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
...
...
@@ -295,6 +314,7 @@
</
div
>
</
div
>
</
div
>
@
endif
{{
--
Janelas
para
aprovação
ou
reprovação
de
substituição
--
}}
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
...
...
@@ -515,7 +535,7 @@
<
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-3 text-sm-right"
>
@
if
(
$substituicoesPendentes
->
count
()
==
0
)
@
if
(
$substituicoesPendentes
->
count
()
==
0
||
$evento
->
numParticipantes
==
0
)
<
a
href
=
"{{route('planos.listar', ['id' =>
$trabalho->id
])}}"
class
=
"button"
>
Listar
Relatórios
</
a
>
@
else
...
...
@@ -571,7 +591,7 @@
<
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
))
&&
(
$substituicoesPendentes
->
count
()
==
0
)
)
||
(
$hoje
>
$evento
->
dt_fimRelatorioFinal
))
&&
(
$substituicoesPendentes
->
count
()
==
0
||
$evento
->
numParticipantes
==
0
)
)
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliacaoRelatorioModal"
>
...
...
@@ -586,7 +606,7 @@
</
div
>
@
endif
<!--
Modal
-->
@
if
(
$substituicoesPendentes
->
count
()
==
0
)
@
if
(
$substituicoesPendentes
->
count
()
==
0
||
$evento
->
numParticipantes
==
0
)
<
div
class
=
"modal fade"
id
=
"avaliacaoRelatorioModal"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: auto"
>
...
...
@@ -595,7 +615,7 @@
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"col-md-8"
style
=
"padding-left: 0px"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliacaoModalLongTitle"
>
@
if
(
$substituicoesPendentes
->
count
()
==
0
)
Seleciones
o
(
s
)
avaliador
(
es
)
@
else
Pendências
de
Substituição
@
endif
</
h5
>
@
if
(
$substituicoesPendentes
->
count
()
==
0
||
$evento
->
numParticipantes
==
0
)
Seleciones
o
(
s
)
avaliador
(
es
)
@
else
Pendências
de
Substituição
@
endif
</
h5
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"text-align: right"
>
<
button
type
=
"button"
id
=
"enviarConviteButton"
class
=
"btn btn-info"
...
...
@@ -609,7 +629,7 @@
</
button
>
</
div
>
</
div
>
@
if
(
isset
(
$participante
->
planoTrabalho
))
@
if
(
isset
(
$participante
->
planoTrabalho
)
||
$evento
->
numParticipantes
==
0
)
<
div
class
=
"modal-body"
>
@
if
(
session
(
'error'
))
<
div
class
=
"col-md-12"
>
...
...
@@ -647,6 +667,26 @@
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Nome do avaliador"
onkeyup
=
"buscarAvalRelatorio(this)"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
div
>
</
div
>
@
if
(
$evento
->
numParticipantes
==
0
)
<
div
class
=
"col-md-6"
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$arquivo
->
titulo
}}
</
label
>
</
div
>
@
php
$avaliacoesId
=
\
App\AvaliacaoRelatorio
::
where
(
"arquivo_id"
,
$arquivo
->
id
)
->
where
(
"tipo"
,
$tipoTemp
)
->
pluck
(
'user_id'
);
$avalProjeto
=
\
Illuminate\Support\Facades\DB
::
table
(
'users'
)
->
join
(
'avaliadors'
,
'users.id'
,
'='
,
'avaliadors.user_id'
)
->
whereNotIn
(
'users.id'
,
$avaliacoesId
)
->
orderBy
(
'users.name'
)
->
get
();
@
endphp
<
select
name
=
"avaliadores_
{
{$arquivo->id}
}
_id[]"
multiple
class
=
"form-control"
id
=
"avaliacaoSelect"
style
=
"height: 200px;font-size:15px"
>
@
foreach
(
$avalProjeto
as
$avaliador
)
<
option
value
=
"{{
$avaliador->user_id
}}"
>
{{
$avaliador
->
name
}}
>
{{
$avaliador
->
instituicao
??
'Instituição Indefinida'
}}
>
{{
$avaliador
->
tipo
}}
>
{{
$avaliador
->
email
}}
</
option
>
@
endforeach
</
select
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
<
div
class
=
"col-md-6"
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
...
...
@@ -668,6 +708,7 @@
@
endforeach
</
select
>
@
endforeach
@
endif
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
teclado
para
selecionar
mais
de
um
.
</
small
>
</
div
>
...
...
resources/views/administrador/resultadosProjetos.blade.php
View file @
c55a3b07
...
...
@@ -56,7 +56,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -76,7 +78,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -111,11 +113,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -142,7 +146,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -162,7 +168,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -197,11 +203,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -229,7 +237,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -249,7 +259,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -284,11 +294,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
resources/views/administrador/resultadosProjetosCotas.blade.php
View file @
c55a3b07
...
...
@@ -63,7 +63,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -84,7 +86,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -119,11 +121,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -151,7 +155,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -171,7 +177,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -206,11 +212,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -239,7 +247,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -260,7 +270,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -295,11 +305,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -320,7 +332,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -355,11 +367,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -387,7 +401,9 @@
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<
th
scope
=
"col"
>
Bolsas
</
th
>
@
endif
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
...
...
@@ -408,7 +424,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -443,11 +459,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
@@ -468,7 +486,7 @@
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
@
if
(
$evento
->
numParticipantes
!=
0
)
{{
$trabalho
->
participantes
->
count
()}}
@
else
{{
$trabalho
->
proponente
->
count
()}}
@
endif
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
...
...
@@ -503,11 +521,13 @@
@
else
<
td
>
Pendente
</
td
>
@
endif
@
if
(
$evento
->
numParticipantes
!=
0
)
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
@
endif
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
...
...
resources/views/administrador/visualizarParecerInterno.blade.php
View file @
c55a3b07
...
...
@@ -135,11 +135,18 @@
<
input
type
=
"radio"
name
=
"anexoJustificativa"
value
=
"recusado"
@
if
(
$parecer
!=
null
&&
$parecer
->
statusJustificativaAutorizacaoEtica
==
'recusado'
)
checked
@
else
disabled
@
endif
>
</
div
>
{{
--
Planos
de
trabalho
--
}}
{{
--
Planos
de
trabalho
MUDAR
AQUI
--
}}
<
div
class
=
"col-sm-3"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Plano de Trabalho: '
)
}}
</
label
>
@
if
(
$trabalho
->
participantes
!=
null
)
<
a
href
=
" "
data
-
toggle
=
"modal"
data
-
target
=
"#modalPlanos"
>
Planos
</
a
>
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
$arquivo
=
App\Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
@
endphp
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$arquivo->id
]) }}"
>
Arquivo
</
a
>
@
else
<
a
href
=
" "
data
-
toggle
=
"modal"
data
-
target
=
"#modalPlanos"
>
Planos
</
a
>
@
endif
@
else
-
@
endif
...
...
resources/views/avaliacaoRelatorio/avaliacao.blade.php
View file @
c55a3b07
@
php
$arquivo
=
\
App\Arquivo
::
find
(
$aval
->
arquivo_id
);
@
endphp
<
div
class
=
"container-fluid"
>
<
div
class
=
"row"
>
@
if
(
$arquivo
->
trabalho
->
evento
->
numParticipante
!=
0
)
<
h5
><
b
>
Discente
:</
b
>
{{
\
App\Participante
::
find
(
$arquivo
->
participanteId
)
->
user
->
name
}}
</
h5
>
@
else
<
h5
><
b
>
Proponente
:</
b
>
{{
$arquivo
->
trabalho
->
proponente
->
user
->
name
}}
</
h5
>
@
endif
</
div
>
<
div
class
=
"row"
>
...
...
resources/views/avaliacaoRelatorio/index.blade.php
View file @
c55a3b07
...
...
@@ -48,7 +48,7 @@
<
th
scope
=
"col"
>
Nome
do
Evento
</
th
>
<
th
scope
=
"col"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Nome
do
plano
</
th
>
<
th
scope
=
"col"
>
Discent
e
</
th
>
<
th
scope
=
"col"
>
Nom
e
</
th
>
<
th
scope
=
"col"
>
Tipo
do
Relatório
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
...
...
@@ -60,7 +60,7 @@
<
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
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
evento
->
numParticipantes
==
0
?
$avaliacao
->
plano
->
proponente
->
user
->
name
:
$avaliacao
->
plano
->
participante
->
user
->
name
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
tipo
}}
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
...
...
resources/views/avaliador/listarTrabalhos.blade.php
View file @
c55a3b07
...
...
@@ -85,22 +85,31 @@
</
a
>
</
td
>
<
td
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalho
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalho
=
null
;
}
$planoTrabalho
=
App\Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
@
endphp
@
if
(
$planoTrabalho
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalho
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$planoTrabalho->id
]) }}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalho
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalho
=
null
;
}
@
endphp
@
if
(
$planoTrabalho
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalho
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
@
endif
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
...
...
@@ -186,7 +195,15 @@
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
</
td
>
<
td
style
=
"text-align: center"
>
<
td
style
=
"text-align: center"
>
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
$planoTrabalho
=
App\Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
@
endphp
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$planoTrabalho->id
]) }}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
...
...
@@ -203,6 +220,7 @@
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
@
endif
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
...
...
resources/views/avaliador/parecerInterno.blade.php
View file @
c55a3b07
...
...
@@ -20,6 +20,7 @@
@
component
(
'projeto.formularioVisualizar.anexos2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
</
div
>
@
if
(
$evento
->
numParticipantes
!=
0
)
<!--
Participantes
-->
<
div
class
=
"col-sm-10"
style
=
"margin-top: 20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
...
...
@@ -64,6 +65,7 @@
</
div
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
{{
--
Parecer
Interno
--
}}
...
...
resources/views/evento/criarEvento.blade.php
View file @
c55a3b07
...
...
@@ -60,7 +60,7 @@
<
div
class
=
"col-sm-2"
>
<
label
for
=
"numParticipantes"
class
=
"col-form-label"
>
{{
__
(
'Nº de Discentes:'
)
}}
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
id
=
"numParticipantes"
type
=
"number"
min
=
"
1
"
class
=
"form-control @error('numParticipantes') is-invalid @enderror"
name
=
"numParticipantes"
value
=
"{{ old('numParticipantes') }}"
required
autocomplete
=
"numParticipantes"
autofocus
>
<
input
id
=
"numParticipantes"
type
=
"number"
min
=
"
0
"
class
=
"form-control @error('numParticipantes') is-invalid @enderror"
name
=
"numParticipantes"
value
=
"{{ old('numParticipantes') }}"
required
autocomplete
=
"numParticipantes"
autofocus
>
@
error
(
'numParticipantes'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
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