2019-08-25 16:44:51 +02:00
|
|
|
<main class="content-wrap mt-m card">
|
2019-02-03 14:45:45 +01:00
|
|
|
|
|
|
|
<div class="grid half v-center">
|
|
|
|
<h1 class="list-heading">{{ trans('entities.shelves') }}</h1>
|
|
|
|
<div class="text-right">
|
2022-10-30 16:16:06 +01:00
|
|
|
@include('common.sort', $listOptions->getSortControlData())
|
2019-02-03 14:45:45 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-27 15:18:09 +02:00
|
|
|
@if(count($shelves) > 0)
|
2019-02-03 14:45:45 +01:00
|
|
|
@if($view === 'list')
|
|
|
|
<div class="entity-list">
|
2019-02-16 18:13:01 +01:00
|
|
|
@foreach($shelves as $index => $shelf)
|
|
|
|
@if ($index !== 0)
|
|
|
|
<hr class="my-m">
|
|
|
|
@endif
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('shelves.parts.list-item', ['shelf' => $shelf])
|
2019-02-03 14:45:45 +01:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@else
|
2018-08-27 15:18:09 +02:00
|
|
|
<div class="grid third">
|
|
|
|
@foreach($shelves as $key => $shelf)
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('entities.grid-item', ['entity' => $shelf])
|
2018-08-27 15:18:09 +02:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div>
|
|
|
|
{!! $shelves->render() !!}
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
|
|
|
|
@if(userCan('bookshelf-create-all'))
|
2022-10-29 16:23:21 +02:00
|
|
|
<a href="{{ url("/create-shelf") }}"
|
|
|
|
class="button outline">@icon('edit'){{ trans('entities.create_now') }}</a>
|
2018-08-27 15:18:09 +02:00
|
|
|
@endif
|
|
|
|
@endif
|
2019-02-03 14:45:45 +01:00
|
|
|
|
2019-08-25 16:44:51 +02:00
|
|
|
</main>
|