{{--TODO - Create unique list item--}}

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

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

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

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