3 @section('container-classes', 'mt-xl')
6 @include('books.list', ['books' => $books, 'view' => $view])
11 <div id="recents" class="mb-xl">
12 <h5>{{ trans('entities.recently_viewed') }}</h5>
13 @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
17 <div id="popular" class="mb-xl">
18 <h5>{{ trans('entities.books_popular') }}</h5>
19 @if(count($popular) > 0)
20 @include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
22 <div class="body text-muted">{{ trans('entities.books_popular_empty') }}</div>
26 <div id="new" class="mb-xl">
27 <h5>{{ trans('entities.books_new') }}</h5>
28 @if(count($popular) > 0)
29 @include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
31 <div class="body text-muted">{{ trans('entities.books_new_empty') }}</div>
38 <div class="actions mb-xl">
39 <h5>{{ trans('common.actions') }}</h5>
40 <div class="icon-list text-primary">
41 @if($currentUser->can('book-create-all'))
42 <a href="{{ baseUrl("/create-book") }}" class="icon-list-item">
43 <span>@icon('add')</span>
44 <span>{{ trans('entities.books_create') }}</span>
48 @include('partials.view-toggle', ['view' => $view, 'type' => 'book'])