]> BookStack Code Mirror - bookstack/blob - resources/views/books/index.blade.php
Implemented functionality to make books sort function
[bookstack] / resources / views / books / index.blade.php
1 @extends('tri-layout')
2
3 @section('left')
4     @if($recents)
5         <div id="recents" class="mb-xl">
6             <h5>{{ trans('entities.recently_viewed') }}</h5>
7             @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
8         </div>
9     @endif
10
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'])
15         @else
16             <div class="body text-muted">{{ trans('entities.books_popular_empty') }}</div>
17         @endif
18     </div>
19
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'])
24         @else
25             <div class="body text-muted">{{ trans('entities.books_new_empty') }}</div>
26         @endif
27     </div>
28 @stop
29
30 @section('body')
31     @include('books.list', ['books' => $books, 'view' => $view])
32 @stop
33
34 @section('right')
35
36     <div class="actions mb-xl px-xl">
37         <h5>Actions</h5>
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>
43                 </a>
44             @endif
45             @include('books.view-toggle', ['view' => $view])
46         </div>
47     </div>
48
49 @stop