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
52bd1e9e
Unverified
Commit
52bd1e9e
authored
Apr 20, 2022
by
GuilhermeGz
Committed by
GitHub
Apr 20, 2022
Browse files
Merge pull request #200 from GuilhermeGz/master
Atualizações
parents
b782393e
1cdf15f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
52bd1e9e
...
...
@@ -72,16 +72,11 @@ class AdministradorController extends Controller
public
function
analisar
(
Request
$request
){
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$status
=
[
'submetido'
,
'avaliado'
,
'aprovado'
,
'reprovado'
,
'corrigido'
];
$withPath
=
'/usuarios/analisarProjetos?evento_id='
.
$evento
->
id
;
if
(
$request
->
column
!=
null
)
{
$status
=
[
$request
->
column
];
$withPath
=
'/usuarios/analisarProjetos/'
.
$request
->
column
.
'?evento_id='
.
$evento
->
id
;
}
$trabalhos
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
whereIn
(
'status'
,
$status
)
->
orderBy
(
'titulo'
)
->
paginate
(
10
)
->
withPath
(
$withPath
);
->
paginate
(
10
);
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
// $participantes = Participante::where('trabalho_id', $id)->get();
...
...
@@ -92,13 +87,7 @@ class AdministradorController extends Controller
}
// Utilizado para paginação de Collection
public
function
paginate
(
$items
,
$perPage
=
5
,
$page
=
null
,
$options
=
[])
{
$page
=
$page
?:
(
Paginator
::
currentPage
()
?:
1
);
$items
=
$items
instanceof
Collection
?
$items
:
Collection
::
make
(
$items
);
return
new
LengthAwarePaginator
(
$items
->
forPage
(
$page
,
$perPage
),
$items
->
count
(),
$perPage
,
$page
,
$options
);
}
public
function
analisarProposta
(
Request
$request
){
...
...
resources/views/administrador/analisar.blade.php
View file @
52bd1e9e
...
...
@@ -95,10 +95,11 @@
{{
$participante
->
user
->
name
}};
@
endforeach
</
div
>
<
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
>
</
div
>
@
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
>
</
div
>
@
endif
</
div
>
...
...
@@ -113,7 +114,7 @@
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-11"
>
<
br
>
{{
$trabalhos
->
links
()
}}
{{
$trabalhos
->
appends
([
'evento_id'
=>
$evento
->
id
])
->
links
()
}}
</
div
>
...
...
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