@if($booksViewType === 'list')
@else
@endif

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

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

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

@if(userCan('books-create-all')) @icon('edit'){{ trans('entities.create_one_now') }} @endif @endif