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
1698ddac
"app/Notifications/SubmissaoRecebidaNotification.php" did not exist on "ddeeff5d2c17536d75eaa75d41e7d8768173106d"
Commit
1698ddac
authored
Feb 08, 2022
by
Guilherme Silva
Browse files
Adicionando todos os trabalhos que não sejam 'rascunho' para a listagem
parent
801e1e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
1698ddac
...
...
@@ -65,7 +65,12 @@ class AdministradorController extends Controller
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhosSubmetidos
=
$evento
->
trabalhos
->
where
(
'status'
,
'submetido'
);
$trabalhosAvaliados
=
$evento
->
trabalhos
->
Where
(
'status'
,
'avaliado'
);
$trabalhos
=
$trabalhosSubmetidos
->
merge
(
$trabalhosAvaliados
)
->
sortBy
(
'titulo'
);
$trabalhosAprovados
=
$evento
->
trabalhos
->
Where
(
'status'
,
'aprovado'
);
$trabalhosReprovados
=
$evento
->
trabalhos
->
Where
(
'status'
,
'reprovado'
);
$trabalhosCorrigidos
=
$evento
->
trabalhos
->
Where
(
'status'
,
'corrigido'
);
$trabalhos
=
$trabalhosSubmetidos
->
merge
(
$trabalhosAvaliados
)
->
merge
(
$trabalhosAprovados
)
->
merge
(
$trabalhosReprovados
)
->
merge
(
$trabalhosCorrigidos
)
->
sortBy
(
'titulo'
);
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
// $participantes = Participante::where('trabalho_id', $id)->get();
...
...
@@ -98,7 +103,7 @@ class AdministradorController extends Controller
public
function
showProjetos
(
Request
$request
){
$projetos
=
Trabalho
::
all
()
->
where
(
'status'
,
'
submetid
o'
);
$projetos
=
Trabalho
::
all
()
->
where
(
'status'
,
'
<>'
,
'rascunh
o'
);
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
return
view
(
'administrador.listaProjetos'
)
->
with
([
'projetos'
=>
$projetos
,
'funcaoParticipantes'
=>
$funcaoParticipantes
]);
...
...
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