File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 20
20
@if ($page == $paginator -> currentPage () )
21
21
<li class =" uk-active" ><span >{{ $page } } </span ></li >
22
22
@else
23
- <li ><a href =" {{ $url } }" >{{ $page } } </a ></li >
23
+ <li ><a href =" {{ $url . ( $params ?? ' ' ) } }" >{{ $page } } </a ></li >
24
24
@endif
25
25
@endforeach
26
26
@endif
27
27
@endforeach
28
28
29
29
{{-- Next Page Link --}}
30
30
@if ($paginator -> hasMorePages () )
31
- <li ><a href =" {{ $paginator -> nextPageUrl () } }" rel =" next" >» ; </a ></li >
31
+ <li ><a href =" {{ $paginator -> nextPageUrl () . ( $params ?? ' ' ) } }" rel =" next" >» ; </a ></li >
32
32
@else
33
33
<li class =" uk-disabled" ><span >» ; </span ></li >
34
34
@endif
Original file line number Diff line number Diff line change 59
59
<a class =" uk-button uk-button-primary uk-button-small uk-visible@m" href =" {{ route (' totem.tasks.export' )} }" >Export</a >
60
60
</span >
61
61
</div >
62
- {{ $tasks -> links (' totem::partials.pagination' )} }
62
+ {{ $tasks -> links (' totem::partials.pagination' , [ ' params ' => ' & ' . http_build_query ( array_filter ( request () -> except ( ' page ' )))] )} }
63
63
@stop
Original file line number Diff line number Diff line change 4
4
5
5
use Studio \Totem \Task ;
6
6
use Studio \Totem \Totem ;
7
+ use Illuminate \Database \Eloquent \Builder ;
7
8
use Studio \Totem \Contracts \TaskInterface ;
8
9
use Studio \Totem \Http \Requests \TaskRequest ;
9
10
@@ -41,7 +42,7 @@ public function index()
41
42
'last_ran_at ' ,
42
43
'average_runtime ' ,
43
44
], ['description ' =>'asc ' ])
44
- ->when (request ('q ' ), function ($ query ) {
45
+ ->when (request ('q ' ), function (Builder $ query ) {
45
46
$ query ->where ('description ' , 'LIKE ' , '% ' .request ('q ' ).'% ' );
46
47
})
47
48
->paginate (20 ),
You can’t perform that action at this time.
0 commit comments