2018-08-27 09:18:09 -04:00
|
|
|
|
2019-08-25 10:44:51 -04:00
|
|
|
<main class="content-wrap mt-m card">
|
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">
|
2019-02-16 12:13:01 -05:00
|
|
|
@foreach($shelves as $index => $shelf)
|
|
|
|
@if ($index !== 0)
|
|
|
|
<hr class="my-m">
|
|
|
|
@endif
|
2019-02-03 08:45:45 -05:00
|
|
|
@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)
|
2020-12-18 16:26:22 -05:00
|
|
|
@include('partials.entity-grid-item', ['entity' => $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'))
|
2019-08-04 09:26:39 -04:00
|
|
|
<a href="{{ url("/create-shelf") }}" class="button outline">@icon('edit'){{ trans('entities.create_now') }}</a>
|
2018-08-27 09:18:09 -04:00
|
|
|
@endif
|
|
|
|
@endif
|
2019-02-03 08:45:45 -05:00
|
|
|
|
2019-08-25 10:44:51 -04:00
|
|
|
</main>
|