2019-02-02 06:41:41 -05:00
|
|
|
@extends('tri-layout')
|
2018-08-27 09:18:09 -04:00
|
|
|
|
2019-02-02 06:41:41 -05:00
|
|
|
@section('body')
|
2019-02-03 08:45:45 -05:00
|
|
|
@include('shelves.list', ['shelves' => $shelves, 'view' => $view])
|
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">
|
2018-08-27 09:18:09 -04:00
|
|
|
@if($currentUser->can('bookshelf-create-all'))
|
2019-08-04 09:26:39 -04:00
|
|
|
<a href="{{ url("/create-shelf") }}" 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
|
2020-04-10 07:49:16 -04:00
|
|
|
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelves'])
|
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>
|
|
|
|
@include('partials.entity-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)
|
2019-02-02 06:41:41 -05:00
|
|
|
@include('partials.entity-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)
|
2019-02-02 06:41:41 -05:00
|
|
|
@include('partials.entity-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
|