4 <div class="content-wrap card">
5 @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
11 <div class="actions mb-xl">
12 <h5>{{ trans('common.actions') }}</h5>
13 <div class="icon-list text-primary">
14 @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
15 @if($currentUser->can('bookshelf-create-all'))
16 <a href="{{ baseUrl("/create-shelf") }}" class="icon-list-item">
17 <span class="icon">@icon('add')</span>
18 <span>{{ trans('entities.shelves_create') }}</span>
28 <div id="recents-shelves">
29 <h5>{{ trans('entities.recently_viewed') }}</h5>
30 @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
34 <div id="popular-shelves">
35 <h5>{{ trans('entities.shelves_popular') }}</h5>
36 @if(count($popular) > 0)
37 @include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
39 <div class="text-muted">{{ trans('entities.shelves_popular_empty') }}</div>
43 <div id="new-shelves">
44 <h5>{{ trans('entities.shelves_new') }}</h5>
46 @include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
48 <div class="text-muted">{{ trans('entities.shelves_new_empty') }}</div>