2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								@extends('tri-layout')
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-27 21:18:09 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								@section('body')
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								@stop
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								@section('right')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    <div class="actions mb-xl">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <h5>{{ trans('common.actions') }}</h5>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <div class="icon-list text-primary">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-27 21:18:09 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @if($currentUser->can('bookshelf-create-all'))
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                <a href="{{ baseUrl("/create-shelf") }}" class="icon-list-item">
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-16 23:05:18 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                    <span>@icon('add')</span>
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                    <span>{{ trans('entities.shelves_create') }}</span>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                </a>
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-27 21:18:09 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        </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>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @include('partials.entity-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)
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @include('partials.entity-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)
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-02 19:41:41 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @include('partials.entity-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
							 |