BookStack/resources/views/shelves/list.blade.php
Dan Brown b89411c108
Copied book content, Added create routes
Added view control
Added pivot table for books relation
Added control to assign books
2018-08-27 14:18:09 +01:00

26 lines
942 B
PHP

<div class="container{{ $shelvesViewType === 'list' ? ' small' : '' }}">
<h1>{{ trans('entities.shelves') }}</h1>
@if(count($shelves) > 0)
@if($shelvesViewType === 'grid')
<div class="grid third">
@foreach($shelves as $key => $shelf)
@include('shelves/grid-item', ['bookshelf' => $shelf])
@endforeach
</div>
@else
@foreach($shelves as $shelf)
@include('shelves/list-item', ['bookshelf' => $shelf])
<hr>
@endforeach
@endif
<div>
{!! $shelves->render() !!}
</div>
@else
<p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
@if(userCan('bookshelf-create-all'))
<a href="{{ baseUrl("/create-shelf") }}" class="button outline">@icon('edit'){{ trans('entities.create_now') }}</a>
@endif
@endif
</div>