@extends('sidebar-layout')
@section('toolbar')
@include('shelves/view-toggle', ['shelvesViewType' => $shelvesViewType])
@stop
@section('sidebar')
@if($recents)
@icon('view') {{ trans('entities.recently_viewed') }}
@include('partials/entity-list', ['entities' => $recents, 'style' => 'compact'])
@endif
@icon('popular') {{ trans('entities.shelves_popular') }}
@if(count($popular) > 0)
@include('partials/entity-list', ['entities' => $popular, 'style' => 'compact'])
@else
{{ trans('entities.shelves_popular_empty') }}
@endif
@icon('star-circle') {{ trans('entities.shelves_new') }}
@if(count($new) > 0)
@include('partials/entity-list', ['entities' => $new, 'style' => 'compact'])
@else
{{ trans('entities.shelves_new_empty') }}
@endif
@stop
@section('body')
@include('shelves/list', ['shelves' => $shelves, 'shelvesViewType' => $shelvesViewType])
@stop