- <div class="mb-xl">
- <form v-on:submit.prevent="searchBook" class="search-box">
- <input v-model="searchTerm" v-on:change="checkSearchForm()" type="text" name="term" placeholder="{{ trans('entities.books_search_this') }}">
- <button type="submit">@icon('search')</button>
- <button v-if="searching" v-cloak class="text-neg" v-on:click="clearSearch()" type="button">@icon('close')</button>
- </form>
- </div>
-
- <div class="mb-xl">
- <h5>{{ trans('common.details') }}</h5>
- <div class="text-small text-muted blended-links">
- @include('partials.entity-meta', ['entity' => $book])
- @if($book->restricted)
- <div class="active-restriction">
- @if(userCan('restrictions-manage', $book))
- <a href="{{ $book->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.books_permissions_active') }}</a>
- @else
- @icon('lock'){{ trans('entities.books_permissions_active') }}
- @endif
- </div>
- @endif
+ @if(count($bookParentShelves) > 0)
+ <div class="actions mb-xl">
+ <h5>{{ trans('entities.shelves') }}</h5>
+ @include('entities.list', ['entities' => $bookParentShelves, 'style' => 'compact'])