1 @extends('sidebar-layout')
4 <div class="col-sm-6 col-xs-1 faded">
5 @include('shelves._breadcrumbs', ['shelf' => $shelf])
7 <div class="col-sm-6 col-xs-11">
8 <div class="action-buttons faded">
9 @if(userCan('bookshelf-update', $shelf))
10 <a href="{{ $shelf->getUrl('/edit') }}" class="text-button text-primary">@icon('edit'){{ trans('common.edit') }}</a>
12 @if(userCan('restrictions-manage', $shelf) || userCan('bookshelf-delete', $shelf))
13 <div dropdown class="dropdown-container">
14 <a dropdown-toggle class="text-primary text-button">@icon('more'){{ trans('common.more') }}</a>
16 @if(userCan('restrictions-manage', $shelf))
17 <li><a href="{{ $shelf->getUrl('/permissions') }}" class="text-primary">@icon('lock'){{ trans('entities.permissions') }}</a></li>
19 @if(userCan('bookshelf-delete', $shelf))
20 <li><a href="{{ $shelf->getUrl('/delete') }}" class="text-neg">@icon('delete'){{ trans('common.delete') }}</a></li>
31 @if($shelf->tags->count() > 0)
33 @include('components.tag-list', ['entity' => $shelf])
37 <div class="card entity-details">
38 <h3>@icon('info') {{ trans('common.details') }}</h3>
39 <div class="body text-small text-muted blended-links">
40 @include('partials.entity-meta', ['entity' => $shelf])
41 @if($shelf->restricted)
42 <div class="active-restriction">
43 @if(userCan('restrictions-manage', $shelf))
44 <a href="{{ $shelf->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.shelves_permissions_active') }}</a>
46 @icon('lock'){{ trans('entities.shelves_permissions_active') }}
53 @if(count($activity) > 0)
54 <div class="activity card">
55 <h3>@icon('time') {{ trans('entities.recent_activity') }}</h3>
56 @include('partials/activity-list', ['activity' => $activity])
63 <div class="container small nopad">
64 <h1 class="break-text">{{$shelf->name}}</h1>
65 <div class="book-content">
66 <p class="text-muted">{!! nl2br(e($shelf->description)) !!}</p>
67 @if(count($books) > 0)
68 <div class="page-list">
70 @foreach($books as $book)
71 @include('books/list-item', ['book' => $book])
78 <span class="text-muted italic">{{ trans('entities.shelves_empty_contents') }}</span>
79 @if(userCan('bookshelf-create', $shelf))
81 <a href="{{ $shelf->getUrl('/edit') }}" class="button outline bookshelf">{{ trans('entities.shelves_edit_and_assign') }}</a>