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
af3ff9a4
"resources/vscode:/vscode.git/clone" did not exist on "dd41a8f3f78c5422b9d551fe4a4c6e210d38955d"
Commit
af3ff9a4
authored
Jul 03, 2023
by
Yuri Resende
Browse files
Colocando os avaliadores em ordem alfabetica
parent
cc814f41
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
af3ff9a4
...
@@ -206,7 +206,9 @@ class AdministradorController extends Controller
...
@@ -206,7 +206,9 @@ class AdministradorController extends Controller
$substituicoesPendentes
=
Substituicao
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
where
(
'status'
,
'Em Aguardo'
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
$substituicoesPendentes
=
Substituicao
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
where
(
'status'
,
'Em Aguardo'
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
$avalSelecionadosId
=
$trabalho
->
avaliadors
->
pluck
(
'id'
);
$avalSelecionadosId
=
$trabalho
->
avaliadors
->
pluck
(
'id'
);
$avalProjeto
=
Avaliador
::
whereNotIn
(
'id'
,
$avalSelecionadosId
)
->
get
();
$avalProjeto
=
Avaliador
::
whereNotIn
(
'id'
,
$avalSelecionadosId
)
->
with
(
'user'
)
->
get
()
->
sortBy
(
function
(
$aval
){
return
$aval
->
user
->
name
;
});;
$trabalho
->
aval
=
$avalProjeto
;
$trabalho
->
aval
=
$avalProjeto
;
// Usuarios que possuem avaliações de relatório
// Usuarios que possuem avaliações de relatório
//$avaliacoesRelatorio = [];->join('users','users.id','=','candidatos.user_id')
//$avaliacoesRelatorio = [];->join('users','users.id','=','candidatos.user_id')
...
...
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