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