@extends('tri-layout') @section('body')
@include('partials.breadcrumbs', ['crumbs' => [ $shelf, ]])

{{$shelf->name}}

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

@if(count($shelf->visibleBooks) > 0) @if($view === 'list')
@foreach($shelf->visibleBooks as $book) @include('books.list-item', ['book' => $book]) @endforeach
@else
@foreach($shelf->visibleBooks as $key => $book) @include('books.grid-item', ['book' => $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('components.tag-list', ['entity' => $shelf])
@endif
{{ trans('common.details') }}
@if(count($activity) > 0)
{{ trans('entities.recent_activity') }}
@include('partials.activity-list', ['activity' => $activity])
@endif @stop @section('right')
{{ trans('common.actions') }}
@if(userCan('book-create-all') && userCan('bookshelf-update', $shelf)) @icon('add') {{ trans('entities.books_new_action') }} @endif @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
@if(userCan('bookshelf-update', $shelf)) @icon('edit') {{ trans('common.edit') }} @endif @if(userCan('restrictions-manage', $shelf)) @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('bookshelf-delete', $shelf)) @icon('delete') {{ trans('common.delete') }} @endif
@stop