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

@include('entities.sort', ['options' => [ 'name' => trans('common.sort_name'), 'created_at' => trans('common.sort_created_at'), 'updated_at' => trans('common.sort_updated_at'), ], 'order' => $order, 'sort' => $sort, 'type' => 'books'])
@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('books-create-all')) @icon('edit'){{ trans('entities.create_now') }} @endif @endif