@extends('sidebar-layout') @section('toolbar')
@include('shelves._breadcrumbs', ['shelf' => $shelf])
@if(userCan('bookshelf-update', $shelf)) @icon('edit'){{ trans('common.edit') }} @endif @if(userCan('restrictions-manage', $shelf) || userCan('bookshelf-delete', $shelf)) @endif
@stop @section('sidebar') @if($shelf->tags->count() > 0)
@include('components.tag-list', ['entity' => $shelf])
@endif

@icon('info') {{ trans('common.details') }}

@if(count($activity) > 0)

@icon('time') {{ trans('entities.recent_activity') }}

@include('partials/activity-list', ['activity' => $activity])
@endif @stop @section('body')

{{$shelf->name}}

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

@if(count($books) > 0)

@foreach($books as $book) @include('books/list-item', ['book' => $book])
@endforeach
@else


{{ trans('entities.shelves_empty_contents') }} @if(userCan('bookshelf-create', $shelf))
{{ trans('entities.shelves_edit_and_assign') }} @endif

@endif
@stop