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

{{ $shelf->name }}

@include('common.sort', $listOptions->getSortControlData())

{!! nl2br(e($shelf->description)) !!}

@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('book-create-all') && userCan('bookshelf-update', $shelf)) @icon('add') {{ trans('entities.books_create') }} @endif @if(userCan('bookshelf-update', $shelf)) @icon('edit') {{ trans('entities.shelves_edit_and_assign') }} @endif
@endif
@stop @section('left') @if($shelf->tags->count() > 0)
@include('entities.tag-list', ['entity' => $shelf])
@endif
{{ trans('common.details') }}
@if(count($activity) > 0)
{{ trans('entities.recent_activity') }}
@include('common.activity-list', ['activity' => $activity])
@endif @stop @section('right')
{{ trans('common.actions') }}
@stop