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
d1ed4817
"git@sites.upe.br:walter.felipe/submeta.git" did not exist on "d6e2a3e4e8f83f402cb79f16419866950dde2399"
Commit
d1ed4817
authored
Jul 01, 2021
by
Gabriel-31415
Browse files
visualizar projetos
parent
12d84e97
Changes
4
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
d1ed4817
...
@@ -64,6 +64,16 @@ class AdministradorController extends Controller
...
@@ -64,6 +64,16 @@ class AdministradorController extends Controller
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
]);
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
]);
}
}
public
function
showProjetos
(
Request
$request
){
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$projetos
=
Trabalho
::
all
();
return
view
(
'administrador.listaProjetos'
)
->
with
([
'projetos'
=>
$projetos
,
'evento'
=>
$evento
]);
}
public
function
visualizarParecer
(
Request
$request
){
public
function
visualizarParecer
(
Request
$request
){
$avaliador
=
Avaliador
::
find
(
$request
->
avaliador_id
);
$avaliador
=
Avaliador
::
find
(
$request
->
avaliador_id
);
...
...
resources/views/administrador/index.blade.php
View file @
d1ed4817
...
@@ -138,15 +138,34 @@
...
@@ -138,15 +138,34 @@
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
</
div
>
{{
--
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
br
>
<
a
href
=
"{{ route('admin.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center m-4"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 31px; width: 13rem;height: 15rem;"
>
<
a
href
=
"{{ route('admin.showProjetos') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"container"
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Mensagens
</
h2
>
<
h2
style
=
"padding-top:15px"
>
Projetos
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h6
>
Nº
total
de
usuários
:</
h6
>
</
div
>
</
div
>
@
php
$trabalhos
=
\
App\Trabalho
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$trabalhos
}}
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
</
div
>
--
}}
</
div
>
</
div
>
</
div
>
...
...
resources/views/administrador/listaProjetos.blade.php
0 → 100644
View file @
d1ed4817
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-5"
style
=
"float: center;"
>
<
h4
class
=
"titulo-table"
>
Editais
</
h4
>
</
div
>
</
div
>
<
hr
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
style
=
"margin-top: 30px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
</
div
>
@
endif
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
da
Proposta
</
th
>
<
th
scope
=
"col"
>
Autor
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
id
=
"eventos"
>
@
foreach
(
$projetos
as
$projeto
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('trabalho.show',['id'=>
$projeto->id
]) }}"
class
=
"visualizarEvento"
>
{{
$projeto
->
titulo
}}
</
a
>
</
td
>
<
td
>
{{
$projeto
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$projeto
->
proponente
->
user
->
email
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$projeto
->
created_at
))
}}
</
td
>
<
td
>
{{
$projeto
->
status
}}
</
td
>
<
td
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
routes/web.php
View file @
d1ed4817
...
@@ -116,7 +116,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
...
@@ -116,7 +116,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
//######### Trabalho ########################################
//######### Trabalho ########################################
Route
::
get
(
'/trabalho/submeter/{id}'
,
'TrabalhoController@index'
)
->
name
(
'trabalho.index'
);
Route
::
get
(
'/trabalho/submeter/{id}'
,
'TrabalhoController@index'
)
->
name
(
'trabalho.index'
);
Route
::
get
(
'/trabalho/visualizar/{id}'
,
'TrabalhoController@show'
)
->
name
(
'trabalho.show'
);
//
Route::get( '/trabalho/visualizar/{id}','TrabalhoController@show' )->name('trabalho.show');
Route
::
post
(
'/trabalho/novaVersao'
,
'TrabalhoController@novaVersao'
)
->
name
(
'trabalho.novaVersao'
);
Route
::
post
(
'/trabalho/novaVersao'
,
'TrabalhoController@novaVersao'
)
->
name
(
'trabalho.novaVersao'
);
Route
::
post
(
'/trabalho/criar'
,
'TrabalhoController@salvar'
)
->
name
(
'trabalho.store'
);
Route
::
post
(
'/trabalho/criar'
,
'TrabalhoController@salvar'
)
->
name
(
'trabalho.store'
);
Route
::
post
(
'/trabalho/criarRascunho'
,
'TrabalhoController@storeParcial'
)
->
name
(
'trabalho.storeParcial'
);
Route
::
post
(
'/trabalho/criarRascunho'
,
'TrabalhoController@storeParcial'
)
->
name
(
'trabalho.storeParcial'
);
...
@@ -177,6 +177,7 @@ Route::prefix('usuarios')->name('admin.')->group(function(){
...
@@ -177,6 +177,7 @@ Route::prefix('usuarios')->name('admin.')->group(function(){
Route
::
post
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
post
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/pareceresProjetos'
,
'AdministradorController@pareceres'
)
->
name
(
'pareceres'
);
Route
::
get
(
'/pareceresProjetos'
,
'AdministradorController@pareceres'
)
->
name
(
'pareceres'
);
Route
::
get
(
'/analisarProjetos'
,
'AdministradorController@analisar'
)
->
name
(
'analisar'
);
Route
::
get
(
'/analisarProjetos'
,
'AdministradorController@analisar'
)
->
name
(
'analisar'
);
Route
::
get
(
'/showrProjetos'
,
'AdministradorController@showProjetos'
)
->
name
(
'showProjetos'
);
});
});
Route
::
prefix
(
'naturezas'
)
->
group
(
function
(){
Route
::
prefix
(
'naturezas'
)
->
group
(
function
(){
...
...
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