5 <div class="card content-wrap">
6 <h1 class="break-text">{{$shelf->name}}</h1>
7 <div class="book-content">
8 <p class="text-muted">{!! nl2br(e($shelf->description)) !!}</p>
10 <div class="entity-list">
11 @foreach($books as $book)
12 @include('books/list-item', ['book' => $book])
18 <span class="text-muted italic">{{ trans('entities.shelves_empty_contents') }}</span>
19 @if(userCan('bookshelf-create', $shelf))
21 <a href="{{ $shelf->getUrl('/edit') }}" class="button outline bookshelf">{{ trans('entities.shelves_edit_and_assign') }}</a>
32 @if($shelf->tags->count() > 0)
33 <div id="tags" class="mb-xl">
34 @include('components.tag-list', ['entity' => $shelf])
38 <div id="details" class="mb-xl">
39 <h5>{{ trans('common.details') }}</h5>
40 <div class="text-small text-muted blended-links">
41 @include('partials.entity-meta', ['entity' => $shelf])
42 @if($shelf->restricted)
43 <div class="active-restriction">
44 @if(userCan('restrictions-manage', $shelf))
45 <a href="{{ $shelf->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.shelves_permissions_active') }}</a>
47 @icon('lock'){{ trans('entities.shelves_permissions_active') }}
54 @if(count($activity) > 0)
56 <h5>{{ trans('entities.recent_activity') }}</h5>
57 @include('partials.activity-list', ['activity' => $activity])
63 <div class="actions mb-xl">
64 <h5>{{ trans('common.actions') }}</h5>
65 <div class="icon-list text-primary">
67 @if(userCan('bookshelf-update', $shelf))
68 <a href="{{ $shelf->getUrl('/edit') }}" class="icon-list-item">
69 <span class="icon">@icon('edit')</span>
70 <span>{{ trans('common.edit') }}</span>
74 @if(userCan('restrictions-manage', $shelf))
75 <a href="{{ $shelf->getUrl('/permissions') }}" class="icon-list-item">
76 <span class="icon">@icon('lock')</span>
77 <span>{{ trans('entities.permissions') }}</span>
81 @if(userCan('bookshelf-delete', $shelf))
82 <a href="{{ $shelf->getUrl('/delete') }}" class="icon-list-item">
83 <span class="icon">@icon('delete')</span>
84 <span>{{ trans('common.delete') }}</span>