@if(userCan(\BookStack\Permissions\Permission::BookCreateAll) && userCan(\BookStack\Permissions\Permission::BookshelfUpdate, $shelf))
@icon('add')
{{ trans('entities.books_new_action') }}
@endif
@include('entities.view-toggle', ['view' => $view, 'type' => 'bookshelf'])
@if(userCan(\BookStack\Permissions\Permission::BookshelfUpdate, $shelf))
@icon('edit')
{{ trans('common.edit') }}
@endif
@if(userCan(\BookStack\Permissions\Permission::RestrictionsManage, $shelf))
@icon('lock')
{{ trans('entities.permissions') }}
@endif
@if(userCan(\BookStack\Permissions\Permission::BookshelfDelete, $shelf))
@icon('delete')
{{ trans('common.delete') }}
@endif
@if(!user()->isGuest())
@include('entities.favourite-action', ['entity' => $shelf])
@endif