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 2020 @if ($page == $paginator -> currentPage () )
2121 <li class =" uk-active" ><span >{{ $page } } </span ></li >
2222 @else
23- <li ><a href =" {{ $url } }" >{{ $page } } </a ></li >
23+ <li ><a href =" {{ $url . ( $params ?? ' ' ) } }" >{{ $page } } </a ></li >
2424 @endif
2525 @endforeach
2626 @endif
2727 @endforeach
2828
2929 {{-- Next Page Link --}}
3030 @if ($paginator -> hasMorePages () )
31- <li ><a href =" {{ $paginator -> nextPageUrl () } }" rel =" next" >» ; </a ></li >
31+ <li ><a href =" {{ $paginator -> nextPageUrl () . ( $params ?? ' ' ) } }" rel =" next" >» ; </a ></li >
3232 @else
3333 <li class =" uk-disabled" ><span >» ; </span ></li >
3434 @endif
Original file line number Diff line number Diff line change 5959 <a class =" uk-button uk-button-primary uk-button-small uk-visible@m" href =" {{ route (' totem.tasks.export' )} }" >Export</a >
6060 </span >
6161 </div >
62- {{ $tasks -> links (' totem::partials.pagination' )} }
62+ {{ $tasks -> links (' totem::partials.pagination' , [ ' params ' => ' & ' . http_build_query ( array_filter ( request () -> except ( ' page ' )))] )} }
6363@stop
Original file line number Diff line number Diff line change 44
55use Studio \Totem \Task ;
66use Studio \Totem \Totem ;
7+ use Illuminate \Database \Eloquent \Builder ;
78use Studio \Totem \Contracts \TaskInterface ;
89use Studio \Totem \Http \Requests \TaskRequest ;
910
@@ -41,7 +42,7 @@ public function index()
4142 'last_ran_at ' ,
4243 'average_runtime ' ,
4344 ], ['description ' =>'asc ' ])
44- ->when (request ('q ' ), function ($ query ) {
45+ ->when (request ('q ' ), function (Builder $ query ) {
4546 $ query ->where ('description ' , 'LIKE ' , '% ' .request ('q ' ).'% ' );
4647 })
4748 ->paginate (20 ),
You can’t perform that action at this time.
0 commit comments