@extends('layouts.tri') @push('social-meta') @if($shelf->coverInfo()->exists()) @endif @endpush @include('entities.body-tag-classes', ['entity' => $shelf]) @section('body')

{{ $shelf->name }}

@include('common.sort', $listOptions->getSortControlData())
{!! $shelf->descriptionInfo()->getHtml() !!}
@if(count($sortedVisibleShelfBooks) > 0) @if($view === 'list')
@foreach($sortedVisibleShelfBooks as $book) @include('books.parts.list-item', ['book' => $book]) @endforeach
@else
@foreach($sortedVisibleShelfBooks as $book) @include('entities.grid-item', ['entity' => $book]) @endforeach
@endif @else

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

@if(userCan(\BookStack\Permissions\Permission::BookCreateAll) && userCan(\BookStack\Permissions\Permission::BookshelfUpdate, $shelf)) @icon('add') {{ trans('entities.books_create') }} @endif @if(userCan(\BookStack\Permissions\Permission::BookshelfUpdate, $shelf)) @icon('edit') {{ trans('entities.shelves_edit_and_assign') }} @endif
@endif
@stop @section('left') @include('shelves.parts.show-sidebar-section-tags', ['shelf' => $shelf]) @include('shelves.parts.show-sidebar-section-details', ['shelf' => $shelf]) @include('shelves.parts.show-sidebar-section-activity', ['activity' => $activity]) @stop @section('right') @include('shelves.parts.show-sidebar-section-actions', ['shelf' => $shelf, 'view' => $view]) @stop