5 <div id="recents" class="mb-xl">
6 <h5>{{ trans('entities.recently_viewed') }}</h5>
7 @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
11 <div id="popular" class="mb-xl">
12 <h5>{{ trans('entities.books_popular') }}</h5>
13 @if(count($popular) > 0)
14 @include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
16 <div class="body text-muted">{{ trans('entities.books_popular_empty') }}</div>
20 <div id="new" class="mb-xl">
21 <h5>{{ trans('entities.books_new') }}</h5>
22 @if(count($popular) > 0)
23 @include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
25 <div class="body text-muted">{{ trans('entities.books_new_empty') }}</div>
31 @include('books.list', ['books' => $books, 'view' => $view])
36 <div class="actions mb-xl px-xl">
38 <div class="icon-list text-primary">
39 @if($currentUser->can('book-create-all'))
40 <a href="{{ baseUrl("/create-book") }}" class="icon-list-item">
41 <span class="icon">@icon('add')</span>
42 <span>{{ trans('entities.books_create') }}</span>
45 @include('books.view-toggle', ['view' => $view])