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

@include('partials.sort', ['options' => $sortOptions, 'order' => $order, 'sort' => $sort])
@if(count($books) > 0) @if($view === 'list')
@foreach($books as $book)

{{ $book->name }}

{{ $book->getExcerpt() }}

@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_now') }} @endif @endif