2019-02-02 12:41:41 +01:00
|
|
|
@extends('tri-layout')
|
2018-08-27 15:18:09 +02:00
|
|
|
|
2019-02-02 12:41:41 +01:00
|
|
|
@section('body')
|
2019-02-03 14:45:45 +01:00
|
|
|
@include('shelves.list', ['shelves' => $shelves, 'view' => $view])
|
2019-02-02 12:41:41 +01:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('right')
|
|
|
|
|
|
|
|
<div class="actions mb-xl">
|
|
|
|
<h5>{{ trans('common.actions') }}</h5>
|
|
|
|
<div class="icon-list text-primary">
|
2018-08-27 15:18:09 +02:00
|
|
|
@if($currentUser->can('bookshelf-create-all'))
|
2019-08-04 15:26:39 +02:00
|
|
|
<a href="{{ url("/create-shelf") }}" class="icon-list-item">
|
2019-02-16 16:05:18 +01:00
|
|
|
<span>@icon('add')</span>
|
2019-04-15 21:43:25 +02:00
|
|
|
<span>{{ trans('entities.shelves_new_action') }}</span>
|
2019-02-02 12:41:41 +01:00
|
|
|
</a>
|
2018-08-27 15:18:09 +02:00
|
|
|
@endif
|
2019-04-13 13:46:15 +02:00
|
|
|
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
|
2018-08-27 15:18:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-02 12:41:41 +01:00
|
|
|
|
2018-08-27 15:18:09 +02:00
|
|
|
@stop
|
|
|
|
|
2019-02-02 12:41:41 +01:00
|
|
|
@section('left')
|
2018-08-27 15:18:09 +02:00
|
|
|
@if($recents)
|
2019-02-03 14:45:45 +01:00
|
|
|
<div id="recents" class="mb-xl">
|
2019-02-02 12:41:41 +01:00
|
|
|
<h5>{{ trans('entities.recently_viewed') }}</h5>
|
|
|
|
@include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
|
2018-08-27 15:18:09 +02:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2019-02-03 14:45:45 +01:00
|
|
|
<div id="popular" class="mb-xl">
|
2019-02-02 12:41:41 +01:00
|
|
|
<h5>{{ trans('entities.shelves_popular') }}</h5>
|
2018-08-27 15:18:09 +02:00
|
|
|
@if(count($popular) > 0)
|
2019-02-02 12:41:41 +01:00
|
|
|
@include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
|
2018-08-27 15:18:09 +02:00
|
|
|
@else
|
2019-02-02 12:41:41 +01:00
|
|
|
<div class="text-muted">{{ trans('entities.shelves_popular_empty') }}</div>
|
2018-08-27 15:18:09 +02:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2019-02-03 14:45:45 +01:00
|
|
|
<div id="new" class="mb-xl">
|
2019-02-02 12:41:41 +01:00
|
|
|
<h5>{{ trans('entities.shelves_new') }}</h5>
|
2018-08-27 15:18:09 +02:00
|
|
|
@if(count($new) > 0)
|
2019-02-02 12:41:41 +01:00
|
|
|
@include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
|
2018-08-27 15:18:09 +02:00
|
|
|
@else
|
2019-02-02 12:41:41 +01:00
|
|
|
<div class="text-muted">{{ trans('entities.shelves_new_empty') }}</div>
|
2018-08-27 15:18:09 +02:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@stop
|