{{--TODO - Align with books page, Have sorting operations--}} {{--TODO - Create unique list item--}}

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

@if(count($shelves) > 0) @if($view === 'grid')
@foreach($shelves as $key => $shelf) @include('shelves/grid-item', ['bookshelf' => $shelf]) @endforeach
@else @foreach($shelves as $shelf) @include('shelves/list-item', ['bookshelf' => $shelf])
@endforeach @endif
{!! $shelves->render() !!}
@else

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

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