1 @extends('layouts.tri')
4 @include('books.parts.list', ['books' => $books, 'view' => $view])
9 <div id="recents" class="mb-xl">
10 <h5>{{ trans('entities.recently_viewed') }}</h5>
11 @include('entities.list', ['entities' => $recents, 'style' => 'compact'])
15 <div id="popular" class="mb-xl">
16 <h5>{{ trans('entities.books_popular') }}</h5>
17 @if(count($popular) > 0)
18 @include('entities.list', ['entities' => $popular, 'style' => 'compact'])
20 <div class="body text-muted">{{ trans('entities.books_popular_empty') }}</div>
24 <div id="new" class="mb-xl">
25 <h5>{{ trans('entities.books_new') }}</h5>
26 @if(count($popular) > 0)
27 @include('entities.list', ['entities' => $new, 'style' => 'compact'])
29 <div class="body text-muted">{{ trans('entities.books_new_empty') }}</div>
36 <div class="actions mb-xl">
37 <h5>{{ trans('common.actions') }}</h5>
38 <div class="icon-list text-primary">
39 @if(user()->can('book-create-all'))
40 <a href="{{ url("/create-book") }}" class="icon-list-item">
41 <span>@icon('add')</span>
42 <span>{{ trans('entities.books_create') }}</span>
46 @include('entities.view-toggle', ['view' => $view, 'type' => 'books'])
48 <a href="{{ url('/tags') }}" class="icon-list-item">
49 <span>@icon('tag')</span>
50 <span>{{ trans('entities.tags_view_tags') }}</span>