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

@include('common.sort', $listOptions->getSortControlData())
@if(count($books) > 0) @if($view === 'list')
@foreach($books as $book) @include('books.parts.list-item', ['book' => $book]) @endforeach
@else
@foreach($books as $key => $book) @include('entities.grid-item', ['entity' => $book]) @endforeach
@endif
{!! $books->render() !!}
@else

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

@if(userCan('book-create-all'))
@icon('add') {{ trans('entities.create_now') }}
@endif @endif