2018-08-27 09:18:09 -04:00
|
|
|
|
2019-02-03 08:45:45 -05:00
|
|
|
<div class="content-wrap card">
|
2019-02-02 06:41:41 -05:00
|
|
|
{{--TODO - Create unique list item--}}
|
2019-02-03 08:45:45 -05:00
|
|
|
|
|
|
|
<div class="grid half v-center">
|
|
|
|
<h1 class="list-heading">{{ trans('entities.shelves') }}</h1>
|
|
|
|
<div class="text-right">
|
|
|
|
@include('partials.sort', ['options' => $sortOptions, 'order' => $order, 'sort' => $sort, 'type' => 'bookshelves'])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-27 09:18:09 -04:00
|
|
|
@if(count($shelves) > 0)
|
2019-02-03 08:45:45 -05:00
|
|
|
@if($view === 'list')
|
|
|
|
<div class="entity-list">
|
|
|
|
@foreach($shelves as $shelf)
|
|
|
|
@include('shelves.list-item', ['shelf' => $shelf])
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@else
|
2018-08-27 09:18:09 -04:00
|
|
|
<div class="grid third">
|
|
|
|
@foreach($shelves as $key => $shelf)
|
2019-02-03 08:45:45 -05:00
|
|
|
@include('shelves.grid-item', ['shelf' => $shelf])
|
2018-08-27 09:18:09 -04:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@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
|
2019-02-03 08:45:45 -05:00
|
|
|
|
|
|
|
</div>
|