3 @section('container-classes', 'mt-xl')
7 <div id="recents" class="mb-xl">
8 <h5>{{ trans('entities.recently_viewed') }}</h5>
9 @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
13 <div id="popular" class="mb-xl">
14 <h5>{{ trans('entities.books_popular') }}</h5>
15 @if(count($popular) > 0)
16 @include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
18 <div class="body text-muted">{{ trans('entities.books_popular_empty') }}</div>
22 <div id="new" class="mb-xl">
23 <h5>{{ trans('entities.books_new') }}</h5>
24 @if(count($popular) > 0)
25 @include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
27 <div class="body text-muted">{{ trans('entities.books_new_empty') }}</div>
33 @include('books.list', ['books' => $books, 'view' => $view])
38 <div class="actions mb-xl">
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 class="icon">@icon('add')</span>
44 <span>{{ trans('entities.books_create') }}</span>
47 @include('books.view-toggle', ['view' => $view])