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
f898e441
Commit
f898e441
authored
3 years ago
by
Guilherme Silva
Browse files
Options
Download
Email Patches
Plain Diff
Criada nova tela para visualização de proposta
parent
8e59d069
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/AdministradorController.php
+18
-0
app/Http/Controllers/AdministradorController.php
resources/views/administrador/analisarProposta.blade.php
+601
-0
resources/views/administrador/analisarProposta.blade.php
with
619 additions
and
0 deletions
+619
-0
app/Http/Controllers/AdministradorController.php
View file @
f898e441
...
...
@@ -75,6 +75,24 @@ class AdministradorController extends Controller
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
]);
}
public
function
analisarProposta
(
Request
$request
){
$trabalho
=
Trabalho
::
where
(
'id'
,
$request
->
id
)
->
first
();
$evento
=
Evento
::
where
(
'id'
,
$trabalho
->
evento_id
)
->
first
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$substituicoesProjeto
=
Substituicao
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
$substituicoesPendentes
=
Substituicao
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
where
(
'status'
,
'Em Aguardo'
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
return
view
(
'administrador.analisarProposta'
)
->
with
(
[
'trabalho'
=>
$trabalho
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'evento'
=>
$evento
,
'substituicoesPendentes'
=>
$substituicoesPendentes
,
'substituicoesProjeto'
=>
$substituicoesProjeto
,]);
}
public
function
showProjetos
(
Request
$request
){
$projetos
=
Trabalho
::
all
()
->
where
(
'status'
,
'submetido'
);
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/analisarProposta.blade.php
0 → 100644
View file @
f898e441
This diff is collapsed.
Click to expand it.
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