4 @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
9 <div class="actions mb-xl">
10 <h5>{{ trans('common.actions') }}</h5>
11 <div class="icon-list text-primary">
12 @if($currentUser->can('bookshelf-create-all'))
13 <a href="{{ url("/create-shelf") }}" class="icon-list-item">
14 <span>@icon('add')</span>
15 <span>{{ trans('entities.shelves_new_action') }}</span>
18 @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
26 <div id="recents" class="mb-xl">
27 <h5>{{ trans('entities.recently_viewed') }}</h5>
28 @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
32 <div id="popular" class="mb-xl">
33 <h5>{{ trans('entities.shelves_popular') }}</h5>
34 @if(count($popular) > 0)
35 @include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
37 <div class="text-muted">{{ trans('entities.shelves_popular_empty') }}</div>
41 <div id="new" class="mb-xl">
42 <h5>{{ trans('entities.shelves_new') }}</h5>
44 @include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
46 <div class="text-muted">{{ trans('entities.shelves_new_empty') }}</div>