From c5f11e45166c97dc10672e3d7ba9d2fea8411a2e Mon Sep 17 00:00:00 2001 From: Nilesh Deepak Date: Thu, 6 Jul 2017 10:05:11 +0530 Subject: [PATCH] Fixed pagination on change of display type. --- resources/views/books/index.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/books/index.blade.php b/resources/views/books/index.blade.php index de13ab5cd..c5dd38a87 100644 --- a/resources/views/books/index.blade.php +++ b/resources/views/books/index.blade.php @@ -22,16 +22,19 @@

{{ trans('entities.books') }}

- {!! $books->render() !!} @if(count($books) > 0) @if($books_display=='grid') @foreach($books as $book) @include('books/grid-item', ['book' => $book]) @endforeach +
+ {!! $books->render() !!} +
@else - @foreach($books as $book) + @foreach($books as $book) @include('books/list-item', ['book' => $book]) @endforeach + {!! $books->render() !!} @endif @else

{{ trans('entities.books_empty') }}

@@ -58,7 +61,6 @@ @endif
- {!! $books->render() !!}