@extends('sidebar-layout')
@section('toolbar')
    
        
            @include('books/view-toggle', ['booksViewType' => $booksViewType])
        
     
    
@stop
@section('sidebar')
    @if($recents)
        
            
@icon('view') {{ trans('entities.recently_viewed') }}
            @include('partials/entity-list', ['entities' => $recents, 'style' => 'compact'])
        
    @endif
    
        @icon('popular') {{ trans('entities.books_popular') }}
        @if(count($popular) > 0)
            @include('partials/entity-list', ['entities' => $popular, 'style' => 'compact'])
        @else
            
{{ trans('entities.books_popular_empty') }}
        @endif
    
 
    
        @icon('star-circle') {{ trans('entities.books_new') }}
        @if(count($popular) > 0)
            @include('partials/entity-list', ['entities' => $new, 'style' => 'compact'])
        @else
            
{{ trans('entities.books_new_empty') }}
        @endif
    
 
@stop
@section('body')
    @include('books/list', ['books' => $books, 'bookViewType' => $booksViewType])
@stop