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

@include('common.sort', ['options' => $sortOptions, 'order' => $order, 'sort' => $sort, 'type' => 'bookshelves'])
@if(count($shelves) > 0) @if($view === 'list')
@foreach($shelves as $index => $shelf) @if ($index !== 0)
@endif @include('shelves.parts.list-item', ['shelf' => $shelf]) @endforeach
@else
@foreach($shelves as $key => $shelf) @include('entities.grid-item', ['entity' => $shelf]) @endforeach
@endif
{!! $shelves->render() !!}
@else

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

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