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
6453cc5b
Commit
6453cc5b
authored
May 18, 2023
by
luiz-davi
Browse files
fix quantidade de items por página
parent
e65e869e
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
6453cc5b
...
...
@@ -99,7 +99,6 @@ class AdministradorController extends Controller
->
whereIn
(
'status'
,
$status
)
->
pluck
(
'area_id'
);
//$trabalhos = $evento->trabalhos->whereNotIn('status', 'rascunho')->sortBy('titulo')->paginate(1);
$trabalhos
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
where
(
'status'
,
'!='
,
'rascunho'
)
->
orderBy
(
'titulo'
);
...
...
@@ -115,7 +114,7 @@ class AdministradorController extends Controller
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
->
paginate
(
1
),
'trabalhos'
=>
$trabalhos
->
paginate
(
20
),
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'column'
=>
$request
->
column
,
...
...
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