2021-08-22 20:15:58 +08:00
|
|
|
@extends('layouts.tri')
|
2018-08-27 21:18:09 +08:00
|
|
|
|
2019-02-02 19:41:41 +08:00
|
|
|
@section('body')
|
2022-10-30 23:16:06 +08:00
|
|
|
@include('shelves.parts.list', ['shelves' => $shelves, 'view' => $view, 'listOptions' => $listOptions])
|
2019-02-02 19:41:41 +08:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('right')
|
|
|
|
|
|
|
|
<div class="actions mb-xl">
|
|
|
|
<h5>{{ trans('common.actions') }}</h5>
|
2023-01-29 00:06:11 +08:00
|
|
|
<div class="icon-list text-link">
|
2021-01-17 21:41:43 +08:00
|
|
|
@if(userCan('bookshelf-create-all'))
|
2022-11-05 21:39:17 +08:00
|
|
|
<a href="{{ url("/create-shelf") }}" data-shortcut="new" class="icon-list-item">
|
2019-02-16 23:05:18 +08:00
|
|
|
<span>@icon('add')</span>
|
2019-04-16 03:43:25 +08:00
|
|
|
<span>{{ trans('entities.shelves_new_action') }}</span>
|
2019-02-02 19:41:41 +08:00
|
|
|
</a>
|
2018-08-27 21:18:09 +08:00
|
|
|
@endif
|
2021-11-07 04:21:11 +08:00
|
|
|
|
2022-11-10 03:30:08 +08:00
|
|
|
@include('entities.view-toggle', ['view' => $view, 'type' => 'bookshelves'])
|
2021-11-07 04:21:11 +08:00
|
|
|
|
|
|
|
<a href="{{ url('/tags') }}" class="icon-list-item">
|
|
|
|
<span>@icon('tag')</span>
|
|
|
|
<span>{{ trans('entities.tags_view_tags') }}</span>
|
|
|
|
</a>
|
2018-08-27 21:18:09 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-02 19:41:41 +08:00
|
|
|
|
2018-08-27 21:18:09 +08:00
|
|
|
@stop
|
|
|
|
|
2019-02-02 19:41:41 +08:00
|
|
|
@section('left')
|
2018-08-27 21:18:09 +08:00
|
|
|
@if($recents)
|
2019-02-03 21:45:45 +08:00
|
|
|
<div id="recents" class="mb-xl">
|
2019-02-02 19:41:41 +08:00
|
|
|
<h5>{{ trans('entities.recently_viewed') }}</h5>
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', ['entities' => $recents, 'style' => 'compact'])
|
2018-08-27 21:18:09 +08:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2019-02-03 21:45:45 +08:00
|
|
|
<div id="popular" class="mb-xl">
|
2019-02-02 19:41:41 +08:00
|
|
|
<h5>{{ trans('entities.shelves_popular') }}</h5>
|
2018-08-27 21:18:09 +08:00
|
|
|
@if(count($popular) > 0)
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', ['entities' => $popular, 'style' => 'compact'])
|
2018-08-27 21:18:09 +08:00
|
|
|
@else
|
2019-02-02 19:41:41 +08:00
|
|
|
<div class="text-muted">{{ trans('entities.shelves_popular_empty') }}</div>
|
2018-08-27 21:18:09 +08:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2019-02-03 21:45:45 +08:00
|
|
|
<div id="new" class="mb-xl">
|
2019-02-02 19:41:41 +08:00
|
|
|
<h5>{{ trans('entities.shelves_new') }}</h5>
|
2018-08-27 21:18:09 +08:00
|
|
|
@if(count($new) > 0)
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', ['entities' => $new, 'style' => 'compact'])
|
2018-08-27 21:18:09 +08:00
|
|
|
@else
|
2019-02-02 19:41:41 +08:00
|
|
|
<div class="text-muted">{{ trans('entities.shelves_new_empty') }}</div>
|
2018-08-27 21:18:09 +08:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@stop
|