Level 7
I did some testing and it doesn't work when I do search by dates. It doesn't save the results for the next page. With search without dates the pagination works fine and I'm using the exact same view.
So I'm simply trying to let the user know if search results are empty, but if they aren't then there might be a pagination. On the second page of pagination I get undefined $ticket variable. How should I fix this?
@if(!$ticket->count())
<h1>No results were found, please make sure you typed the input correctly.</h1>
@else
//Show results
{!! $ticket->appends(Request::only('_token','search'))->render() !!}
Please or to participate in this conversation.